/* =========================================================
   Cabinet d'ostéopathie — La Trinité
   Feuille de styles unique, optimisée conversion + accessibilité
   ========================================================= */

:root {
    /* Marque */
    --brand:          #3F5266;   /* bleu ardoise profond — CTA principal */
    --brand-700:      #2D3D4D;
    --brand-500:      #52697F;
    --brand-100:      #E6ECF1;

    /* Sage : version claire décorative + version foncée lisible sur blanc */
    --sage:           #9BB59C;   /* décoratif uniquement (contraste insuffisant pour du texte) */
    --sage-deep:      #4E6B50;   /* texte / icônes — contraste AA sur fond clair */
    --sage-soft:      #E6EFE7;
    --sage-line:      #C9DCCB;

    /* Neutres */
    --ink:            #22303A;
    --ink-soft:       #55646F;
    --paper:          #FFFFFF;
    --paper-2:        #F5F7F6;
    --paper-3:        #EDF1EE;
    --line:           #E2E8E4;

    /* États */
    --ok:             #2F8F4E;
    --warn:           #B4531F;

    /* Système */
    --radius:         14px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 2px rgba(34, 48, 58, .06), 0 2px 8px rgba(34, 48, 58, .05);
    --shadow-md:      0 4px 12px rgba(34, 48, 58, .07), 0 12px 28px rgba(34, 48, 58, .07);
    --shadow-lg:      0 10px 24px rgba(34, 48, 58, .10), 0 24px 56px rgba(34, 48, 58, .12);
    --header-h:       118px;     /* topbar + header, sert d'offset aux ancres */
    --ease:           cubic-bezier(.2, .7, .3, 1);
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

h1, h2, h3, h4 {
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--brand-700);
    font-weight: 700;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.35rem); font-weight: 800; letter-spacing: -.032em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.45rem); }
h3 { font-size: 1.16rem; }

p { text-wrap: pretty; }

/* Sprite d'icônes : masqué mais toujours référençable par <use>.
   Le tracé et le remplissage sont définis en attributs sur chaque <symbol>
   (le CSS ne traverse pas l'arbre fantôme généré par <use>). */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -.18em;
}

.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 2.5rem); }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

section { padding-block: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: var(--header-h); }
.section-grey  { background-color: var(--paper-2); }
.section-white { background-color: var(--paper); }

/* Le titre de section et son sous-titre doivent partager le même axe :
   un h2 aligné à gauche au-dessus d'un sous-titre centré crée une asymétrie. */
section h2 { text-align: center; }

.section-subtitle {
    text-align: center;
    color: var(--ink-soft);
    margin: .85rem auto clamp(2.25rem, 4vw, 3.25rem);
    font-size: 1.06rem;
    max-width: 640px;
}

/* Accessibilité : lien d'évitement + anneau de focus visible */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--brand);
    color: #fff;
    padding: .8rem 1.2rem;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

:where(a, button, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------------- Boutons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .78rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 650;
    font-size: .97rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease),
                transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-lg   { padding: 1rem 1.6rem; font-size: 1.03rem; }
.btn-sm   { padding: .58rem 1.05rem; font-size: .9rem; }
.btn-block{ display: flex; width: 100%; margin-top: 1.1rem; }

.btn-primary {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 2px 6px rgba(63, 82, 102, .28), 0 10px 24px rgba(63, 82, 102, .22);
}
.btn-primary:hover {
    background-color: var(--brand-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(63, 82, 102, .3), 0 14px 32px rgba(63, 82, 102, .28);
}

.btn-outline {
    background-color: var(--paper);
    color: var(--brand-700);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-ghost {
    background-color: var(--brand-100);
    color: var(--brand-700);
}
.btn-ghost:hover { background-color: var(--sage-soft); }

.btn-light { background-color: #fff; color: var(--brand-700); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.btn-outline-light:hover { background-color: rgba(255, 255, 255, .13); border-color: #fff; }

.btn-icon-only { padding: .7rem; aspect-ratio: 1; }
.btn-icon-only .ic { width: 1.25rem; height: 1.25rem; }

.doctolib-chip {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.btn-sm .doctolib-chip { width: 19px; height: 19px; border-radius: 5px; }

/* ---------------- Bandeau supérieur ---------------- */
.topbar {
    background-color: var(--brand-700);
    color: rgba(255, 255, 255, .92);
    font-size: .875rem;
}
.topbar-inner {
    max-width: 1180px;
    margin-inline: auto;
    padding: .5rem clamp(1.15rem, 5vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; font-weight: 650; }
.topbar a:hover { text-decoration: underline; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar-sep { opacity: .45; }

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background-color: #9aa7b1;
    flex-shrink: 0;
}
#openStatus.is-open   .dot { background-color: #5FD08A; box-shadow: 0 0 0 3px rgba(95, 208, 138, .25); }
#openStatus.is-closed .dot { background-color: #E0A45B; }

/* ---------------- En-tête ---------------- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .7rem clamp(1.15rem, 5vw, 2.5rem);
    background-color: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}
/* Emblème du logo (cercle + colonne vertébrale). Fond transparent : il se pose
   directement sur l'en-tête blanc, sans pastille de couleur autour. */
.brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: block;
}
.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Repli automatique tant que logo-icon.png n'est pas fourni */
.brand-mark.is-fallback {
    border-radius: 11px;
    background-color: var(--brand);
    color: var(--sage-line);
    display: grid;
    place-items: center;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.brand-mark.is-fallback::after { content: 'HH'; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; color: var(--brand-700); letter-spacing: -.01em; }
.brand-text small { font-size: .78rem; color: var(--ink-soft); }

header nav ul { list-style: none; display: flex; gap: 1.6rem; }
header nav a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: .93rem;
    transition: color .2s var(--ease);
}
header nav a:hover { color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: .55rem; }
.nav-toggle {
    display: none;
    background: var(--brand-100);
    color: var(--brand-700);
    border: none;
    border-radius: 11px;
    padding: .55rem;
    cursor: pointer;
}
.nav-toggle .ic { width: 1.4rem; height: 1.4rem; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------------- Hero ---------------- */
.hero {
    padding-block: clamp(2.5rem, 5vw, 4.25rem);
    background:
        radial-gradient(1100px 520px at 88% 12%, rgba(155, 181, 156, .34), transparent 62%),
        linear-gradient(168deg, #FBFCFB 0%, var(--sage-soft) 100%);
    border-bottom: 1px solid var(--sage-line);
}
.hero-inner {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(1.15rem, 5vw, 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: clamp(2rem, 4vw, 3.75rem);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background-color: rgba(255, 255, 255, .8);
    border: 1px solid var(--sage-line);
    color: var(--sage-deep);
    padding: .42rem .95rem;
    border-radius: 999px;
    font-size: .855rem;
    font-weight: 650;
    margin-bottom: 1.5rem;
}

.subheadline {
    font-size: clamp(1.03rem, .95rem + .3vw, 1.19rem);
    color: var(--ink-soft);
    margin-top: 1.35rem;
    max-width: 33em;
}
.subheadline strong { color: var(--brand-700); font-weight: 650; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.1rem;
}
.cta-row-center { justify-content: center; }

.reassurance {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1.5rem;
    margin-top: 1.7rem;
    font-size: .93rem;
    color: var(--ink-soft);
    font-weight: 550;
}
.reassurance li { display: inline-flex; align-items: center; gap: .45rem; }
.reassurance .ic { color: var(--sage-deep); width: 1rem; height: 1rem; stroke-width: 2.6; }

.hero-right { display: flex; justify-content: center; }
.hero-figure { position: relative; width: min(100%, 390px); }
.hero-image {
    width: 100%;
    aspect-ratio: 392 / 510;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--paper-3);
}
.hero-caption {
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .6rem 1.35rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    white-space: nowrap;
    line-height: 1.3;
}
.hero-caption strong { display: block; font-size: .96rem; color: var(--brand-700); }
.hero-caption span { font-size: .8rem; color: var(--ink-soft); }

/* ---------------- Bande de preuve ---------------- */
.proof {
    padding-block: 1.6rem;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
}
.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 1.75rem;
}
.proof-item { display: flex; align-items: center; gap: .8rem; }
.proof-item .ic { width: 1.6rem; height: 1.6rem; color: var(--sage-deep); }
.proof-item div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.proof-item strong { font-size: .96rem; color: var(--brand-700); }
.proof-item span { font-size: .83rem; color: var(--ink-soft); }

/* ---------------- Accroche ---------------- */
.about-section { padding-block: clamp(3.25rem, 6vw, 5rem); background-color: var(--paper); }

.big-intro {
    font-size: clamp(1.28rem, 1.05rem + .85vw, 1.72rem);
    line-height: 1.42;
    color: var(--brand-700);
    font-weight: 500;
    border-left: 4px solid var(--sage);
    padding-left: clamp(1.15rem, 3vw, 2rem);
    max-width: 900px;
    margin-inline: auto;
    letter-spacing: -.015em;
}
.skimmable-text { font-size: 1.06rem; color: var(--ink-soft); max-width: 900px; margin: 1.9rem auto 0; }
.skimmable-text strong {
    color: var(--brand-700);
    font-weight: 650;
    background-color: var(--sage-soft);
    padding: .1em .3em;
    border-radius: 4px;
    box-decoration-break: clone;
}

/* ---------------- Cartes motifs ---------------- */
/* Nombre de colonnes explicite plutôt qu'auto-fit : auto-fit laisse une carte
   orpheline alignée à gauche dès que le total ne remplit pas la dernière ligne
   (5 cartes sur 4 colonnes, 4 sur 3, etc.). Les paliers ci-dessous divisent
   toujours juste. */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}
.card {
    background-color: var(--paper);
    padding: 1.9rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-line); }
.card-icon {
    width: 2.1rem; height: 2.1rem;
    color: var(--sage-deep);
    margin-bottom: 1.1rem;
    stroke-width: 1.7;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }

/* 5e carte : occupe toute la largeur sous les 4 motifs. Plus de carte orpheline
   collée à gauche, et l'appel d'urgence gagne en visibilité. */
.card-urgent {
    grid-column: 1 / -1;
    background: linear-gradient(110deg, var(--brand-100) 0%, var(--paper) 60%);
    border-color: var(--brand-500);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
}
.card-urgent .card-icon { color: var(--brand); margin-bottom: 0; flex-shrink: 0; }
.card-urgent .card-urgent-text { flex: 1; min-width: 0; }
.card-urgent h3 { margin-bottom: .2rem; }
.card-urgent .btn { margin-top: 0; width: auto; flex-shrink: 0; }

.section-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
    text-align: center;
}
.cta-note { font-size: .88rem; color: var(--ink-soft); }

/* ---------------- Patients ---------------- */
.grid-patients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 4 → 2 → 1 : jamais 3+1 */
    gap: 1.4rem;
}
.patient-card {
    text-align: center;
    padding: 2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--paper);
    transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.patient-card:hover { transform: translateY(-4px); border-color: var(--sage-line); }
.patient-icon {
    width: 68px; height: 68px;
    border-radius: 50%;
    background-color: var(--sage-soft);
    color: var(--sage-deep);
    display: grid;
    place-items: center;
    margin: 0 auto 1.15rem;
}
.patient-icon .ic { width: 1.9rem; height: 1.9rem; stroke-width: 1.7; }
.patient-card h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.patient-card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------------- Timeline ---------------- */
.timeline { max-width: 780px; margin-inline: auto; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: linear-gradient(var(--sage-line), var(--brand-100));
    border-radius: 3px;
}
.timeline-step { position: relative; padding-left: 66px; margin-bottom: 1.4rem; }
.timeline-step:last-child { margin-bottom: 0; }
.step-number {
    position: absolute;
    left: 0; top: 6px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background-color: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    border: 4px solid var(--paper-2);
}
.step-content {
    background-color: var(--paper);
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.step-content h3 { margin-bottom: .3rem; }
.step-content p { color: var(--ink-soft); font-size: .96rem; }

.prep-box {
    max-width: 780px;
    margin: 2.25rem auto 0;
    padding: 1.4rem 1.6rem;
    background-color: var(--sage-soft);
    border: 1px solid var(--sage-line);
    border-radius: var(--radius);
}
.prep-box h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .35rem; font-size: 1.02rem; }
.prep-box .ic { color: var(--sage-deep); stroke-width: 2.6; }
.prep-box p { color: var(--ink-soft); font-size: .96rem; }

/* ---------------- Tarifs ---------------- */
.grid-tarifs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* 4 → 2 → 1 : jamais 3+1 */
    gap: 1.4rem;
}
.tarif-card {
    position: relative;
    background-color: var(--paper);
    padding: 2.1rem 1.4rem 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.tarif-card:hover { transform: translateY(-4px); border-color: var(--sage-line); box-shadow: var(--shadow-md); }
.tarif-card h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.tarif-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--brand);   /* contraste AAA, contrairement au vert clair d'origine */
    line-height: 1.1;
    margin-bottom: .6rem;
}
.tarif-card p { font-size: .92rem; color: var(--ink-soft); }

.tarif-card.highlight {
    border-color: var(--brand);
    border-width: 2px;
    box-shadow: var(--shadow-md);
}
.tarif-tag {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ---------------- Avis ---------------- */
.reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* 3 → 1 : jamais 2+1 */
    gap: 1.4rem;
}
.review-card {
    background-color: var(--paper);
    padding: 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.stars { display: flex; gap: .16rem; color: #E8A33D; margin-bottom: .95rem; }
.stars .ic { width: 1.05rem; height: 1.05rem; }
.review-card blockquote { color: var(--ink); font-size: 1rem; flex: 1; }
.review-card blockquote::before { content: '“'; }
.review-card blockquote::after  { content: '”'; }
.author { margin-top: 1.1rem; font-weight: 650; color: var(--brand-700); font-size: .93rem; }

/* ---------------- FAQ ---------------- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--paper);
    overflow: hidden;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--sage-line); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    font-weight: 650;
    color: var(--brand-700);
    cursor: pointer;
    list-style: none;
    font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
    width: 1.25rem; height: 1.25rem;
    color: var(--ink-soft);
    transition: transform .25s var(--ease);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: .99rem; }

/* ---------------- Cabinet ---------------- */
.cabinet-img-wrapper { display: flex; justify-content: center; }
.cabinet-image {
    width: 100%;
    max-width: 780px;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: var(--paper-3);
}
.parking-badge {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background-color: var(--paper);
    border: 1px solid var(--sage-line);
    color: var(--brand-700);
    padding: .8rem 1.5rem;
    border-radius: 999px;
    margin-top: 1.75rem;
    font-weight: 600;
    font-size: .97rem;
    box-shadow: var(--shadow-sm);
}
.parking-badge .ic { color: var(--sage-deep); width: 1.3rem; height: 1.3rem; }

/* ---------------- Contact ---------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    background-color: var(--paper);
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.contact-info h3 { margin-bottom: .9rem; font-size: 1.06rem; }
.contact-info h3 + .contact-list { margin-bottom: 1.9rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--ink-soft); }
.contact-list .ic { color: var(--sage-deep); margin-top: .28em; width: 1.15rem; height: 1.15rem; }
.contact-list address { font-style: normal; }
.contact-list a { color: var(--brand); font-weight: 650; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.hours { border-collapse: collapse; width: 100%; max-width: 340px; margin-bottom: 1.9rem; }
.hours th, .hours td { padding: .5rem 0; text-align: left; font-size: .96rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 550; color: var(--ink-soft); }
.hours td { text-align: right; font-weight: 650; color: var(--brand-700); }

.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.map-container { min-height: 380px; display: flex; }
.map-container iframe {
    width: 100%;
    min-height: 380px;
    border: 0;
    border-radius: var(--radius);
}
/* Fond neutre pendant le chargement différé de la carte : évite un rectangle
   blanc puis un saut de mise en page. */
.map-container { background-color: var(--paper-2); border-radius: var(--radius); }

/* ---------------- CTA final ---------------- */
.final-cta {
    background:
        radial-gradient(800px 400px at 20% 0%, rgba(155, 181, 156, .22), transparent 65%),
        var(--brand-700);
    color: #fff;
    text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .82); margin: .85rem auto 0; max-width: 46ch; font-size: 1.06rem; }

/* ---------------- Pied de page ---------------- */
footer { background-color: var(--brand-700); color: rgba(255, 255, 255, .74); font-size: .93rem; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 3rem;
    justify-content: space-between;
    padding-block: 2.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; flex-direction: column; gap: .3rem; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-brand address { font-style: normal; }
.footer-brand a { color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 650; }
.footer-brand a:hover { text-decoration: underline; }

.footer-nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
    padding-block: 1.25rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .84rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.5rem;
    justify-content: space-between;
}
.disclaimer { opacity: .72; }

/* ---------------- Barre d'action mobile ----------------
   Sur mobile, le visiteur ne doit jamais être à plus d'un pouce
   d'un bouton « Appeler » ou « Prendre RDV ». */
.mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    display: none;
    gap: .6rem;
    padding: .65rem clamp(.75rem, 3vw, 1.25rem);
    padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px));
    background-color: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(34, 48, 58, .1);
    transform: translateY(110%);
    transition: transform .3s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar .btn { flex: 1; padding-block: .85rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    header nav ul { gap: 1.1rem; }
    header nav a { font-size: .88rem; }
}

@media (max-width: 980px) {
    :root { --header-h: 108px; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-left { display: flex; flex-direction: column; align-items: center; }
    .subheadline { margin-inline: auto; }
    .cta-row, .reassurance { justify-content: center; }
    /* Le titre et les boutons passent avant la photo : sur mobile, la promesse
       et l'action doivent être visibles sans défilement. */
    .hero-right { margin-top: 2.5rem; }
    .hero-figure { width: min(100%, 290px); }

    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .big-intro { text-align: left; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-container, .map-container iframe { min-height: 300px; }

    /* Paliers pairs : chaque ligne reste pleine, aucune carte isolée */
    .grid-cards,
    .grid-patients,
    .grid-tarifs { grid-template-columns: repeat(2, 1fr); }
    .reviews     { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    /* Menu replié + barre d'action permanente */
    .nav-toggle { display: grid; place-items: center; }
    /* Cibler « header nav » et non « nav » : un sélecteur nu touchait aussi le
       <nav> du pied de page, qui se retrouvait en position absolute sur fond
       blanc avec du texte blanc — un grand bloc vide par-dessus la page. */
    header nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background-color: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        display: none;
    }
    header nav.is-open { display: block; }
    header nav ul {
        flex-direction: column;
        gap: 0;
        padding: .5rem clamp(1.15rem, 5vw, 2.5rem) 1rem;
    }
    header nav li + li { border-top: 1px solid var(--line); }
    nav a { display: block; padding: .85rem 0; font-size: 1rem; color: var(--brand-700); }

    .mobile-bar { display: flex; }
    body { padding-bottom: 76px; }

    .topbar-hide-sm { display: none; }
    .topbar-hide-sm + .topbar-sep { display: none; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }

    /* Bandeau compact : évite un séparateur orphelin en fin de ligne */
    .topbar { font-size: .82rem; }
    .topbar-inner { gap: .15rem .6rem; }
    .topbar-sep { display: none; }

    .hero-figure { width: min(100%, 250px); }

    .brand-text small { display: none; }
    .header-actions .btn-primary { display: none; }  /* évite l'entassement : la barre du bas prend le relais */

    .reassurance { flex-direction: column; align-items: center; gap: .45rem; }
    .proof-grid { grid-template-columns: 1fr; gap: .85rem; }

    .grid-cards,
    .grid-patients,
    .grid-tarifs { grid-template-columns: 1fr; }

    /* La bannière d'urgence repasse en colonne quand la largeur ne suffit plus */
    .card-urgent { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .card-urgent .btn { width: 100%; }

    .timeline::before { left: 17px; }
    .timeline-step { padding-left: 54px; }
    .step-number { width: 36px; height: 36px; font-size: .95rem; border-width: 3px; }

    .cta-row .btn { width: 100%; }
    .contact-actions .btn { width: 100%; }
    .footer-bottom { flex-direction: column; }
}

/* ---------------- Préférences utilisateur ---------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
    .btn:hover, .card:hover, .patient-card:hover, .tarif-card:hover { transform: none; }
}

@media print {
    .topbar, header, .mobile-bar, .final-cta, .map-container { display: none !important; }
    body { padding: 0; font-size: 12pt; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
