/* ============================================================
   Réservation d'ostéopathie sur le lieu de travail.
   Page unique : ce que voient les salariés + le panneau de la
   praticienne. Tout l'état vit dans le bloc JSON nommé ETAT.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, figure, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:root {
  /* Relevé sur la carte de visite de Marine : un vert sauge posé en aplat,
     du blanc dessus, des traits fins. Le vert de la carte (--sauge) est trop
     clair pour porter du texte (3,01 avec du blanc) : il reste la couleur
     d'identité, et deux variantes mesurées portent le texte et les filets. */
  --ink:       #232A1C;
  --ink-2:     #4E5647;
  --ink-3:     #646C5D;
  --paper:     #F7F6F0;
  --surface:   #FFFFFF;
  --surface-2: #EFEEE5;
  --line:      #DFDDD0;
  --line-2:    #C7C5B4;

  --sauge:     #8B9A72;   /* la couleur de la carte - ornements, feuillage, aplats sans texte */
  --sauge-b:   #818F66;   /* les filets qui délimitent - mesuré 3,20 sur le papier */
  --sauge-f:   #64734D;   /* les aplats qui portent du texte - mesuré 5,12 avec du blanc */
  --lect-bord: #64734D;   /* le filet du bandeau de lecture seule - mesuré 4,40 sur sa surface */
  --sauge-t:   #4E5B3C;   /* le vert qui s'écrit sur fond clair - mesuré 6,72 */
  --sauge-pale:#EAEEE0;
  --sur-sauge: #FFFFFF;

  /* Une erreur ne peut pas être verte : elle se confondrait avec l'accent.
     Seule entorse au monochrome de la carte, et elle est justifiée. */
  --alerte:      #A6432A;
  --alerte-pale: #F7EAE4;

  --pris:      #646C5D;
  --discret:   #9C9A88;   /* le lien qui n'est pas pour les salariés - mesuré 2,62 */
  --ombre:     0 1px 2px rgba(35,42,28,.05), 0 8px 22px -14px rgba(35,42,28,.24);
  --ombre-h:   0 2px 4px rgba(35,42,28,.07), 0 14px 30px -14px rgba(35,42,28,.3);

  --f-titre: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-texte: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-main:  "Parisienne", "Snell Roundhand", "Brush Script MT", cursive;
  --r: 14px;
  --tr: .16em;          /* l'interlettrage des capitales, relevé sur la carte */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:       #E9EDE0;
    --ink-2:     #B6BEA9;
    --ink-3:     #939C86;
    --paper:     #171B12;
    --surface:   #1F241A;
    --surface-2: #282E22;
    --line:      #343B2C;
    --line-2:    #454D3B;
    --sauge:     #8B9A72;
    --sauge-b:   #8B9A72;
    --sauge-f:   #64734D;
    --lect-bord: #8B9A72;
    --sauge-t:   #B3C295;
    --sauge-pale:#232A19;
    --sur-sauge: #FFFFFF;
    --alerte:      #E8926B;
    --alerte-pale: #2C1F18;
    --pris:      #939C86;
    --discret:   #6E7264;
    --ombre:     0 1px 2px rgba(0,0,0,.4), 0 8px 22px -14px rgba(0,0,0,.7);
    --ombre-h:   0 2px 4px rgba(0,0,0,.5), 0 14px 30px -14px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"] {
  --ink:       #E9EDE0;
  --ink-2:     #B6BEA9;
  --ink-3:     #939C86;
  --paper:     #171B12;
  --surface:   #1F241A;
  --surface-2: #282E22;
  --line:      #343B2C;
  --line-2:    #454D3B;
  --sauge:     #8B9A72;
  --sauge-b:   #8B9A72;
  --sauge-f:   #64734D;
  --lect-bord: #8B9A72;
  --sauge-t:   #B3C295;
  --sauge-pale:#232A19;
  --sur-sauge: #FFFFFF;
  --alerte:      #E8926B;
  --alerte-pale: #2C1F18;
  --pris:      #939C86;
  --discret:   #6E7264;
  --ombre:     0 1px 2px rgba(0,0,0,.4), 0 8px 22px -14px rgba(0,0,0,.7);
  --ombre-h:   0 2px 4px rgba(0,0,0,.5), 0 14px 30px -14px rgba(0,0,0,.8);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 1180px; margin: 0 auto; padding: 0 26px 80px; }

.pile { display: flex; flex-direction: column; }

/* ---------- en-tête ---------- */
.hd { padding: 24px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--sauge-t); display: flex; align-items: center; gap: 11px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
/* La bannière du Jardin. La source fait 650 x 250 : tant que la hauteur
   affichée reste sous 125px, un écran à deux points par pixel a encore
   assez de matière et l'image ne bave pas. On s'arrête donc à 112px.
   « flex: 0 0 auto » l'empêche d'être écrasée par les filets qui
   l'encadrent, max-width la garde dans le viewport sur petit écran. */
/* On fixe la LARGEUR et on laisse la hauteur suivre : en bloquant la hauteur,
   une bannière rétrécie par manque de place gardait sa hauteur et se
   retrouvait cadrée dans le vide. « flex: 0 1 auto » l'autorise à céder du
   terrain au texte plutôt qu'à déborder sur un écran de 320px. */
.eyebrow-ban {
  flex: 0 1 auto; min-width: 0; width: 192px; height: auto; max-width: 100%;
  border-radius: 6px; display: block;
}
@media (min-width: 520px) { .eyebrow-ban { width: 244px; } }
@media (min-width: 860px) { .eyebrow-ban { width: 292px; } }
.hd h1 {
  font-family: var(--f-titre); font-weight: 300; font-size: clamp(27px, 7vw, 38px);
  line-height: 1.18; letter-spacing: -.005em; text-wrap: balance;
}
.hd h1 em { font-style: normal; font-weight: 600; color: var(--sauge-t); }
.hd .sous { color: var(--ink-2); font-size: 15.5px; max-width: 48ch; text-wrap: pretty; line-height: 1.6; }

/* ---------- blocs ---------- */
.bloc { padding: 30px 0; border-top: 1px solid var(--line); }
.bloc:first-of-type { border-top: 0; }
.bloc > h2 {
  font-family: var(--f-titre); font-weight: 600; font-size: 14px; letter-spacing: var(--tr);
  text-transform: uppercase; color: var(--sauge-t); margin-bottom: 14px;
  display: flex; align-items: center; gap: 11px;
}
.bloc > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bloc > .intro { color: var(--ink-2); margin-bottom: 20px; max-width: 60ch; text-wrap: pretty; }

.carte {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--ombre);
}

/* ---------- le reçu : ce que la consultation coûte vraiment ---------- */
.recu { padding: 24px 22px 20px; }
.recu-l {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  align-items: baseline; padding: 9px 0;
}
.recu-l + .recu-l { border-top: 1px dashed var(--line); }
.recu-q { font-weight: 500; }
.recu-d { font-size: 13.5px; color: var(--ink-3); grid-column: 1 / 2; line-height: 1.45; }
.recu-m { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 18px; white-space: nowrap; }
.recu-m.moins { color: var(--sauge-t); }
.recu-tot {
  margin-top: 6px; padding-top: 16px; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
}
/* Deux montants de même poids : ce qu'on paie, ce que la mutuelle reprend.
   Le second est vert - c'est ce qui revient, pas ce qui part. */
.recu-gr {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline;
  padding: 4px 0 2px;
}
.recu-gr + .recu-gr { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.recu-gr .recu-q { font-size: 13px; font-weight: 600; letter-spacing: var(--tr);
  text-transform: uppercase; }
.recu-gr .recu-m {
  font-family: var(--f-titre); font-size: clamp(29px, 7.5vw, 35px); font-weight: 300;
  line-height: 1; letter-spacing: -.01em; color: var(--ink);
}
.recu-gr.moins .recu-m { color: var(--sauge-t); }
.recu-gr .recu-d { grid-column: 1 / -1; margin-top: 7px; }
.recu-autre {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
}
.recu-autre b { color: var(--ink); }
.recu-tot .recu-q { font-family: var(--f-titre); font-size: 13px; font-weight: 600;
  letter-spacing: var(--tr); text-transform: uppercase; }
.recu-tot .recu-m {
  font-family: var(--f-titre); font-size: clamp(31px, 8.5vw, 38px); font-weight: 300;
  color: var(--sauge-t); line-height: 1; letter-spacing: -.01em;
}
.recu-note {
  margin-top: 14px; padding: 12px 14px; background: var(--surface-2);
  border-radius: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.5;
}

/* ---------- l'itinéraire ---------- */
.ou { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.ou-lieu { display: flex; flex-direction: column; gap: 3px; }
.ou-lieu b { font-family: var(--f-titre); font-weight: 600; font-size: 15px;
  letter-spacing: var(--tr); text-transform: uppercase; }
.ou-lieu span { color: var(--ink-2); font-size: 15px; }
.chemin { display: flex; flex-direction: column; counter-reset: pas; }
.chemin li {
  position: relative; padding: 0 0 18px 40px; counter-increment: pas;
  color: var(--ink-2); font-size: 15.5px; line-height: 1.5;
}
.chemin li::before {
  content: counter(pas); position: absolute; left: 0; top: -1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--sauge-pale); color: var(--sauge-t);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
}
/* le fil qui relie les étapes : c'est un chemin, il se suit */
.chemin li::after {
  content: ""; position: absolute; left: 12.5px; top: 28px; bottom: 4px;
  width: 1px; background: var(--line-2);
}
.chemin li:last-child { padding-bottom: 0; }
.chemin li:last-child::after { display: none; }

/* ---- le plan d'accès ---- */
.pl-z { position: relative; border: 1px solid var(--line-2); border-radius: 11px;
  overflow: hidden; line-height: 0; cursor: crosshair; background: var(--surface); }
.pl-z img { width: 100%; height: auto; display: block; }
.pl-ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pl-m, .qf { opacity: .55; }
.pl-m.on, .qf.on { opacity: 1; border-color: var(--sauge-b); background: var(--sauge-pale);
  color: var(--sauge-t); font-weight: 600; }
.plan { margin: 16px 0 0; }
.plan-c { position: relative; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line-2); background: var(--surface); line-height: 0; }
.plan-c img { width: 100%; height: auto; display: block; }
.plan-ov { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-3); text-align: center; }
/* Le plan s'ouvre en grand au clic. Le curseur et le léger relief le disent :
   sans ce signal, personne ne devine qu'on peut cliquer dessus. */
.plan-c[data-plan-zoom] { cursor: zoom-in; transition: box-shadow .18s ease, border-color .18s ease; }
.plan-c[data-plan-zoom]:hover { border-color: var(--sauge-b); box-shadow: var(--ombre); }
.plan-c[data-plan-zoom]:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
/* La fenêtre du plan : plus large que les autres, et l'image à sa taille
   réelle dans un cadre qu'on fait glisser - la réduire reviendrait à
   reproduire le problème qu'on cherche justement à corriger. */
.ov-c.ov-large { max-width: 1080px; }
.plan-zoom {
  position: relative; overflow: auto; border-radius: 11px; line-height: 0;
  border: 1px solid var(--line-2); background: var(--surface);
  max-height: 68vh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* Le cadre intérieur se règle sur la taille réelle de l'image, quelle qu'elle
   soit : c'est lui qui porte le calque du repère, pas la boîte qui défile. */
.plan-zoom-in { position: relative; display: inline-block; line-height: 0; }
.plan-zoom-in img { width: auto; max-width: none; height: auto; display: block; }
.plan-zoom-in svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- les journées et leurs créneaux ---------- */
.jour + .jour { margin-top: 18px; }
.jour-hd {
  padding: 16px 20px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.jour-d { font-family: var(--f-titre); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.jour-r { font-size: 13.5px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
/* replié sur une seconde ligne, le compteur repart à gauche : un texte
   isolé à droite sous un titre se lit comme un fragment détaché. */
@media (max-width: 420px) { .jour-r { margin-left: 0; width: 100%; } }
.jour-note {
  padding: 10px 20px; font-size: 14px; color: var(--ink-2);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.creneaux {
  padding: 16px; display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}
.cr {
  appearance: none; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 10px; padding: 12px 6px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-variant-numeric: tabular-nums; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.cr b { font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.cr span { font-size: 9.5px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase; color: var(--sauge-t); }
.cr:hover { border-color: var(--sauge-b); box-shadow: var(--ombre); transform: translateY(-1px); }
.cr:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.cr[data-etat="pris"] {
  cursor: not-allowed; background: var(--surface-2); border-style: dashed;
  border-color: var(--line); color: var(--pris);
}
.cr[data-etat="pris"] b { text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 500; }
.cr[data-etat="pris"] span { color: var(--pris); }
.cr[data-etat="pris"]:hover { transform: none; box-shadow: none; border-color: var(--line); }
.cr[data-etat="mien"] { border-color: var(--sauge-b); background: var(--sauge-pale); border-width: 2px; }
.cr[data-etat="mien"] span { color: var(--sauge-t); }
.cr[data-etat="passe"] { opacity: .4; cursor: not-allowed; }
/* Fermé mais pas passé : on l'éteint sans le barrer - l'heure est encore à venir. */
.cr[data-etat="tard"] {
  cursor: not-allowed; background: var(--surface-2); border-style: dashed;
  border-color: var(--line); color: var(--pris); opacity: .75;
}
.cr[data-etat="tard"] span { color: var(--pris); }
.cr[data-etat="tard"]:hover { transform: none; box-shadow: none; border-color: var(--line); }
.cr[data-etat="passe"]:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
/* La page ne peut pas enregistrer : le créneau est peut-être libre, mais on ne
   peut pas le prendre ICI. On ne dit donc plus « Libre » - ce serait faux. */
.cr[data-etat="ferme"] {
  cursor: not-allowed; opacity: .55; background: var(--surface-2);
  border-style: dashed; border-color: var(--line);
}
.cr[data-etat="ferme"] span { color: var(--pris); }
.cr[data-etat="ferme"]:hover { transform: none; box-shadow: none; border-color: var(--line); }

.b-lect {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 18px; padding: 13px 16px;
  border: 1px solid var(--line-2); border-left: 3px solid var(--lect-bord);
  border-radius: 11px; background: var(--surface-2);
  font-size: .88rem; line-height: 1.55; color: var(--ink-2);
}
.b-lect b { color: var(--ink); font-weight: 600; }

.vide {
  padding: 26px 22px; text-align: center; color: var(--ink-2);
  border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface);
}
.vide b { display: block; font-family: var(--f-titre); font-size: 13px; font-weight: 600;
  letter-spacing: var(--tr); text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }

/* ---------- pratique ---------- */
.prat { display: grid; gap: 10px; align-content: start; }
.prat li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; font-size: 15px; color: var(--ink-2); line-height: 1.5;
}
.prat li b { color: var(--ink); font-weight: 600; }
.prat svg { width: 20px; height: 20px; stroke: var(--sauge-b); fill: none; stroke-width: 1.6; margin-top: 1px; }

/* ---------- boutons ---------- */
.btn {
  appearance: none; cursor: pointer; border-radius: 999px; border: 1px solid transparent;
  padding: 13px 24px; font-size: 12px; font-weight: 600; letter-spacing: var(--tr);
  text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .14s, box-shadow .14s, transform .12s;
}
.btn:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.btn-p { background: var(--sauge-f); color: var(--sur-sauge); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--ombre); }
.btn-p:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-s { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-s:hover { border-color: var(--sauge-b); color: var(--sauge-t); }
.btn-t { background: none; color: var(--sauge-t); padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; filter: none; }

/* ---------- fenêtre ---------- */
.ov {
  position: fixed; inset: 0; z-index: 60; background: rgba(16,22,19,.5);
  display: none; align-items: flex-end; justify-content: center; padding: 0;
  backdrop-filter: blur(3px);
}
.ov.open { display: flex; }
.ov-c {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 26px 22px 30px; box-shadow: var(--ombre-h);
  animation: monte .24s cubic-bezier(.2,.8,.3,1);
}
@keyframes monte { from { transform: translateY(22px); opacity: .6; } }
@media (min-width: 620px) {
  .ov { align-items: center; padding: 20px; }
  .ov-c { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-c { animation: none; }
  .cr, .btn { transition: none; }
}
.ov-hd { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.ov-hd h3 { font-family: var(--f-titre); font-weight: 600; font-size: 14px; letter-spacing: var(--tr);
  text-transform: uppercase; color: var(--sauge-t); flex: 1; padding-top: 6px; }
.ov-x {
  appearance: none; background: var(--surface-2); border: 0; border-radius: 50%;
  width: 34px; height: 34px; cursor: pointer; font-size: 19px; line-height: 1; color: var(--ink-2);
  flex: 0 0 auto;
}
.ov-x:hover { background: var(--line); }
.ov-x:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }

/* ---------- formulaire ---------- */
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.champ > label { font-size: 14px; font-weight: 600; }
.champ > .aide { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.inp {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px;
  background: var(--surface); font-size: 16px; width: 100%;
}
.inp:focus { outline: 2px solid var(--sauge-b); outline-offset: -1px; border-color: var(--sauge-b); }
textarea.inp { min-height: 84px; resize: vertical; line-height: 1.5; }
/* le préfixe fait corps avec le champ : un seul cadre, une seule hauteur */
.tel-c { display: flex; align-items: stretch; }
.tel-p {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--surface-2); color: var(--ink-2); font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.tel-c .inp { border-radius: 0 10px 10px 0; }
.rang { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .rang { grid-template-columns: 1fr; } }
.coche {
  display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start;
  padding: 13px 14px; background: var(--surface-2); border-radius: 11px;
  font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer;
}
.coche input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--sauge-f); }
.err { color: var(--alerte); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }

.rappel {
  background: var(--sauge-pale); border-radius: 12px; padding: 15px 16px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 3px;
}
.rappel b { font-family: var(--f-titre); font-size: 16px; font-weight: 600; }
.rappel span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- confirmation ---------- */
.conf { text-align: center; padding: 6px 0 0; }
.conf-r {
  width: 58px; height: 58px; border-radius: 50%; background: var(--sauge-pale);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.conf-r svg { width: 28px; height: 28px; stroke: var(--sauge-t); fill: none; stroke-width: 2.2; }
.conf h3 { font-family: var(--f-titre); font-size: 15px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: var(--tr); text-transform: uppercase; color: var(--sauge-t); }
.conf p { color: var(--ink-2); margin-bottom: 16px; }
/* ---------- le rendez-vous déjà pris, rappelé en haut de page ---------- */
/* Sur un fond pâle, c'est le liseré qui délimite : deux surfaces de même
   clarté ne se séparent pas (59e piège du projet). Mesuré 3,20 sur le papier. */
.mien {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--sauge-pale); border: 1px solid var(--sauge-b);
  border-radius: 14px; padding: 16px 20px; margin: 4px 0 8px;
}
.mien-t { flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px; }
.mien-e {
  font-size: 10.5px; font-weight: 600; letter-spacing: var(--tr);
  text-transform: uppercase; color: var(--sauge-t);
}
.mien-d { font-family: var(--f-titre); font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.mien-l { font-size: 13.5px; color: var(--ink-2); }
.mien .btn { flex: 0 0 auto; background: var(--surface); }
.mien-tard { flex: 0 0 auto; font-size: 13px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.mien-tard b { color: var(--ink); white-space: nowrap; }

/* ---------- bandeau ---------- */
.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 90px);
  background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; z-index: 90; box-shadow: var(--ombre-h);
  transition: transform .28s cubic-bezier(.2,.8,.3,1); max-width: calc(100vw - 32px); text-align: center;
}
.toast.on { transform: translate(-50%, 0); }
/* fenêtre ouverte, le bandeau monte : sinon il recouvre la barre
   « Fermer / Enregistrer » collée en bas de la fenêtre. */
.ov.open ~ .toast.on { transform: translate(-50%, -76px); }
@media (min-width: 620px) { .ov.open ~ .toast.on { transform: translate(-50%, 0); } }

/* ---------- pied ---------- */
/* Le pied s'empile et se centre, toujours : en deux colonnes, les pastilles
   de contact ne tombaient plus l'une sous l'autre. */
.pied {
  margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3); line-height: 1.6; display: flex;
  flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.pied p { max-width: 68ch; }
.pied-e {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tr);
  text-transform: uppercase; color: var(--sauge-t);
}
/* Les deux contacts sur UNE ligne : empilés, chaque ligne prenait la largeur
   du plus long (l'e-mail) et le téléphone paraissait décalé du titre. Côte à
   côte, il n'y a plus de colonne à aligner - donc plus de décalage. */
.pied .coord {
  flex-direction: row; flex-wrap: wrap; justify-content: center;
  gap: 12px 30px; width: auto; margin: 0;
}
.pied .coord li { flex: 0 0 auto; }
/* le petit trait qui ferme le bloc « me joindre » */
.pied-sep { width: 56px; height: 1px; background: var(--line-2); margin: 4px 0 2px; }
.pied b { color: var(--ink-2); }
.pied a { color: var(--sauge-t); }
.pied-l { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- panneau de la praticienne ---------- */
.adm-b {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-size: 13px; color: var(--ink-3); padding: 4px 0; text-decoration: underline;
  text-underline-offset: 3px; text-align: left;
}
.adm-b:hover { color: var(--sauge-t); }
/* le lien qui n'est pas pour les salariés : présent, mais en retrait */
.adm-p {
  appearance: none; background: none; border: 0; cursor: pointer;
  margin-top: 6px; padding: 4px 8px; font-size: 11px; letter-spacing: .04em;
  /* Mesuré 2,62 en clair, 3,54 en sombre : en retrait pour un salarié, mais
     Marine doit pouvoir le retrouver - à 1,61 il devenait invisible pour elle. */
  color: var(--discret); text-decoration: none;
}
.adm-p:hover { color: var(--ink-3); }
.adm-p:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; border-radius: 4px; }
.adm { display: flex; flex-direction: column; gap: 26px; }
.adm-s > h4 {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--sauge-t); margin-bottom: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
}
.adm-li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px; margin-bottom: 9px; background: var(--surface);
  flex-wrap: wrap;
}
.adm-li .t { flex: 1 1 190px; min-width: 0; }
.adm-li .t b { display: block; font-size: 14.5px; font-weight: 600; }
.adm-li .t span { font-size: 13px; color: var(--ink-3); }
.mini {
  appearance: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  border-radius: 8px; padding: 6px 11px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mini:hover { border-color: var(--alerte); color: var(--alerte); }
.mini:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.avert {
  background: var(--alerte-pale); border-radius: 11px; padding: 13px 15px;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.avert b { color: var(--ink); }
.qr-boite {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px; background: var(--surface-2); border-radius: 12px;
}
/* Le QR reste noir sur blanc dans les deux themes : sur un fond sombre, il ne se scanne pas.
   C'est une image fonctionnelle, pas une surface de l'interface. */
.qr-boite svg { width: 176px; height: 176px; background: #fff; padding: 9px; border-radius: 8px; }
/* ============================================================
   Repris de la carte de visite : l'aplat sauge, le monogramme
   cerclé de feuillage, les capitales espacées, les ronds
   contournés, le filet à branche, la note manuscrite.
   ============================================================ */

/* le bandeau d'identité - la carte de visite, en tête de page */
/* Le bandeau vit HORS de la colonne de contenu : il va d'un bord à l'autre.
   Sa hauteur est bornée par celle du logo - max-height seul sur une <img>
   préserve le ratio, c'est la largeur qui suit. */
.cv {
  background: var(--sauge-f); color: var(--sur-sauge);
  padding: 13px 22px;
  display: flex; align-items: center; justify-content: center; gap: 18px;
}
.cv-mono { flex: 0 0 auto; width: 92px; height: 92px; color: var(--sur-sauge); }
.cv-mono svg { width: 100%; height: 100%; display: block; }
.cv-mono img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* Le rendez-vous est ce qu'on vient faire : l'identité ne lui prend pas l'écran. */
.cv-seul img { max-height: 126px; width: auto; max-width: 100%; height: auto; display: block; }
/* Un logo dessiné en noir devient blanc pour tenir sur l'aplat vert :
   brightness(0) écrase la couleur en gardant la transparence, invert la retourne. */
.cv-clair { filter: brightness(0) invert(1); }
.cv-sep { flex: 0 0 1px; align-self: stretch; margin: 4px 0;
  background: color-mix(in srgb, var(--sur-sauge) 45%, transparent); }
/* Sur un aplat, la hiérarchie se fait par la taille et la graisse :
   baisser l'opacité d'un texte le fait tomber sous le seuil de lisibilité. */
.cv-t { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cv-nom {
  font-size: clamp(14px, 4.2vw, 20px); font-weight: 500; letter-spacing: var(--tr);
  text-transform: uppercase; line-height: 1.25;
}
.cv-tit { font-size: 9.5px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }

/* le filet à branche, comme le bas de la carte */
.sepv { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.sepv::before, .sepv::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.sepv svg { width: 52px; height: 22px; stroke: var(--sauge-b); fill: none;
  stroke-width: 1.1; stroke-linecap: round; flex: 0 0 auto; }

/* les coordonnées, dans leurs ronds contournés */
.coord { display: flex; flex-direction: column; gap: 11px; }
.coord li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); }
.coord .rond {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--sauge-b); display: grid; place-items: center;
}
.coord .rond svg { width: 16px; height: 16px; stroke: var(--sauge-t); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.coord a { color: inherit; text-decoration: none; }
.coord a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* la ligne des publics reçus, en bas - comme le pied de la carte */
.specs {
  font-size: 9.5px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--ink-3); text-align: center; line-height: 2; margin: 0 auto; max-width: 46ch;
}

/* la note manuscrite */
.main-n { font-family: var(--f-main); font-size: 25px; color: var(--sauge-t);
  line-height: 1.15; font-weight: 400; }
/* ---------- le calendrier : le geste principal de la page ---------- */
/* On borne la LARGEUR et on laisse aspect-ratio faire la hauteur : plafonner
   la hauteur des cases avec max-height déformerait tout (26e piège du projet). */
.cal { padding: 16px 16px 18px; }
.cal-in { max-width: 400px; margin: 0 auto; }
/* En une seule colonne, la carte se borne aussi : un calendrier de 400 px
   centré dans une carte de 768 laisse deux flaques de blanc. */
.cal { max-width: 452px; margin-left: auto; margin-right: auto; }
.cal-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cal-m {
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 600;
  letter-spacing: var(--tr); text-transform: uppercase;
}
.cal-nav {
  appearance: none; width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  cursor: pointer; display: grid; place-items: center; font-size: 15px; line-height: 1;
}
.cal-nav:hover:not([disabled]) { border-color: var(--sauge-b); color: var(--sauge-t); }
.cal-nav:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.cal-nav[disabled] { opacity: .3; cursor: default; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-e {
  font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); text-align: center; padding-bottom: 8px;
}
.cal-c {
  appearance: none; aspect-ratio: 1; border: 1px solid transparent; background: none;
  border-radius: 10px; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  cursor: default; padding: 0;
}
.cal-c i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; display: block; }
.cal-c[data-jid] {
  background: var(--sauge-pale); color: var(--sauge-t); font-weight: 600; cursor: pointer;
}
.cal-c[data-jid]:hover { border-color: var(--sauge-b); }
.cal-c[data-jid]:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.cal-c[data-sel="1"] { background: var(--sauge-f); color: var(--sur-sauge); }
.cal-c[data-plein="1"] { opacity: .5; }
.cal-c[data-plein="1"] span { text-decoration: line-through; }
.cal-lg {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 14px; font-size: 12px; color: var(--ink-2);
}
.cal-lg span { display: inline-flex; align-items: center; gap: 6px; }
.cal-lg b { width: 13px; height: 13px; border-radius: 4px; display: block; }

/* la césure entre ce qu'on vient faire et ce qu'on lit ensuite */
.apres { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 0 6px; }
.apres p {
  font-size: 10px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--ink-3);
}
/* la branche n'est pas dans un .sepv ici : sans largeur, un SVG prend tout */
.apres > svg { width: 58px; height: 25px; stroke: var(--sauge-b); fill: none;
  stroke-width: 1.1; stroke-linecap: round; }

/* ============================================================
   ADAPTATIONS À LA LARGEUR - placées EN FIN DE FEUILLE.
   Posées plus haut, elles se faisaient écraser par les règles de
   composants écrites après elles : à spécificité égale, c'est la
   dernière déclaration qui gagne.
   ============================================================ */

/* Sur grand écran, on ne s'étire pas : on se répartit. Une ligne de texte
   au-delà de ~70 caractères ne se lit plus, donc c'est la DISPOSITION qui
   remplit la page, pas la longueur des lignes. */
@media (min-width: 860px) {
  /* les deux cartes se répondent au centre plutôt que de pendre en haut */
  .rdv-g { display: grid; grid-template-columns: 404px minmax(0, 1fr); gap: 24px; align-items: center; }
  .rdv-g .cal { margin: 0; max-width: none; }
  .rdv-g .jour { margin-top: 0 !important; }
  .infos-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
  .prat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 150 px de minimum : sur la colonne de droite, cela donne quatre colonnes -
     huit créneaux forment alors deux lignes pleines, sans trou en bas. */
  .creneaux { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (min-width: 1240px) {
  .rdv-g { grid-template-columns: 430px minmax(0, 1fr); }
}

/* Sur grand écran, tout se centre sous le logo, lui-même centré : un contenu
   aligné à gauche sous un bandeau centré casse l'axe de la page.
   En dessous, on garde l'alignement à gauche - des lignes courtes centrées
   se lisent mal, l'œil ne retrouve pas le début de la ligne suivante. */
@media (min-width: 860px) {
  .hd { align-items: center; text-align: center; }
  .hd .sous { max-width: 58ch; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { content: ""; flex: 1; height: 1px; background: var(--line-2); }
  .bloc > h2 { justify-content: center; }
  .bloc > h2::before { content: ""; flex: 1; height: 1px; background: var(--line); }
  .bloc > .intro { margin-left: auto; margin-right: auto; text-align: center; }
  .pied p { margin-left: auto; margin-right: auto; }
}
/* ---------- la présentation : qui reçoit, et comment la joindre ---------- */
.pres { display: flex; gap: 24px; align-items: center; padding: 4px 0 22px; }
/* La ligne des publics reçus ferme le bloc « qui je suis » : c'est elle qui
   porte le filet, sinon on en aurait deux à la suite. */
.specs-h {
  padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
  max-width: none;   /* sous la présentation elle a toute la largeur : une seule ligne */
}
.pres-ph {
  flex: 0 0 auto; width: 148px; height: 148px; border-radius: 50%;
  object-fit: cover; display: block; background: var(--surface);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--sauge-b);
}
.pres-t { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pres-n {
  font-family: var(--f-titre); font-size: 15px; font-weight: 600;
  letter-spacing: var(--tr); text-transform: uppercase;
}
.pres-r {
  font-size: 10px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: var(--sauge-t); margin-top: -4px;
}
.pres-x { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.pres .coord { gap: 8px; margin-top: 5px; }
.pres .coord li { font-size: 14px; }
.pres .coord .rond { width: 32px; height: 32px; }
.pres .coord .rond svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .pres { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .pres-ph { width: 124px; height: 124px; }
  /* Le nom et le titre sont courts : centrés, ils tiennent. Le paragraphe,
     lui, se ferre à gauche - cinq lignes centrées se suivent mal. */
  .pres-x { text-align: start; }
  /* les contacts se centrent EN BLOC : centrés ligne à ligne, leurs pastilles
     ne s'alignent plus l'une sous l'autre. */
  .pres .coord { align-items: stretch; width: fit-content; margin: 0 auto; text-align: start; }
}
/* ---------- les conditions de consultation ---------- */
.lire {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--sauge-t); font: inherit; font-size: inherit; text-decoration: underline;
  text-underline-offset: 3px;
}
.lire:hover { color: var(--ink); }
.lire:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; border-radius: 3px; }
.cond {
  margin-top: 12px; padding: 16px 16px 6px; background: var(--surface-2);
  border-radius: 12px; max-height: 46vh; overflow-y: auto;
}
.cond-b { margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.cond-b b {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--sauge-t);
}
.cond-b span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------- compléments de fenêtre ----------
   Ces classes sont posées par app.js et n'avaient aucune règle : le texte
   d'appui, les mentions légales, la mention « facultatif » et le lien vers
   les conditions retombaient sur les styles par défaut du navigateur
   (bouton encadré au milieu d'une phrase, définitions à plat, tout à la
   même taille). Uniquement des variables ici : le mode sombre suit. */
.ov-q { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }
.ov-q b { color: var(--ink); font-family: var(--f-titre); font-size: 16px; font-weight: 600; }

.fac { font-weight: 400; font-size: 12.5px; color: var(--ink-3); }

/* Un bouton au milieu d'une phrase doit se lire comme un lien. */
.lien {
  background: none; border: 0; padding: 0; font: inherit; color: var(--sauge-t);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.lien:hover { color: var(--ink); }
.lien:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; border-radius: 3px; }

.lg { margin: 0; }
.lg dt {
  font-size: 11px; font-weight: 600; letter-spacing: var(--tr); text-transform: uppercase;
  color: var(--sauge-t); margin-top: 15px;
}
.lg dt:first-child { margin-top: 0; }
/* L'adresse professionnelle tient sur deux lignes : sans pre-line, le saut
   de ligne disparaît et les deux cabinets se retrouvent collés. */
.lg dd { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; white-space: pre-line; }

.conf-q { font-family: var(--f-titre); font-size: 17px; font-weight: 600; color: var(--ink); }
.conf-x { font-size: 14px; line-height: 1.6; }

/* ---------- l'arrivée des heures ----------
   Tant qu'aucun jour n'est choisi, le calendrier tient seul la ligne et se
   centre : une carte vide à côté ne dit rien et creuse un trou sur les
   écrans larges. Dès qu'un jour est choisi, la carte des heures paraît. */
@media (min-width: 860px) {
  .rdv-g:not([data-choisi]) { grid-template-columns: minmax(0, 452px); justify-content: center; }
}

@keyframes jourParait {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes creneauParait {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.jour[data-pop] { animation: jourParait .34s cubic-bezier(.2,.8,.3,1) both; }
/* Chaque créneau part 30 ms après le précédent : la grille se remplit en
   cascade, sans dépasser une demi-seconde au total. */
.jour[data-pop] .cr {
  animation: creneauParait .3s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: calc(var(--i, 0) * 30ms + 100ms);
}

@media (prefers-reduced-motion: reduce) {
  .jour[data-pop], .jour[data-pop] .cr { animation: none; }
}

/* ---------- prochaines dates ----------
   Un raccourci vers les journées ouvertes, lu depuis la base comme le
   calendrier. En ligne, et qui défile horizontalement sur mobile plutôt
   que de s'empiler sur cinq hauteurs d'écran. */
.proch {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.proch-d {
  appearance: none; border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 12px; padding: 12px 16px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 3px; flex: 0 1 auto;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.proch-d b { font-family: var(--f-titre); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.proch-d span {
  font-size: 9.5px; font-weight: 600; letter-spacing: var(--tr);
  text-transform: uppercase; color: var(--sauge-t);
}
.proch-d i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
/* Le relèvement au survol ne vise QUE ce qui est cliquable : une date
   complète qui bouge sous la souris promet un clic qui ne donne rien. */
.proch-d:hover:not([disabled]) {
  border-color: var(--sauge-b); box-shadow: var(--ombre); transform: translateY(-2px);
}
.proch-d:focus-visible { outline: 2px solid var(--sauge-b); outline-offset: 2px; }
.proch-d[data-sel="1"] {
  background: var(--sauge-f); border-color: var(--sauge-f); color: var(--sur-sauge);
}
.proch-d[data-sel="1"] span, .proch-d[data-sel="1"] i { color: inherit; opacity: .85; }
.proch-d[data-plein="1"] { opacity: .5; cursor: not-allowed; }
.proch-d[data-plein="1"] b { text-decoration: line-through; }

/* En dessous de 620 px, la rangée défile au doigt : quatre dates empilées
   repoussent le calendrier hors de l'écran. */
@media (max-width: 619px) {
  .proch {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    scroll-snap-type: x proximity; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .proch-d { flex: 0 0 auto; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .proch-d { transition: none; }
}
