/* Georgette Ostéopathie — feuille unique, d'après le design system Yoga
   (@gympass/yoga-tokens 3.9.0, licence MIT) et les mesures relevées sur
   gympass.github.io/yoga : en-tête 70 px, menu latéral 250 px, contenu à
   100 px du menu, sommaire de 150 px à droite, Inter 300, interlettrage 0.5px. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* couleurs Yoga : l'accent est le rose « vibin » */
  --accent: #D8385E;
  --accent-fonce: #B92C4F;
  --stamina: #231B22;
  --deep: #6B6B78;
  --medium: #9898A6;
  --light: #D7D7E0;
  --clear: #F5F5FA;
  --white: #FFFFFF;
  --accent-clair: #FFEEF2;
  --texte: #666666;
  --titre: #333333;
  --code-fond: #F6F8FA;
  --code-bord: #E2DDDD;
  --lien: #0000EE;

  /* rayons, bordures, espacements Yoga */
  --r-xsmall: 4px;
  --r-small: 8px;
  --r-code: 5px;
  --r-circle: 9999px;
  --b-small: 1px;
  --b-medium: 2px;
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s20: 20px; --s24: 24px;
  --s32: 32px; --s40: 40px; --s56: 56px; --s72: 72px; --s80: 80px;

  --tete: 70px;
  --lat: 250px;
  --ease: cubic-bezier(0, .75, .1, 1);
  --btn-l: 304px;   /* largeur commune des boutons : celle du plus long libellé */
  --police: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tete) + 20px); }
body {
  margin: 0; font-family: var(--police); font-size: 16px; font-weight: 400;
  color: var(--texte); background: var(--clear); letter-spacing: .5px;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }   /* sinon .btn (inline-flex) l'emporte sur hidden */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- en-tête ---------- */
.tete {
  position: sticky; top: 0; z-index: 30; height: var(--tete);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; background: var(--white); box-shadow: var(--clear) 0 2px 2px 0;
}
.tete__logo { display: flex; align-items: center; height: 100%; }
.tete__logo img { height: 40px; width: auto; }
.tete__nav { display: flex; align-items: center; height: 100%; gap: 32px; }
.tete__nav > a:not(.btn) {
  display: flex; align-items: center; height: 100%; color: var(--medium);
  text-decoration: none; font-size: 16px; border-bottom: 2px solid transparent;
  border-top: 2px solid transparent; transition: color .2s var(--ease);
}
.tete__nav > a:not(.btn):hover { color: var(--deep); }
.tete__nav > a.on { color: var(--accent); border-bottom-color: var(--accent); }
.tete__burger { display: none; }

/* sélecteur de langue : en-tête (FR / EN) et pied (Français · English) */
.langues { display: inline-flex; align-items: center; }
.langues a { padding: 4px 7px; font-size: 13px; line-height: 20px; color: var(--medium); text-decoration: none; letter-spacing: .5px; transition: color .2s var(--ease); }
.langues a + a { border-left: var(--b-small) solid var(--light); }
.langues a:hover { color: var(--deep); }
.langues a.on { color: var(--accent); }
.langues--tete { margin: 0 -10px 0 -8px; }
.pied .langues a { font-size: 14px; color: var(--medium); }
.pied .langues a.on { color: var(--accent); }

/* ---------- boutons (Button Yoga : pilule, 48 px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r-circle);
  background: var(--accent); color: var(--white); border: var(--b-medium) solid var(--accent);
  font-size: 16px; font-weight: 500; text-decoration: none; letter-spacing: .5px;
  white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.btn--contour { background: transparent; color: var(--accent); }
.btn--contour:hover { background: var(--accent-clair); border-color: var(--accent); }
.btn:not(.btn--petit) { min-width: var(--btn-l); }
.btn--petit { height: 32px; padding: 0 16px; font-size: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.rdv__alt { margin: 14px 0 0 !important; font-size: 14px !important; line-height: 22px !important; }
.rdv__alt a { color: var(--lien); }

/* ---------- squelette documentation ---------- */
.doc { display: grid; grid-template-columns: var(--lat) minmax(0, 1fr) 190px; min-height: calc(100vh - var(--tete)); }
.doc--sans-toc { grid-template-columns: var(--lat) minmax(0, 1fr); }

.lat { background: var(--white); padding: 30px 30px 40px; }
.lat__in { position: sticky; top: calc(var(--tete) + 30px); max-height: calc(100vh - var(--tete) - 60px); overflow: auto; }
.lat a, .lat summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 14.4px; font-weight: 300; line-height: 28.8px;
  color: rgba(107, 107, 120, .75); text-decoration: none; cursor: pointer; list-style: none;
}
.lat summary::-webkit-details-marker { display: none; }
.lat summary::after {
  content: ""; width: 7px; height: 7px; margin-right: 6px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.lat details[open] > summary::after { transform: rotate(-135deg) translate(-2px, 0); }
.lat details > div a { padding-left: 15px; }
.lat a:hover, .lat summary:hover { color: var(--deep); }
.lat a.on, .lat summary.on { color: var(--accent); }

.page { padding: 40px 100px 80px; min-width: 0; }
.page__in { max-width: 882px; }
.fil { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 12px; line-height: 20px; color: var(--deep); }
.fil a { color: var(--deep); text-decoration: none; }
.fil > span:last-child { color: var(--titre); }
.fil a:hover { color: var(--accent); }
.fil span[aria-hidden] { color: var(--medium); }

.toc { padding: 40px 20px 0 0; }
.toc__in { padding-top: 2px; }
.toc__in { position: sticky; top: calc(var(--tete) + 30px); }
.toc p { margin: 0; padding-left: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 24px; color: var(--titre); }
.toc a {
  display: block; padding-left: 24px; font-size: 12px; line-height: 24px; color: var(--texte);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toc a:hover, .toc a.on { color: var(--accent); }

/* ---------- typographie de contenu ---------- */
.page h1, .titre-page { margin: 24px 0 20px; font-size: 30px; font-weight: 300; line-height: 1.25; color: var(--titre); }
.page h2 { margin: 45px 0 20px; font-size: 22px; font-weight: 300; line-height: 1.3; color: var(--titre); }
.page h3 { margin: 32px 0 12px; font-size: 18px; font-weight: 400; line-height: 1.4; color: var(--titre); }
.page p, .page li { font-size: 18px; font-weight: 300; line-height: 32.4px; color: var(--texte); }
.page p { margin: 0 0 16px; }
.page ul, .page ol { margin: 0 0 16px; padding-left: 22px; }
.page li { margin: 0 0 4px; }
.page li::marker { color: var(--accent); }
.page strong { font-weight: 500; color: var(--titre); }
.page .chapo { font-size: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }

/* puces (les « token / alias / value » de Yoga) */
.puce {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px;
  border-radius: var(--r-xsmall); background: #EEEEF3; color: var(--stamina);
  font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: .5px; text-decoration: none;
}
.puce b { font-weight: 700; }
a.puce:hover { background: var(--accent-clair); color: var(--accent); }

/* cartes (les cases de bordure Yoga : blanches, angles vifs, 1 px) */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 24px 0 8px; }
.cartes--equipe { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* 7 praticiens : 4 + 3, jamais 3 + 3 + 1 */
.cartes--5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cartes--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.carte {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--white);
  border: var(--b-small) solid var(--light); color: inherit; text-decoration: none;
  transition: border-color .2s var(--ease);
}
a.carte:hover { border: var(--b-small) solid var(--accent); }
.carte .carte__t { margin: 0; font-size: 18px; font-weight: 300; line-height: 1.35; color: var(--titre); }
.carte .carte__d { margin: 0; font-size: 14px; font-weight: 300; line-height: 22px; color: var(--texte); }
.carte__img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--clear); }
.carte .puces { display: flex; flex-wrap: wrap; gap: 6px; }
.carte .carte__pied { margin: auto 0 0; font-size: 12px; color: var(--medium); }

/* encadré (le bloc de code Yoga, sans la chasse fixe) */
.boite {
  margin: 24px 0; padding: 18px; background: var(--code-fond);
  border: var(--b-small) solid var(--light); border-radius: var(--r-code);
}
.boite > :last-child { margin-bottom: 0; }
.boite h2, .boite h3 { margin-top: 0; }
.boite dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; font-size: 16px; line-height: 26px; }
.boite dt { color: var(--titre); font-weight: 500; }
.boite dd { margin: 0; font-weight: 300; }
.boite a { color: var(--accent); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 300; padding: 2px 5px; background: var(--code-fond); border: 1px solid var(--code-bord); border-radius: var(--r-code); }

/* appel à prendre rendez-vous */
.rdv { margin: 48px 0 0; padding: 24px; background: var(--white); border: var(--b-medium) solid var(--light); }
.rdv__t { margin: 0 0 8px !important; font-size: 22px !important; font-weight: 300; color: var(--titre); }
.rdv p { margin-bottom: 0; }

/* FAQ */
.faq { margin: 8px 0 0; border-top: var(--b-small) solid var(--light); }
.faq details { border-bottom: var(--b-small) solid var(--light); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 300; line-height: 28px; color: var(--titre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 28px; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 8px; }

/* auteur, praticien */
.auteur { display: flex; gap: 16px; align-items: center; margin: 40px 0 0; padding: 16px; background: var(--white); border: var(--b-small) solid var(--light); }
.auteur img { width: 72px; height: 96px; object-fit: cover; flex: none; }
.auteur p { margin: 0 !important; font-size: 16px !important; line-height: 26px !important; }
.auteur a { color: var(--accent); }
.fiche { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px 0 24px; }
.fiche__photo { padding: 12px; background: var(--white); border: var(--b-medium) solid var(--light); }
.fiche__photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.fiche__photo .puces { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.fiche__photo .puce { display: block; }

/* galerie, carte */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--b-small) solid var(--light); background: var(--white); }
.plan { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; background: var(--white); border: var(--b-small) solid var(--light); display: grid; place-items: center; text-align: center; padding: 20px; }
.plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plan p { font-size: 14px !important; line-height: 22px !important; max-width: 420px; }

/* ---------- accueil (la page d'accueil Yoga) ---------- */
.accueil { background: var(--white); }
.une { padding: 110px 30px 80px; }
.une__in { max-width: none; padding: 0; }
.une h1 { margin: 0; font-size: 60px; font-weight: 300; line-height: 1.07; letter-spacing: .5px; color: var(--texte); max-width: 1000px; }
.une__marque { margin: 26px 0 0; font-size: 24px; font-weight: 500; color: var(--accent); }
.une__txt { max-width: 760px; margin: 22px 0 0; font-size: 18px; font-weight: 300; line-height: 32.4px; }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0 30px; }
.trois a {
  display: flex; flex-direction: column; min-height: 284px; padding: 24px; background: var(--clear);
  color: var(--deep); text-decoration: none; transition: background .2s var(--ease);
}
.trois a:hover { background: var(--accent-clair); }
.trois__n { font-size: 16px; font-weight: 700; color: var(--stamina); }
.trois__t { margin: auto 0 16px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--stamina); }
.trois__d { margin: 0; font-size: 16px; line-height: 20px; font-weight: 400; color: var(--deep); }

.bande { padding: 80px 30px; }
.bande--gris { background: var(--clear); }
.bande__in { max-width: none; }
.bande__in > p, .bande__in > .liste-puces { max-width: 900px; }
.accueil .cartes { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
@media (min-width: 1200px) { .accueil .cartes--equipe { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1199px) { .accueil .cartes--equipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.accueil .cartes--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.bande h2 { margin: 0 0 20px; font-size: 30px; font-weight: 300; color: var(--titre); }
.bande p, .bande li { font-size: 18px; font-weight: 300; line-height: 32.4px; }
.bande p { margin: 0 0 16px; }
.deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.photo-cadre { padding: 12px; background: var(--white); border: var(--b-medium) solid var(--light); }
.photo-cadre img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.liste-puces, .page .liste-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; padding: 0; list-style: none; }
.liste-puces .puce { margin: 0; font-size: 12px; line-height: 16px; }
.liste-puces .puce::marker { content: ""; }

/* ---------- pied ---------- */
.pied { padding: 20px; background: var(--white); box-shadow: var(--clear) 0 -2px 2px 0; text-align: center; color: var(--medium); }
.pied p { margin: 6px 0; font-size: 14px; line-height: 22px; }
.pied a { color: var(--medium); text-decoration: none; }
.pied a:hover { color: var(--accent); }
.pied .lien-bleu { color: var(--lien); }

/* ---------- 404 ---------- */
.p404 { padding: 120px 30px; text-align: center; background: var(--white); }
.p404 h1 { margin: 0; font-size: 60px; font-weight: 100; line-height: 60px; letter-spacing: -1px; color: #000; }

/* ---------- écrans moyens ---------- */
@media (max-width: 1199px) {
  .doc, .doc--sans-toc { grid-template-columns: var(--lat) minmax(0, 1fr); }
  .toc { display: none; }
  .page { padding: 40px 56px 72px; }
  .une__in { padding-left: 0; }
}

/* ---------- en-tête replié (le menu ne tient plus sur une ligne) ---------- */
@media (max-width: 1100px) { .tete__nav { gap: 22px; } .tete__nav > a:not(.btn) { font-size: 15px; } }
@media (max-width: 1023px) {
  .tete { padding: 0 16px; }
  .tete__logo img { height: 34px; }
  .tete__nav {
    position: fixed; top: var(--tete); left: 0; right: 0; bottom: 0; z-index: 29;
    flex-direction: column; align-items: stretch; gap: 0; height: auto; padding: 8px 20px 24px;
    background: var(--white); overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .menu-ouvert .tete__nav { opacity: 1; transform: none; visibility: visible; }
  .tete__nav > a:not(.btn) { height: auto; padding: 14px 0; border: 0; border-bottom: 1px solid var(--clear); font-size: 18px; }
  .tete__nav > a.on { border-bottom-color: var(--clear); }
  .tete__nav .btn { margin-top: 20px; height: 48px; font-size: 16px; }
  .langues--tete { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--clear); }
  .langues--tete a { font-size: 16px; padding: 4px 14px; }
  .langues--tete a:first-child { padding-left: 0; }
  .tete__burger {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; color: var(--stamina); cursor: pointer;
  }
  .tete__burger span, .tete__burger span::before, .tete__burger span::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s var(--ease);
  }
  .tete__burger span::before, .tete__burger span::after { content: ""; position: absolute; left: 0; }
  .tete__burger span::before { top: -6px; } .tete__burger span::after { top: 6px; }
  .menu-ouvert .tete__burger span { background: transparent; }
  .menu-ouvert .tete__burger span::before { transform: translateY(6px) rotate(45deg); }
  .menu-ouvert .tete__burger span::after { transform: translateY(-6px) rotate(-45deg); }
  body.menu-ouvert { overflow: hidden; }

}

/* ---------- mobile ---------- */
@media (max-width: 899px) {
  .doc, .doc--sans-toc { display: block; }
  .lat { padding: 0 16px; border-bottom: 1px solid var(--light); }
  .lat__in { position: static; max-height: none; }
  .lat > .lat__in > details.rubrique > summary { padding: 14px 0; color: var(--titre); font-size: 14.4px; }
  .lat:not(.lat--ouvert) .lat__liste { display: none; }
  .lat__bascule { display: flex !important; }
  .page { padding: 20px 16px 56px; }
  .fil { justify-content: flex-start; }
  .page h1, .titre-page { margin-top: 16px; font-size: 26px; }
  .page p, .page li { font-size: 17px; line-height: 29px; }
  .fiche { grid-template-columns: 1fr; gap: 20px; }
  .fiche__photo { max-width: 320px; }
  .galerie { grid-template-columns: 1fr; }
  .plan { aspect-ratio: 4 / 5; }
  .une { padding: 56px 16px 40px; }
  .une h1 { font-size: 36px; line-height: 1.15; }
  .trois { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; }
  .accueil .cartes--equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trois a { min-height: 0; }
  .trois__t { margin-top: 40px; }
  .bande { padding: 56px 16px; }
  .bande h2 { font-size: 26px; }
  .deux { grid-template-columns: 1fr; gap: 32px; }
  .boite dl { grid-template-columns: 1fr; gap: 0; }
  .boite dd { margin-bottom: 10px; }
  .p404 h1 { font-size: 44px; }
  .cartes--equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cartes--equipe .carte { padding: 8px; gap: 8px; }
  .cartes--equipe .carte__t { font-size: 15px; }
  .cartes--equipe .carte__d { display: none; }
  .cartes--equipe .puce { font-size: 11px; padding: 3px 5px; }
}
.lat__bascule { display: none; width: 100%; padding: 14px 0; border: 0; background: none; color: var(--titre); font-size: 14.4px; font-weight: 300; justify-content: space-between; align-items: center; cursor: pointer; }
.lat__bascule::after { content: ""; width: 7px; height: 7px; margin-right: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.lat--ouvert .lat__bascule::after { transform: rotate(-135deg); }

/* ---------- rendez-vous : bouton flottant, bulles, pop-up ---------- */
.resa-flot { position: fixed; right: 30px; bottom: 24px; z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.resa-flot__btn { min-width: 0 !important; box-shadow: 0 6px 18px rgba(216, 56, 94, .32); }
.resa-bulles { display: flex; flex-direction: row-reverse; padding-right: 4px; }
.resa-bulles button {
  position: relative; width: 40px; height: 40px; margin-left: -10px; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; transition: transform .2s var(--ease);
}
.resa-bulles button:last-child { margin-left: 0; }
.resa-bulles img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; box-shadow: 0 2px 6px rgba(35, 27, 34, .2); background: var(--clear); }
.resa-bulles button:hover, .resa-bulles button:focus-visible { transform: translateY(-4px); z-index: 1; }
.resa-bulle__nom {
  position: absolute; bottom: calc(100% + 8px); right: 50%; transform: translateX(50%); padding: 4px 8px;
  background: var(--stamina); color: var(--white); font-size: 12px; line-height: 16px; white-space: nowrap;
  border-radius: var(--r-xsmall); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
}
.resa-bulles button:hover .resa-bulle__nom, .resa-bulles button:focus-visible .resa-bulle__nom { opacity: 1; }
.pied { padding-bottom: 120px; }
body.menu-ouvert .resa-flot { display: none; }

.resa {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: var(--b-small) solid var(--light);
  background: var(--white); color: var(--texte); box-shadow: 0 16px 48px rgba(35, 27, 34, .22); overflow: hidden;
}
.resa[open] { display: flex; }
.resa::backdrop { background: rgba(35, 27, 34, .45); }
.resa__form { display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 50px); }
.resa__tete { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 0; }
.resa__titre { margin: 0; font-size: 22px; font-weight: 300; color: var(--titre); }
.resa__fermer { position: relative; width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; color: var(--deep); cursor: pointer; }
.resa__fermer span::before, .resa__fermer span::after { content: ""; position: absolute; left: 11px; top: 19px; width: 18px; height: 1.5px; background: currentColor; }
.resa__fermer span::before { transform: rotate(45deg); } .resa__fermer span::after { transform: rotate(-45deg); }
.resa__fermer:hover { color: var(--accent); }
.resa__etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 16px 24px 0; }
.resa__etapes span { height: 3px; background: var(--light); transition: background .2s var(--ease); }
.resa__etapes span.on { background: var(--accent); }
.resa__compteur { margin: 8px 24px 0; font-size: 12px; color: var(--medium); }
.resa__compteur b { font-weight: 500; color: var(--titre); }
.resa__corps { padding: 18px 24px 8px; overflow: auto; }
.resa fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.resa__q { display: block; margin: 0 0 14px; padding: 0; font-size: 16px; font-weight: 400; color: var(--titre); }
.resa-heures + .resa__note, .resa__note { margin: 14px 0 0; font-size: 13px; line-height: 20px; color: var(--deep); }
.resa__note a { color: var(--lien); }
.resa-jours + .resa__q { margin-top: 22px; }

.resa-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.resa-carte {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: var(--b-small) solid var(--light);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.resa-carte img, .resa-carte__vide { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.resa-carte__vide { display: grid; place-items: center; background: var(--clear); color: var(--deep); font-size: 12px; }
.resa-carte b { display: block; font-size: 15px; font-weight: 400; color: var(--titre); }
.resa-carte small { display: block; font-size: 12px; line-height: 18px; color: var(--deep); }
.resa input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.resa-carte:hover, .resa-jour:hover, .resa-heure:hover { border-color: var(--medium); }
.resa-carte:has(input:checked), .resa-jour:has(input:checked), .resa-heure:has(input:checked) { border-color: var(--accent); background: var(--accent-clair); }
.resa-carte:has(input:focus-visible), .resa-jour:has(input:focus-visible), .resa-heure:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.resa-jours { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.resa-jour {
  position: relative; flex: none; width: 74px; padding: 8px 0; border: var(--b-small) solid var(--light); text-align: center;
  cursor: pointer; scroll-snap-align: start; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.resa-jour small { display: block; font-size: 12px; line-height: 16px; color: var(--deep); }
.resa-jour b { display: block; font-size: 20px; line-height: 26px; font-weight: 300; color: var(--titre); }
.resa-heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.resa-heure {
  position: relative; padding: 9px 0; border: var(--b-small) solid var(--light); text-align: center; font-size: 14px; color: var(--titre);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.resa-heure:has(input:disabled) { opacity: .35; cursor: not-allowed; border-color: var(--light) !important; background: none; }

.resa-recap { margin: 0 0 18px; }
.resa-recap dl { font-size: 14px; line-height: 22px; }
.champ { display: block; margin: 0 0 14px; }
.champ > span { display: block; margin: 0 0 6px; font-size: 14px; color: var(--titre); }
.champ input {
  width: 100%; height: 48px; padding: 0 14px; border: var(--b-small) solid var(--light); border-radius: var(--r-xsmall);
  background: var(--white); color: var(--stamina); font: inherit; font-size: 16px; font-weight: 300; letter-spacing: .5px;
}
.champ input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-clair); }
.champ--erreur input { border-color: var(--accent); }
.champ__erreur { display: block; margin-top: 6px; font-size: 13px; color: var(--accent-fonce); }

.resa__fin { text-align: left; }
.resa__fin-t { margin: 4px 0 10px; font-size: 22px; font-weight: 300; color: var(--titre); }
.resa__fin p { margin: 0 0 12px; font-size: 15px; line-height: 24px; }
.resa__apercu { padding: 12px 14px; border: var(--b-small) solid var(--light); background: var(--accent-clair); color: var(--stamina); }
.resa__apercu a { color: var(--lien); }
.resa__pied { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 24px 24px; border-top: var(--b-small) solid var(--clear); }
.resa__pied .btn { min-width: 0; width: 100%; }
.resa__pied .btn:disabled { opacity: .4; cursor: not-allowed; }
.resa__pied--seul { grid-template-columns: 1fr; }
body.resa-ouverte { overflow: hidden; }

@media (max-width: 599px) {
  .btn:not(.btn--petit) { min-width: 0; width: 100%; }
  .resa-flot { right: 16px; bottom: 16px; }
  .resa-bulles img, .resa-bulles button { width: 34px; height: 34px; }
  .resa-flot__btn { height: 44px; padding: 0 20px; font-size: 15px; width: auto !important; }
  .resa { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border: 0; }
  .resa__form { max-height: 92vh; }
  .resa-choix { grid-template-columns: 1fr; }
  .resa__tete, .resa__etapes, .resa__corps, .resa__pied { padding-left: 16px; padding-right: 16px; }
  .resa__compteur { margin-left: 16px; }
}
@media print { .resa-flot { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
