:root {
  /* SenConsult. Un bandeau marine porte la marque et le choix d'espace (patient, praticien, clinique) ;
     dessous, une colonne de travail de 1180 px dont l'objet principal est une grille horaire.
     Orange = action, turquoise = temps disponible, couleurs de série = praticiens.
     Thème sombre automatique selon le réglage de l'appareil. */
  color-scheme: light;
  --navy: #1B2364;
  --on-navy: #FFFFFF;
  --on-navy-2: #C8CDF4;
  --orange: #FC8F06;
  --on-orange: #1A2060;
  --teal: #08A999;
  --teal-rgb: 8 169 153;
  --teal-ink: #05695F;
  --on-teal: #04302C;
  --bg: #F1F2F8;
  --surface: #FFFFFF;
  --surface-2: #F5F6FB;
  --ink: #171C4F;
  --ink-2: #474C7C;
  --muted: #666B97;
  --line: #E0E2EE;
  --line-2: #C5C8DD;
  --field: #8388B0;
  --strong: #1B2364;
  --on-strong: #FFFFFF;
  --focus: #2F4BFF;
  --good: #0CA30C;
  --wa: #037A07;   /* le vert profond du bouton de la bannière : texte blanc lisible (5,5:1) */
  --wa-2: #026305;
  --critical: #D03B3B;
  --critical-ink: #B12A2A;
  --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; --c5: #e87ba4; --c6: #008300; --c7: #6250d6; --c8: #e34948;
  --c0: #6F7495; /* praticien sans teinte attribuée */
  --shadow: 0 20px 60px rgb(12 16 64 / .28);
  --display: "Red Hat Display", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --orange: #FF9A1F;
    --on-orange: #161B55;
    --teal: #1CC4BC;
    --teal-rgb: 28 196 188;
    --teal-ink: #7CE6DD;
    --bg: #0B0E38;
    --surface: #141955;
    --surface-2: #1B2168;
    --ink: #F1F2FF;
    --ink-2: #C7CBF3;
    --muted: #A3A8DE;
    --line: #282E7C;
    --line-2: #3D449C;
    --field: #727ACF;
    --strong: #EEF0FF;
    --on-strong: #171C4F;
    --focus: #A9B6FF;
    --critical: #E66767;
    --critical-ink: #FFA3A3;
    --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c0: #8D93C9;
    --shadow: 0 20px 60px rgb(0 0 0 / .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --orange: #FF9A1F;
  --on-orange: #161B55;
  --teal: #1CC4BC;
  --teal-rgb: 28 196 188;
  --teal-ink: #7CE6DD;
  --bg: #0B0E38;
  --surface: #141955;
  --surface-2: #1B2168;
  --ink: #F1F2FF;
  --ink-2: #C7CBF3;
  --muted: #A3A8DE;
  --line: #282E7C;
  --line-2: #3D449C;
  --field: #727ACF;
  --strong: #EEF0FF;
  --on-strong: #171C4F;
  --focus: #A9B6FF;
  --critical: #E66767;
  --critical-ink: #FFA3A3;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #008300; --c7: #9085e9; --c8: #e66767; --c0: #8D93C9;
  --shadow: 0 20px 60px rgb(0 0 0 / .55);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.ic { flex: none; }

/* ---------- bandeau ---------- */
.mast { background: var(--navy); color: var(--on-navy); }
.mast :focus-visible, .hero :focus-visible { outline-color: #FFFFFF; }
.mast__in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { display: block; border-radius: 6px; }
.brand img { height: 40px; width: auto; }
.roles { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .1); }
.roles a { border: 0; background: transparent; color: var(--on-navy-2); padding: 7px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.roles a:hover { color: #FFFFFF; }
.roles a[aria-current="true"] { background: #FFFFFF; color: #1B2364; }
.mast__right { display: flex; align-items: center; gap: 16px; }
.acct { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgb(255 255 255 / .22); border-radius: 999px; padding: 4px 14px 4px 4px; background: rgb(255 255 255 / .08); color: #FFFFFF; text-align: left; }
.acct:hover { background: rgb(255 255 255 / .16); }
.acct__av { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--on-orange); font-family: var(--display); font-weight: 800; font-size: 13px; }
.acct__txt { display: grid; line-height: 1.15; }
.acct__txt b { max-width: 15ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.acct__txt span { font-size: 12px; color: var(--on-navy-2); }
.notice { border-top: 1px solid rgb(255 255 255 / .12); background: #131A4E; }
.notice__in { max-width: 1180px; margin: 0 auto; padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; font-size: 15px; color: var(--on-navy-2); }
.notice__in b { color: #FFFFFF; }
.notice .btn { border-color: rgb(255 255 255 / .45); background: transparent; color: #FFFFFF; }
.notice .btn:hover { border-color: #FFFFFF; }
.subbar { border-top: 1px solid rgb(255 255 255 / .12); }
.subbar__in { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 0 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; margin-left: -12px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 12px 10px; border-bottom: 3px solid transparent; color: var(--on-navy-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: #FFFFFF; }
.tabs a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--orange); }
.badge { background: var(--orange); color: var(--on-orange); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 7px; }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--on-navy-2); }
.who select { max-width: 100%; border: 0; border-radius: 6px; padding: 7px 10px; background: #FFFFFF; color: #171C4F; font-weight: 600; }
.who__place { padding: 12px 0; }

/* ---------- accueil patient ---------- */
.hero { position: relative; background: var(--navy); color: var(--on-navy); padding: 34px 20px 62px; }
.hero__in { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 28px 56px; align-items: end; }
.tagline { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.hero h1 { margin-top: 12px; max-width: 16ch; font-size: clamp(32px, 4.8vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.hero__sub { margin-top: 16px; max-width: 48ch; font-size: 17px; color: var(--on-navy-2); }
.search { margin-top: 24px; max-width: 580px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); background: #FFFFFF; border-radius: 10px; padding: 4px; }
.search__f { display: grid; padding: 7px 12px 6px; min-width: 0; border-radius: 7px; }
.search__f + .search__f { border-left: 1px solid #E0E2EE; }
.search__f:focus-within { background: #EEF0FA; }
.search label { font-size: 12px; font-weight: 600; color: #5F6492; }
.search select, .search input { width: 100%; min-width: 0; border: 0; padding: 2px 0; background: transparent; color: #171C4F; font-weight: 600; }
.search select:focus-visible, .search input:focus-visible { outline: none; }
.search input::placeholder { color: #8A8EB2; font-weight: 400; }
.pulse { position: absolute; left: 0; right: 0; bottom: -22px; height: 44px; display: flex; align-items: center; pointer-events: none; }
.pulse i { flex: 1; height: 2px; background: linear-gradient(90deg, var(--teal), rgb(var(--teal-rgb) / 0)); }
.pulse i:first-child { flex: 2.4; background: linear-gradient(90deg, rgb(var(--teal-rgb) / 0), var(--teal) 40%); }
.pulse svg { flex: none; margin: 0 -1px; }
.pulse path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 280; }
@media (prefers-reduced-motion: no-preference) {
  .hero.is-first .pulse path { animation: draw 1.5s .25s cubic-bezier(.3, .7, .2, 1) backwards; }
}
@keyframes draw { from { stroke-dashoffset: 280; } to { stroke-dashoffset: 0; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 20px 56px; }
.hero + .wrap { padding-top: 42px; }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.listbar h2 { font-size: 22px; font-weight: 700; }
.daynav { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pracs { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.prac { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px 32px; padding: 22px; }
.prac + .prac { border-top: 1px solid var(--line); }
.prac__id { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); background: var(--surface-2); background: color-mix(in oklab, var(--hue) 20%, var(--surface)); box-shadow: inset 0 0 0 2px var(--hue); }
.avatar--s { width: 40px; height: 40px; font-size: 14px; }
.prac h3 { font-size: 18px; font-weight: 700; }
.prac__spec { color: var(--ink-2); font-size: 15px; }
.facts { margin-top: 14px; display: grid; gap: 5px; font-size: 14px; }
.facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink-2); }
.slotgrid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.slotcol { display: grid; gap: 6px; align-content: start; }
.slotcol__head { margin-bottom: 2px; padding-bottom: 7px; border-bottom: 1px solid var(--line); text-align: center; font-size: 13px; line-height: 1.25; color: var(--muted); }
.slotcol__head b { display: block; font-size: 14px; color: var(--ink); }
.slot { min-height: 38px; border: 0; border-radius: 6px; padding: 6px 4px; background: rgb(var(--teal-rgb) / .14); color: var(--teal-ink); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
a.slot:hover { background: var(--teal); color: var(--on-teal); }
.slot--none { display: grid; place-items: center; background: transparent; color: var(--line-2); font-weight: 400; }
.more { justify-self: start; margin-top: 10px; border: 0; padding: 6px 0; background: none; color: var(--teal-ink); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.noslot { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; min-height: 100%; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; }

/* ---------- boutons, champs, pastilles ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid transparent; border-radius: 6px; padding: 8px 16px; background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { filter: brightness(1.07); }
.btn--line { border-color: var(--line-2); background: var(--surface); }
.btn--line:hover { border-color: var(--ink-2); }
.btn--danger { border-color: currentColor; background: var(--surface); color: var(--critical-ink); }
.btn--quiet { padding-inline: 6px; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn--s { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn:disabled { opacity: .45; }
.iconbtn { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--ink); }
.iconbtn:hover:not(:disabled) { border-color: var(--ink-2); }
.iconbtn:disabled { opacity: .4; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 13px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-current="true"] { border-color: var(--strong); background: var(--strong); color: var(--on-strong); }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input, .select { width: 100%; min-height: 44px; border: 1px solid var(--field); border-radius: 6px; padding: 9px 12px; background: var(--surface); color: var(--ink); }
.select--s { min-height: 36px; padding: 5px 10px; font-size: 14px; }
.input[aria-invalid="true"] { border-color: var(--critical); }
.field__err { min-height: 0; font-size: 13px; color: var(--critical-ink); }
.field__err:empty { display: none; }
.note { font-size: 14px; color: var(--muted); }
.alert { border-left: 4px solid var(--critical); border-radius: 0 6px 6px 0; padding: 10px 12px; background: var(--surface-2); color: var(--ink); font-size: 15px; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--teal); }
.check__sub { grid-column: 2; font-size: 13px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px 2px 7px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 15px; height: 15px; }
.pill--good .ic { color: var(--good); }
.pill--bad .ic { color: var(--critical); }
.pill--wait .ic { color: var(--ink-2); }
.pill--plain { padding-left: 10px; }
.formgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.formgrid--name { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); }
.langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.langs legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.alert--info { margin-bottom: 14px; border-left-color: var(--teal); }

/* ---------- pages de travail ---------- */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.pagehead h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; }
.pagehead > div:first-child { flex: 1 1 380px; min-width: 0; }
.pagehead p { margin-top: 4px; max-width: 64ch; color: var(--ink-2); }
.weeknav { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weeknav__label { padding: 0 4px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; font-size: 20px; font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 18px; font-weight: 700; }
.scrollx { overflow-x: auto; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.strip > div { display: grid; gap: 2px; padding: 12px 16px; align-content: start; }
.strip > div + div { border-left: 1px solid var(--line); }
.stat__label { font-size: 14px; color: var(--ink-2); }
.stat__value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.stat__sub { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.kpi .stat__value { font-size: 28px; letter-spacing: -0.01em; }
.meter { height: 8px; margin: 6px 0 2px; border-radius: 999px; background: rgb(var(--teal-rgb) / .18); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--teal); }
.meter--row { width: 120px; margin: 0; }

/* ---------- planning hebdomadaire du praticien (1 px = 1 minute) ---------- */
.weekwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.week { min-width: 780px; }
.week__head, .week__body { display: grid; grid-template-columns: 58px repeat(6, minmax(0, 1fr)); }
.week__head { border-bottom: 1px solid var(--line); }
.week__corner { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.week__day { padding: 9px 6px 8px; border-left: 1px solid var(--line); text-align: center; font-size: 13px; line-height: 1.2; color: var(--muted); }
.week__day b { display: block; width: 34px; margin: 2px auto 0; border-radius: 999px; font-family: var(--display); font-size: 19px; line-height: 34px; color: var(--ink); }
.week__day.is-today b { background: var(--orange); color: var(--on-orange); }
.week__axis { position: relative; }
.week__axis span { position: absolute; right: 8px; margin-top: 4px; font-size: 12px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.week__col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 60px; background-position: 0 -1px; }
.week__col.is-past > * { opacity: .55; }
.week__closed { position: absolute; left: 0; right: 0; display: grid; place-items: start center; padding-top: 10px; background: var(--bg); color: var(--muted); font-size: 13px; }
.rblock { position: absolute; left: 3px; right: 3px; border: 0; border-radius: 6px; padding: 0; text-align: left; background-color: rgb(var(--teal-rgb) / .12); box-shadow: inset 4px 0 0 var(--teal); color: var(--teal-ink); overflow: hidden; }
.rblock--open { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--dur) * 1px - 1px), rgb(var(--teal-rgb) / .3) calc(var(--dur) * 1px - 1px), rgb(var(--teal-rgb) / .3) calc(var(--dur) * 1px)); }
.rblock:hover { background-color: rgb(var(--teal-rgb) / .2); }
.rblock__spine { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 16px; overflow: hidden; writing-mode: vertical-rl; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 16px; }
.rblock__note { position: absolute; left: 30px; top: 8px; right: 6px; font-size: 12px; color: var(--ink-2); }
.appt { position: absolute; left: 28px; right: 6px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 4px; padding: 0 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink); font-size: 12px; line-height: 1; text-align: left; white-space: nowrap; overflow: hidden; z-index: 1; }
.appt b { font-variant-numeric: tabular-nums; }
.appt span { overflow: hidden; text-overflow: ellipsis; }
.appt:hover, .appt:focus-visible { box-shadow: 0 0 0 2px var(--ink); z-index: 2; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--orange); z-index: 3; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.key { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 14px; height: 14px; border-radius: 3px; }
.key__rent { background: rgb(var(--teal-rgb) / .2); box-shadow: inset 4px 0 0 var(--teal); }
.key__appt { background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.key__now { height: 2px !important; border-radius: 0 !important; background: var(--orange); }
.key__busy { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.key__sel { background: var(--orange); }
.key__dot { border-radius: 50% !important; background: var(--hue); }

/* ---------- listes ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 14px 18px; }
.row + .row { border-top: 1px solid var(--line); }
.row__date { display: grid; justify-items: center; font-size: 13px; line-height: 1.15; color: var(--muted); }
.row__date b { font-family: var(--display); font-size: 24px; color: var(--ink); }
.row__main { display: grid; gap: 1px; min-width: 0; }
.row__time { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.row__sub { font-size: 14px; color: var(--ink-2); }
.row__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.row--old { opacity: .72; }
.empty { display: grid; gap: 12px; justify-items: center; padding: 44px 20px; text-align: center; color: var(--ink-2); }
.empty b { font-family: var(--display); font-size: 20px; color: var(--ink); }
.empty--s { padding: 22px 20px; }

/* ---------- planning des salles (une ligne par salle, une colonne par heure) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 12px; }
.daypick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daypick__days { display: grid; grid-template-columns: repeat(6, 54px); gap: 4px; }
.dayb { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 5px 2px 4px; background: var(--surface); font-size: 13px; line-height: 1.2; color: var(--muted); }
.dayb b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.dayb:hover { border-color: var(--ink-2); }
.dayb.is-today { border-color: var(--orange); }
.dayb[aria-current="date"] { border-color: var(--strong); background: var(--strong); color: var(--on-strong); }
.dayb[aria-current="date"] b { color: var(--on-strong); }
.daypick__month { padding: 0 4px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.tlwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.tl { min-width: 900px; }
.tl__head, .tl__row { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.tl__head { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.tl__corner { position: sticky; left: 0; z-index: 2; padding: 9px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.tl__hours { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tl__hours span { padding: 9px 0 9px 6px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tl__hours span:first-child { border-left: 0; }
.tl__row + .tl__row { border-top: 1px solid var(--line); }
.tl__room { position: sticky; left: 0; z-index: 2; display: grid; align-content: center; gap: 1px; padding: 9px 14px; border-right: 1px solid var(--line); background: var(--surface); }
.tl__room b { font-size: 15px; line-height: 1.25; }
.tl__room span { font-size: 13px; color: var(--muted); }
.tl__track { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 62px; }
.tl__now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--orange); z-index: 1; pointer-events: none; }
.tl__cell { position: relative; border: 0; border-left: 1px solid var(--line); padding: 0; background: transparent; }
.tl__cell:first-child { border-left: 0; }
button.tl__cell:not(:disabled):hover { background: rgb(var(--teal-rgb) / .16); }
button.tl__cell:not(:disabled):hover::after, button.tl__cell:focus-visible::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--teal-ink); }
button.tl__cell:focus-visible { outline-offset: -3px; }
.tl__cell.is-sel, button.tl__cell.is-sel:hover { background: var(--orange); }
button.tl__cell.is-sel::after { content: none !important; }
.tl__cell--past { background: var(--surface-2); }
.tl__block { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 6px 3px; border: 0; border-radius: 6px; padding: 5px 10px; overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: left; white-space: nowrap; }
.tl__block span { overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.tl__block--busy { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); font-weight: 600; }
.tl__block--mine { background: rgb(var(--teal-rgb) / .18); box-shadow: inset 4px 0 0 var(--teal); }
.tl__block--mine:hover { background: rgb(var(--teal-rgb) / .28); }
.tl__block--prac { background: var(--surface-2); background: color-mix(in oklab, var(--hue) 17%, var(--surface)); box-shadow: inset 4px 0 0 var(--hue); }
.tl__block--prac:hover { background: color-mix(in oklab, var(--hue) 28%, var(--surface)); }
.tl__block--closed { align-items: center; margin: 0; border-left: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--muted); font-weight: 400; }
.tl__block.is-past { opacity: .55; }
.hint { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.rentbar__price { display: grid; justify-items: end; font-size: 13px; color: var(--muted); }
.rentbar__price b { font-size: 21px; line-height: 1.2; color: var(--ink); }

/* ---------- tableaux ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.table tbody th { font-weight: 700; }
.table .r { text-align: right; font-variant-numeric: tabular-nums; }
.table .c { text-align: center; font-variant-numeric: tabular-nums; }
.table .sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.table tfoot td, .table tfoot th { font-weight: 700; background: var(--surface-2); }
.heat { min-width: 62px; padding: 0 !important; }
.heat span { display: block; margin: 3px; border-radius: 4px; padding: 7px 4px; color: var(--ink); }
.whocell { display: flex; align-items: center; gap: 10px; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--hue); }
.cellmeter { display: flex; align-items: center; gap: 10px; }

/* ---------- fiche latérale ---------- */
.recap { border: 1px solid var(--line); border-radius: 10px; }
.recap__who { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.recap__who div { display: grid; }
.recap__who span:last-child { font-size: 14px; color: var(--ink-2); }
.recap__when { display: grid; gap: 4px; padding: 14px 16px; border-top: 1px solid var(--line); }
.recap__time { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.recap__date { color: var(--ink-2); }
.kv { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 7px 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.kv dt { color: var(--muted); }
.kv--bare { padding: 0; border-top: 0; }
.kv--box { border: 1px solid var(--line); border-radius: 10px; }
.done { display: flex; align-items: center; gap: 12px; }
.done .ic { width: 40px; height: 40px; color: var(--good); }
.done p { font-weight: 700; }
.done span { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.confirm { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); }
.confirm p { font-size: 15px; }
.confirm div { display: flex; gap: 8px; flex-wrap: wrap; }
.equip { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- messages ---------- */
.foot { max-width: 1180px; margin: 0 auto; padding: 0 20px 44px; font-size: 13px; color: var(--muted); }

/* ---------- petits écrans ---------- */
@media (max-width: 980px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .prac { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .mast__in { padding: 12px 16px; }
  .mast__right { gap: 10px; }
  .notice__in { padding-inline: 16px; }
  .formgrid--name { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formgrid--name > :first-child { grid-column: 1 / -1; }
  .langs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand img { height: 34px; }
  .roles { order: 3; width: 100%; }
  .roles a { flex: 1; padding-inline: 8px; }
  .subbar__in, .wrap, .foot { padding-inline: 16px; }
  .tabs { margin-left: -8px; }
  .tabs a { padding: 12px 8px 9px; font-size: 14px; }
  .who { width: 100%; padding-top: 2px; }
  .who label { white-space: nowrap; }
  .who select { flex: 1; min-width: 0; }
  .weeknav { width: 100%; }
  .weeknav__label { flex: 1; padding: 0; text-align: center; font-size: 15px; }
  .hero { padding: 26px 16px 54px; }
  .search { grid-template-columns: minmax(0, 1fr); }
  .search__f + .search__f { border-left: 0; border-top: 1px solid #E0E2EE; }
  .prac { padding: 18px 16px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .pagehead h1 { font-size: 26px; }
  .row { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 16px; }
  .row__side { grid-column: 1 / -1; justify-content: flex-start; }
  .daypick__days { grid-template-columns: repeat(6, minmax(0, 1fr)); flex: 1 1 100%; order: 3; }
}

/* ---------- accueil : recherche en tête, puis ce que la clinique propose ---------- */
.lead { background: var(--navy); color: var(--on-navy); padding: 34px 20px 0; }
.lead :focus-visible, .sitefoot :focus-visible { outline-color: #FFFFFF; }
.lead__in { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 26px 64px; align-items: center; }
.lead h1 { margin-top: 14px; font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.lead__sub { margin-top: 18px; max-width: 42ch; font-size: 18px; color: var(--on-navy-2); }
.lead__art { position: relative; justify-self: end; width: min(100%, 520px); margin: 18px 22px 0 0; }
.lead__photo { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; background: #2A3384; }
.lead__disc { position: absolute; right: -22px; top: -20px; width: 132px; height: 132px; border-radius: 50%; background: var(--orange); }
.lead__ring { position: absolute; left: -38px; top: 54px; width: 96px; height: 96px; border: 14px solid var(--teal); border-radius: 50%; }
.nextcard { position: absolute; z-index: 2; left: -30px; bottom: 26px; width: min(350px, 94%); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; border: 0; border-radius: 14px; padding: 11px 12px 12px 16px; background: #FFFFFF; color: #171C4F; text-align: left; box-shadow: 0 16px 40px rgb(8 11 50 / .38); }
.nextcard:focus-visible { outline-offset: 3px; }
.nextcard:hover .nextcard__go { filter: brightness(1.08); }
.nextcard__label { grid-area: 1 / 1 / 2 / 4; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #5F6492; }
.nextcard__time { grid-area: 2 / 1; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.nextcard__day { grid-area: 3 / 1; font-size: 13px; color: #5F6492; }
.nextcard__who { grid-area: 2 / 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.nextcard__spec { grid-area: 3 / 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #5F6492; }
.nextcard__go { grid-area: 2 / 3 / 4 / 4; border-radius: 8px; padding: 8px 12px; background: var(--orange); color: var(--on-orange); font-weight: 700; font-size: 14px; }
.finder { grid-column: 1 / -1; position: relative; z-index: 3; margin: 6px 0 -42px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; border-radius: 16px; padding: 8px; background: #FFFFFF; box-shadow: 0 18px 44px rgb(12 16 64 / .26); }
.finder__f { display: grid; align-content: center; gap: 1px; min-width: 0; border-radius: 10px; padding: 9px 16px; }
.finder__f + .finder__f { border-left: 1px solid #E0E2EE; }
.finder__f:focus-within { background: #EEF0FA; }
.finder label { font-size: 13px; font-weight: 600; color: #5F6492; }
.finder select, .finder input { width: 100%; min-width: 0; border: 0; padding: 2px 0; background: transparent; color: #171C4F; font-size: 17px; font-weight: 600; }
.finder select:focus-visible, .finder input:focus-visible { outline: none; }
.finder input::placeholder { color: #8A8EB2; font-weight: 400; }
.finder__go { min-height: 62px; border-radius: 10px; padding-inline: 34px; font-size: 17px; }
.finder .finder__go:focus-visible { outline-color: #1B2364; }
.home__first { padding-top: 86px; }

/* WhatsApp : l'autre façon de prendre rendez-vous, compréhensible sans lire (pictogrammes, gros chiffres, gros bouton) */
/* WhatsApp et téléphone : la bannière fournie par la clinique, cliquable en entier, puis le numéro et deux grands boutons. */
.wa { margin-bottom: 44px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.wa__banner { display: block; background: #EAF3F6; }
.wa__banner img { width: 100%; height: auto; aspect-ratio: 2172 / 724; object-fit: cover; object-position: 75.55% 50%; }
.wa__banner:focus-visible { outline: 3px solid #1B2364; outline-offset: -7px; border-radius: 22px 22px 0 0; }
.wa__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding: 18px 26px; }
.wa__tel { display: grid; gap: 1px; }
.wa__num { font-family: var(--display); font-weight: 800; font-size: clamp(27px, 3.3vw, 36px); line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wa__label { color: var(--ink-2); font-size: 16px; }
.wa__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.wa__btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; border-radius: 999px; padding: 6px 30px 6px 8px; font-family: var(--display); font-weight: 800; font-size: 21px; text-decoration: none; white-space: nowrap; }
.wa__btn--wa { padding-left: 6px; background: var(--wa); color: #FFFFFF; }
.wa__btn--wa:hover, .wafab:hover { background: var(--wa-2); }
.wa__btn--tel { background: var(--strong); color: var(--on-strong); }
.wa__btn--tel:hover { filter: brightness(1.18); }
.wa__btn:focus-visible { outline-width: 3px; outline-offset: 3px; }
.walogo { flex: none; width: 52px; height: 52px; }
.teldisc { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--on-strong); color: var(--strong); }
.wafab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; min-height: 64px; border: 3px solid #FFFFFF; border-radius: 999px; padding: 3px 24px 3px 3px; background: var(--wa); color: #FFFFFF; font-family: var(--display); font-weight: 800; font-size: 20px; text-decoration: none; box-shadow: 0 12px 32px rgb(8 11 50 / .38); }
.wafab.is-away { visibility: hidden; }
.wafab:focus-visible { outline-color: var(--focus); outline-offset: 3px; }
.has-wa .foot, .has-wa .sitefoot__in { padding-bottom: 100px; }
.home__sec { padding-top: 26px; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sechead h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.025em; }
.sechead p { margin-top: 4px; max-width: 60ch; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; border: 0; border-top: 1px solid var(--line); padding: 16px 20px; background: transparent; color: var(--ink); text-align: left; }
.spec:nth-child(-n+2) { border-top: 0; }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec b { font-family: var(--display); font-size: 19px; letter-spacing: -0.01em; }
.spec span { grid-column: 1; font-size: 14px; color: var(--ink-2); }
.spec .ic { grid-area: 1 / 2 / 3 / 3; color: var(--muted); }
.spec:hover { background: rgb(var(--teal-rgb) / .09); }
.spec:hover .ic { color: var(--teal-ink); }
.spec:focus-visible { outline-offset: -3px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.steps li { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--teal); padding-top: 16px; }
.steps__n { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--teal-ink); }
.steps h3 { font-size: 20px; font-weight: 700; }
.steps p { color: var(--ink-2); }
.pro { margin-top: 16px; background: var(--navy); color: var(--on-navy); }
.pro :focus-visible { outline-color: #FFFFFF; }
.pro__in { max-width: 1180px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: center; }
.pro .pro__kicker { color: var(--orange); font-weight: 700; }
.pro h2 { margin: 6px 0 12px; max-width: 17ch; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.pro p { max-width: 52ch; color: var(--on-navy-2); }
.pro__list { display: grid; gap: 8px; margin: 18px 0 24px; }
.pro__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.pro__list .ic { margin-top: 3px; color: #3FD6C9; }
.rates { border-radius: 16px; padding: 18px 20px 8px; background: #FFFFFF; color: #171C4F; }
.rates h3 { margin-bottom: 8px; font-size: 17px; font-weight: 700; }
.rates table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rates th, .rates td { border-top: 1px solid #E0E2EE; padding: 9px 0; text-align: left; font-weight: 400; }
.rates td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.practical { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: start; padding-top: 48px; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.fig { display: grid; gap: 2px; border-top: 1px solid var(--line); padding: 16px 18px; }
.fig:nth-child(-n+2) { border-top: 0; }
.fig:nth-child(odd) { border-right: 1px solid var(--line); }
.fig b { font-size: 30px; font-weight: 700; line-height: 1.1; }
.fig span { font-size: 14px; color: var(--ink-2); }
.hours { margin-top: 14px; color: var(--ink-2); }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--teal-ink); }
.faq details[open] summary::after { content: "–"; }
.faq p { max-width: 64ch; padding: 0 0 16px; color: var(--ink-2); }
.sitefoot { margin-top: 12px; background: var(--navy); color: var(--on-navy-2); }
.sitefoot__in { max-width: 1180px; margin: 0 auto; padding: 40px 20px 26px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr); gap: 28px 40px; font-size: 15px; }
.sitefoot__brand { display: grid; gap: 8px; align-content: start; }
.sitefoot img { height: 44px; width: auto; }
.sitefoot h2 { margin-bottom: 8px; font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; color: #FFFFFF; }
.sitefoot a, .linkbtn { display: block; border: 0; padding: 3px 0; background: none; color: var(--on-navy-2); font-size: 15px; text-align: left; text-decoration: none; }
.sitefoot a:hover, .linkbtn:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.sitefoot__note { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .14); padding-top: 16px; font-size: 13px; }

/* ---------- page des praticiens : bandeau de recherche resserré ---------- */
.hero--slim { padding: 26px 20px 46px; }
.hero--slim .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 580px); gap: 18px 40px; align-items: end; }
.hero--slim h1 { margin-top: 0; max-width: none; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.hero--slim .hero__sub { margin-top: 6px; font-size: 16px; }
.hero--slim .search { margin-top: 0; max-width: none; }

@media (max-width: 980px) {
  .lead__in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lead__art { justify-self: start; width: min(100%, 560px); margin: 6px 0 0; }
  .lead__disc { right: -14px; top: -14px; width: 96px; height: 96px; }
  .nextcard { left: 12px; bottom: 14px; }
  .pro__in, .practical { grid-template-columns: minmax(0, 1fr); }
  .sitefoot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--slim .hero__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .lead { padding: 24px 16px 0; }
  .lead__sub { font-size: 17px; }
  .lead__art { width: calc(100% - 10px); }
  .lead__photo { aspect-ratio: 16 / 11; border-radius: 18px; }
  .lead__ring { display: none; }
  .nextcard { grid-template-columns: auto minmax(0, 1fr); }
  .nextcard__label { grid-area: 1 / 1 / 2 / 3; }
  .nextcard__go { display: none; }
  .finder { grid-template-columns: minmax(0, 1fr); margin-bottom: -34px; }
  .finder__f + .finder__f { border-left: 0; border-top: 1px solid #E0E2EE; }
  .finder__go { min-height: 52px; margin-top: 6px; }
  .home__first { padding-top: 70px; }
  .wa { margin-bottom: 36px; border-radius: 18px; }
  .wa__banner img { aspect-ratio: 1354 / 724; }
  .wa__banner:focus-visible { border-radius: 18px 18px 0 0; }
  .wa__bar { justify-content: center; padding: 16px; }
  .wa__tel { width: 100%; justify-items: center; text-align: center; }
  .wa__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; width: 100%; }
  .wa__btn { padding-right: 24px; }
  .wafab { right: 12px; bottom: 12px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .spec:nth-child(odd) { border-right: 0; }
  .spec:nth-child(2) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .pro__in { padding: 36px 16px; }
  .sitefoot__in { padding-inline: 16px; }
  .hero--slim { padding: 22px 16px 44px; }
}

/* ---------- pages rendues par le serveur : liens, formulaires, messages ---------- */
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; border-radius: 6px; padding: 10px 14px; background: #FFFFFF; color: #1B2364; font-weight: 700; }
.skip:focus { top: 12px; }
a.btn, a.iconbtn, a.chip, a.dayb, a.slot, a.rblock, a.appt, a.tl__block, a.spec, a.nextcard, a.acct, .roles a { text-decoration: none; }
.roles a { display: inline-block; }
a.slot { display: grid; place-items: center; }
a.chip { display: inline-flex; align-items: center; }
.iconbtn.is-off { opacity: .4; }
.mast__link { border: 0; padding: 6px 2px; background: none; color: var(--on-navy-2); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.mast__link:hover { color: #FFFFFF; }
.mast__out { display: inline-flex; }
.who__go { border-color: rgb(255 255 255 / .45); background: transparent; color: #FFFFFF; }
.js .who__go { display: none; }
.prac h3 a { color: inherit; text-decoration: none; }
.prac h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.search--go { max-width: 700px; grid-template-columns: minmax(0, 236px) minmax(0, 1fr) auto; }
.search__go { min-height: 46px; border-radius: 7px; padding-inline: 18px; }
.daynav--narrow { display: none; }

.flash { max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; display: grid; gap: 8px; }
.flash__msg { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line-2); border-left-width: 5px; border-radius: 10px; padding: 11px 14px; background: var(--surface); font-weight: 600; }
.flash__msg .ic { margin-top: 1px; }
.flash__msg--ok { border-left-color: var(--good); }
.flash__msg--ok .ic { color: var(--good); }
.flash__msg--erreur { border-left-color: var(--critical); }
.flash__msg--erreur .ic { color: var(--critical); }
.flash__msg--info { border-left-color: var(--teal); }
.flash__msg--info .ic { color: var(--teal-ink); }
.is-home .flash { max-width: none; margin: 0; padding: 12px max(20px, calc((100% - 1140px) / 2)); background: var(--navy); }

.wrap--narrow { max-width: 680px; }
.card { display: grid; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.card + .card, .card + .formactions { margin-top: 16px; }
.card > h2 { font-size: 20px; font-weight: 700; }
.card > p { color: var(--ink-2); }
.formactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field--wide { grid-column: 2 / -1; }
.actions form, .confirm form { display: inline-flex; }
.inlinesearch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.inlinesearch .input { flex: 1 1 240px; max-width: 360px; }
.errcode { font-weight: 700; color: var(--muted); }
.secret { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .06em; user-select: all; }
.alert--ok { border-left-color: var(--good); }

.pagehead .prac__id h1 { font-size: 28px; }
.facts--row { margin: 0; padding: 16px 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; }
.facts--row div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.daylist { padding: 2px 18px; }
.daylist__day { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 18px; align-items: start; padding: 14px 0; }
.daylist__day + .daylist__day { border-top: 1px solid var(--line); }
.daylist__day h3 { padding-top: 8px; font-family: var(--body); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.daylist__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.daylist .note { padding-top: 8px; }

/* Location d'une salle : le formulaire reprend la sélection faite dans le planning. */
.rentform { display: grid; gap: 14px; margin-top: 18px; padding: 20px 22px; background: var(--surface); border: 2px solid var(--orange); border-radius: 10px; }
.rentform h2 { font-size: 20px; font-weight: 800; }
.rentform .hint { margin: 0; }
.rentform__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 12px; }
.rentform__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.rentform__foot .rentbar__price { justify-items: start; min-height: 44px; }
.wa--setup { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; border-style: dashed; border-color: var(--line-2); border-radius: 14px; padding: 16px 20px; }
.wa--setup p { max-width: 64ch; color: var(--ink-2); }
.wa--setup b { color: var(--ink); }

@media (max-width: 680px) {
  .mast__in { gap: 10px 12px; }
  .mast__right { gap: 10px; margin-left: auto; }
  .mast__link { font-size: 14px; }
  .tabs { flex-wrap: wrap; overflow-x: visible; }
  .search--go { grid-template-columns: minmax(0, 1fr); }
  .search--go .search__f + .search__f { border-left: 0; border-top: 1px solid #E0E2EE; }
  .search__go { margin-top: 4px; }
  .daynav--wide { display: none; }
  .daynav--narrow { display: flex; }
  .slotgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slotcol:nth-child(n + 4) { display: none; }
  .flash { padding-inline: 16px; }
  .card { padding: 18px 16px; }
  .facts--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daylist__day { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .daylist__day h3 { padding-top: 0; }
  .rentform { padding: 18px 16px; }
  .rentform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rentform__grid .field:first-child, .rentform__grid .field:last-child { grid-column: 1 / -1; }
  .rentform__foot .btn { width: 100%; }
  .formactions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .mast__right .btn--primary { display: none; } /* la création de compte reste proposée sur la page de connexion */
}
