/* SONZ’s BarberShop · proposition 3 « Le carnet de rendez-vous »
   Le registre du salon, ouvert sur le comptoir en bois sombre.
   Imprimé : Libre Franklin. Écrit à la main : Besley italique. Même maison que les propositions 1 et 2. */

:root {
  --ebony: #14110F;
  --walnut: #3B2A1F;
  --walnut-2: #2E2018;
  --cream: #F2EBDF;
  --cream-2: #E8DFD0;
  --paper: #FBF7F0;
  --ink: #1B1714;
  --ink-2: #4F463E;
  --brass: #C29A48;
  --brass-ink: #7A5A1E;
  --brass-hi: #D2B98A;
  --on-dark-2: #BDB3A6;
  --err: #9A3B26;
  --rule: rgb(27 23 20 / .18);
  --rule-dark: rgb(242 235 223 / .14);
  --ruling: rgb(59 42 31 / .22);
  --focus: #7A5A1E;

  --display: "Besley", "Clarendon", "Rockwell", Georgia, serif;
  --text: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;

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

  --gutter: clamp(1rem, 4vw, 3rem);
  --desk-x: clamp(.625rem, 3vw, 3rem);
  --header-h: 3.75rem;
  --bar-h: 4.5rem;
  --l: 1.75rem;                 /* la réglure : une ligne du carnet */
  --marge: 3.25rem;

  --grain-paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-wood: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='720' height='360'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0025 .14' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .06 0 0 0 0 .035 0 0 0 0 .02 .7 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='720' height='360' filter='url(%23w)'/%3E%3C/svg%3E");
  --ruled: linear-gradient(transparent calc(var(--l) - 7px), var(--ruling) calc(var(--l) - 7px), var(--ruling) calc(var(--l) - 6px), transparent calc(var(--l) - 6px)) 0 0 / 100% var(--l);
}
@media (max-width: 639px) {
  :root { --marge: 2.25rem; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  hanging-punctuation: first allow-end;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--walnut);
  background-image: var(--grain-wood), linear-gradient(180deg, #43301F, var(--walnut) 30%, #34251B);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

::selection { background: var(--brass); color: var(--ebony); }

h1, h2, h3, h4, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, summary, td { text-wrap: pretty; hyphens: auto; }
.tnum, table, .summary__dl, .slot, .day { font-variant-numeric: tabular-nums lining-nums; }

.top, .apercu, .bar, .foot, .desk { --focus: #D2B98A; }
.spread, .menu { --focus: #7A5A1E; }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--cream); color: var(--ink); padding: .75rem 1rem; text-decoration: none;
  font-weight: 600; --focus: #7A5A1E;
}
.skip:focus { top: 1rem; }

.arr {
  display: inline-block; width: .95em; height: .95em; flex: none;
  vertical-align: -.12em; background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h11M9 3.5 13.5 8 9 12.5'/%3E%3C/svg%3E");
}
.arr--ne { transform: rotate(-45deg); width: .8em; height: .8em; }
.arr--w { transform: rotate(180deg); margin-right: .1em; }

.tag {
  display: inline-block;
  font-family: var(--text); font-weight: 600; font-size: .6875rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .15rem .45rem; border: 1px solid currentColor; border-radius: 2px;
  margin-right: .4rem; vertical-align: .1em;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.25rem;
  border-radius: 2px; border: 1.5px solid transparent;
  font-family: var(--text); font-weight: 650; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; text-align: center; line-height: 1.15;
  touch-action: manipulation; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; }
.btn--brass { background: var(--brass); color: var(--ebony); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost { border-color: rgb(27 23 20 / .35); color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--brass:hover { background: var(--brass-hi); }
  .btn--ink:hover { background: var(--walnut); }
  .btn--line:hover, .btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
}

/* ---------- bandeau aperçu ---------- */
.apercu { background: var(--ebony); color: var(--cream); font-size: .875rem; line-height: 1.45; border-bottom: 1px solid rgb(194 154 72 / .35); }
.apercu__in {
  width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .25rem 1.5rem; padding-block: .6rem;
}
.apercu p { max-width: 72ch; }
.apercu__tag { font-family: var(--display); font-style: italic; font-weight: 600; font-size: .9375rem; color: var(--brass-hi); margin-right: .35rem; }
.apercu__txt { color: var(--on-dark-2); }
.apercu__link {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-weight: 650; color: var(--cream);
  text-decoration: underline; text-decoration-color: rgb(210 185 138 / .6);
}
@media (hover: hover) and (pointer: fine) {
  .apercu__link:hover { text-decoration-color: currentColor; }
}

/* ---------- en-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgb(46 32 24 / .97);
  border-bottom: 1px solid rgb(194 154 72 / .3);
  color: var(--cream);
}
.top__in {
  width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}
.top__mark {
  display: inline-flex; align-items: center; gap: .25em; min-height: 2.75rem;
  font-family: var(--display); font-size: 1.25rem; line-height: 1; letter-spacing: -.01em;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.top__mark span { font-weight: 900; }
.top__mark i { font-weight: 500; color: var(--brass-hi); }
.top__nav { display: none; }
.top__nav ul { display: flex; gap: .1rem; }
.top__nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .65rem;
  font-weight: 550; font-size: .9375rem; text-decoration: none; position: relative;
}
.top__nav a::after {
  content: ""; position: absolute; left: .65rem; right: .65rem; bottom: .6rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .top__nav a:hover::after { transform: scaleX(1); }
}
.top__cta { display: none; }
.top__menu {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 .25rem 0 .75rem;
  background: none; border: 0; font-weight: 600; font-size: 1rem;
  transition: transform 160ms var(--ease-out);
}
.top__menu:active { transform: scale(.97); }
.top__menu-icon { width: 22px; height: 12px; position: relative; }
.top__menu-icon::before, .top__menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform 220ms var(--ease-out);
}
.top__menu-icon::before { top: 0; }
.top__menu-icon::after { bottom: 0; }
.top__menu[aria-expanded="true"] .top__menu-icon::before { transform: translateY(5.25px) rotate(45deg); }
.top__menu[aria-expanded="true"] .top__menu-icon::after { transform: translateY(-5.25px) rotate(-45deg); }
@media (min-width: 640px) {
  .top__cta { display: inline-flex; }
}
@media (min-width: 1100px) {
  .top__nav { display: block; }
  .top__menu { display: none; }
}

/* le menu : la table du carnet, sur papier réglé */
.menu {
  --l: 3.5rem;
  --ruled: linear-gradient(transparent calc(var(--l) - 17px), var(--ruling) calc(var(--l) - 17px), var(--ruling) calc(var(--l) - 16px), transparent calc(var(--l) - 16px)) 0 0 / 100% var(--l);
  position: fixed; inset: 0; z-index: 39;
  background: var(--ruled), var(--cream) var(--grain-paper);
  background-position: 0 calc(var(--menu-top, var(--header-h)) + 1rem), 0 0;
  color: var(--ink);
  padding: calc(var(--menu-top, var(--header-h)) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background-attachment: local, local;
  overflow-y: auto;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.menu.is-open { opacity: 1; transform: none; }
.menu__t { font: 650 .75rem/3.5rem var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.menu__list a {
  display: flex; align-items: baseline; gap: .9rem;
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.875rem, 8.5vw, 2.5rem); line-height: 3.5rem; letter-spacing: -.01em; text-decoration: none;
}
.menu__n { font-family: var(--text); font-style: normal; font-size: .75rem; font-weight: 600; letter-spacing: .12em; color: var(--brass-ink); min-width: 2ch; }
.menu__foot { display: grid; gap: .25rem; color: var(--ink-2); }
.menu__foot a { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* =========================================================
   LE COMPTOIR, LES PLANCHES, LES PAGES
   ========================================================= */
.desk { display: block; padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3vw, 2rem); }
.spread {
  position: relative;
  width: min(100% - 2 * var(--desk-x), 76rem);
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  display: grid;
  color: var(--ink);
  box-shadow: 0 2px 0 #D9CDB8, 0 4px 0 #E6DCCB, 0 6px 0 #CFC2AB, 0 36px 60px -30px rgb(0 0 0 / .75);
}
.page {
  position: relative; min-width: 0;
  background: var(--cream) var(--grain-paper);
  padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 5vw, 4rem);
}
@media (max-width: 1099px) {
  .page + .page { border-top: 1px solid rgb(59 42 31 / .3); box-shadow: inset 0 14px 18px -16px rgb(20 17 15 / .35); }
}
@media (min-width: 1100px) {
  .spread {
    grid-template-columns: [verso-start] minmax(0, 1fr) [gutter] minmax(0, 1fr) [recto-end];
    box-shadow:
      -2px 2px 0 #D9CDB8, 2px 2px 0 #D9CDB8, -4px 4px 0 #E6DCCB, 4px 4px 0 #E6DCCB,
      -6px 6px 0 #CFC2AB, 6px 6px 0 #CFC2AB, 0 40px 70px -34px rgb(0 0 0 / .8);
  }
  /* le pli : ombre du dos du carnet */
  .spread::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 5rem; margin-left: -2.5rem; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgb(20 17 15 / .1) 40%, rgb(20 17 15 / .22) 50%, rgb(20 17 15 / .1) 60%, transparent);
  }
  .page--verso { padding-right: clamp(2.5rem, 4vw, 3.75rem); }
  .page--recto { padding-left: clamp(2.5rem, 4vw, 3.75rem); }
}

/* titre courant et folio */
.rh {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--text); font-weight: 600; font-size: .6875rem; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  padding-bottom: .55rem; border-bottom: 1px solid rgb(59 42 31 / .4);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}
.folio { position: absolute; bottom: 1.1rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: oldstyle-nums; }
.page--verso .folio { left: clamp(1rem, 4vw, 3rem); }
.page--recto .folio { right: clamp(1rem, 4vw, 3rem); }

/* le corps de page : marge à double filet laiton + colonne d’écriture */
.pb {
  display: grid; grid-template-columns: [marge] var(--marge) [texte] minmax(0, 1fr);
  background: linear-gradient(90deg,
    transparent calc(var(--marge) - .85rem), rgb(194 154 72 / .9) 0 calc(var(--marge) - .85rem + 1px),
    transparent 0 calc(var(--marge) - .85rem + 4px), rgb(194 154 72 / .9) 0 calc(var(--marge) - .85rem + 5px),
    transparent 0) no-repeat;
}
.pb > * { grid-column: texte; min-width: 0; }
.pb > .num { grid-column: marge; grid-row: 1; align-self: baseline; }
.pb > .num + .h2 { grid-row: 1; align-self: baseline; }
.pb--free { display: flow-root; background: none; }
.num {
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.125rem; line-height: 1.6;
  color: var(--brass-ink); font-variant-numeric: lining-nums;
}
.pb--free > .num { margin-bottom: .25rem; }
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem); line-height: 1.06; letter-spacing: -.015em;
  margin-bottom: 1rem;
}
@media (min-width: 1100px) {
  .pb > .h2 { line-height: 2.625rem; min-height: calc(3 * var(--l)); margin-bottom: 1rem; }
  .pb--free > .h2--suite { line-height: 2.625rem; min-height: calc(3 * var(--l)); margin: calc(1.125rem * 1.6 + .25rem) 0 1rem; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .pb > .h2 { font-size: 2.125rem; }
}
.h2--suite { color: var(--ink-2); font-weight: 600; }
.h2--suite i { font-weight: 500; }
@media (max-width: 1099px) {
  .h2--suite { display: none; }
}
.fn--strong strong { color: var(--ink); font-weight: 650; }
.note, .lede { font-size: .9375rem; color: var(--ink-2); max-width: 48ch; margin-bottom: var(--l); }
.note strong { color: var(--ink); font-weight: 650; }
.fn { font-size: .8125rem; line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin-top: 1.25rem; }

/* réglure : seules les rangées multiples de --l la portent */
.ruled { line-height: var(--l); background: var(--ruled); }
.ink { display: inline-block; font-family: var(--display); font-style: italic; font-weight: 500; color: var(--ink); }

/* liste d’écritures, numérotées dans la marge */
.entries { counter-reset: l; }
.entries li {
  counter-increment: l; position: relative;
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: .75rem; align-items: start;
}
.entries li::before {
  content: counter(l, decimal-leading-zero);
  content: counter(l, decimal-leading-zero) / "";
  position: absolute; right: calc(100% + 1.15rem); top: 0;
  font: 500 .6875rem/var(--l) var(--text); color: rgb(59 42 31 / .8); font-variant-numeric: tabular-nums;
}
.entries__k { font-family: var(--text); font-weight: 650; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--walnut); translate: 0 2px; }
.entries .ink { font-size: 1.125rem; }
@media (max-width: 479px) {
  .entries li { grid-template-columns: 1fr; }
}

/* =========================================================
   PLANCHE 1 : page de titre, page du jour
   ========================================================= */
.label {
  container-type: inline-size;
  border: 1px solid var(--walnut);
  box-shadow: inset 0 0 0 4px var(--cream), inset 0 0 0 5px var(--walnut);
  padding: clamp(1.1rem, 4vw, 2rem) clamp(1.1rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2.25rem);
}
.label__k {
  font-family: var(--text); font-weight: 650; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--walnut);
  padding-bottom: .55rem; border-bottom: 1px solid var(--walnut); margin-bottom: clamp(1rem, 3cqi, 1.5rem);
}
.wm { font-family: var(--display); color: var(--ink); }
.wm__1 { display: block; font-weight: 900; font-size: min(25cqi, 8rem); line-height: .84; letter-spacing: -.025em; }
.wm__2 { display: block; font-style: italic; font-weight: 500; font-size: min(17cqi, 5.5rem); line-height: .98; letter-spacing: -.01em; color: var(--brass-ink); padding-right: .05em; }
.nw { white-space: nowrap; }
.label__sub { margin-top: 1rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.125rem; color: var(--ink-2); }
.hero__addr { margin-top: 1.5rem; font-family: var(--display); font-weight: 600; font-size: 1.125rem; line-height: 1.5; }
.hero__addr a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 700; font-size: 1.375rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.hero__quote { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.125rem; line-height: 1.4; max-width: 34ch; }
.hero__quote span { display: block; margin-top: .35rem; font-family: var(--text); font-style: normal; font-weight: 600; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 479px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

/* la page du jour */
.page--today .rh { padding-right: calc(clamp(1.75rem, 7vw, 4rem) + 1.75rem); }
.ribbon { position: absolute; top: -6px; right: clamp(1.75rem, 7vw, 4rem); width: 18px; height: clamp(7rem, 16vw, 10rem); z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 2px rgb(20 17 15 / .35)); }
.ribbon::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #9C7832, var(--brass) 35%, #D9B96E 52%, var(--brass) 68%, #94712E);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%);
}
.today__date { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "d w" "d m"; column-gap: 1rem; align-items: end; margin-bottom: 1.25rem; }
.today__w { grid-area: w; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); line-height: 1.1; color: var(--brass-ink); }
.today__d { grid-area: d; font-family: var(--display); font-weight: 900; font-size: clamp(5.5rem, 3.5rem + 8vw, 9.5rem); line-height: .8; letter-spacing: -.045em; }
.today__d .ink { font-style: normal; font-weight: 900; padding-right: .04em; }
.today__m { grid-area: m; font-family: var(--text); font-weight: 650; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .55rem; }
.today__fallback { font-family: var(--display); font-style: italic; font-size: 1.25rem; line-height: 1.4; margin-bottom: 1.25rem; }
.today__lines { position: relative; }
.tl { position: relative; height: var(--l); }
.tl__h {
  position: absolute; right: calc(100% + 1.15rem); top: 0;
  font: 600 .75rem/var(--l) var(--text); color: var(--ink-2); font-variant-numeric: tabular-nums;
}
@media (max-width: 639px) {
  .page--today, .done__page { --marge: 3rem; }
  .tl__h { right: calc(100% + 1.15rem); font-size: .6875rem; }
}
.tl__w { font: 600 .6875rem/var(--l) var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tl-now {
  position: absolute; left: -.85rem; right: 0; height: 2px;
  top: calc(var(--at) * var(--l) + var(--l) - 7.5px);
  background: var(--brass-ink);
}
.tl-now span {
  position: absolute; right: 0; bottom: 4px;
  font: 650 .6875rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink);
  background: var(--cream); padding-left: .4rem;
}
.is-closed .today__lines::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--walnut) calc(50% - 1px), var(--walnut) calc(50% + .5px), transparent calc(50% + .5px));
}
.today__closed { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.status { display: flex; align-items: baseline; gap: .6rem; margin-top: 1.25rem; font-weight: 600; font-size: 1rem; }
.status__dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-2); transform: translateY(-.05em); }
.status.is-open .status__dot { background: var(--brass-ink); box-shadow: 0 0 0 3px rgb(194 154 72 / .35); }
.today__note { margin-top: .5rem; font-size: .8125rem; color: var(--ink-2); max-width: 46ch; }

/* =========================================================
   PLANCHE 2 : la carte, en colonnes de registre
   ========================================================= */
.tab { container-type: inline-size; }
#carte { counter-reset: n; }
.tab tbody tr { counter-increment: n; }
.tab tbody td:first-child { position: relative; }
.tab tbody td:first-child::before {
  content: counter(n, decimal-leading-zero);
  content: counter(n, decimal-leading-zero) / "";
  position: absolute; right: calc(100% + 1.15rem); top: 0;
  font: 500 .6875rem/var(--l) var(--text); color: rgb(59 42 31 / .8); font-variant-numeric: tabular-nums;
}
.tab table { width: 100%; border-collapse: collapse; line-height: var(--l); background: var(--ruled); }
.tab table + table { margin-top: var(--l); }
.tab caption {
  caption-side: top; text-align: left;
  font: 700 .75rem/var(--l) var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.tab caption span { color: var(--ink-2); font-weight: 500; letter-spacing: .1em; margin-left: .4rem; }
.tab th {
  height: var(--l); padding: 0 .5rem 0 0; text-align: left; vertical-align: top;
  font: 600 .6875rem/var(--l) var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  background:
    linear-gradient(var(--walnut) 0 0) 0 calc(100% - 3px) / 100% 1px no-repeat,
    linear-gradient(var(--walnut) 0 0) 0 100% / 100% 1px no-repeat,
    var(--cream);
}
.tab td { height: calc(2 * var(--l)); padding: 0 .5rem 0 0; vertical-align: top; }
.tab :is(td, th) + :is(td, th) { box-shadow: inset 1px 0 0 rgb(59 42 31 / .3); padding-left: .5rem; }
.tab .ink { display: block; font-size: 1.125rem; }
.pr { display: block; font-size: .8125rem; color: var(--ink-2); }
.c-dur { width: 4.25rem; font-weight: 600; font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.c-prix { width: 4.5rem; text-align: right !important; white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.c-prix small { font-family: var(--text); font-weight: 600; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.c-prix--sm { font-family: var(--text); font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
th.c-prix { font-family: var(--text); font-size: .6875rem; }
.c-go { width: 5.25rem; text-align: right !important; padding-right: 0 !important; }
.go {
  display: flex; align-items: flex-start; justify-content: flex-end; min-height: calc(2 * var(--l));
  font-weight: 600; font-size: .8125rem; line-height: var(--l); color: var(--brass-ink);
  text-decoration: underline; text-decoration-color: rgb(122 90 30 / .45);
  touch-action: manipulation; transition: transform 160ms var(--ease-out);
}
.go:active { transform: scale(.97); }
.go--na { color: var(--ink-2); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .go:hover { text-decoration-color: currentColor; }
}
.dur-m { display: none; }
@container (max-width: 26rem) {
  .c-dur { display: none; }
  .dur-m { display: inline; font-weight: 600; }
  .c-go { width: 4.5rem; }
}

/* =========================================================
   PLANCHE 3 : la maison, les notes
   ========================================================= */
.scores { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); column-gap: 1.25rem; border-top: 1px solid var(--ink); padding-top: .75rem; }
.score { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.score + .score { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
.score dt { align-self: start; font-size: .75rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.score__num { align-self: end; margin: .4rem 0 .3rem; font-size: clamp(4.25rem, 3rem + 6vw, 7.5rem); line-height: .85; letter-spacing: -.04em; }
.score__num .ink { font-style: normal; font-weight: 900; padding-right: .04em; }
.score + .score .score__num .ink { color: var(--ink-2); }
.score__of { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; }
.notes__p { margin-top: 1.5rem; max-width: 44ch; }

/* =========================================================
   PLANCHE 4 : la rue, la semaine
   ========================================================= */
.reg { width: 100%; border-collapse: collapse; line-height: var(--l); background: var(--ruled); margin-bottom: var(--l); }
.reg th { text-align: left; font: 600 .6875rem/var(--l) var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0; height: var(--l);
  background: linear-gradient(var(--walnut) 0 0) 0 calc(100% - 3px) / 100% 1px no-repeat, linear-gradient(var(--walnut) 0 0) 0 100% / 100% 1px no-repeat; }
.reg td { padding: 0; vertical-align: top; height: var(--l); }
.reg td:first-child, .reg th:first-child { width: 4.5rem; font-weight: 600; font-size: .875rem; color: var(--ink-2); }
.reg td + td, .reg th + th { box-shadow: inset 1px 0 0 rgb(59 42 31 / .3); padding-left: .75rem; }
.reg .ink { font-size: 1.1875rem; }
.reg .is-old .ink { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--walnut); text-decoration-thickness: 1.5px; }
.reg .is-now .ink { font-weight: 600; }
.reg .is-now td:first-child { color: var(--brass-ink); }
.reg__tag { font-size: .8125rem; color: var(--ink-2); margin-left: .35rem; }
.rue__p p { max-width: 52ch; margin-bottom: .9rem; }

.week { border-top: 1px solid var(--ink); line-height: var(--l); background: var(--ruled); }
.week li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: start; min-height: calc(2 * var(--l)); }
.week__d { font-family: var(--text); font-weight: 600; font-size: .875rem; letter-spacing: .04em; color: var(--ink); line-height: var(--l); padding-top: var(--l); translate: 0 2px; }
.week__h { display: flex; gap: .4rem; align-items: baseline; line-height: var(--l); padding-top: var(--l); }
.week__h .ink { font-size: 1.375rem; }
.week__h .ink + .ink::before { content: "–"; display: inline-block; margin-right: .4rem; color: var(--ink-2); font-style: normal; }
.week .is-closed .week__h { font-family: var(--display); font-style: italic; font-size: 1.125rem; color: var(--ink-2); }
.week .is-closed::after {
  content: ""; position: absolute; left: 6.5rem; right: 0; top: 0; height: calc(2 * var(--l) - 6px); pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - .5px), rgb(59 42 31 / .55) calc(50% - .5px), rgb(59 42 31 / .55) calc(50% + .5px), transparent calc(50% + .5px));
}
.week li.is-today .week__d { color: var(--brass-ink); font-weight: 700; }
@media (max-width: 479px) {
  .week li.is-today .week__d::after { content: "auj." !important; }
}
.week li.is-today .week__d::after { content: "aujourd’hui"; margin-left: .5rem; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; padding: .1rem .35rem; border: 1px solid currentColor; border-radius: 2px; }
.week li.is-today::before {
  content: ""; position: absolute; right: calc(100% + 1.4rem); top: calc(var(--l) + .15rem); width: 10px; height: 1.6rem;
  background: var(--brass); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

/* =========================================================
   PLANCHE 5 : réserver une ligne
   ========================================================= */
.book__links { display: grid; gap: .75rem; justify-items: start; margin-bottom: 2rem; }
.book__sim { font-size: .875rem; color: var(--ink-2); }
.book__sim .tag { color: var(--brass-ink); }
.rules { margin-top: 1.5rem; font-size: .8125rem; color: var(--ink-2); max-width: 46ch; }
.rules strong { color: var(--ink); font-weight: 600; }
.summary { display: none; }
@media (min-width: 1100px) {
  .spread--book .page--verso .pb { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .summary { display: block; border-top: 3px double var(--ink); padding-top: .6rem; }
}
.summary__t { font-family: var(--text); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: .2rem; }
.summary__row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; align-items: baseline; padding-block: .3rem; border-bottom: 1px solid var(--ruling); }
.summary__row dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.summary__row dd { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.0625rem; }
.summary__row--total dd { color: var(--brass-ink); font-style: normal; font-weight: 700; }
.summary__edit {
  flex: none; background: none; border: 0; padding: 0 .1rem; min-height: 2.75rem;
  font-family: var(--text); font-style: normal; font-weight: 600; font-size: .8125rem; color: var(--brass-ink);
  text-decoration: underline; text-underline-offset: .2em;
}
.nojs { padding: 1rem; border: 1px solid var(--rule); }

/* ---------- module de réservation ---------- */
.book__pick {
  font-size: .875rem; line-height: 1.4; padding: .7rem .9rem; margin-bottom: 1.25rem;
  background: var(--cream-2); border-left: 3px solid var(--brass);
}
.book__pick span { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
@media (min-width: 1000px) {
  .book__pick { display: none !important; }
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; border-bottom: 1px solid var(--rule); }
.steps__b {
  width: 100%; min-height: 3.25rem; padding: .4rem .2rem .55rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-size: .75rem; font-weight: 550; text-align: left; color: var(--ink-2);
  transition: transform 160ms var(--ease-out), color 200ms ease, border-color 200ms ease;
}
.steps__b:active:not(:disabled) { transform: scale(.97); }
.steps__b:disabled { cursor: default; opacity: .5; }
.steps__b[aria-current="step"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 650; }
.steps__n { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1; }
@media (min-width: 640px) {
  .steps__b { flex-direction: row; align-items: baseline; gap: .5rem; font-size: .875rem; padding-inline: .1rem; }
}

.panel { padding-top: 1.75rem; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.panel.is-enter { opacity: 0; transform: translateX(12px); }
.panel.is-enter-back { opacity: 0; transform: translateX(-12px); }
.panel__t {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.625rem, 1.1rem + 2vw, 2.375rem); line-height: 1.05; letter-spacing: -.015em;
}
.panel__t:focus { outline: none; }
.panel__t:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.panel__note { margin-top: .5rem; font-size: .875rem; color: var(--ink-2); }
.panel__nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.opts { margin-top: 1.25rem; }
.opts__g {
  font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink);
  padding: 1.25rem 0 .4rem; border-bottom: 1px solid var(--ink);
}
.opts__g:first-child { padding-top: 0; }
.opt {
  position: relative;
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto; gap: .9rem; align-items: center;
  min-height: 3.5rem; padding: .55rem .5rem;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 160ms ease;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  border: 1.5px solid var(--ink-2); background: var(--paper);
  display: grid; place-items: center;
}
.opt__box::after {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink);
  opacity: 0; transform: scale(.6);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.opt input:checked + .opt__box { border-color: var(--ink); }
.opt input:checked + .opt__box::after { opacity: 1; transform: scale(1); }
.opt input:focus-visible + .opt__box { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.opt:has(input:checked) { background: var(--cream-2); }
.opt__name { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.opt__name small { display: block; font-family: var(--text); font-weight: 400; font-size: .8125rem; color: var(--ink-2); margin-top: .1rem; }
.opt__price { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.opt__price small { font-family: var(--text); font-weight: 500; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .opt:hover { background: var(--cream-2); }
}

.days { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.day { position: relative; cursor: pointer; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 4.5rem; padding: .35rem .1rem;
  border: 1px solid var(--rule); background: var(--paper); border-radius: 2px;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.day:active > span { transform: scale(.97); }
.day__w { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.day__d { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; }
.day__m { font-size: .75rem; font-weight: 500; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.day input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.day input:checked + span .day__w, .day input:checked + span .day__m { color: var(--brass-hi); }
.day input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.day input:disabled + span { background: transparent; border-style: dashed; cursor: not-allowed; }
.day input:disabled + span .day__d { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.day input:disabled + span .day__m { font-style: italic; }
.day:has(input:disabled) { cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .day:hover input:not(:disabled):not(:checked) + span { border-color: var(--ink); }
}

.slots { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.slots__g h4 { font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: .5rem; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot > span {
  display: grid; place-items: center; min-height: 2.875rem;
  border: 1px solid var(--rule); background: var(--paper); border-radius: 2px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.slot:active > span { transform: scale(.97); }
.slot input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.slot input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.slot input:disabled + span { background: transparent; color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--brass-ink); border-style: dashed; cursor: not-allowed; }
.slot:has(input:disabled) { cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .slot:hover input:not(:disabled):not(:checked) + span { border-color: var(--ink); }
}
.slots__empty { padding: 1rem; border: 1px dashed var(--rule); color: var(--ink-2); }

.fields { margin-top: 1.25rem; display: grid; gap: 1.1rem; max-width: 30rem; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.field input {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  font-size: 1.0625rem;
  background: var(--paper); border: 1.5px solid rgb(27 23 20 / .4); border-radius: 2px;
  transition: border-color 160ms ease;
}
.field input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.hint { font-size: .8125rem; color: var(--ink-2); margin-top: .35rem; }
.err { font-size: .875rem; color: var(--err); margin-top: .5rem; font-weight: 550; }
.recap {
  margin-top: 1.5rem; display: grid; gap: .15rem; padding: .85rem 1rem;
  background: var(--cream-2); border-left: 3px solid var(--brass);
}
.recap:empty { display: none; }
.recap strong { font-family: var(--display); font-weight: 700; font-size: 1.125rem; }
.recap small { font-size: .8125rem; color: var(--ink-2); }
.rules { margin-top: 1rem; font-size: .8125rem; color: var(--ink-2); max-width: 56ch; }
.rules strong { color: var(--ink); font-weight: 600; }

.done__t { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }

/* jours et heures en colonnes de registre, pas en tuiles */
.days { gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.day > span { border: 0; border-radius: 0; background: transparent; min-height: 4.75rem; }
.day + .day > span { border-left: 1px solid var(--rule); }
.day input { inset: 0; width: 100%; height: 100%; margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .day:hover input:not(:disabled):not(:checked) + span { background: var(--cream-2); }
}
@media (min-width: 640px) {
  .day:nth-child(-n+7) > span { border-bottom: 1px solid var(--rule); }
  .day:nth-child(8) > span, .day:nth-child(8) input:disabled + span { border-left: 0; }
}
.day input:disabled + span { background: repeating-linear-gradient(135deg, transparent 0 7px, rgb(27 23 20 / .06) 7px 8px); border-style: none; }
.day + .day input:disabled + span { border-left: 1px solid var(--rule); }
.slots__grid { gap: 0; border-top: 1px solid var(--ink); grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
.slot > span { border: 0; border-radius: 0; border-bottom: 1px solid var(--rule); box-shadow: inset -1px 0 0 var(--rule); background: transparent; min-height: 3rem; }
.slot input:disabled + span { border-style: none; border-bottom: 1px solid var(--rule); background: transparent; }

/* au téléphone, les quatorze jours défilent au doigt */
@media (max-width: 639px) {
  .days {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 4.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    padding: 4px 4px 10px; margin-inline: -4px; scroll-padding-inline: 4px;
    border-block: 0;
  }
  .days .day > span, .days .day input:disabled + span { border-block: 1px solid var(--ink); }
  .day { scroll-snap-align: start; }
}



/* ---------- le module, comme une page de registre ---------- */
.steps { border-bottom: 3px double var(--ink); }
.opts { line-height: var(--l); background: var(--ruled); }
.opts__g { height: var(--l); padding: 0; border-bottom: 0; line-height: var(--l); color: var(--walnut); }
.opts__g:not(:first-child) { margin-top: var(--l); padding-top: 0; }
.opt {
  grid-template-columns: 1rem minmax(0, 1fr) auto; column-gap: .85rem; align-items: start;
  min-height: calc(2 * var(--l)); padding: 0 .25rem 0 0; border-bottom: 0;
}
.opt__box { width: 1rem; height: 1rem; border-radius: 0; border: 1.5px solid var(--ink); margin-top: calc(var(--l) - 6px - 1rem); }
.opt__box::after { border-radius: 0; width: .5rem; height: .5rem; }
.opt__name { font-style: italic; font-weight: 500; font-size: 1.0625rem; line-height: var(--l); }
.opt__name small { margin-top: 0; font-style: normal; line-height: var(--l); }
.opt__price { line-height: var(--l); }
.opt:has(input:checked) { background: rgb(194 154 72 / .16); }
@media (hover: hover) and (pointer: fine) {
  .opt:hover { background: rgb(194 154 72 / .1); }
}
.day__d { font-style: italic; font-weight: 500; }
.day input:disabled + span .day__m { font-style: normal; }
.day input:disabled + span .day__d { text-decoration: none; }
.day input:disabled + span, .day + .day input:disabled + span {
  background: linear-gradient(to top right, transparent calc(50% - .5px), rgb(59 42 31 / .5) calc(50% - .5px), rgb(59 42 31 / .5) calc(50% + .5px), transparent calc(50% + .5px));
}
.day input:checked + span { background: rgb(194 154 72 / .16); color: var(--ink); box-shadow: inset 0 -3px 0 var(--brass); }
.day input:checked + span .day__w, .day input:checked + span .day__m, .day input:checked + span .day__d { color: var(--brass-ink); }
.slot input:checked + span { background: rgb(194 154 72 / .16); color: var(--brass-ink); box-shadow: inset 0 -3px 0 var(--brass); }
.slots__g h4 { line-height: var(--l); margin-bottom: 0; color: var(--walnut); }
.slots__grid { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; border-top: 0; background: var(--ruled); }
.slot > span {
  display: flex; align-items: last baseline; justify-content: space-between; gap: .5rem;
  min-height: calc(2 * var(--l)); padding: var(--l) .5rem 0 .25rem; line-height: var(--l);
  border: 0; box-shadow: none; background: transparent;
  font-style: italic; font-weight: 500; font-size: 1.125rem;
}
.slot > span::after { content: "libre"; font: 600 .6875rem/var(--l) var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-style: normal; }
.slot input:disabled + span { border: 0; color: var(--ink-2); }
.slot input:disabled + span::after { content: ""; }
.slot input:checked + span::after { content: "la vôtre"; color: var(--brass-ink); }
@media (max-width: 639px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); column-gap: .75rem; }
  .slot > span::after { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .slot:hover input:not(:disabled):not(:checked) + span { background: rgb(194 154 72 / .1); }
}

@media (min-width: 1000px) and (max-width: 1099px) {
  .book__pick:not([hidden]) { display: block !important; }
}

/* la ligne écrite au carnet, en fin de réservation */
.done__page { position: relative; margin-top: 1.25rem; padding-top: .25rem; border-top: 3px double var(--ink); }
.done__day { font: 650 .75rem/var(--l) var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding-right: 3rem; }
.done__lines { position: relative; margin-left: var(--marge); }
.done__lines::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -.85rem; width: 5px;
  border-inline: 1px solid rgb(194 154 72 / .9);
}
.done__entry {
  position: absolute; left: 0; right: 2rem; top: calc(var(--row, 0) * var(--l)); margin: 0;
  line-height: var(--l);
}
.done__entry .ink { display: inline-block; max-width: 100%; font-size: 1.1875rem; line-height: var(--l); }
.ribbon--sm { top: -5px; right: 1rem; width: 14px; height: 4.5rem; }
.done__sim { margin-top: 1.25rem; font-size: .9375rem; color: var(--ink-2); max-width: 52ch; }
.done__sim strong { color: var(--ink); }

/* =========================================================
   PLANCHE 6 : venir, à voir ensemble
   ========================================================= */
.croquis { grid-column: marge / -1 !important; margin-bottom: var(--l); }
.croquis__svg { display: block; width: 100%; height: auto; }
.croquis__st { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 15px; fill: var(--ink); }
.croquis__st--sm { font-size: 13px; }
.croquis__no { font-family: var(--display); font-weight: 900; font-size: 15px; fill: var(--ink); }
.croquis figcaption { margin-top: .4rem; font-size: .8125rem; color: var(--ink-2); padding-left: var(--marge); }
@media (max-width: 479px) {
  .croquis__st { font-size: 18px; }
  .croquis__st--sm { font-size: 15px; }
  .croquis__no { font-size: 17px; }
}
.entries--venir li { grid-template-columns: 6.5rem minmax(0, 1fr); }
.entries--venir li > span:last-child { font-size: .9375rem; }
.venir__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--l); }

.todo li { position: relative; display: grid; }
.todo__box {
  position: absolute; right: calc(100% + 1.25rem); top: calc(var(--l) - 6px - 1rem);
  width: 1rem; height: 1rem; border: 1.5px solid var(--ink); background: var(--paper);
}
.todo__t { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 1.125rem; }
.todo__d { font-size: .875rem; color: var(--ink-2); }
.todo__offer { margin-top: var(--l); padding-top: 1rem; border-top: 3px double var(--ink); display: grid; gap: 1rem; justify-items: start; }
.todo__offer p { font-size: .9375rem; color: var(--ink-2); max-width: 40ch; }

/* =========================================================
   PLANCHE 7 : questions
   ========================================================= */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.75rem; padding-block: .8rem;
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__i { flex: none; position: relative; width: 14px; height: 14px; }
.faq__i::before, .faq__i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform 200ms var(--ease-out); }
.faq__i::after { transform: rotate(90deg); }
.faq details[open] .faq__i::after { transform: rotate(0deg); }
.faq__a { padding-bottom: 1.25rem; }
.faq__a p { max-width: 60ch; color: var(--ink-2); }
.faq__a a { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
}
.faq--2 { margin-top: 0; }
.faq__end { margin-top: 1.5rem; font-family: var(--display); font-style: italic; font-size: 1.125rem; }
.faq__end a { font-style: normal; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }

/* =========================================================
   PIED DE PAGE : le dos du carnet
   ========================================================= */
.foot { background: var(--walnut-2) var(--grain-wood); color: var(--cream); padding-block: clamp(3rem, 7vw, 5rem) 2.5rem; border-top: 1px solid rgb(194 154 72 / .3); }
.foot__in { width: min(100% - 2 * var(--gutter), 84rem); margin-inline: auto; display: grid; gap: 2rem; }
.foot__wm {
  font-family: var(--display); font-size: clamp(2.75rem, 12vw, 7rem); line-height: .92; letter-spacing: -.02em;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgb(194 154 72 / .4);
}
.foot__wm span { font-weight: 900; }
.foot__wm i { font-weight: 500; color: var(--brass-hi); }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.foot__h { font-family: var(--text); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .5rem; }
.foot__col p { font-size: .9375rem; line-height: 1.6; }
.foot__col a { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; }
.foot__mute { color: var(--on-dark-2); }
.foot__legal { border-top: 1px solid var(--rule-dark); padding-top: 1.5rem; display: grid; gap: .75rem; font-size: .8125rem; color: var(--on-dark-2); }
.foot__legal p { max-width: 80ch; }
.foot__legal strong { color: var(--cream); font-weight: 600; }
.foot__legal a { color: var(--cream); display: inline-flex; align-items: center; gap: .3rem; min-height: 2.75rem; }
.foot__colo { font-family: var(--display); font-style: italic; }
@media (min-width: 900px) {
  .foot__cols { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- barre mobile ---------- */
.bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgb(46 32 24 / .98);
  border-top: 1px solid rgb(194 154 72 / .4);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 280ms var(--ease-drawer), visibility 0s linear 280ms;
}
.bar.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.bar a {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  min-height: 3.25rem; border-radius: 2px; text-decoration: none; line-height: 1.15;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out);
}
.bar a:active { transform: scale(.97); }
.bar__call { border: 1px solid rgb(242 235 223 / .35); color: var(--cream); font-size: .875rem; font-weight: 600; }
.bar__k { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); font-weight: 600; }
.bar__book { background: var(--brass); color: var(--ebony); font-family: var(--display); font-weight: 700; font-size: 1.1875rem; }
@media (min-width: 900px) {
  .bar { display: none; }
}

/* =========================================================
   MOUVEMENT : à l’encre (seulement si JS a tourné)
   L’imprimé ne bouge jamais ; seul ce qui est écrit s’écrit.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* le signet se déroule */
  .js .ribbon { clip-path: inset(0 0 100% 0); }
  .js .is-ready .ribbon { clip-path: inset(-10px -10px -10px -10px); transition: clip-path 700ms var(--ease-out) 200ms; }
  .js .done__page .ribbon { clip-path: inset(0 0 100% 0); }
  .js .done__page.is-in .ribbon { clip-path: inset(-10px -10px -10px -10px); transition: clip-path 600ms var(--ease-out); }
  /* la date du jour s’écrit */
  .js [data-today] .today__d .ink { clip-path: inset(-.2em 100% -.3em -.1em); }
  .js .is-ready [data-today] .today__d .ink { clip-path: inset(-.2em -.3em -.3em -.1em); transition: clip-path 600ms linear 350ms; }
  /* les écritures, de gauche à droite, à la vitesse de la plume */
  .js [data-reveal="ink"] .ink { clip-path: inset(-.2em 100% -.35em -.2em); }
  .js [data-reveal="ink"].is-in .ink {
    clip-path: inset(-.2em -.4em -.35em -.2em);
    transition: clip-path min(700ms, calc(var(--n, 20) * 14ms)) linear calc(var(--i, 0) * 60ms + 120ms);
  }
  /* votre ligne, en fin de réservation */
  .js .done__page .ink { clip-path: inset(-.2em 100% -.35em -.2em); }
  .js .done__page.is-in .ink { clip-path: inset(-.2em -.4em -.35em -.2em); transition: clip-path min(900ms, calc(var(--n, 30) * 16ms)) linear 200ms; }
  /* le croquis, d’un trait */
  .js [data-reveal="sketch"] .croquis__svg { clip-path: inset(0 100% 0 0); }
  .js [data-reveal="sketch"].is-in .croquis__svg { clip-path: inset(0 0 0 0); transition: clip-path 800ms var(--ease-in-out); }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .panel.is-enter, .panel.is-enter-back { transform: none; transition: opacity 160ms ease; }
  .menu, .menu.is-open { transform: none; transition: opacity 160ms ease; }
  .bar { transition: opacity 160ms ease, visibility 0s linear 160ms; transform: none; opacity: 0; visibility: hidden; }
  .bar.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .btn:active, .go:active, .bar a:active, .day:active > span, .slot:active > span, .top__menu:active, .steps__b:active { transform: none; }
}

@media print {
  .apercu, .top, .bar, .menu, .book__form, .ribbon { display: none !important; }
  .ink, .croquis__svg { clip-path: none !important; }
  body, .foot { background: #fff; color: #000; padding: 0; }
  .spread { box-shadow: none; }
}
