/* Psygest — réservation en ligne (site public)
   Brume calme, encre vert profond, accent du praticien (--accent, injecté par le serveur).
   Titres : Newsreader · Texte : Lexend (dessinée pour faciliter la lecture). */

:root {
    --accent: #6a9f7e;
    --paper: #F2F4F1;
    --surface: #FFFFFF;
    --ink: #1D2925;
    --ink-2: #4F5D58;
    --ink-3: #6E7B76;
    --line: #D8DED9;
    --line-strong: #B9C3BD;
    --danger: #A3352B;
    --danger-soft: #F8E9E7;
    --ok: #2F6B48;
    /* Accent assombri : texte blanc lisible (AA) quelle que soit la couleur choisie */
    --accent-strong: color-mix(in oklab, var(--accent) 72%, #0d1a15);
    --accent-soft: color-mix(in oklab, var(--accent) 12%, white);
    --accent-line: color-mix(in oklab, var(--accent) 45%, white);
    --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
    --sans: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
    font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { outline: none; }
main.loading { padding: 30vh var(--gutter); }

/* ─── Boutons et champs ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 999px;
    border: 1.5px solid var(--accent-strong); background: var(--accent-strong); color: #fff;
    font: 600 1rem var(--sans); cursor: pointer; text-decoration: none;
    transition: background-color .15s, transform .1s;
}
.btn:hover { background: color-mix(in oklab, var(--accent-strong) 85%, black); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--accent-strong); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.quiet:hover { border-color: var(--ink-2); background: var(--surface); }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-strong); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
label.field > span em { font-weight: 400; font-style: normal; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea {
    width: 100%; min-height: 48px; padding: 10px 14px;
    border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
    font: 1rem var(--sans); color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 0.95rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent-strong); flex: none; }
.hp { position: absolute; left: -5000px; }
.code-input { font: 600 1.8rem/1 var(--sans); letter-spacing: 0.4em; text-align: center; max-width: 260px; }

.alert { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; font-size: 0.95rem; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-left: 4px solid var(--danger); }
.alert.info { background: var(--accent-soft); color: var(--ink); border-left: 4px solid var(--accent-strong); }
.alert.ok { background: #E7F2EB; color: var(--ok); border-left: 4px solid var(--ok); }

/* ─── Page praticien : deux colonnes, la réservation reste en vue ───────── */
.top {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px var(--gutter); max-width: 1180px; margin: 0 auto;
}
.brand { font: 500 1.05rem var(--serif); color: var(--ink-2); text-decoration: none; }
.top a.account { font-weight: 600; text-decoration: none; }
.page {
    max-width: 1180px; margin: 0 auto; padding: 8px var(--gutter) 64px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 4vw, 56px); align-items: start;
}
@media (max-width: 900px) { .page { grid-template-columns: 1fr; } }

.who { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin: 12px 0 28px; }
.portrait {
    width: clamp(88px, 14vw, 132px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
    background: var(--accent-soft); display: grid; place-items: center;
    font: 500 2.4rem var(--serif); color: var(--accent-strong);
    box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line);
}
.who .title { color: var(--ink-2); font-size: 1.05rem; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; color: var(--ink-2); }

.about { max-width: 64ch; }
.about .bio { font: 400 1.12rem/1.65 var(--serif); white-space: pre-line; }
.section { margin-top: 36px; }
.section > h2 { margin-bottom: 14px; }
.places { display: grid; gap: 12px; }
.place { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.place h3 { font-size: 1.1rem; margin-bottom: 4px; }
.place .hours { margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.place .hours li { display: flex; gap: 12px; }
.place .hours b { min-width: 80px; font-weight: 600; color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--serif); color: var(--accent-strong); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.policy { font-size: 0.92rem; color: var(--ink-2); border-left: 3px solid var(--line-strong); padding-left: 14px; max-width: 64ch; }

/* ─── Panneau de réservation ─────────────────────────────────────────────── */
.booker {
    position: sticky; top: 16px;
    background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(29, 41, 37, .45);
    overflow: hidden;
}
/* Sur grand écran, le panneau reste visible ; s'il est plus haut que l'écran, il défile en lui-même */
@media (min-width: 901px) { .booker { max-height: calc(100vh - 84px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 900px) { .booker { position: static; } }
.booker, #booker { scroll-margin-top: 64px; }
.booker-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--accent-soft), var(--surface)); }
.booker-head h2 { font-size: 1.5rem; }
.booker-body { padding: 20px 24px 26px; }
.embed .booker { position: static; border-radius: 0; border: 0; box-shadow: none; }

/* La phrase de réservation : se complète à chaque choix, chaque morceau ramène à son étape */
.sentence { font: 400 1.22rem/1.5 var(--serif); margin: 10px 0 0; color: var(--ink-2); }
.sentence:empty { display: none; }
.sentence button {
    font: inherit; color: var(--ink); background: none; border: 0; padding: 0;
    border-bottom: 2px solid var(--accent-line); cursor: pointer;
}
.sentence button:hover { border-bottom-color: var(--accent-strong); }
.step-title { font: 600 1rem var(--sans); margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.step-title .back { font-weight: 400; font-size: 0.92rem; }

.choices { display: grid; gap: 10px; }
.choice {
    width: 100%; text-align: left; cursor: pointer;
    display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
    padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line);
    background: var(--surface); font: inherit; color: inherit;
    border-left: 5px solid var(--c, var(--accent));
}
.choice:hover { border-color: var(--accent-line); border-left-color: var(--c, var(--accent)); background: color-mix(in oklab, var(--accent-soft) 50%, white); }
.choice .name { font-weight: 600; }
.choice .meta { color: var(--ink-2); font-size: 0.92rem; grid-column: 1 / -1; }
.choice .side { text-align: right; color: var(--ink-2); font-size: 0.92rem; white-space: nowrap; }
.choice .next { grid-column: 1 / -1; font-size: 0.88rem; color: var(--accent-strong); }
.choice[aria-disabled=true] { opacity: .6; cursor: not-allowed; }
.tag { display: inline-block; font-size: 0.8rem; padding: 1px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-2); margin-left: 6px; vertical-align: 2px; }

/* Ruban des jours + heures */
.days-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.days-nav .label { flex: 1; text-align: center; font-weight: 600; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; font: 1.2rem var(--serif); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.ribbon { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.day {
    border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface);
    padding: 8px 2px; text-align: center; cursor: pointer; font: inherit; color: var(--ink);
}
.day .dow { font-size: 0.78rem; color: var(--ink-3); display: block; }
.day .num { font: 500 1.35rem/1.2 var(--serif); display: block; }
.day .count { font-size: 0.6rem; color: var(--accent-strong); display: block; min-height: 1em; }
.day[aria-pressed=true] { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.day.empty { color: var(--ink-3); background: transparent; cursor: default; }
.day.empty .num { color: var(--ink-3); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time {
    min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--accent-line); background: var(--surface);
    font: 600 1.05rem var(--sans); color: var(--accent-strong); cursor: pointer;
}
.time:hover { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.time small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-2); }
.time:hover small { color: #fff; }
/* Heures en Newsreader : le même dessin que les dates du ruban */
.time { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.times-group h4 { margin: 14px 0 8px; font: 600 0.9rem var(--sans); color: var(--ink-2); }
.no-slot { padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); text-align: center; color: var(--ink-2); }

.hold-bar { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); background: var(--paper); padding: 8px 12px; border-radius: var(--r-sm); margin-bottom: 16px; }
.hold-bar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 4px; background: var(--paper); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font: 600 0.95rem var(--sans); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(29, 41, 37, .15); }
.persons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.person { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font: 600 0.95rem var(--sans); cursor: pointer; color: var(--ink); }
.person[aria-pressed=true] { border-color: var(--accent-strong); background: var(--accent-soft); }

/* Confirmation : un seul moment animé, quand le rendez-vous est pris */
.done { text-align: center; padding: 8px 0; }
.done .seal {
    width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%;
    background: var(--accent-strong); color: #fff; display: grid; place-items: center; font-size: 2rem;
    animation: seal .5s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes seal { from { transform: scale(.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .done .seal { animation: none; } }
.done .when { font: 500 1.5rem/1.3 var(--serif); margin: 6px 0 4px; }
.done .actions { display: grid; gap: 10px; margin-top: 20px; }
.instructions { text-align: left; background: var(--paper); border-radius: var(--r-md); padding: 14px 16px; margin-top: 18px; font-size: 0.95rem; }

/* ─── Espace patient ─────────────────────────────────────────────────────── */
.narrow { max-width: 720px; margin: 0 auto; padding: 8px var(--gutter) 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 4vw, 28px); margin-bottom: 18px; }
.nav-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 18px 0; border-bottom: 1.5px solid var(--line); }
.nav-tabs button { border: 0; background: none; padding: 10px 14px; font: 600 0.98rem var(--sans); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.nav-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent-strong); }
.appt { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.appt:last-child { border-bottom: 0; }
.appt .date { text-align: center; border-radius: var(--r-md); background: var(--accent-soft); padding: 8px 4px; height: fit-content; }
.appt .date .d { font: 500 1.9rem/1 var(--serif); display: block; }
.appt .date .m { font-size: 0.85rem; color: var(--ink-2); }
.appt.past .date { background: var(--paper); }
.appt h3 { font-size: 1.15rem; }
.appt .line { color: var(--ink-2); font-size: 0.95rem; margin: 2px 0; }
.appt .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.appt .btns .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.status { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-left: 6px; vertical-align: 3px; }
.status.pending { background: #FBF1DC; color: #7A5410; }
.status.cancelled { background: var(--danger-soft); color: var(--danger); }
.status.confirmed { background: #E7F2EB; color: var(--ok); }
.empty-state { text-align: center; padding: 28px 8px; color: var(--ink-2); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }

dialog { border: 0; border-radius: var(--r-lg); padding: 24px; max-width: min(460px, calc(100vw - 32px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: rgba(29, 41, 37, .45); }
dialog h2 { margin-bottom: 10px; }
dialog .btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 0.92rem; }
.chips input { accent-color: var(--accent-strong); }
.chips label:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); }

footer.foot { text-align: center; font-size: 0.85rem; color: var(--ink-3); padding: 24px var(--gutter) 40px; }
footer.foot a { color: var(--ink-2); }

/* ─── Choix de la date : semaine / mois, moment de la journée ─────────────── */
.when-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--paper); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; min-height: 38px; padding: 0 16px; border-radius: 999px; font: 600 0.92rem var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(29, 41, 37, .15); }
.period select { min-height: 42px; width: auto; padding: 6px 34px 6px 14px; border-radius: 999px; font-size: 0.92rem; }
.linkish-plain { background: none; border: 0; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
.linkish-plain:hover { text-decoration-color: var(--accent-strong); }

.months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.months button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 0.85rem var(--sans); color: var(--ink-2); cursor: pointer; }
.months button[aria-pressed=true] { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--ink); }

.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 16px; }
.mhead { text-align: center; font-size: 0.75rem; color: var(--ink-3); padding-bottom: 2px; }
.mcell {
    aspect-ratio: 1 / 1; min-height: 40px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
    background: var(--surface); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    font: inherit; color: var(--ink); padding: 0;
}
.mcell .num { font: 500 1.05rem/1 var(--serif); }
.mcell .dot { font-size: 0.5rem; font-weight: 600; color: var(--accent-strong); }
.mcell:hover:not(.empty) { border-color: var(--accent-strong); }
.mcell[aria-pressed=true] { border-color: var(--accent-strong); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-strong); }
.mcell.empty { background: transparent; border-color: transparent; color: var(--ink-3); cursor: default; }
.mcell.blank { border: 0; background: none; }
.times-day { font: 500 1.15rem var(--serif); margin: 4px 0 2px; }

/* ─── Liens entre la page du praticien et l'espace patient ───────────────── */
.top a.account { display: inline-flex; align-items: center; gap: 8px; }
.account-count { font-weight: 400; font-size: 0.85rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.back-link { text-decoration: none; color: var(--accent-strong); }
.back-link:hover { text-decoration: underline; }
.mine { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 18px; font-size: 0.92rem; }
.mine-actions { display: flex; gap: 8px; }
.mine-actions .btn { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.book-again-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* ─── Page du praticien enrichie ─────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); }
.hero-inner {
    max-width: 1180px; margin: 0 auto; padding: clamp(20px, 4vw, 44px) var(--gutter) clamp(24px, 4vw, 40px);
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 320px); gap: clamp(18px, 3vw, 36px); align-items: center;
}
.hero .portrait { width: clamp(96px, 13vw, 156px); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.hero-title { color: var(--ink-2); font-size: 1.05rem; margin: 6px 0 0; }
.hero-tagline { font: 400 1.25rem/1.45 var(--serif); color: var(--ink); margin: 14px 0 0; max-width: 46ch; }
.hero .facts { margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.next-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 18px 40px -30px rgba(29, 41, 37, .5); }
.next-label { margin: 0 0 4px; font-size: 0.88rem; color: var(--ink-2); }
.next-when { font: 500 1.45rem/1.25 var(--serif); margin: 0 0 6px; }
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: auto minmax(0, 1fr); }
    .hero-next { grid-column: 1 / -1; }
    .hero-next:empty { display: none; }
}
@media (max-width: 600px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero .portrait { width: 96px; }
}

.subnav { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 12px; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-bottom-color: var(--accent-line); }
.page { padding-top: clamp(20px, 3vw, 36px); }
.booker { top: 68px; }
.section { scroll-margin-top: 72px; }
.section:first-child { margin-top: 0; }
#booker { scroll-margin-top: 64px; }
@media (max-width: 900px) { .booker { order: -1; } }

.about .bio { font: 400 1.14rem/1.7 var(--serif); white-space: pre-line; }
h3.sub { font-size: 1.25rem; margin: 26px 0 8px; }
.prose { white-space: pre-line; color: var(--ink); }
.topics { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent-line); font-size: 0.95rem; }
.audiences { margin: 16px 0 0; color: var(--ink-2); }
.audiences span { color: var(--ink); font-weight: 600; }
.audiences b { font-weight: 600; color: var(--ink); }

.offers { display: grid; gap: 12px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--accent)); border-radius: var(--r-md); padding: 16px 18px; }
.offer-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer-head h3 { font-size: 1.2rem; }
.offer-meta { color: var(--ink-2); font-size: 0.95rem; white-space: nowrap; }
.offer p { margin: 8px 0 0; }
.offer-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.offer-foot .muted { flex: 1 1 200px; }
.offer-next { font-size: 0.88rem; color: var(--accent-strong); }
.offer-foot .btn { min-height: 40px; padding: 0 18px; }

.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.place:not(:has(.map)) { grid-template-columns: 1fr; }
@media (max-width: 700px) { .place { grid-template-columns: 1fr; } }
.map { min-height: 180px; border-radius: var(--r-sm); background: repeating-linear-gradient(135deg, var(--paper) 0 12px, color-mix(in oklab, var(--paper) 70%, var(--line)) 12px 24px);
       display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 12px; overflow: hidden; }
.map.loaded { padding: 0; background: none; }
.map iframe { width: 100%; height: 100%; min-height: 220px; border: 0; }
.map-load { border: 1.5px solid var(--accent-strong); background: var(--surface); color: var(--accent-strong); border-radius: 999px; min-height: 40px; padding: 0 16px; font: 600 0.92rem var(--sans); cursor: pointer; }

.path { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--accent-line); }
.path li { position: relative; padding: 6px 0 10px 20px; }
.path li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-strong); }
.practical { margin-top: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); white-space: pre-line; font-size: 0.96rem; }
h2.spaced { margin-top: 32px; margin-bottom: 10px; }
#questions h2 { margin-bottom: 10px; }
.status.office { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.exists { margin-top: -6px; }
.exists-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.exists-actions .btn { min-height: 40px; padding: 0 18px; }

/* ─── Cabinet pluridisciplinaire ─────────────────────────────────────────── */
.portrait.square { border-radius: var(--r-lg); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.member { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; font: 500 1.3rem var(--serif); color: var(--accent-strong); }
.member h3 { font-size: 1.15rem; }
.member-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.member-actions .btn { min-height: 38px; padding: 0 14px; font-size: 0.9rem; white-space: nowrap; }
.group-label { font-weight: 600; color: var(--ink-2); font-size: 0.9rem; margin: 14px 0 8px; }

/* Série, domicile, document */
.series-box, .home-box, .doc-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px 6px; margin-bottom: 16px; background: var(--paper); }
.home-box legend { padding: 0 6px; margin-left: -6px; }
.plan { margin: 12px 0 10px; padding-left: 22px; font-size: 0.95rem; }
.plan li { margin: 2px 0; }
.doc-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border-radius: var(--r-sm); margin-bottom: 8px; font-size: 0.92rem; }
.doc-pick { margin-bottom: 10px; min-height: 42px; }
.doc-pick.busy { opacity: .6; pointer-events: none; }

.req { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
.next-list { list-style: none; margin: 4px 0 0; padding: 0; }
.next-list li + li { border-top: 1px solid var(--line); }
.next-list button { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.next-list button:hover .next-at { text-decoration: underline; }
.next-prof { font-weight: 600; }
.next-at { color: var(--accent-strong); font-size: 0.92rem; white-space: nowrap; }

/* ─── Annuaire /rdv ─────────────────────────────────────────────────────────── */
.dir-hero { background: linear-gradient(var(--accent-soft), var(--paper)); padding: clamp(24px, 5vw, 56px) 0 28px; }
.dir-inner, .dir-results-wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.dir-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.dir-lead { color: var(--ink-2); max-width: 60ch; margin: 10px 0 22px; font-size: 1.05rem; }
.dir-search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 18px 40px -30px rgba(29, 41, 37, .45); }
.dir-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-btn { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: 600 .95rem var(--sans); cursor: pointer; min-height: 42px; }
.chip-btn:hover { border-color: var(--accent-strong); }
.chip-btn[aria-pressed=true] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.dir-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.dir-row .seg { margin: 0; }
.dir-field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); min-width: 150px; }
.dir-field em { font-weight: 400; font-style: normal; color: var(--ink-3); }
.dir-field select, .dir-field input { font: 400 1rem var(--sans); color: var(--ink); min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); }
.dir-q { flex: 1; min-width: 180px; }
.dir-field.hidden { display: none; }
.dir-count { color: var(--ink-2); font-weight: 600; margin: 22px 0 12px; }
.dir-results { display: grid; gap: 12px; padding-bottom: 48px; }
.dir-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(220px, auto); gap: 16px 22px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.dir-who { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.dir-who .avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; font: 500 1.2rem var(--serif); color: var(--accent-strong); }
.dir-name { display: block; font: 500 1.25rem/1.2 var(--serif); }
.dir-who:hover .dir-name { text-decoration: underline; }
.dir-title { display: block; color: var(--ink-2); font-size: .92rem; }
.dir-meta p { margin: 0 0 4px; }
.dir-where { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; margin: 0 6px 4px 0; }
.dir-next { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.dir-next b { color: var(--accent-strong); }
.dir-empty { padding: 32px 20px; }
.dir-empty .btn { margin-top: 12px; }
@media (max-width: 760px) {
    .dir-card { grid-template-columns: 1fr; }
    .dir-next { align-items: stretch; text-align: left; }
    .dir-next .btn { width: 100%; }
    .dir-field { flex: 1 1 140px; }
}

/* ─── Accueil (/), connexion (/connexion), offre praticiens (/praticiens) ─────── */
.home-top { max-width: 1080px; }
.home-nav { display: flex; align-items: center; gap: 18px; }
.home-nav-pro { font-weight: 600; text-decoration: none; color: var(--ink-2); }
.home-nav-pro:hover { color: var(--accent-strong); text-decoration: underline; }
.home-login { min-height: 42px; padding: 0 18px; }
@media (max-width: 560px) { .home-nav-pro { display: none; } }
.home-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.home-hero { background: linear-gradient(var(--accent-soft), var(--paper)); padding: clamp(28px, 7vw, 80px) 0 clamp(28px, 5vw, 56px); }
.home-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); max-width: 20ch; }
.home-hero.pro h1 { max-width: 24ch; }
.home-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 600; color: var(--accent-strong); margin: 0 0 10px; }
.home-lead { color: var(--ink-2); max-width: 60ch; margin: 14px 0 26px; font-size: 1.1rem; }
.home-search { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 18px; box-shadow: 0 18px 40px -30px rgba(29, 41, 37, .45); max-width: 820px; }
.home-search .dir-field { flex: 1 1 200px; }
.home-search .btn { flex: 1 1 200px; }
.home-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.home-types .chip-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.home-n { font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home-band { padding: clamp(32px, 6vw, 64px) 0; }
.home-band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.home-band h2, .home-pro h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 18px; }
.home-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.home-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding-top: 48px; position: relative; }
.home-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--accent-strong); color: #fff; display: grid; place-items: center; font: 600 1rem var(--sans); }
.home-steps b { font-size: 1.05rem; }
.home-steps span { color: var(--ink-2); }
.home-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr); gap: 24px 48px; align-items: center; }
@media (max-width: 760px) { .home-split { grid-template-columns: 1fr; } }
.home-cta { display: grid; gap: 10px; }
.home-cta .btn, .home-hero-cta .btn { text-align: center; padding-block: 10px; }
.home-list { margin: 0 0 12px; padding-left: 1.2em; }
.home-list li { margin-bottom: 6px; }
.home-pro { background: var(--ink); color: #EEF2EF; padding: clamp(32px, 6vw, 56px) 0; }
.home-pro p { color: #C9D3CE; max-width: 60ch; }
.home-pro .btn { background: #fff; border-color: #fff; color: var(--ink); }
.home-pro .btn:hover { background: var(--accent-soft); }
.home-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.home-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.home-feature h3 { font-size: 1.25rem; margin: 8px 0 6px; }
.home-feature p { margin: 0; color: var(--ink-2); }
.home-ico { font-size: 1.6rem; }
.home-login-wrap { padding-top: clamp(16px, 5vw, 48px); max-width: 520px; }
.home-login-title { font-size: 2rem; margin-bottom: 4px; }
.home-login-wrap .muted { margin: 0 0 18px; }
.home-choice { display: grid; gap: 10px; margin: 16px 0; }
.home-choice .btn { flex-direction: column; min-height: 64px; gap: 0; }
.home-choice small { font-weight: 400; font-size: .85rem; opacity: .85; }
.home-radio { border: 0; padding: 0; margin: 0 0 8px; }
.home-radio legend { font-weight: 600; font-size: .95rem; margin-bottom: 2px; padding: 0; }
.home-radio .check { margin: 8px 0; }
label.field.hidden { display: none; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.demo-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.demo-role { text-align: left; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md);
    padding: 18px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .1s; }
.demo-role:hover { border-color: var(--accent-strong); transform: translateY(-1px); }
.demo-role b { font: 500 1.2rem var(--serif); }
.demo-role > span:not(.home-ico):not(.demo-go) { color: var(--ink-2); font-size: .93rem; flex: 1; }
.demo-go { color: var(--accent-strong); font-weight: 600; margin-top: 6px; }
.demo-role[disabled] { opacity: .6; cursor: progress; }
.demo-bar { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #f0d78a; padding: 8px var(--gutter); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; align-items: center; }
.demo-bar a, .demo-bar button { color: #5c4400; font-weight: 600; }
.price-big { font: 600 1.6rem var(--serif); color: var(--accent-strong); }
.dir-near-row { display: flex; gap: 6px; }
.dir-near-row input { width: 110px; font: 400 1rem var(--sans); min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); }
.dir-gps { min-height: 44px; padding: 0 12px; font-size: .88rem; white-space: nowrap; }
.dir-km { display: inline-block; font-weight: 600; color: var(--accent-strong); font-size: .85rem; margin: 0 6px 4px 0; }
.dir-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0 !important; }
.dir-badges span { background: var(--accent-soft); color: var(--accent-strong); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 600; }
.dir-near { min-width: 0; }
.dir-near-row input { flex: 1 1 90px; min-width: 0; }
@media (max-width: 760px) { .dir-near { flex: 1 1 100%; } .dir-near-row input { width: auto; } }
