/* =============================================================
   BASE — CSS propre, moderne, mobile-first.
   Variables couleur/typo/forme : surchargées par le thème en bas.
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    --max:        1180px;
    --black:      #15171a;
    --grey:       #4a525c;
    --grey2:      #6b7480;
    --grey3:      #f3f5f8;
    --white:      #ffffff;
    --border:     #e6e9ee;
    --shadow-sm:  0 1px 3px rgba(15,23,42,.06);
    --shadow:     0 6px 20px rgba(15,23,42,.08);
    --shadow-lg:  0 18px 40px rgba(15,23,42,.12);

    /* ces variables sont surchargées par le thème site-spécifique en bas */
    --primary:    #1a2e4a;
    --primary-d:  #0e1c2e;
    --primary-l:  #2c4a73;
    --accent:     #f2a905;
    --accent-d:   #c98c00;
    --danger:     #d72631;
    --font:       'Roboto', system-ui, -apple-system, sans-serif;
    --font-h:     var(--font);
    --radius:     8px;
    --radius-lg:  14px;
    --radius-pill:999px;

    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); }

/* Animation soulignement clignotant */
@keyframes blincklive { 0%,100%{opacity:1} 50%{opacity:.55} }
.blinck { animation: blincklive 1.4s ease-in-out infinite; }

/* Conteneur central */
/* Sections */
.section { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 40px 0; } }
.section.bggris { background: var(--grey3); }
.section.bgred  { background: var(--danger); color: #fff; }
.section.dark   { background: var(--primary-d); color: #fff; }

/* Typographie */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-h); font-weight: 700; line-height: 1.2; color: var(--black); margin: 0 0 14px; }
h1.title0 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
h2.title  { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 18px; }
.title3   { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.title4   { font-size: 17px; font-weight: 700; }
.title5   { font-size: 16px; font-weight: 700; }
p { color: var(--grey); margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

.tcenter { text-align: center; }
.white   { color: #fff !important; }
.maj     { text-transform: uppercase; }
.color   { color: var(--accent); font-weight: 700; }

.subhead { font-size: 17px; color: var(--grey2); max-width: 700px; margin: -8px auto 28px !important; line-height: 1.55; }

.section .title.tcenter,
.section .subhead.tcenter { text-align: center; }

/* ---- Boutons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 22px;
    font-family: var(--font);
    font-weight: 700; font-size: 15px;
    color: #fff; background: var(--danger);
    border: 0; border-radius: var(--radius);
    cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: var(--shadow-sm);
    line-height: 1;
    white-space: nowrap;
}
.btn img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn.bigbtn { padding: 18px 30px; font-size: 17px; }
.btn.blue { background: var(--primary); }
.btn.blue:hover { background: var(--primary-d); }
.btn.dark { background: var(--primary-d); }
.btn.ghost { background: transparent; border: 2px solid currentColor; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---- Top urgence ribbon (Site 1) ---- */
.topurgence { background: var(--danger); color: #fff; padding: 9px 0; font-size: 13px; text-align: center; }
.topurgence .pulse { display: inline-block; margin-right: 6px; animation: blincklive 1s infinite; }
.topurgence strong { font-weight: 800; }

/* ---- Navtop (header) ---- */
.navtop {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.navtop .bcol,
.navtop .navbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navtop .logo { display: inline-block; max-width: 200px; }
.navtop .logo img { max-height: 48px; width: auto; }
.navtop .topnav { display: flex; align-items: center; gap: 22px; }
.navtop .topnav a { color: var(--grey); font-weight: 600; font-size: 14px; }
.navtop .topnav a:hover { color: var(--primary); }
.navtop .navtel { padding: 10px 16px; font-size: 14px; }

/* ---- Hero variants ---- */
.heroexpress, .heroatelier, .heroconfiance {
    padding: 80px 0 70px; position: relative; overflow: hidden;
}
.heroexpress {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%);
    color: #fff;
}
.heroatelier {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 70%);
    color: #fff;
    border-bottom: 4px solid var(--accent);
}
.heroconfiance {
    background: linear-gradient(180deg, #fff 0%, var(--grey3) 100%);
    color: var(--black);
    border-bottom: 1px solid var(--border);
}
.heroexpress h1.title0,
.heroatelier h1.title0 { color: #fff; }

.hero-tag {
    display: inline-block; padding: 6px 14px; border-radius: var(--radius);
    background: rgba(255,255,255,.18); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 18px;
}
.heroconfiance .hero-tag { background: var(--primary); color: #fff; }

.herocontent { max-width: 760px; }
.heroconfiance .herocontent { margin: 0 auto; text-align: center; }

.herosub {
    font-size: 17px; line-height: 1.6; max-width: 640px;
    margin: 18px 0 26px;
    color: rgba(255,255,255,.92);
}
.heroconfiance .herosub { color: var(--grey); margin-left: auto; margin-right: auto; }

.herobuttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.heroconfiance .herobuttons { justify-content: center; }
.herohelp { font-size: 13px; opacity: .8; margin-top: 12px; }
.heroconfiance .herohelp { color: var(--grey2); opacity: 1; }

/* ---- Stats band ---- */
.bandstats { background: var(--primary-d); color: #fff; padding: 44px 0; }
.statitem { text-align: center; }
.statitem strong {
    display: block; font-size: clamp(28px, 4vw, 40px);
    font-weight: 800; line-height: 1; margin-bottom: 6px; color: #fff;
}
.statitem span { font-size: 13px; opacity: .82; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 768px) {
    }

/* ---- Steps (1-2-3-4) ---- */
.blocsteps .step {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px 24px 24px; position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.blocsteps .step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blocsteps .stepnum {
    position: absolute; top: -22px; left: 24px;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: #fff;
    font-weight: 800; font-size: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.blocsteps .step h3 { margin-top: 8px; }
.blocsteps .step p { font-size: 14px; }



/* ---- Avantages 4 colonnes ---- */
.blocavantages .col {
    background: #fff; padding: 28px 22px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); text-align: center;
    transition: all .2s ease;
}
.blocavantages .col:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }
.blocavantages .col > div { width: 70px; height: 70px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grey3); border-radius: 50%; }
.blocavantages .col img { width: 36px; height: 36px; }
.blocavantages .col h3 { margin: 12px 0 8px; }
.blocavantages .col p { font-size: 14px; line-height: 1.6; }



/* ---- Marques (Site 2) ---- */
.marquesgrid .col {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 16px; text-align: center; transition: all .2s ease;
}
.marquesgrid .col:hover { border-color: var(--primary); transform: translateY(-2px); }
.marquename { display: block; font-weight: 800; font-size: 22px; color: var(--primary); margin-bottom: 6px; letter-spacing: .5px; }
.marquesgrid small { display: block; color: var(--grey2); font-size: 13px; }


/* ---- Prix grid (Site 3) ---- */
.bandprix { background: var(--grey3); padding: 64px 0; }
.prixcard {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center; position: relative;
    transition: all .2s ease;
}
.prixcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prixcard.featured { border: 2px solid var(--primary); transform: scale(1.04); box-shadow: var(--shadow); }
.prixlabel { font-weight: 600; color: var(--grey); font-size: 15px; margin-bottom: 14px; line-height: 1.3; }
.prixmontant { font-size: 42px; font-weight: 800; color: var(--primary); margin: 0 0 18px; line-height: 1; }
.prixcard ul { list-style: none; text-align: left; padding: 0; margin: 0; }
.prixcard ul li { padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--border); font-size: 14px; color: var(--grey); position: relative; }
.prixcard ul li:before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.prixcard ul li:last-child { border: 0; }
.prixbadge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: var(--primary-d);
    padding: 5px 14px; border-radius: var(--radius-pill);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    white-space: nowrap;
}

/* ---- Témoignages ---- */
.temoin {
    background: #fff; padding: 28px 24px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.temoin .stars { color: #f5b400; font-size: 17px; margin-bottom: 10px; }
.temoin p { color: var(--grey); font-style: italic; line-height: 1.6; font-size: 15px; }
.temoin-author { font-style: normal !important; font-weight: 700; color: var(--grey2); margin-top: 12px !important; font-size: 14px; }
@media (max-width: 900px) { }

/* ---- Citation ---- */
.bandcitation { padding: 70px 0; background: var(--primary-d); color: #fff; text-align: center; }
.quote { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; font-style: italic; max-width: 820px; margin: 0 auto 14px; color: #fff; font-weight: 300; }
.quote-author { opacity: .8; }

/* ---- CTA bands ---- */
.bandcta { padding: 60px 0; }
.bandcta.dark { background: var(--primary-d); color: #fff; }
.bandcta .bigwhite { font-size: clamp(20px, 2.4vw, 24px); font-weight: 700; color: #fff; margin-bottom: 22px; text-align: center; }
.bandcontact { padding: 60px 0; background: var(--grey3); }
.bandcontact.dark { background: var(--primary-d); color: #fff; }
.bandcontact .bcol {
    display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: center;
}
.bandcontact .bcol > .col1 { grid-column: 1 / -1; text-align: center; }
.bandcontact.dark h2 { color: #fff; }
.bandcontact.dark p { color: rgba(255,255,255,.85); }
@media (max-width: 768px) { .bandcontact .bcol { grid-template-columns: 1fr; text-align: center; } }

/* Bandintervention (Site 1) */
.bandintervention .bcol { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: center; }
.bandintervention p { font-size: 15px; }
@media (max-width: 768px) { .bandintervention .bcol { grid-template-columns: 1fr; text-align: center; } }

/* ---- FAQ ---- */
.faq-list { max-width: 820px; margin: 24px auto 0; }
.faq-list details {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 12px; padding: 18px 22px;
    transition: border-color .2s ease;
}
.faq-list details[open] { border-color: var(--primary); }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--black); list-style: none; padding-right: 30px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 0; top: -2px;
    font-size: 24px; font-weight: 300; color: var(--primary);
    transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin-top: 14px; color: var(--grey); line-height: 1.65; }

/* ---- Tarifs table ---- */
.tarifs-table {
    width: 100%; border-collapse: collapse; margin: 18px 0;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
}
.tarifs-table th { background: var(--primary); color: #fff; text-align: left; padding: 14px 18px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.tarifs-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--grey); }
.tarifs-table tr:last-child td { border-bottom: 0; }
.tarifs-table td:last-child { font-weight: 700; color: var(--black); white-space: nowrap; text-align: right; }
.tarifs-table tr:hover td { background: var(--grey3); }
.tarif-note { font-size: 13px; color: var(--grey2); margin-top: 14px; line-height: 1.6; }

/* ---- Prestations grid ---- */
.gridpresta .col {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .2s ease;
}
.gridpresta .col:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gridpresta picture, .gridpresta img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gridpresta .col h3 { padding: 16px 18px 4px; font-size: 16px; }
.gridpresta .col p { padding: 0 18px 8px; font-size: 14px; }
.gridpresta .col .prix {
    display: inline-block; margin: 0 18px 18px;
    background: var(--accent); color: var(--primary-d);
    padding: 5px 12px; border-radius: var(--radius);
    font-size: 13px; font-weight: 800;
}



/* ---- Checklist ---- */
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li { padding: 10px 0 10px 28px; color: var(--grey); position: relative; border-bottom: 1px solid var(--border); }
.checklist li:before { content: "✓"; position: absolute; left: 0; top: 10px; color: var(--primary); font-weight: 800; }
.checklist li:last-child { border: 0; }

/* ---- Footer ---- */
footer { background: var(--primary-d); color: #fff; padding: 50px 0 0; margin-top: 0; }
footer .colblue { padding-bottom: 30px; }
footer .colred { padding-bottom: 30px; text-align: right; }
footer .collogo .logofooter img { max-height: 60px; margin-bottom: 16px; filter: brightness(0) invert(1); }
footer .footnote { font-size: 13px; opacity: .8; line-height: 1.6; margin-bottom: 14px; color: rgba(255,255,255,.75); }
footer .link { font-size: 13px; }
footer .link a { color: rgba(255,255,255,.75); margin-right: 10px; }
footer .link a:hover { color: #fff; }
footer .colred .title4 { color: #fff; margin-bottom: 14px; line-height: 1.35; }
footer .colred .btn { background: var(--accent); color: var(--primary-d); }
footer .colred .btn:hover { background: var(--accent-d); color: var(--primary-d); }
footer .colred .btn img { filter: none; }
@media (max-width: 768px) {
    footer .colred { text-align: center; }
}

/* ---- Bouton mobile fixe ---- */
.fixedtel.mobile {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 10px 16px; background: var(--danger);
    box-shadow: 0 -4px 18px rgba(0,0,0,.15);
}
.fixedtel.mobile .btn { width: 100%; background: #fff; color: var(--danger); font-size: 16px; padding: 14px 20px; }
.fixedtel.mobile .btn img { filter: none; }
@media (max-width: 768px) {
    .fixedtel.mobile { display: block; }
    body { padding-bottom: 70px; }
}

/* ---- Pages secondaires (mentions, tarifs) ---- */
.page-legal, .page-tarifs { max-width: 880px; margin: 0 auto; padding: 24px; line-height: 1.7; }
.page-legal h1, .page-tarifs h1 { margin-top: 24px; margin-bottom: 24px; }
.page-legal h2, .page-tarifs h2 { margin-top: 36px; }
.page-legal a, .page-tarifs a { color: var(--primary); }
.page-legal .btn, .page-tarifs .btn { color: #fff; }

/* ---- Mobile tweaks ---- */
@media (max-width: 768px) {
    .navtop .topnav a:not(.navtel) { display: none; }
    h2.title { font-size: 24px; }
    .heroexpress, .heroatelier, .heroconfiance { padding: 50px 0 40px; }
    .blocavantages .col { padding: 22px 18px; }
}

/* ---- Hidden ---- */
.indexOLD,
.mobile.fixedtel:not(.telcol) { display: none; }




/* =============================================================
   GRID SYSTEM générique
   ============================================================= */
/* .bcol par défaut = flex row (utilisé pour mises en page multi-colonnes "bcol > col*") */
.bcol {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}
.bcol > .col1 { flex: 1 1 100%; }
.bcol > .col2 { flex: 1 1 calc(50% - 12px); }
.bcol > .col3 { flex: 1 1 calc(33.333% - 16px); }
.bcol > .col4 { flex: 1 1 calc(25% - 18px); }
.bcol > .col6 { flex: 1 1 calc(33.333% - 16px); }
.bcol > .col13 { flex: 1 1 calc(33.333% - 16px); }
.bcol > .col23 { flex: 1 1 calc(66.666% - 12px); }
@media (max-width: 768px) {
    .bcol > .col2,
    .bcol > .col3,
    .bcol > .col4,
    .bcol > .col6,
    .bcol > .col13,
    .bcol > .col23 { flex: 1 1 100%; }
}

/* Special grid containers : override .bcol's flex with explicit grid layout */
.bcol.blocavantages,
.bcol.gridpresta,
.bcol.blocsteps,
.bcol.marquesgrid,
.bcol.prixgrid,
.bcol.temoignages {
    display: grid;
    flex-wrap: nowrap; /* reset */
}
.bcol.blocavantages { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bcol.blocsteps { grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 30px auto 0; padding: 0 24px; }
.bcol.gridpresta { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bcol.marquesgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bcol.prixgrid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcol.temoignages { grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* When inside a grid container, .col fl ex rules don't apply */
.bcol.blocavantages > .col,
.bcol.gridpresta > .col,
.bcol.blocsteps > .col,
.bcol.marquesgrid > .col,
.bcol.prixgrid > .col,
.bcol.temoignages > .col { flex: initial; min-width: 0; }

@media (max-width: 900px) {
    .bcol.blocavantages,
    .bcol.gridpresta,
    .bcol.blocsteps { grid-template-columns: repeat(2, 1fr); }
    .bcol.marquesgrid { grid-template-columns: repeat(2, 1fr); }
    .bcol.prixgrid,
    .bcol.temoignages { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .bcol.blocavantages,
    .bcol.gridpresta,
    .bcol.blocsteps { grid-template-columns: 1fr; }
    .bcol.marquesgrid { grid-template-columns: 1fr; }
}

/* Special: .bandstats .bcol — 4 stats */
section.bandstats .bcol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) { section.bandstats .bcol { grid-template-columns: repeat(2, 1fr); } }

/* Footer override */
footer .bcol { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
footer .bcol > .col2 { flex: initial; }
@media (max-width: 768px) { footer .bcol { grid-template-columns: 1fr; gap: 24px; text-align: center; } }


/* =============================================================
   THÈME — SITE 1 : "EXPRESS SOS" (bleu marine + jaune)
   ============================================================= */
body {
    --primary:    #1a2e4a;
    --primary-d:  #0e1c2e;
    --primary-l:  #2c4a73;
    --accent:     #f2a905;
    --accent-d:   #c98c00;
    --danger:     #d72631;
    --font:       'Roboto', system-ui, sans-serif;
    --font-h:     'Roboto', system-ui, sans-serif;
    --radius:     8px;
    --radius-lg:  12px;
}
/* Bouton principal en jaune sur Site 1 (urgence visuelle) */
.btn { background: var(--accent); color: var(--primary-d); font-weight: 800; }
.btn img { filter: none; }
.btn:hover { background: var(--accent-d); color: var(--primary-d); }
.btn.dark { background: var(--primary-d); color: #fff; }
.btn.dark img { filter: brightness(0) invert(1); }
.btn.dark:hover { background: #000; color: #fff; }
.btn.blue { background: var(--primary); color: #fff; }
.btn.blue img { filter: brightness(0) invert(1); }

/* Hero express : bandeau urgent jaune en bas */
.heroexpress { border-bottom: 5px solid var(--accent); }

/* Titre H2 avec barre jaune */
h2.title.tcenter::after { content: ""; display: block; width: 60px; height: 4px; background: var(--accent); margin: 14px auto 0; border-radius: 2px; }

/* Stat numbers en jaune */
.statitem strong { color: var(--accent); }

/* Step numbers en jaune */
.blocsteps .stepnum { background: var(--accent); color: var(--primary-d); }

/* Blocavantages icônes : cercle jaune */
.blocavantages .col > div { background: rgba(242,169,5,.12); }

/* CTA mobile fixe : jaune */
.fixedtel.mobile { background: var(--accent); }
.fixedtel.mobile .btn { background: var(--primary); color: #fff; }
.fixedtel.mobile .btn img { filter: brightness(0) invert(1); }

.zonelist { color: var(--grey2); font-style: italic; margin-top: 14px; }


/* =============================================================
   MOBILE FIXES — anti-débordement + ergonomie
   ============================================================= */

/* Empêcher tout débordement horizontal global */
html, body { overflow-x: hidden; max-width: 100%; }

/* Tableaux scrollables sur petit écran */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border-radius: var(--radius); }
.table-wrap .tarifs-table { margin: 0; min-width: 480px; }

/* Bouton : retire nowrap globalement, gère plus proprement les longs textes */
.btn { white-space: normal; line-height: 1.25; text-align: center; min-height: 44px; }
.btn img { flex-shrink: 0; }

/* ---- Téléphones spécifiques mobile ≤ 768px ---- */
@media (max-width: 768px) {
    /* Conteneur plus serré */
    .bcol { padding: 0 16px; }
    .section { padding: 36px 0; }

    /* Top urgence : plus compact, retours à la ligne propres */
    .topurgence { padding: 6px 12px; font-size: 12px; line-height: 1.4; }
    .topurgence .bcol { padding: 0; flex-wrap: wrap; gap: 4px; justify-content: center; }
    .topurgence strong { display: inline; }

    /* Header navtop plus compact */
    .navtop { padding: 8px 0; }
    .navtop .bcol, .navtop .navbar { gap: 8px; flex-wrap: nowrap; }
    .navtop .logo { max-width: 130px; }
    .navtop .logo img { max-height: 36px; }
    .navtop .navtel { padding: 8px 12px; font-size: 13px; }

    /* Hero : moins haut, paddings réduits */
    .heroexpress, .heroatelier, .heroconfiance { padding: 36px 0 30px; min-height: 0; }
    .heroconfiance { padding: 36px 0 30px; }
    h1.title0 { font-size: clamp(22px, 7vw, 30px); line-height: 1.18; word-wrap: break-word; }
    .hero-tag { font-size: 11px; padding: 4px 10px; letter-spacing: .5px; margin-bottom: 12px; }
    .herosub { font-size: 15px; line-height: 1.5; margin: 12px 0 18px; }
    .herohelp { font-size: 12px; }
    .herobuttons { flex-direction: column; gap: 10px; }
    .herobuttons .btn { width: 100%; }

    /* Boutons : plus petits sur mobile, texte qui rétrécit si long */
    .btn { font-size: 14px; padding: 12px 16px; gap: 8px; }
    .btn.bigbtn { font-size: 15px; padding: 14px 18px; }
    .btn img { width: 16px; height: 16px; }

    /* Stats band : 2 colonnes sur mobile, padding réduit */
    .bandstats { padding: 28px 0; }
    .statitem strong { font-size: 26px; }
    .statitem span { font-size: 11px; letter-spacing: .5px; }

    /* Steps : passe en 1 colonne, nums plus petits */
    .blocsteps { gap: 18px; padding: 0 16px; margin-top: 18px; }
    .blocsteps .step { padding: 28px 18px 18px; }
    .blocsteps .stepnum { width: 36px; height: 36px; font-size: 16px; top: -18px; left: 18px; }

    /* Cards avantages : 1 colonne plus aérée */
    .blocavantages { gap: 14px; }
    .blocavantages .col { padding: 22px 18px; }
    .blocavantages .col > div { width: 56px; height: 56px; margin-bottom: 10px; }
    .blocavantages .col img { width: 28px; height: 28px; }

    /* Marques : 2 colonnes, plus petit */
    .marquesgrid { gap: 10px; margin-top: 18px; }
    .marquename { font-size: 18px; }
    .marquesgrid small { font-size: 11px; }

    /* Prix grid : 1 colonne max-width pour pas que ça paraisse vide */
    .prixgrid { max-width: 360px; margin-left: auto; margin-right: auto; gap: 18px; }
    .prixmontant { font-size: 36px; }

    /* Témoignages : 1 colonne */
    .temoin { padding: 20px 18px; }
    .temoin p { font-size: 14px; }

    /* CTA bands : moins de padding */
    .bandcta, .bandcontact, .bandcitation { padding: 36px 0; }
    .bandcta .bigwhite { font-size: 18px; line-height: 1.35; padding: 0 8px; }
    .quote { font-size: 18px; padding: 0 12px; }

    /* Bandintervention : 1 colonne, centré */
    .bandintervention .bcol { gap: 18px; }
    .bandintervention .bcol .col13 { text-align: center; }

    /* Subhead : moins large */
    .subhead { font-size: 14px; padding: 0 8px; }

    /* H2 plus petit */
    h2.title { font-size: clamp(20px, 5.5vw, 26px); }

    /* FAQ */
    .faq-list details { padding: 14px 16px; }
    .faq-list summary { font-size: 14px; }
    .faq-list details p { font-size: 14px; }

    /* Tarifs table */
    .tarifs-table th, .tarifs-table td { padding: 10px 12px; font-size: 13px; }

    /* Footer : centré, moins large */
    footer { padding: 30px 0 0; }
    footer .bcol { padding: 0 16px; gap: 24px; }
    footer .colblue, footer .colred { text-align: center; padding-bottom: 18px; }
    footer .collogo .logofooter img { max-height: 44px; margin-left: auto; margin-right: auto; }

    /* Bouton mobile fixe : bien dimensionné */
    .fixedtel.mobile { padding: 8px 12px; }
    .fixedtel.mobile .btn { padding: 12px 16px; font-size: 15px; }
    body { padding-bottom: 64px; } /* place pour le bouton fixe */

    /* Préstations : 1 colonne */
    .gridpresta .col { padding-bottom: 16px; }
    .gridpresta .col h3 { font-size: 15px; padding: 12px 14px 4px; }
    .gridpresta .col p { font-size: 13px; padding: 0 14px 6px; }
    .gridpresta .col .prix { margin: 0 14px 14px; }

    /* Pages secondaires */
    .page-legal, .page-tarifs { padding: 16px; font-size: 14px; }
    .page-legal h1, .page-tarifs h1 { font-size: 24px; }
    .page-legal h2, .page-tarifs h2 { font-size: 18px; margin-top: 24px; }
}

/* ---- Très petits écrans ≤ 380px (iPhone SE) ---- */
@media (max-width: 380px) {
    .bcol { padding: 0 12px; }
    .navtop .logo { max-width: 110px; }
    .navtop .navtel { padding: 6px 10px; font-size: 12px; }
    h1.title0 { font-size: 22px; }
    .btn { font-size: 13px; padding: 11px 14px; }
    .btn.bigbtn { font-size: 14px; padding: 13px 16px; }
    .topurgence { font-size: 11px; }
    .prixgrid { max-width: 100%; }
    .prixmontant { font-size: 32px; }
    .statitem strong { font-size: 22px; }
    h2.title { font-size: 20px; }
}

/* ---- Tablette ≤ 1024px : ajustements doux ---- */
@media (max-width: 1024px) and (min-width: 769px) {
    .bcol { padding: 0 24px; }
    h1.title0 { font-size: 36px; }
}

/* Force une largeur safe sur les <picture> et <img> */
picture, img { max-width: 100%; height: auto; }
.gridpresta .col { min-width: 0; } /* permet au grid de réduire les cells */
.blocavantages .col, .blocsteps .step, .marquesgrid .col, .prixcard, .temoin { min-width: 0; }

/* Empêcher le débordement texte des H1 sur mobile très petit */
h1, h2, h3 { overflow-wrap: anywhere; }

/* =============================================================
   TARIFS — Tableau responsive en mode "cartes" sur mobile
   ============================================================= */
.tarifs-table.responsive-cards td[data-label]::before {
    content: none;
}

@media (max-width: 768px) {
    /* Plus de scroll horizontal, on désactive le wrap */
    .table-wrap { overflow-x: visible; margin: 16px 0; }

    /* Cache le header de table */
    .tarifs-table.responsive-cards { min-width: 0; width: 100%; border: 0; background: transparent; box-shadow: none; }
    .tarifs-table.responsive-cards thead { display: none; }

    /* Chaque <tr> devient une carte indépendante */
    .tarifs-table.responsive-cards tbody { display: block; }
    .tarifs-table.responsive-cards tr {
        display: block;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 12px;
        padding: 14px 16px;
        box-shadow: var(--shadow-sm);
    }
    .tarifs-table.responsive-cards tr:hover td { background: transparent; }

    /* Chaque cellule devient un bloc */
    .tarifs-table.responsive-cards td {
        display: block;
        padding: 0;
        border: 0;
        text-align: left !important;
        white-space: normal;
    }

    /* Prestation : titre de la carte */
    .tarifs-table.responsive-cards td[data-label="Prestation"] {
        font-weight: 700;
        color: var(--black);
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    /* Tarif : badge coloré bien visible */
    .tarifs-table.responsive-cards td[data-label="Tarif"] {
        display: inline-block;
        background: var(--accent);
        color: var(--primary-d);
        font-weight: 800;
        padding: 6px 12px;
        border-radius: var(--radius);
        font-size: 14px;
        white-space: nowrap;
    }
}
