/* Tenohira : le feuillet de séance.
   Deux encres sur papier froid. Tout se range sur une grille de volets entiers. */

@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/zen-maru-gothic-500-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: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/zen-maru-gothic-500-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;
}
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/zen-maru-gothic-900-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: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/zen-maru-gothic-900-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;
}
/* Les deux seuls caractères japonais du site : 指 et 圧. */
@font-face {
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/zen-maru-gothic-900-shiatsu.woff2") format("woff2");
  unicode-range: U+5727, U+6307;
}

:root {
  --bleu: #2438ac;
  --kaki: #ff6a3d;
  --papier: #e8ece6;
  --sur: #231b4a;
  --sur-doux: rgb(35 27 74 / 0.78);
  --sur-efface: rgb(35 27 74 / 0.5);
  --pli: rgb(35 27 74 / 0.14);
  --papier-doux: rgb(232 236 230 / 0.86);

  --volets: 6;
  --marge: clamp(16px, 1.95vw, 30px);
  --trait: 2px;
  --barre: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --t-corps: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-petit: 0.9375rem;
  --t-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --t-h2: clamp(2rem, 1.3rem + 3.1vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barre) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--bleu) var(--papier);
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--sur);
  font: 500 var(--t-corps) / 1.55 "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", sans-serif;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--kaki);
}

::selection { background: var(--kaki); color: var(--sur); }

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset, legend { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 900; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.015em; }
h3 { font-size: var(--t-h3); line-height: 1.12; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--kaki); }

:focus-visible {
  outline: 3px solid var(--kaki);
  outline-offset: 3px;
}
.encre-bleue :focus-visible, .pied :focus-visible { outline-color: var(--papier); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.evitement {
  position: absolute; left: var(--marge); top: -80px; z-index: 30;
  background: var(--kaki); color: var(--sur); font-weight: 900;
  padding: 10px 18px; border: var(--trait) solid var(--sur);
}
.evitement:focus { top: 8px; }

/* Les plis du feuillet : une ligne à chaque frontière de volet, par-dessus tout. */
.plis {
  position: fixed; inset: 0; z-index: 15; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% - 1px), var(--pli) calc(100% - 1px) 100%);
  background-size: calc(100% / var(--volets)) 100%;
}

.grille {
  display: grid;
  grid-template-columns: repeat(var(--volets), minmax(0, 1fr));
}

/* Bandeau de maquette */
.demo-court { display: none; }
.demo {
  background: var(--sur); color: var(--papier);
  font-size: 0.875rem; line-height: 1.35; text-align: center;
  padding: 7px var(--marge);
}

/* Barre haute */
.barre {
  position: sticky; top: 0; z-index: 20;
  min-height: var(--barre);
  background: var(--papier);
  border-bottom: var(--trait) solid var(--sur);
  align-items: stretch;
}
.marque {
  grid-column: 1 / span 2;
  display: flex; align-items: center; gap: 0.45em;
  padding: 0 var(--marge);
  font-weight: 900; font-size: 1.375rem; letter-spacing: 0.02em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.marque span { color: var(--bleu); }
.navigation { grid-column: 3 / span 3; display: flex; }
.navigation ul { display: flex; flex: 1; justify-content: space-between; align-items: stretch; padding: 0 var(--marge); }
.navigation a { display: flex; align-items: center; height: 100%; text-decoration: none; padding: 0 2px; }
.navigation a:hover, .navigation a[aria-current="true"] { box-shadow: inset 0 -5px 0 var(--bleu); }
.menu { display: none; }

.reserver-haut {
  grid-column: 6;
  display: grid; place-items: center;
  background: var(--kaki); color: var(--sur);
  border-left: var(--trait) solid var(--sur);
  font-weight: 900; font-size: 1.375rem; text-decoration: none;
  transition: background-color 160ms ease;
}
.reserver-haut:hover { background: var(--sur); color: var(--papier); }

/* ---------- La une : une heure dépliée ---------- */
.une {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100svh - var(--barre) - 33px);
}
.encre-bleue { background: var(--bleu); color: var(--papier); }

.titre {
  grid-column: 1 / span 2; grid-row: 1;
  display: flex; flex-direction: column;
  padding: clamp(24px, 5vh, 52px) var(--marge) clamp(18px, 3vh, 28px);
}
.titre h1 {
  font-size: clamp(2.75rem, 5.95vw, 6rem);
  line-height: 0.97; letter-spacing: -0.02em;
}
.titre h1 em { font-style: normal; color: var(--kaki); display: inline-block; }
.titre .chapo { font-size: clamp(1.125rem, 0.95rem + 0.45vw, 1.25rem); line-height: 1.5; margin-top: clamp(16px, 3vh, 30px); max-width: 26em; }
.titre .adresse { font-size: var(--t-petit); margin-top: 14px; color: var(--papier-doux); max-width: 28em; }
.kanji {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: flex-end; gap: 18px;
}
.kanji b { font-size: clamp(4rem, 7.4vw, 6rem); line-height: 0.9; color: var(--papier); font-weight: 900; }
.kanji span { font-size: var(--t-petit); line-height: 1.35; max-width: 11em; padding-bottom: 0.4em; }

.frise { grid-column: 3 / span 4; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.pas-liste { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-x: clip; }
.pas {
  position: relative;
  padding: clamp(14px, 2.6vh, 26px) var(--marge) clamp(14px, 2.4vh, 24px);
}
.pas-numero { display: block; font-weight: 900; font-size: clamp(2.75rem, 9.5vh, 6rem); line-height: 0.86; color: var(--bleu); }
.pas-minutes {
  position: absolute; right: var(--marge); top: clamp(16px, 3vh, 32px);
  font-size: 0.875rem; line-height: 1; white-space: nowrap;
  border: var(--trait) solid var(--sur); border-radius: 99px; padding: 5px 11px;
}
.figure { max-width: none; width: calc(100% + 2 * var(--marge)); margin: clamp(10px, 3.2vh, 34px) calc(-1 * var(--marge)) 0; height: auto; overflow: visible; }
.pas h3 { margin-top: clamp(12px, 2.4vh, 24px); }
.pas p { font-size: clamp(0.9375rem, 0.9rem + 0.16vw, 1.125rem); line-height: 1.5; margin-top: 8px; color: var(--sur-doux); }
.pas-numero, .pas .figure { transition: opacity 200ms ease; }
.frise[data-actif] .pas:not(.est-actif) .pas-numero,
.frise[data-actif] .pas:not(.est-actif) .figure { opacity: 0.35; }

/* Le dessin : receveur en bleu, praticien en surimpression, ce qui touche en orange. */
.figure .recu, .figure .donne, .figure .touche { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.figure .recu { stroke: var(--bleu); }
.figure .donne { stroke: var(--sur); }
.figure .tete-recu { fill: var(--bleu); }
.figure .tete-donne { fill: var(--sur); }
.figure .touche { stroke: var(--kaki); stroke-width: 7; }
.figure .futon { fill: var(--papier); stroke: var(--bleu); stroke-width: 3; }
.figure .aplat { fill: var(--bleu); }
.figure .fil { fill: none; stroke: var(--papier); stroke-width: 2.5; stroke-linecap: round; }
.figure .parole { fill: none; stroke: var(--sur); stroke-width: 3; stroke-linecap: round; }

/* La règle des soixante minutes */
.regle {
  position: relative; height: clamp(64px, 10vh, 92px);
  border-top: var(--trait) solid var(--sur);
  background:
    repeating-linear-gradient(90deg, var(--sur) 0 1px, transparent 1px 100%) 0 0 / calc(100% / 60) 11px repeat-x,
    repeating-linear-gradient(90deg, var(--sur) 0 2px, transparent 2px 100%) 0 0 / calc(100% / 6) 24px repeat-x;
}
.regle-chiffres { position: absolute; inset: 26px 0 auto 0; height: 1.4em; font-weight: 900; font-size: 1.25rem; line-height: 1; }
.regle-chiffres span { position: absolute; top: 0; padding-left: 7px; }
.regle-chiffres span:last-child { padding: 0 7px 0 0; transform: translateX(-100%); }
.regle-touche {
  position: absolute; left: 0; right: 0; bottom: 9px; height: 13px;
  background: var(--kaki);
  transform-origin: 0 50%;
  transform: translateX(16.6667%) scaleX(0.6667);
  transition: transform 260ms var(--ease-in-out);
}
.regle-legende { position: absolute; right: var(--marge); top: 30px; font-size: 0.875rem; line-height: 1; color: var(--sur-doux); display: flex; align-items: center; gap: 8px; }
.regle-legende::before { content: ""; width: 22px; height: 9px; background: var(--kaki); }

/* Les languettes à détacher */
.languettes {
  grid-column: 1 / -1; grid-row: 2;
  border-top: var(--trait) dashed var(--sur);
  background: var(--papier);
}
.languettes-appel { grid-column: 1; padding: clamp(14px, 2.4vh, 22px) var(--marge); align-self: center; }
.languettes-appel h2 { font-size: var(--t-h3); line-height: 1.08; letter-spacing: 0; }
.languettes-appel p { font-size: var(--t-petit); line-height: 1.4; margin-top: 8px; color: var(--sur-doux); }
.languettes-liste { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.languette {
  appearance: none; border: 0; border-left: var(--trait) dashed var(--sur); border-radius: 0;
  background: transparent; cursor: pointer;
  min-height: clamp(112px, 17vh, 168px); padding: 12px 4px;
  display: grid; place-items: center;
  transition: background-color 140ms ease, transform 180ms var(--ease-out);
}
.languette-texte { writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; line-height: 1.15; }
.languette-heure { display: block; font-weight: 900; font-size: var(--t-h3); white-space: nowrap; }
.languette-jour { display: block; font-size: 0.875rem; white-space: nowrap; }
.languette:active { background: var(--kaki); }
.languette.est-detachee { visibility: hidden; }
.languettes-vide { grid-column: 2 / -1; padding: var(--marge); align-self: center; }

/* ---------- Sections ---------- */
.section { border-top: var(--trait) solid var(--sur); }
.section-tete { padding: clamp(40px, 7vw, 104px) var(--marge) clamp(20px, 2.6vw, 36px); }
.cellule { padding: var(--marge); min-width: 0; }
.cellule > h3 + p, .cellule > p + p { margin-top: 0.6em; }
.mesure { max-width: 34em; }

.photo { position: relative; margin: 0; background: var(--papier); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.875rem; line-height: 1.35; padding: 8px var(--marge); border-top: var(--trait) solid var(--sur); color: var(--sur-doux); }

/* Le geste */
.geste-photo { grid-column: 1 / span 4; border-right: var(--trait) solid var(--sur); display: flex; flex-direction: column; }
.geste-photo img { flex: 1; min-height: 0; aspect-ratio: 3 / 2; }
.geste-texte { grid-column: 5 / span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px) var(--marge) var(--marge); }
.geste-texte h2 { font-size: clamp(2rem, 1.2rem + 2.5vw, 4rem); }
.geste-texte p { margin-top: 1.1em; }
.geste-points { grid-column: 1 / -1; border-top: var(--trait) solid var(--sur); }
.geste-pouces { grid-column: span 2; border-right: var(--trait) solid var(--sur); }
.geste-pouces img { aspect-ratio: 1 / 1; }
.points { grid-column: span 2; border-right: var(--trait) solid var(--sur); display: flex; flex-direction: column; }
.point { flex: 1; padding: clamp(18px, 2.2vw, 30px) var(--marge); border-top: var(--trait) solid var(--sur); display: flex; flex-direction: column; justify-content: center; }
.point:first-child { border-top: 0; }
.point p { font-size: var(--t-petit); line-height: 1.5; margin-top: 8px; color: var(--sur-doux); }
.limite { grid-column: span 2; background: var(--sur); color: var(--papier); padding: clamp(24px, 3vw, 44px) var(--marge); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.limite h3 { font-size: clamp(2rem, 1.1rem + 2.6vw, 4rem); line-height: 1; letter-spacing: -0.015em; max-width: 9em; }
.limite p { max-width: 30em; }

/* Séances et tarifs : chaque séance à sa longueur, sur la même règle */
.tarifs-tete { grid-column: 1 / span 4; }
.tarifs-note { grid-column: 5 / span 2; align-self: end; padding: 0 var(--marge) clamp(20px, 2.6vw, 36px); font-size: var(--t-petit); line-height: 1.5; color: var(--sur-doux); }
.seance { border-top: var(--trait) solid var(--sur); align-items: stretch; }
.seance-nom { grid-column: 1 / span 2; padding: clamp(18px, 2vw, 28px) var(--marge); }
.seance-nom p { font-size: var(--t-petit); line-height: 1.5; margin-top: 6px; color: var(--sur-doux); max-width: 26em; }
.seance-duree { grid-column: 3 / span 3; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 0; }
.seance-duree b { font-weight: 900; font-size: var(--t-h3); line-height: 1; padding-left: var(--marge); }
.seance-barre {
  display: block; height: 30px; width: calc(var(--minutes) / 75 * 100%);
  background:
    repeating-linear-gradient(90deg, rgb(232 236 230 / 0.5) 0 1px, transparent 1px 100%) 0 100% / calc(100% / var(--minutes) * 5) 11px repeat-x,
    var(--bleu);
}
.seance-prix { grid-column: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px var(--marge); border-left: var(--trait) solid var(--sur); }
.seance-prix b { font-weight: 900; font-size: var(--t-h3); white-space: nowrap; }

.bouton {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 10px 22px;
  border: var(--trait) solid var(--sur); border-radius: 0;
  background: var(--papier); color: var(--sur);
  font-weight: 900; font-size: var(--t-corps); line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.bouton:active { transform: scale(0.97); }
.bouton-plein { background: var(--kaki); }
.bouton-large { width: 100%; min-height: 60px; font-size: 1.25rem; }

/* Le praticien et le cabinet */
.praticien-photo { grid-column: 1 / span 2; }
.praticien-photo img { aspect-ratio: 4 / 5; }
.praticien-texte { grid-column: 3 / span 2; padding: clamp(28px, 4vw, 56px) var(--marge); display: flex; flex-direction: column; justify-content: center; }
.praticien-texte p { margin-top: 1.1em; max-width: 30em; }
.cabinet { grid-column: 5 / span 2; display: flex; flex-direction: column; border-left: var(--trait) solid var(--papier); }
.cabinet .photo img { aspect-ratio: 3 / 2; }
.cabinet-infos { padding: var(--marge); display: grid; gap: 14px; }
.cabinet-infos h3 { font-size: 1.375rem; }
.cabinet-infos dt { font-weight: 900; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cabinet-infos dd { font-size: var(--t-petit); line-height: 1.5; color: var(--papier-doux); }
.encre-bleue .photo figcaption { background: var(--bleu); color: var(--papier-doux); border-color: var(--papier); }

/* Avis */
.avis-tete { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.avis-tete p { font-size: var(--t-petit); color: var(--sur-doux); }
.avis { grid-column: span 2; border-top: var(--trait) solid var(--sur); border-right: var(--trait) solid var(--sur); padding: clamp(24px, 3vw, 44px) var(--marge); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.avis:last-child { border-right: 0; }
.avis blockquote { margin: 0; font-size: var(--t-h3); line-height: 1.35; }
.avis figcaption { font-size: var(--t-petit); color: var(--sur-doux); }
.avis figcaption b { color: var(--sur); font-weight: 900; }

/* Questions */
.questions-tete { grid-column: 1 / span 2; }
.questions-liste { grid-column: 3 / span 4; border-left: var(--trait) solid var(--sur); padding-top: clamp(28px, 5vw, 80px); }
.question { border-top: var(--trait) solid var(--sur); }
.question:first-child { border-top: 0; }
.question summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--marge);
  font-weight: 900; font-size: var(--t-h3); line-height: 1.15;
}
.question summary::-webkit-details-marker { display: none; }
.question summary svg { flex: none; width: 26px; height: 26px; transition: transform 220ms var(--ease-out); }
.question[open] summary svg { transform: rotate(45deg); }
.question p { padding: 0 var(--marge) 26px; max-width: 40em; color: var(--sur-doux); }

/* ---------- Le bulletin de réservation ---------- */
.bulletin { border-top: 0; }
.perforation {
  position: relative;
  border-top: var(--trait) dashed var(--sur);
  padding: 12px var(--marge) 0 calc(var(--marge) + 46px);
  font-size: 0.875rem; color: var(--sur-doux);
}
.perforation svg { position: absolute; left: var(--marge); top: -17px; width: 32px; height: 32px; background: var(--papier); padding: 0 6px; box-sizing: content-box; color: var(--sur); }
.bulletin-tete { grid-column: 1 / -1; padding: clamp(28px, 5vw, 72px) var(--marge) clamp(20px, 2.6vw, 36px); }
.bulletin-tete p { margin-top: 12px; color: var(--sur-doux); }
.bulletin form { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; border-top: var(--trait) solid var(--sur); }
.etape { grid-column: span 2; border-right: var(--trait) solid var(--sur); padding: clamp(20px, 2.4vw, 34px) var(--marge) clamp(26px, 3vw, 44px); }
.etape:last-of-type { border-right: 0; }
.etape legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 0.5em; font-weight: 900; font-size: var(--t-h3); line-height: 1.1; margin-bottom: 20px; }
.etape legend + * { clear: both; }
.etape legend b { color: var(--bleu); font-size: 1.5em; line-height: 0.8; }

.choix { display: grid; gap: 10px; }
.choix-option { position: relative; display: block; }
.choix-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choix-option span {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: baseline;
  border: var(--trait) solid var(--sur); padding: 12px 16px;
  transition: background-color 140ms ease;
}
.choix-option b { font-weight: 900; font-size: 1.125rem; }
.choix-option i { font-style: normal; font-weight: 900; white-space: nowrap; }
.choix-option small { grid-column: 1 / -1; font-size: 0.875rem; line-height: 1.4; color: var(--sur-doux); }
.choix-option input:checked + span { background: var(--kaki); }
.choix-option input:checked + span small { color: var(--sur); }
.choix-option input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 3px; }

.jours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.jour { position: relative; display: block; }
.jour input, .heure input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.jour span {
  display: block; text-align: center; padding: 8px 4px; line-height: 1.2;
  border: var(--trait) solid var(--sur);
  transition: background-color 140ms ease, color 140ms ease;
}
.jour span b { display: block; font-weight: 900; font-size: 1.375rem; }
.jour span small { font-size: 0.875rem; }
.jour input:checked + span { background: var(--sur); color: var(--papier); }
.jour input:focus-visible + span, .heure input:focus-visible + span { outline: 3px solid var(--kaki); outline-offset: 3px; }
.jour-titre { margin: 22px 0 10px; font-weight: 900; font-size: 1.125rem; }
.jour-titre::first-letter { text-transform: uppercase; }

.heures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: var(--trait) dashed var(--sur); border-left: var(--trait) dashed var(--sur); }
.heure { position: relative; display: block; }
.heure span {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 13px 14px;
  border-right: var(--trait) dashed var(--sur); border-bottom: var(--trait) dashed var(--sur);
  font-weight: 900; font-size: 1.25rem; line-height: 1.2;
  transition: background-color 140ms ease;
}
.heure small { font-weight: 500; font-size: 0.875rem; }
.heure input:checked + span { background: var(--kaki); }
.heure input:disabled { cursor: not-allowed; }
.heure input:disabled + span {
  color: var(--sur-efface);
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgb(35 27 74 / 0.1) 7px 9px);
}
.heure input:disabled + span b { text-decoration: line-through; font-weight: 900; }
.heure input:disabled + span small { color: var(--sur); font-weight: 900; }
.heures-vide { grid-column: 1 / -1; padding: 16px 14px; border-right: var(--trait) dashed var(--sur); border-bottom: var(--trait) dashed var(--sur); font-size: var(--t-petit); }

.champ { display: grid; gap: 6px; margin-bottom: 18px; }
.champ label { font-weight: 900; font-size: var(--t-corps); }
.champ label small { font-weight: 500; font-size: 0.875rem; color: var(--sur-doux); }
.champ input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  background: var(--papier); border: var(--trait) solid var(--sur); border-radius: 0;
  font-size: var(--t-corps);
}
.champ input::placeholder { color: rgb(35 27 74 / 0.62); }
.champ input:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.champ .aide { font-size: 0.875rem; line-height: 1.4; color: var(--sur-doux); }
.champ.est-refuse input { border-width: 4px; padding: 8px 12px; }
.erreur {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.9375rem; line-height: 1.4; font-weight: 900;
}
.erreur::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background: var(--sur);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 4.6h2.8v6.8H8.6Zm0 8.6h2.8V16H8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.erreur[hidden] { display: none; }
.etape > .erreur { margin-top: 14px; }

.recap {
  border: var(--trait) dashed var(--sur);
  padding: 14px 16px; margin: 4px 0 16px;
  font-size: var(--t-petit); line-height: 1.5;
}
.recap b { display: block; font-weight: 900; font-size: 1.125rem; }
.mention { font-size: 0.875rem; line-height: 1.5; color: var(--sur-doux); margin-top: 14px; }

/* Le billet de confirmation : la languette détachée, en grand */
.billet { grid-column: 1 / -1; border-top: var(--trait) solid var(--sur); }
.billet[hidden], .bulletin form[hidden] { display: none; }
.billet-talon { grid-column: 1 / span 2; background: var(--kaki); padding: clamp(24px, 3vw, 44px) var(--marge); border-right: var(--trait) dashed var(--sur); display: flex; flex-direction: column; gap: 6px; }
.billet-talon .heure-grande { font-weight: 900; font-size: clamp(2.75rem, 2rem + 4.2vw, 6rem); line-height: 0.92; letter-spacing: -0.02em; }
.billet-talon .jour-grand { font-weight: 900; font-size: var(--t-h3); line-height: 1.1; }
.billet-talon .jour-grand::first-letter { text-transform: uppercase; }
.billet-talon .ref { margin-top: auto; padding-top: 20px; font-size: var(--t-petit); }
.billet-corps { grid-column: 3 / span 4; padding: clamp(24px, 3vw, 44px) var(--marge); }
.billet-corps h3 { font-size: var(--t-h2); line-height: 1; }
.billet-corps p { margin-top: 14px; max-width: 34em; }
.billet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Pied ---------- */
.pied { background: var(--sur); color: var(--papier); }
.pied a { color: var(--papier); }
.pied-bloc { grid-column: span 2; padding: clamp(28px, 4vw, 56px) var(--marge); font-size: var(--t-petit); line-height: 1.6; }
.pied-bloc h2 { font-size: 1.375rem; letter-spacing: 0; margin-bottom: 12px; }
.pied-bloc li + li { margin-top: 4px; }
.pied-marque { font-weight: 900; font-size: clamp(2rem, 1.4rem + 2.6vw, 4rem); line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.pied-marque span { color: var(--kaki); }
.pied-bas { grid-column: 1 / -1; border-top: 1px solid rgb(232 236 230 / 0.35); padding: 16px var(--marge) 22px; font-size: 0.875rem; color: var(--papier-doux); display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; }

/* ---------- Pages de texte (mentions, confidentialité) ---------- */
.texte-tete { grid-column: 1 / -1; padding: clamp(40px, 7vw, 96px) var(--marge) clamp(24px, 3vw, 40px); border-bottom: var(--trait) solid var(--sur); }
.texte-tete h1 { font-size: var(--t-h2); line-height: 1.02; letter-spacing: -0.015em; }
.texte-tete p { margin-top: 14px; color: var(--sur-doux); max-width: 40em; }
.texte { grid-column: 2 / span 4; padding: clamp(28px, 4vw, 56px) var(--marge) clamp(48px, 7vw, 96px); }
.texte h2 { font-size: var(--t-h3); letter-spacing: 0; line-height: 1.15; margin-top: 2em; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte ul { margin-top: 0.8em; max-width: 42em; }
.texte ul { list-style: disc; padding-left: 1.2em; }
.texte li + li { margin-top: 0.35em; }
.a-completer { background: var(--kaki); padding: 0 0.3em; font-weight: 900; }

/* ---------- Mouvement ---------- */
@media (hover: hover) and (pointer: fine) {
  .languette:hover { background: var(--kaki); transform: translateY(-5px); }
  .bouton:hover { background: var(--sur); color: var(--papier); }
  .choix-option:hover input:not(:checked) + span,
  .jour:hover input:not(:checked) + span,
  .heure:hover input:not(:checked):not(:disabled) + span { background: rgb(255 106 61 / 0.3); }
  .question summary:hover { background: rgb(36 56 172 / 0.08); }
}

@media (prefers-reduced-motion: no-preference) {
  /* À l'ouverture, la seconde encre arrive mal repérée puis se cale. */
  .une .encre-2 { animation: reperage 900ms var(--ease-out) 120ms both; }
  .une .touche[pathLength] { stroke-dasharray: 1; animation: trace 620ms var(--ease-out) both; animation-delay: calc(520ms + var(--rang, 0) * 90ms); }
  @keyframes reperage {
    from { transform: translate(7px, -5px); }
    to { transform: none; }
  }
  @keyframes trace {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
  .billet:not([hidden]) .billet-talon { animation: pose 420ms var(--ease-out) both; }
  @keyframes pose {
    from { opacity: 0; transform: translateY(-14px) rotate(-1.2deg); }
    to { opacity: 1; transform: none; }
  }
}

.calme .une .encre-2, .calme .une .touche, .calme .billet-talon { animation: none !important; }
.calme { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Quatre volets ---------- */
@media (max-width: 1099px) {
  :root { --volets: 4; }
  .marque { grid-column: 1 / span 1; font-size: 1.25rem; }
  .navigation { grid-column: 2 / span 2; }
  .navigation ul { padding: 0 12px; }
  .navigation a { font-size: 0.9375rem; }
  .reserver-haut { grid-column: 4; }

  .une { grid-template-rows: auto auto; min-height: 0; }
  .titre { grid-column: 1 / span 3; grid-row: 1; padding-top: clamp(20px, 3.4vw, 36px); padding-bottom: clamp(20px, 3vw, 30px); }
  .titre h1 { font-size: clamp(2.75rem, 7.2vw, 6rem); }
  .titre .chapo { margin-top: 14px; }
  .titre .adresse, .kanji { display: none; }
  .languettes { grid-column: 4; grid-row: 1; display: flex; flex-direction: column; border-top: 0; border-left: var(--trait) dashed var(--sur); }
  .languettes-appel { padding: 14px 16px 10px; }
  .languettes-appel h2 { font-size: 1.125rem; }
  .languettes-appel p { margin-top: 2px; }
  .languettes-liste { flex: 1; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(46px, 1fr); }
  .languette { min-height: 0; padding: 6px 16px; border-left: 0; border-top: var(--trait) dashed var(--sur); place-items: center start; }
  .languette-texte { writing-mode: horizontal-tb; transform: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
  .languette-heure { font-size: 1.25rem; }
  .languette:nth-child(n + 5) { display: none; }
  .frise { grid-column: 1 / -1; grid-row: 2; border-top: var(--trait) solid var(--sur); }

  .geste-photo { grid-column: 1 / -1; border-right: 0; }
  .geste-texte { grid-column: 1 / -1; border-top: var(--trait) solid var(--sur); padding-top: clamp(28px, 5vw, 48px); }
  .geste-pouces { grid-column: span 2; }
  .points { grid-column: span 2; border-right: 0; }
  .limite { grid-column: 1 / -1; border-top: var(--trait) solid var(--sur); }

  .tarifs-tete { grid-column: 1 / -1; }
  .tarifs-note { grid-column: 1 / -1; }
  .seance-nom { grid-column: 1 / span 2; }
  .seance-duree { grid-column: 3 / span 1; }
  .seance-prix { grid-column: 4; flex-direction: column; align-items: flex-start; justify-content: center; }

  .praticien-photo { grid-column: 1 / span 2; }
  .praticien-texte { grid-column: 3 / span 2; }
  .cabinet { grid-column: 1 / -1; border-left: 0; border-top: var(--trait) solid var(--papier); display: grid; grid-template-columns: 1fr 1fr; }

  .avis { grid-column: 1 / -1; border-right: 0; }
  .questions-tete { grid-column: 1 / -1; }
  .questions-liste { grid-column: 1 / -1; border-left: 0; border-top: var(--trait) solid var(--sur); padding-top: 0; }

  .etape { grid-column: span 2; }
  .etape:nth-of-type(2) { border-right: 0; }
  .etape:nth-of-type(3) { grid-column: 1 / -1; border-top: var(--trait) solid var(--sur); }
  .billet-talon { grid-column: 1 / span 2; }
  .billet-corps { grid-column: 3 / span 2; }
  .pied-bloc { grid-column: span 2; }
  .pied-bloc:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .texte { grid-column: 1 / -1; }
}

/* ---------- Deux volets : le feuillet replié, sur téléphone ---------- */
@media (max-width: 699px) {
  :root { --volets: 2; --barre: 56px; --marge: 18px; }
  .demo { font-size: 0.875rem; }
  .demo-detail { display: none; }
  .demo-court { display: inline; }
  .barre { grid-template-columns: 1fr auto auto; }
  .marque { grid-column: 1; font-size: 1.125rem; padding-right: 8px; }
  .navigation { display: none; }
  .menu { display: block; grid-column: 2; position: static; }
  .menu summary {
    list-style: none; cursor: pointer; height: 100%; min-height: var(--barre);
    display: flex; align-items: center; padding: 0 16px; font-weight: 900;
    border-left: var(--trait) solid var(--sur);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--sur); color: var(--papier); }
  .menu ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--papier); border-bottom: var(--trait) solid var(--sur); }
  .menu li { border-top: var(--trait) solid var(--sur); }
  .menu a { display: block; padding: 16px var(--marge); font-weight: 900; font-size: 1.25rem; text-decoration: none; }
  .reserver-haut { grid-column: 3; padding: 0 18px; font-size: 1.125rem; }

  .titre { grid-column: 1 / -1; padding: 26px var(--marge) 22px; }
  .titre h1 { font-size: clamp(2.75rem, 12.2vw, 4rem); }
  .titre .chapo { font-size: var(--t-corps); margin-top: 16px; }

  /* Sur téléphone : le titre, les créneaux à détacher, puis l'heure en quatre cases. */
  .une { grid-template-rows: auto auto auto; }
  .languettes { grid-column: 1 / -1; grid-row: 2; display: block; border-left: 0; border-bottom: var(--trait) solid var(--sur); }
  .languettes-appel { padding: 10px var(--marge) 8px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
  .languettes-appel p { margin: 0; }
  .languettes-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: auto; border-top: var(--trait) dashed var(--sur); }
  .languette { min-height: 98px; padding: 8px 4px; border-top: 0; border-left: var(--trait) dashed var(--sur); place-items: center; }
  .languette:first-child { border-left: 0; }
  .languette-texte { writing-mode: vertical-rl; transform: rotate(180deg); display: block; }
  .languette-heure { font-size: 1.25rem; }

  .frise { grid-row: 3; border-top: 0; }
  .pas-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pas { padding: 14px var(--marge) 18px; }
  .pas:nth-child(n + 3) { border-top: 1px solid var(--pli); }
  .pas-numero { font-size: 2.75rem; }
  .pas-minutes { top: 18px; font-size: 0.875rem; padding: 4px 9px; }
  .figure { margin-top: 6px; }
  .pas h3 { margin-top: 12px; font-size: 1.25rem; }
  .pas p { font-size: 0.9375rem; margin-top: 6px; }
  .regle { height: 62px; }
  .regle-chiffres { top: 24px; font-size: var(--t-corps); }
  .regle-touche { bottom: 6px; height: 10px; }

  .section-tete { padding-top: 44px; }
  .geste-pouces, .points, .limite { grid-column: 1 / -1; border-right: 0; }
  .geste-pouces img { aspect-ratio: 3 / 2; }
  .points { border-top: var(--trait) solid var(--sur); }

  .seance { grid-template-columns: 1fr auto; }
  .seance-nom { grid-column: 1 / -1; padding-bottom: 10px; }
  .seance-duree { grid-column: 1 / -1; padding: 4px 0 0; }
  .seance-prix { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; border-left: 0; padding: 14px var(--marge) 20px; }

  .praticien-photo, .praticien-texte { grid-column: 1 / -1; }
  .cabinet { display: flex; }
  .etape { grid-column: 1 / -1 !important; border-right: 0; border-top: var(--trait) solid var(--sur); }
  .etape:first-of-type { border-top: 0; }
  .billet-talon, .billet-corps { grid-column: 1 / -1; }
  .billet-talon { border-right: 0; border-bottom: var(--trait) dashed var(--sur); }
  .billet-actions .bouton { width: 100%; }
  .pied-bloc { grid-column: 1 / -1; padding-bottom: 8px; }
}
