/* css/base.css */
/* La Cigogne, Porrentruy : la feuille commune (PLAN.md, 16.10.2026).
   Couleurs de la façade : jaune #F1CD62 (champs, panneaux), blanc (lecture), gris des volets #30383C (texte, boutons,
   sections sombres), gris secondaire #596267 (sur blanc seulement), orange du bec #F07818 (décor rare, jamais texte
   ni bouton). Contrastes : volets/blanc 11,95:1 ; volets/jaune 7,77:1 ; gris2/blanc 6,24:1.
   Mouvement : « la montée » (transform, translate, scale, opacity, clip-path seuls) ; tout s'arrête en mouvement
   réduit (dernière règle de la feuille). */

/* Polices servies par le site (sous-ensemble latin, licence OFL : assets/polices/LICENCE.txt). Source Sans 3 est
   variable : un seul fichier pour 400 et 600. Libre Caslon 700 n'est jamais employée. */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/polices/caslon-400.woff2) format('woff2'); }
@font-face { font-family: 'Libre Caslon Text'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/polices/caslon-400i.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(/assets/polices/source-sans-3.woff2) format('woff2'); }

:root {
  --jaune: #F1CD62;
  --blanc: #FFFFFF;
  --ardoise: #30383C;
  --gris: #596267;
  --orange: #F07818;
  --filet: rgb(48 56 60 / .16);
  --filet-fort: rgb(48 56 60 / .34);
  --filet-clair: rgb(255 255 255 / .2);
  --blanc-doux: rgb(255 255 255 / .84);    /* texte second sur l'ardoise (affiche du cordon bleu) */
  --blanc-trait: rgb(255 255 255 / .5);    /* traits sur l'ardoise : coches, points de conduite, filet */
  --blanc-voile: rgb(255 255 255 / .07);   /* voile de survol et de choix sur l'ardoise */
  --f-titre: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --f-texte: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --courbe: cubic-bezier(.22, 1, .36, 1);
  --large: 1240px;
  --marge: 20px;
  --onglet: 0px;
  --rayon: 6px;
  --anneau: var(--ardoise);
}
@media (min-width: 600px) { :root { --marge: 32px; } }
@media (min-width: 960px) { :root { --marge: 40px; } }
@media (max-width: 959.98px) { :root { --onglet: calc(64px + env(safe-area-inset-bottom)); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-bottom: calc(var(--onglet) + 16px); }
body {
  margin: 0; background: var(--blanc); color: var(--ardoise);
  font: 400 18px/1.55 var(--f-texte); font-kerning: normal;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;   /* la réserve de l'onglet du bas est dans le pied (.pied), ardoise : plus de bande blanche */
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); font-weight: 400; text-wrap: balance; letter-spacing: -.005em; }
h1 em, h2 em { font-style: italic; }
p, figcaption, .legende, li, dd { text-wrap: pretty; }   /* pas de mot seul en dernière ligne */
.chiffres { font-variant-numeric: tabular-nums lining-nums; }
.cache-lecteur {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--anneau); outline-offset: 3px; border-radius: 2px; }

.passer-au-contenu {
  position: absolute; z-index: 60; left: 12px; top: -100px; padding: 12px 18px;
  background: var(--ardoise); color: var(--blanc); font-weight: 600; text-decoration: none; border-radius: var(--rayon);
}
.passer-au-contenu:focus { top: 12px; }

/* ── Champs de couleur ───────────────────────────────────────────────────────────────────────────────── */
.champ-jaune { background: var(--jaune); color: var(--ardoise); }
.champ-blanc { background: var(--blanc); color: var(--ardoise); }
.champ-ardoise { background: var(--ardoise); color: var(--blanc); --anneau: var(--jaune); --filet: var(--filet-clair); }

/* ── La grille : photos à gauche, titres à droite, sur une même verticale (toutes les sections) ──────── */
.rang {
  max-width: var(--large); margin-inline: auto; padding-inline: var(--marge);
  display: grid; gap: 32px;
}
@media (min-width: 960px) {
  .rang { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .rang > .rang-media { grid-column: 1; grid-row: 1; }
  .rang > .rang-texte { grid-column: 2; grid-row: 1; }
  .rang-centre { align-items: center; }
}
.section { padding-block: 72px; }
@media (min-width: 960px) { .section { padding-block: 112px; } }
.champ-blanc + .champ-blanc { padding-top: 0; }   /* deux sections blanches qui se suivent : un seul vide entre elles */

.rang-texte h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; }
.rang-texte h2 + p, .rang-texte .intro { margin-top: 18px; }
.rang-texte p + p { margin-top: 14px; }
.sourd { color: var(--gris); }
.champ-ardoise .sourd { color: rgb(255 255 255 / .78); }

.lien-fleche {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor;
}
.lien-fleche svg { width: 20px; height: 20px; }
/* La flèche glisse : elle sort à droite et revient de la gauche (survol, focus au clavier). */
@media (prefers-reduced-motion: no-preference) {
  .lien-fleche:hover svg, .lien-fleche:focus-visible svg { animation: fleche-passe .56s var(--courbe); }
}
@keyframes fleche-passe { 42% { transform: translateX(14px); opacity: 0; } 43% { transform: translateX(-12px); opacity: 0; } }

/* ── Boutons ─────────────────────────────────────────────────────────────────────────────────────────── */
.btn-commander, .btn-tel {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 20px 0 16px;
  border-radius: var(--rayon); font: 600 16px/1.1 var(--f-texte); text-decoration: none; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .18s var(--courbe), box-shadow .18s var(--courbe), color 0s .07s;
}
/* Le remplissage monte : au survol (souris) et à l'appui (doigt), une couleur monte du bas du bouton et repart par
   le haut ; le texte change de couleur quand elle passe sa ligne (70 ms, un changement net, pas une animation).
   En mouvement réduit, la couleur est là d'un coup. */
.btn-commander::before, .btn-tel::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--remplir);
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .4s var(--courbe);
}
.btn-commander:active::before, .btn-tel:active::before { transform: none; transform-origin: 50% 100%; }
@media (hover: hover) {
  .btn-commander:hover::before, .btn-tel:hover::before { transform: none; transform-origin: 50% 100%; }
}
.btn-commander { background: var(--ardoise); color: var(--blanc); box-shadow: 0 1px 0 rgb(0 0 0 / .2); --remplir: var(--jaune); }
.champ-jaune .btn-commander, .barre-jaune .btn-commander, .champ-ardoise .btn-commander { --remplir: var(--blanc); }
.btn-commander:active { color: var(--ardoise); }
@media (hover: hover) { .btn-commander:hover { color: var(--ardoise); } }
.btn-commander > svg { width: 21px; height: 21px; flex: none; }
.btn-commander:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgb(48 56 60 / .7); }
.btn-commander:active { transform: translateY(0); }
.champ-ardoise .btn-commander { background: var(--jaune); color: var(--ardoise); }
.cmd-texte { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 360px) {
  .btn-commander { white-space: normal; padding-block: 8px; }
  .cmd-texte { flex-wrap: wrap; row-gap: 4px; }
}
.b4g-logo { width: auto; height: 34px; flex: none; overflow: visible; margin: -4px 0; }
.btn-tel { border: 1.5px solid var(--ardoise); color: var(--ardoise); padding: 0 20px 0 18px; --remplir: var(--ardoise); }
.btn-tel svg { width: 18px; height: 18px; flex: none; }
.btn-tel:active { color: var(--blanc); }
.champ-ardoise .btn-tel { border-color: var(--blanc); color: var(--blanc); --remplir: var(--blanc); }
.champ-ardoise .btn-tel:active { color: var(--ardoise); }
@media (hover: hover) {
  .btn-tel:hover { color: var(--blanc); }
  .champ-ardoise .btn-tel:hover { color: var(--ardoise); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── La barre du haut ────────────────────────────────────────────────────────────────────────────────── */
.barre { position: relative; z-index: 40; background: var(--blanc); border-bottom: 1px solid var(--filet); }
.barre-jaune { background: var(--jaune); border-bottom-color: transparent; }
.barre-dedans {
  max-width: var(--large); margin-inline: auto; padding: 10px var(--marge);
  display: flex; align-items: center; gap: 28px; min-height: 76px;
}
.barre-logo { display: block; flex: none; margin-right: auto; }
.barre-logo img { width: auto; height: 54px; }
.barre-liens { display: none; gap: 28px; margin-right: auto; }
.barre-liens a, .barre-tel {
  display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1 var(--f-texte); text-decoration: none;
}
.barre-liens a { position: relative; }
.barre-liens a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .22s var(--courbe);
}
.barre-liens a:hover::after, .barre-liens a[aria-current="page"]::after { transform: scaleX(1); }
.barre-tel { display: none; gap: 8px; }
.barre-tel svg { width: 17px; height: 17px; }
.barre-commander { display: none; min-height: 48px; }
.barre-menu {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ardoise); border-radius: var(--rayon); background: transparent;
  font: 600 16px/1 var(--f-texte); cursor: pointer;
}
.barre-menu[aria-expanded="true"] { background: var(--ardoise); color: var(--blanc); }
html:not(.js) .barre-menu { display: none; } /* sans JavaScript, ce bouton ne ferait rien : le pied et l'onglet suffisent */
@media (min-width: 960px) {
  .barre-logo { margin-right: 0; }
  .barre-liens, .barre-tel, .barre-commander { display: inline-flex; }
  .barre-menu, .menu { display: none !important; }
}
@media (min-width: 960px) and (max-width: 1099.98px) { .barre-tel span { display: none; } .barre-dedans { gap: 22px; } }

.menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 45;
  padding: 8px var(--marge) 24px; background: inherit; border-bottom: 1px solid var(--filet-fort);
  box-shadow: 0 18px 30px -18px rgb(48 56 60 / .45);
}
.barre-jaune .menu { background: var(--jaune); }
.barre:not(.barre-jaune) .menu { background: var(--blanc); }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--filet);
  font: 400 28px/1.1 var(--f-titre); text-decoration: none;
}
.menu nav a[aria-current="page"] { font-style: italic; }
.menu-tel { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin: 14px 0 10px; font-weight: 600; text-decoration: none; }
.menu-tel svg { width: 18px; height: 18px; }
.menu .btn-commander { width: 100%; }
.menu.ouvre { opacity: 0; transform: translateY(-6px); }
.menu { transition: opacity .2s var(--courbe), transform .2s var(--courbe); }

/* ── L'onglet du bas (téléphone) ─────────────────────────────────────────────────────────────────────── */
/* Un onglet de typographe, propre à la Cigogne (finitions F1) : Libre Caslon, aucun pictogramme ; le numéro lui-même ;
   « Y aller » en italique ; la case jaune « Commander sur [logo] ». Bande pleine de 64 px : aucune bande transparente
   où le texte de la page se ferait trancher (A-V6). La case monte une fois par visite (cigogne.js pose .monte), avec
   la courbe de la montée des cadres ; figée en mouvement réduit et sans JavaScript. */
.onglet {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--ardoise); color: var(--blanc); --anneau: var(--jaune);
  box-shadow: 0 -10px 24px -14px rgb(48 56 60 / .55);
}
.onglet a {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 14px;
  color: inherit; text-decoration: none; font: 400 18px/1.1 var(--f-titre); white-space: nowrap;
}
.onglet-tel .chiffres { font-size: 18px; letter-spacing: .01em; }
.onglet-acces em { font-style: italic; }
/* un filet fin entre le numéro et « Y aller » */
.onglet-acces::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: rgb(255 255 255 / .24); }
/* La case : un onglet jaune posé dans la bande (6 px d'ardoise au-dessus et à gauche, coins hauts arrondis) ; elle se
   détache du champ jaune de l'accueil et ne ressemble à aucun bloc pleine hauteur des autres maisons. */
.onglet .onglet-commander {
  flex-direction: column; align-items: flex-start; gap: 4px; min-height: 58px; margin: 6px 0 0 6px; padding: 0 14px 0 12px;
  border-radius: 6px 6px 0 0; background: var(--jaune); color: var(--ardoise);
}
.onglet-mot { font: 400 18px/1 var(--f-titre); }
.onglet-sur { display: flex; align-items: center; gap: 5px; font: italic 400 15px/1 var(--f-titre); }
.onglet .b4g-logo { height: 21px; margin: 0; }
.onglet.monte .onglet-commander { animation: case-monte .62s var(--courbe) both; }
/* elle monte d'un léger retrait, sans délai : jamais un instant sans Commander à l'écran (corrections du 24.10) */
@keyframes case-monte { from { transform: translateY(30%); } }
/* les anneaux de focus restent dans la case : jaune sur l'ardoise, ardoise sur la case jaune */
.onglet a:focus-visible { outline-offset: -6px; border-radius: 0; }
.onglet .onglet-commander:focus-visible { outline-color: var(--ardoise); border-radius: 6px 6px 0 0; }
/* Petits écrans : le numéro garde de l'air de chaque côté (mesuré à 360 et à 320, travail/finitions/) */
@media (max-width: 374.98px) {
  .onglet a { padding: 0 11px; }
  .onglet .onglet-commander { padding: 0 11px; }
  .onglet-mot, .onglet-tel .chiffres { font-size: 17px; }
}
@media (max-width: 339.98px) {
  .onglet a { padding: 0 9px; }
  .onglet .onglet-commander { padding: 0 9px; }
  .onglet-mot, .onglet-tel .chiffres { font-size: 15.5px; }
  .onglet-acces em { font-size: 16.5px; }
}
@media (min-width: 960px) { .onglet { display: none; } }

/* ── Le premier écran (accueil) ──────────────────────────────────────────────────────────────────────── */
.heros { position: relative; overflow: hidden; padding: 28px 0 64px; }
@media (min-width: 960px) { .heros { padding: 40px 0 104px; } }
/* L'ombre du tilleul de la façade : dans la marge gauche du champ jaune, sous les photos, jamais sous du texte. */
.heros::before {
  content: ''; position: absolute; z-index: 0; top: 64px; left: calc(50% - var(--large) / 2 - 300px);
  width: 487px; height: 520px; background: url(/assets/feuillage.webp) no-repeat center / contain;
  opacity: .05; pointer-events: none; display: none;
}
@media (min-width: 960px) { .heros::before { display: block; } }
.heros .rang { position: relative; z-index: 1; row-gap: 40px; }
@media (min-width: 960px) { .heros .rang { align-items: center; } }

.heros h1 { font-size: clamp(40px, 6.1vw, 68px); line-height: 1.05; letter-spacing: -.012em; }
.heros-intro { margin-top: 22px; font-size: 19px; max-width: 34em; }
@media (min-width: 960px) { .heros-intro { font-size: 20px; } }
.aujourdhui { display: flex; align-items: baseline; gap: 10px; margin-top: 26px; font-weight: 600; }
.aujourdhui::before {
  content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor;
  transform: translateY(-1px);
}
.aujourdhui.ouvert::before { background: currentColor; }

/* Les deux cadres : le restaurant (grand, 4:5) et la maison (petit, 5:6, plus haut). */
.cadres { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 960px) { .cadres { gap: 24px; } }
.cadre-bloc { margin: 0; }
.cadre-grand { margin-top: 44px; }
@media (min-width: 960px) { .cadre-grand { margin-top: 72px; } }
.cadre { position: relative; overflow: hidden; border-radius: 3px; background: var(--ardoise); }
.cadre-grand .cadre { aspect-ratio: 4 / 5; }
.cadre-petit .cadre { aspect-ratio: 5 / 6; }
.vue { position: absolute; inset: 0; margin: 0; }
.vue img { width: 100%; height: 100%; object-fit: cover; }
.vue + .vue { opacity: 0; }                       /* sans JS : la première vue seulement */
.vue[data-etat] { opacity: 1; transform: translateY(100%); z-index: 1; }
.vue[data-etat="ici"] { transform: none; z-index: 2; }
.vue[data-etat="monte"] { transform: none; z-index: 3; transition: transform .72s var(--courbe); }
.vue[data-etat="recule"] { transform: translateY(-12%); opacity: .35; z-index: 2; transition: transform .72s var(--courbe), opacity .72s var(--courbe); }
.legende { min-height: 3em; margin-top: 12px; font-size: 15px; line-height: 1.35; transition: opacity .16s linear; }
.legende.change { opacity: 0; }
.pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 14px 0 10px;
  border: 1.5px solid var(--filet-fort); border-radius: var(--rayon); background: transparent; font: 600 15px/1 var(--f-texte); cursor: pointer;
}
.pause svg { width: 16px; height: 16px; }
.pause[hidden] { display: none; }
@media (max-width: 959.98px) { .legende { font-size: 14px; min-height: 2.8em; } }

/* L'ouverture (.entre) : voir « Le mouvement : la montée », plus bas. `monte` reste pour qui l'emploie encore. */
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }
@keyframes derive { to { transform: translate(10px, -6px); } }
.heros::before { animation: derive 14s ease-in-out infinite alternate; }
.heros.en-pause::before { animation-play-state: paused; }   /* le bouton Pause arrête aussi le feuillage */
/* Bureau : le H1 sur trois lignes, coupées au sens (« La table et le toit, / en haut de la / vieille ville »).
   Sa taille suit la largeur de la colonne (cqi) : la ligne la plus longue fait 7,98 em, 12,3 cqi la garde dans la colonne,
   donc son encre ne passe jamais le bord droit de la barre, de l'intro et des titres. Téléphone : les coupures s'effacent. */
@media (max-width: 959.98px) { .h1-coupe { display: none; } }
@media (min-width: 960px) {
  .heros .rang-texte { container-type: inline-size; }
  .heros h1 { font-size: 12.3cqi; }
}

/* Téléphone : H1, cadres, boutons, ligne du jour, intro. L'ordre du DOM ne change pas (lecteur d'écran, tabulation). */
@media (max-width: 959.98px) {
  .heros { padding-top: 20px; }
  .heros .rang { row-gap: 0; }
  .heros .rang-texte { display: contents; }
  .heros h1 { order: 1; }
  .heros .rang-media {
    order: 2; margin-top: 22px;
    display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); column-gap: 16px;
  }
  .heros .cadres { grid-column: 1 / -1; grid-row: 1; }
  .heros .pause { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; margin: 0; padding: 0 12px 0 9px; gap: 6px; }
  .heros .actions { order: 3; margin-top: 18px; }
  .heros .aujourdhui { order: 4; margin-top: 18px; }
  .heros .heros-intro { order: 5; margin-top: 18px; }
  .cadre-grand { margin-top: 28px; }
  .legende { margin-top: 8px; }
  .cadre-petit .legende { min-height: 0; }
}
/* Écran court : Commander avant les cadres, dès que l'onglet couvrirait le Commander du héros (son bas + 64 px
   d'onglet + 16 px d'air). Mesuré largeur par largeur, de 320 à 959 (travail/corrections/, VERIF D1 et A-V4) :
   il faut 758 px de haut au plus jusqu'à 479 de large ; au-delà, la hauteur nécessaire suit la largeur, d'où un
   rapport largeur / hauteur par bande (768 × 1024, 820 × 1180 et 834 × 1112 gardent les cadres d'abord). */
@media (max-width: 959.98px) and (max-height: 759.98px),
       (min-width: 480px) and (max-width: 599.98px) and (min-aspect-ratio: 63 / 100),
       (min-width: 600px) and (max-width: 767.98px) and (min-aspect-ratio: 72 / 100),
       (min-width: 768px) and (max-width: 959.98px) and (min-aspect-ratio: 79 / 100) {
  .heros .actions { order: 2; margin-top: 16px; }
  .heros .rang-media { order: 3; margin-top: 8px; }
}

/* ── Le cordon bleu maison : l'affiche ──────────────────────────────────────────────────────────────── */
/* Une bande ardoise pleine largeur, comme une affiche de bistrot. Polices servies (vérifiées dans les woff2) :
   Libre Caslon Text 400 romain et italique (liga, kern, chiffres alignés hauts comme les capitales, proportionnels
   par défaut ; ni smcp ni onum, ni fleuron), Source Sans 3 (400 à 600). Les « petites capitales » sont donc des
   capitales de Source Sans 600, petites et espacées, jamais une petite capitale synthétisée (font-synthesis: none).
   L'italique du Caslon servi pose mal ses accents, trop droits pour la pente (è, à, ù, é, ê, â, ô, î, û, ë, ï :
   banc/accents.py et la planche captures/accents-caslon.png) : il ne porte ici que des mots sans accent (« Le », « bleu », « servi avec des
   frites. », « Le jeudi ») ; tout mot accentué est en romain.
   Couleurs : blanc 11,95:1 et jaune 7,77:1 sur l'ardoise ; ardoise 7,77:1 sur le jaune ; l'orange n'est qu'un point
   de décor. Les blancs transparents sont trois jetons de :root (--blanc-doux, --blanc-trait, --blanc-voile). */
.affiche { font-synthesis: none; }
.affiche .rang { row-gap: 48px; }
.affiche-tete { container-type: inline-size; }
.surtitre { font: 600 13px/1.2 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--jaune); }
.surtitre-mots { display: flex; align-items: center; gap: 12px; }
.surtitre-point { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.surtitre .cache-lecteur { text-transform: none; }   /* le lecteur dit « La Cigogne », pas des capitales */

/* Le titre se lit dans l'ordre, à l'oeil comme au lecteur : « Le » petit et penché, « Cordon » romain plein la
   colonne, puis sur la même ligne « bleu » italique jaune et « maison » en capitales espacées au bout d'un filet.
   Le lecteur lit « Le cordon bleu maison » (cache-lecteur) ; la composition (.titre-affiche) lui est cachée. */
.titre-affiche { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; }
.rang-texte > .affiche-titre {
  margin-top: 20px; font-size: min(calc(100cqi / 3.9), 156px); line-height: .9; letter-spacing: -.02em;
  white-space: nowrap; text-wrap: nowrap;
}
.section .rang-texte > .affiche-titre::after { content: none; }   /* le filet court des titres : ici, c'est celui de « maison » */
.t-le { grid-column: 1 / -1; font: italic 400 .3em/1 var(--f-titre); letter-spacing: 0; color: var(--jaune); margin: 0 0 .06em .1em; }
.t-cordon { grid-column: 1 / -1; }
.t-bleu { grid-row: 3; grid-column: 1; font-style: italic; color: var(--jaune); padding-inline: clamp(0px, 100cqi - 300px, .5em) .06em; }   /* le retrait de « bleu » cède sous 340 px de colonne : « maison » tient sur la ligne */
.t-maison {
  grid-row: 3; grid-column: 2; display: flex; align-items: center; gap: 12px; margin-left: 12px;
  font: 600 13px/1 var(--f-texte); letter-spacing: .34em; text-transform: uppercase; color: var(--blanc);
}
.t-maison::before { content: ''; flex: 1 1 auto; min-width: 16px; height: 1px; background: var(--blanc-trait); }

/* Le poids, tiré de carte.json (ses deux bornes) en chiffres d'affiche (Caslon romain, alignés, proportionnels), le
   « à » petit, romain et jaune, posé au milieu des chiffres ; dessous, « grammes de porc » en capitales, la suite en
   italique. La taille suit la colonne (cqi) : la ligne tient de 320 à 1920 px. */
.rang-texte > .affiche-poids { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--filet); }
.poids-chiffre {
  display: block; font: 400 min(19cqi, 104px)/.86 var(--f-titre); letter-spacing: -.02em;
  font-variant-numeric: lining-nums proportional-nums; white-space: nowrap;
}
.poids-a { font: 400 .34em/1 var(--f-titre); font-style: normal; letter-spacing: 0; color: var(--jaune); vertical-align: .86em; margin-inline: .12em; }
.poids-mots { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: 14px; }
.poids-unite { font: 600 13px/1.25 var(--f-texte); letter-spacing: .22em; text-transform: uppercase; color: var(--jaune); }
.poids-suite { font: italic 400 19px/1.3 var(--f-titre); color: var(--blanc-doux); }

/* Les garnitures : une carte de bistrot. Coche, nom en Caslon, points de conduite, prix en Caslon jaune. La ligne
   choisie s'éclaire : le repère (100 px de haut, posé par translateY et scaleY dans cigogne.js) glisse sous elle ;
   sans JS, c'est la ligne elle-même qui s'éclaire (:has). */
.cordons { --anneau: var(--jaune); }
.cordons-titre { display: block; width: 100%; padding: 0; margin-bottom: 12px; font: 400 20px/1.3 var(--f-titre); color: var(--blanc-doux); text-wrap: balance; }
.cordons-lignes { position: relative; border-top: 1px solid var(--filet); }
.ligne {
  position: relative; z-index: 1; display: flex; align-items: baseline; min-height: 58px;
  padding: 15px 10px 14px 12px; border-bottom: 1px solid var(--filet);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
}
.ligne input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ligne::before {   /* le survol : un voile, en opacité seule */
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blanc-voile); opacity: 0; transition: opacity .16s linear;
}
@media (hover: hover) { .ligne:hover::before { opacity: 1; } }
.ligne:has(input:checked)::before { opacity: 0; }
.ligne:has(input:focus-visible) { outline: 3px solid var(--anneau); outline-offset: -1px; border-radius: 2px; }
.ligne-coche { flex: none; align-self: center; position: relative; width: 20px; height: 20px; margin-right: 14px; border: 1.5px solid var(--blanc-trait); border-radius: 50%; }
.ligne-coche::after {   /* la coche, deux bords à 45 degrés */
  content: ''; position: absolute; left: 5.5px; top: 2px; width: 5.5px; height: 10px;
  border: solid var(--ardoise); border-width: 0 2.25px 2.25px 0;
  transform: rotate(45deg) scale(.3); opacity: 0; transition: transform .22s var(--courbe), opacity .12s linear;
}
.ligne:has(input:checked) .ligne-coche { background: var(--jaune); border-color: var(--jaune); }
.ligne:has(input:checked) .ligne-coche::after { transform: rotate(45deg) scale(1); opacity: 1; }
.ligne-nom { font: 400 24px/1.15 var(--f-titre); color: var(--blanc-doux); }
.ligne:has(input:checked) .ligne-nom { color: var(--blanc); }
.ligne-points {   /* posés sur la ligne de base, remontés au milieu du bas de casse */
  flex: 1 1 20px; min-width: 20px; height: 3px; margin: 0 10px; position: relative; top: -.32em;
  background: radial-gradient(circle, var(--blanc-trait) 1.05px, transparent 1.55px) 0 50% / 7px 3px repeat-x;
}
.ligne-prix { flex: none; font: 400 24px/1 var(--f-titre); color: var(--jaune); }
.repere {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0; height: 100px;
  background: linear-gradient(to right, var(--jaune) 3px, var(--blanc-voile) 3px);
  transform-origin: 0 0; opacity: 0; transition: transform .3s var(--courbe);
}
.cordons.vivant .repere:where(:not([data-reveal]), .est-monte) { opacity: 1; }
.cordons:not(.vivant) .ligne:has(input:checked) { background: linear-gradient(to right, var(--jaune) 3px, var(--blanc-voile) 3px); }

/* Le plat choisi, en toutes lettres (en romain : « au chèvre », « à la raclette ») : un gabarit par garniture dans la
   même case (la case prend le plus haut), le CSS montre celui de la radio cochée. Six garnitures au plus. */
.cordons-choix { display: grid; padding: 18px 12px 0; }
.choix-g { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: last baseline; gap: 0 16px; visibility: hidden; }
.cordons:has(.ligne:nth-of-type(1) input:checked) .choix-g:nth-child(1),
.cordons:has(.ligne:nth-of-type(2) input:checked) .choix-g:nth-child(2),
.cordons:has(.ligne:nth-of-type(3) input:checked) .choix-g:nth-child(3),
.cordons:has(.ligne:nth-of-type(4) input:checked) .choix-g:nth-child(4),
.cordons:has(.ligne:nth-of-type(5) input:checked) .choix-g:nth-child(5),
.cordons:has(.ligne:nth-of-type(6) input:checked) .choix-g:nth-child(6) { visibility: visible; }
.choix-nom { font: 400 22px/1.2 var(--f-titre); color: var(--blanc-doux); text-wrap: balance; }
.choix-prix { font: 400 36px/1 var(--f-titre); color: var(--jaune); }
@media (max-width: 379.98px) { .ligne-nom, .ligne-prix { font-size: 22px; } .ligne-coche { margin-right: 12px; } .ligne-points { margin-inline: 8px; } }
@media (max-width: 339.98px) { .ligne { padding-inline: 8px 6px; } .ligne-nom, .ligne-prix { font-size: 21px; } .ligne-coche { margin-right: 10px; } .ligne-points { margin-inline: 6px; } }

/* le jeudi de la carte (/carte/) : une carte jaune, le prix sous le plat */
.jeudi {
  position: relative; margin-top: 28px; padding: 24px 24px 22px; border-radius: var(--rayon); background: var(--jaune);
}
.jeudi h3 { font-size: 26px; line-height: 1.1; }
.jeudi-plat { margin-top: 8px; }
.jeudi-prix { margin-top: 10px; font: 600 34px/1 var(--f-texte); }
.jeudi-detail { margin-top: 8px; font-size: 16px; }
.jeudi-pastille {
  position: absolute; top: -13px; right: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--ardoise); color: var(--blanc); font: 600 14px/1.2 var(--f-texte);
}
@media (max-width: 959.98px) {
  /* téléphone et tablette : le titre et le poids avant les garnitures */
  .affiche .rang > .affiche-tete { order: 1; }
  .affiche .rang > .affiche-choix { order: 3; }
}
@media (max-width: 599.98px) {
  /* le téléphone : la bande se resserre pour que le « 20.– » monte (entier, section en haut, dès 770 px de haut utile, l'onglet déduit) ;
     le poids baisse d'un ton, il ne dispute plus la vedette au prix */
  .affiche.section { padding-top: 32px; }
  .affiche .rang { row-gap: 24px; }
  .rang-texte > .affiche-titre { margin-top: 12px; }
  .rang-texte > .affiche-poids { margin-top: 18px; padding-top: 16px; }
  .poids-chiffre { font-size: min(16cqi, 104px); }
}
@media (min-width: 600px) {
  .surtitre { font-size: 14px; }
  .t-maison { font-size: 15px; }
  .poids-unite { font-size: 14px; }
  .poids-suite { font-size: 22px; }
  .cordons-titre { font-size: 22px; }
  .ligne-nom, .ligne-prix { font-size: 26px; }
  .ligne { min-height: 62px; padding-block: 16px 15px; }
  .cordons-choix { padding-top: 22px; }
  .choix-nom { font-size: 27px; }
  .choix-prix { font-size: 48px; }
}
/* Bureau : le titre à gauche, la carte à droite, alignés par le bas ; l'étiquette en travers, dessous, le talon et
   son prix à droite. */
@media (min-width: 960px) {
  .affiche .rang { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); row-gap: 72px; align-items: end; }
  .affiche .rang > .affiche-tete { grid-column: 1; grid-row: 1; }
  .affiche .rang > .affiche-choix { grid-column: 2; grid-row: 1; }
}
@media (forced-colors: active) {
  .ligne:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
  .ligne:has(input:focus-visible) { outline: 3px solid Highlight; }
  .ligne-coche { border-color: CanvasText; }
  .ligne:has(input:checked) .ligne-coche { forced-color-adjust: none; background: Highlight; border-color: Highlight; }
  .ligne:has(input:checked) .ligne-coche::after { forced-color-adjust: none; border-color: HighlightText; }
  .ligne-points { forced-color-adjust: none; background: radial-gradient(circle, CanvasText 1.05px, transparent 1.55px) 0 50% / 7px 3px repeat-x; }
  .repere { display: none; }
  .surtitre-point { forced-color-adjust: none; background: CanvasText; }
  /* les plaques de fond du texte mangeraient « Le » (interligne serré) : on garde la main, en couleurs système */
  .titre-affiche, .titre-affiche *, .poids-chiffre, .poids-chiffre * { forced-color-adjust: none; color: CanvasText; background: Canvas; }
  .t-maison::before { background: CanvasText; }
}
@keyframes choix-pose { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: no-preference) {
  .cordons-choix.pose .choix-g { animation: choix-pose .34s var(--courbe); }
}

/* ── Listes de plats (accueil) ───────────────────────────────────────────────────────────────────────── */
.plats { margin-top: 26px; border-top: 1px solid var(--filet); }
.plats li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 18px; padding: 15px 0; border-bottom: 1px solid var(--filet); }
.plat-nom { font: 400 21px/1.25 var(--f-titre); }
.plat-prix { font: 600 18px/1.4 var(--f-texte); text-align: right; white-space: nowrap; }
.plat-desc { grid-column: 1 / -1; font-size: 16px; color: var(--gris); }
.mention { margin-top: 20px; font-weight: 600; }

/* ── Photos (cadres fixes, agrandissables) ───────────────────────────────────────────────────────────── */
.photo { margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--filet); }
.photo figcaption { margin-top: 10px; font-size: 15px; line-height: 1.4; }
.agrandir {
  position: relative; overflow: hidden;
  display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px;
}
/* Le signe « s'agrandit » : sur les seuls liens qui ouvrent la visionneuse. Un pseudo-élément sans texte : rien n'est
   lu (le lien garde le nom de sa photo). */
a.agrandir::after {
  content: ''; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgb(48 56 60 / .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5h5v5M10 19H5v-5M19 5l-6 6M5 19l6-6'/%3E%3C/svg%3E") no-repeat center / 16px 16px;
  pointer-events: none;
}
.agrandir img { transition: transform .5s var(--courbe); }
@media (hover: hover) { .agrandir:hover img { transform: scale(1.03); } }
.salle-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.salle-grille .photo-salle { grid-row: span 2; }
.salle-grille .photo-salle .agrandir { aspect-ratio: 4 / 5; }
.salle-grille .photo-terrasse .agrandir { aspect-ratio: 1 / 1; }
.salle-grille .photo-facade .agrandir { aspect-ratio: 800 / 470; }
/* Téléphone : la salle en grand, puis la terrasse et la façade côte à côte, alignées par le bas. */
@media (max-width: 599.98px) {
  .salle-grille { align-items: end; gap: 10px; }
  .salle-grille .photo-salle { grid-column: 1 / -1; grid-row: auto; }
  .salle-grille .photo-salle .agrandir { aspect-ratio: 4 / 3; }
}

/* La visionneuse (dialog natif) : un grand tirage (corrections du 24.10). La boîte prend la taille de la photo, dans
   sa marge de papier (fibres, ombre portée sur la pénombre) ; la légende est écrite dans la marge du bas, en Caslon
   italique, comme sous les tirages du site. */
.visionneuse {
  --anneau: var(--encre, #2A2522);
  width: fit-content; max-width: 94vw; max-height: 94vh; padding: 12px 12px 0; border: 0; border-radius: 2px;
  background: #F7F1E4 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre, #2A2522);
  box-shadow: 0 2px 3px rgb(0 0 0 / .45), 0 30px 60px -20px rgb(0 0 0 / .8);
  overflow: visible;
}
.visionneuse::backdrop { background: radial-gradient(120% 90% at 50% 40%, rgb(30 26 22 / .8), rgb(12 10 8 / .92)); }
.visionneuse[open] { animation: visionneuse .32s var(--courbe); }
@keyframes visionneuse { from { opacity: 0; translate: 0 14px; rotate: -.6deg; } }
.visionneuse img {
  display: block; width: auto; height: auto; max-width: calc(94vw - 24px); max-height: calc(94vh - 76px);
  min-width: min(240px, calc(94vw - 24px)); object-fit: contain; border-radius: 0; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14);
}
.visionneuse p { width: 0; min-width: 100%; padding: 12px 52px 16px 4px; font: italic 400 18px/1.3 var(--f-titre); }
.visionneuse-fermer {
  position: absolute; right: 6px; bottom: 4px; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: var(--encre, #2A2522); cursor: pointer;
}
.visionneuse-fermer svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .visionneuse[open] { animation: none; } }

/* ── Hébergement (section ardoise de l'accueil) ──────────────────────────────────────────────────────── */
/* Les tarifs des nuits : un seul dessin, des lignes comme une carte (accueil, /hebergement/, /reservation/).
   Sur l'ardoise, le prix en jaune : 7,77:1 ; « la nuit » en blanc à 78 % : 8,0:1. */
.tarifs { margin-top: 28px; border-top: 1px solid var(--filet); }
.tarifs li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--filet);
}
.tarif-nom { font: 400 26px/1.15 var(--f-titre); }
.tarif-prix { font: 600 26px/1.15 var(--f-texte); white-space: nowrap; }
.tarif-prix small { font-size: 16px; font-weight: 400; color: var(--gris); }   /* « 90.– la nuit » : une vraie espace insécable, plus de marge */
.tarif-detail { flex-basis: 100%; font-size: 16px; color: var(--gris); }
/* ce qui n'est pas un prix (« Du lundi au samedi », « Possible ») prend le dessin du détail, pas celui du prix */
.tarif-mot { font-size: 16px; color: var(--gris); }
.champ-ardoise .tarif-prix { color: var(--jaune); }
.champ-ardoise .tarif-prix small, .champ-ardoise .tarif-detail, .champ-ardoise .tarif-mot { color: rgb(255 255 255 / .78); }
.puces { margin-top: 20px; display: grid; gap: 8px; }
.puces li { position: relative; padding-left: 22px; }
.puces li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ── Réserver et nous trouver ────────────────────────────────────────────────────────────────────────── */
.carte-horaires { padding: 26px 24px; border-radius: var(--rayon); background: var(--blanc); }
.carte-horaires h3 { font-size: 26px; }
.semaine { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 17px; }
.semaine th, .semaine td { padding: 11px 0; border-bottom: 1px solid var(--filet); text-align: left; font-weight: 400; }
.semaine td { text-align: right; font-variant-numeric: tabular-nums; }
.semaine th { text-transform: capitalize; }
.semaine tr.ferme { color: var(--gris); }
.semaine tr.ce-jour th, .semaine tr.ce-jour td { font-weight: 600; }
.semaine tr.ce-jour th::after { content: ' · aujourd’hui'; font-weight: 400; text-transform: none; }
.tel-grand { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; font: 400 clamp(34px, 5vw, 46px)/1.1 var(--f-titre); text-decoration-thickness: 1.5px; }
.adresse { margin-top: 18px; font-size: 19px; }
.rang-texte .parc { margin-top: 8px; }
.reseaux { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.reseaux a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.reseaux svg { width: 22px; height: 22px; }

/* ── Le bloc Best4GoEat ──────────────────────────────────────────────────────────────────────────────── */
/* V4 : sur le crépi jaune de la façade (comme la vitrine), l'ombre de l'avant-toit en haut ; l'encre multipliée. */
.b4g {
  position: relative; padding-block: 64px; color: var(--ardoise); --anneau: var(--ardoise);
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: inset 0 14px 18px -14px rgb(110 70 0 / .5);
  /* la même baguette de chêne que le pied, en haut : le bloc est un panneau encadré, la photo de la façade au-dessus
     ne s'y coupe plus net (corrections du 24.10) */
  border-top: 14px solid #7A512D; border-image: url(/medias/matieres/cadre.webp) 128 0 0 / 14px 0 0 stretch;
}
.b4g .btn-commander { --remplir: var(--blanc); box-shadow: 0 1px 1px rgb(60 40 0 / .3), 0 10px 20px -10px rgb(60 40 0 / .55); }
.b4g-bande { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); display: grid; justify-items: start; }
.b4g-media { display: none; }
.b4g h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; }
.b4g p { margin-top: 14px; }
.b4g .btn-commander { margin-top: 24px; }
/* Bureau : une bande nette sur une ligne, à la marge du pied qui suit : le logo, le titre et sa phrase, le bouton
   (finitions F3, A-V9 : plus de logo seul dans un grand blanc). */
@media (min-width: 960px) {
  .b4g { padding-block: 52px; }
  .b4g-bande { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(32px, 3.4vw, 56px); }
  .b4g-media { display: block; }
  .b4g-media .b4g-logo { width: clamp(128px, 11vw, 156px); height: auto; margin: 0; }
  .b4g h2 { font-size: clamp(28px, 2.6vw, 36px); max-width: 13em; }   /* deux lignes à toutes les largeurs : « Commandez La Cigogne / sur Best4GoEat » */
  .b4g p { margin-top: 10px; }
  .b4g .btn-commander { margin-top: 0; }
}

/* ── Le pied ─────────────────────────────────────────────────────────────────────────────────────────── */
/* V4 : le bas de la grande ardoise de la salle : la pierre, le grain, la baguette de chêne en haut. */
.pied {
  position: relative; color: var(--blanc); --anneau: var(--jaune); padding: 64px 0 calc(28px + var(--onglet)); font-size: 16px;
  background: url(/assets/grain.png) 0 0 / 160px 160px, #2B3032 url(/medias/matieres/ardoise.webp) 50% 0 / 1200px auto;
  border-top: 14px solid #7A512D; border-image: url(/medias/matieres/cadre.webp) 128 0 0 / 14px 0 0 stretch;
  box-shadow: inset 0 6px 9px rgb(0 0 0 / .45);
}
.pied-dedans {
  max-width: var(--large); margin-inline: auto; padding-inline: var(--marge);
  display: grid; gap: 28px; grid-template-columns: auto minmax(0, 1fr);
}
.pied-logo { width: 72px; height: auto; }
.pied-nom { font: 400 24px/1.2 var(--f-titre); margin-bottom: 6px; }
.pied-maison p + p { margin-top: 4px; }
.pied-maison a.chiffres { display: inline-flex; align-items: center; min-height: 44px; }
.pied-liens { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
@media (min-width: 960px) {
  .pied-dedans { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .pied-liens { grid-column: auto; display: grid; grid-template-columns: repeat(2, auto); gap: 0 36px; }
}
/* le filet du colophon tombe sur la grille du texte (pas sur la marge) */
.colophon {
  width: min(calc(100% - 2 * var(--marge)), calc(var(--large) - 2 * var(--marge)));
  margin: 36px auto 0; padding: 20px 0 0; border-top: 1px solid var(--filet-clair);
  font-size: 14px; color: rgb(255 255 255 / .78);
}

/* ── Pages intérieures : la tête de page ─────────────────────────────────────────────────────────────── */
.tete-page { padding: 48px 0 40px; }
@media (min-width: 960px) { .tete-page { padding: 72px 0 56px; } }
.tete-page h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; }
.tete-page p { margin-top: 16px; max-width: 38em; font-size: 19px; }

/* ── Le mouvement : « la montée » (BRIEF-MOTION, 16.10.2026) ──────────────────────────────────────────── */
/* La maison est en haut de la vieille ville : tout ce qui apparaît MONTE. Les mots du titre sortent d'un masque,
   ligne après ligne ; les photos se découvrent sous un rideau qui se lève (un panneau ardoise, le gris des volets,
   au liseré jaune ; jaune sur l'ardoise) pendant que l'image se pose (1,08 vers 1) ; le filet sous les titres se
   trace ; les listes et les prix suivent en cascade courte ; les grandes photos glissent un peu moins vite que la
   page. Règles : l'état de repos EST l'état visible, chaque animation part de l'état caché (remplissage
   « backwards ») ; rien n'est caché sans html.js ni en mouvement réduit ; l'image du premier écran (LCP) n'est
   jamais masquée : le rideau est un pseudo-élément posé dessus, l'image est peinte dessous. */

/* Le titre de l'accueil, mot à mot (index.html) ; --l = la ligne (posée en HTML, recalculée par cigogne.js). */
.titre-mots .m { display: inline-block; }
/* Une photo sans lien d'agrandissement reçoit son cadre de rideau (index.html, 404.html, ou cigogne.js). */
.rideau-cadre { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.photo-salade .rideau-cadre { aspect-ratio: 1 / 1; }

/* Le filet sous les titres des sections : court, jaune sur le blanc et sur l'ardoise, ardoise sur le jaune. */
.section .rang-texte > h2 { position: relative; }
.section .rang-texte > h2::after {
  content: ''; position: absolute; left: 0; top: calc(100% + .24em); width: 56px; height: 3px; border-radius: 2px;
  background: var(--jaune); transform-origin: 0 50%;
}
.section.champ-jaune .rang-texte > h2::after { background: var(--ardoise); }

@keyframes masque-monte {
  from { translate: 0 104%; clip-path: inset(-25% -8% 104% -8%); }
  to { clip-path: inset(-25% -8% -45% -8%); }
}
/* Le H1 des pages (deux lignes et plus) : la fenêtre du masque reste sur la boîte du titre au repos pendant toute la
   montée (le bas du masque recule avec la translation) : sa 2e ligne ne passe jamais sur l'intro (corrections du 24.10) */
@keyframes masque-monte-bloc {
  from { translate: 0 104%; clip-path: inset(-25% -8% 104% -8%); }
  to { clip-path: inset(-25% -8% -8% -8%); }
}
@keyframes texte-monte { from { opacity: 0; translate: 0 24px; } }
@keyframes intro-monte { from { translate: 0 16px; } }
@keyframes rideau-leve { from { transform: none; } to { transform: translateY(-101%); } }
@keyframes image-pose { from { scale: 1.08; } }
@keyframes filet-trace { from { transform: scaleX(0); } }
@keyframes profondeur { from { translate: 0 -20px; } to { translate: 0 20px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Les rideaux : posés sur la photo, levés (hors du cadre) au repos. */
  html.js .cadre::after, html.js a.agrandir::before, html.js .rideau-cadre::before {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, var(--jaune) 3px, var(--ardoise) 3px);
    transform: translateY(-101%);
  }
  html.js .champ-ardoise :is(a.agrandir, .rideau-cadre)::before { background: linear-gradient(to top, var(--ardoise) 3px, var(--jaune) 3px); }

  /* 1. L'ouverture (0 à 1,4 s), sans observateur. Accueil : les mots montent ligne après ligne ; le grand cadre se
     découvre, puis le petit ; boutons, ligne du jour, intro suivent ; la case Commander de l'onglet monte à 0,8 s. */
  html.js .titre-mots .m { animation: masque-monte .9s var(--courbe) backwards; animation-delay: calc(.06s + var(--l, 0) * .11s); }
  html.js .heros .cadre::after { animation: rideau-leve 1.05s var(--courbe) .1s backwards; }
  html.js .heros .vue:first-child img { animation: image-pose 1.6s var(--courbe) .1s backwards; }
  html.js .heros .cadre-petit .cadre::after, html.js .heros .cadre-petit .vue:first-child img { animation-delay: .3s; }
  /* les légendes montent ; le bouton Pause, lui, est là dès le premier instant (RELECTURE-motion M6) */
  html.js .heros .legende { animation: texte-monte .7s var(--courbe) .62s backwards; }
  /* les autres pages : le H1 sort de son masque, les lignes suivent (--i), les photos du haut se découvrent */
  html.js .entre { animation: texte-monte .8s var(--courbe) backwards; animation-delay: calc(.12s + var(--i, 0) * 90ms); }
  html.js h1.entre { animation-name: masque-monte-bloc; animation-duration: .95s; animation-delay: .04s; }
  /* l'intro sous le titre est le plus grand bloc du premier écran au téléphone (le LCP de /carte/, /hebergement/,
     /reservation/) : elle monte sans fondu, lisible dès le premier rendu. Partie de l'opacité 0, le navigateur ne la
     comptait qu'à la fin de son entrée, 1 s après le premier rendu (RELECTURE-FINALE D1). */
  html.js h1.entre + p.entre { animation-name: intro-monte; animation-delay: 0s; }
  html.js .heros .entre { animation-delay: calc(.28s + var(--i, 0) * 100ms); }
  html.js :where(main > section:first-child) .photo + .photo { --i: 1; }
  html.js :where(main > section:first-child) .photo :is(a.agrandir, .rideau-cadre)::before {
    animation: rideau-leve .95s var(--courbe) backwards; animation-delay: calc(.2s + var(--i, 0) * 70ms);
  }
  html.js :where(main > section:first-child) .photo :where(a.agrandir, .rideau-cadre) img { animation: image-pose 1.4s var(--courbe) backwards; animation-delay: calc(.2s + var(--i, 0) * 70ms); }
  /* une photo du premier écran sans cadre (la carte, au bureau) : le rideau couvre la figure, qui le rogne ; sa
     position relative est au plus bas de la cascade (la photo de la carte reste collante, top: 28px, au bureau) */
  :where(html.js main > section:first-child .photo:not(:has(a.agrandir, .rideau-cadre))) { position: relative; }
  /* hidden d'abord : Safari 15.4 à 15.6 connaît :has() mais pas overflow: clip ; sans repli, le rideau levé dépassait
     au-dessus de la photo (RELECTURE-motion C1). Les autres navigateurs prennent clip. */
  html.js :where(main > section:first-child) .photo:not(:has(a.agrandir, .rideau-cadre)) { overflow: hidden; overflow: clip; }
  html.js :where(main > section:first-child) .photo:not(:has(a.agrandir, .rideau-cadre))::before {
    content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, var(--jaune) 3px, var(--ardoise) 3px); transform: translateY(-101%);
    animation: rideau-leve .95s var(--courbe) backwards; animation-delay: calc(.2s + var(--i, 0) * 70ms);
  }

  /* 2. Au défilement : cigogne.js pose data-reveal sur ce qui est sous l'écran au chargement, puis est-monte quand
     il y entre (--r : le rang dans la vague). Un filet de sûreté révèle tout ce qui resterait en attente. */
  [data-reveal="titre"]:not(.est-monte), [data-reveal="texte"]:not(.est-monte) { opacity: 0; }
  [data-reveal="titre"].est-monte { animation: masque-monte .9s var(--courbe) backwards; animation-delay: calc(min(var(--r, 0), 4) * 80ms); }
  [data-reveal="titre"].est-monte::after { animation: filet-trace .8s var(--courbe) backwards; animation-delay: calc(.42s + min(var(--r, 0), 4) * 80ms); }
  [data-reveal="texte"].est-monte { animation: texte-monte .75s var(--courbe) backwards; animation-delay: calc(.12s + min(var(--r, 0), 10) * 60ms); }
  html.js [data-reveal="photo"]:not(.est-monte) :is(a.agrandir, .rideau-cadre)::before { animation: none; transform: none; }
  html.js [data-reveal="photo"].est-monte :is(a.agrandir, .rideau-cadre)::before {
    animation: rideau-leve .95s var(--courbe) backwards; animation-delay: calc(.06s + min(var(--r, 0), 6) * 110ms);
  }
  /* l'image se pose par une transition (scale), pour laisser l'animation de profondeur (translate) tourner */
  html.js [data-reveal="photo"]:not(.est-monte) img { animation: none; scale: 1.08; }
  html.js [data-reveal="photo"].est-monte img {
    animation: none; transition: transform .5s var(--courbe), scale 1.5s var(--courbe) calc(.06s + min(var(--r, 0), 6) * 110ms);
  }

  /* Téléphone : l'ordre du premier écran (titre, cadres, boutons, jour, intro) */
  @media (max-width: 959.98px) {
    html.js .heros .actions { animation-delay: .45s; }
    html.js .heros .aujourdhui { animation-delay: .55s; }
    html.js .heros .heros-intro { animation-delay: .65s; }
  }

  /* 4. D'une page à l'autre : la barre et l'onglet restent en place, le contenu monte (navigateurs qui savent). */
  @view-transition { navigation: auto; }
  .barre { view-transition-name: barre; }
  .onglet { view-transition-name: onglet; }
  ::view-transition-old(root) { animation: vt-part .26s var(--courbe) both; }
  ::view-transition-new(root) { animation: vt-monte .62s var(--courbe) both; }
  /* sans JavaScript, personne ne retire son nom à une barre sortie de l'écran (cigogne.js) : elle glisserait du haut.
     La page change alors d'un coup, comme avant (RELECTURE-motion M3). html.js est posé dans le <head>. */
  html:not(.js)::view-transition-group(*), html:not(.js)::view-transition-old(*), html:not(.js)::view-transition-new(*) { animation: none; }
}
@keyframes vt-part { to { opacity: 0; transform: translateY(-16px); } }
@keyframes vt-monte { from { opacity: 0; transform: translateY(36px); } }

/* 3. La profondeur : les grandes photos glissent dans leur cadre un peu moins vite que la page (± 20 px), liée au
   défilement là où le navigateur le sait (animation-timeline) ; ailleurs, la photo se pose seulement (scale).
   La ligne de temps est celle de la figure : le cadre (overflow hidden) est lui-même un conteneur de défilement,
   et view() posé sur l'image le prendrait pour référence (l'image ne glisserait pas). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js :is(.salle-grille .photo-salle, .toit-grille .photo, .photo-salade, .heb-duo .photo, .heb-alentours .photo) {
      view-timeline: --profondeur block;
    }
    html.js :is(.salle-grille .photo-salle, .toit-grille .photo, .photo-salade, .heb-duo .photo, .heb-alentours .photo) img {
      height: calc(100% + 40px); margin-top: -20px;
      animation: profondeur linear both; animation-timeline: --profondeur;
    }
  }
}

/* ── Mouvement réduit : tout est figé ────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  /* la montée aussi : transitions de vue, hauteur des familles de la carte, rien ne reste caché ni décalé */
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .carte-famille::details-content { transition: none !important; }
  [data-reveal] { opacity: 1 !important; translate: none !important; clip-path: none !important; }
  [data-reveal] img { scale: none !important; }
  .agrandir:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ── L'impression : tout est posé ─────────────────────────────────────────────────────────────────────── */
/* Sur papier, rien n'attend et rien ne bouge (RELECTURE-motion B1 : beforeprint posait est-monte, l'impression partait
   à l'instant 0 des montées, opacité 0, titres sous leur masque). Les animations sont amenées à leur fin (durée et
   délai nuls) plutôt que retirées : retirées puis rendues au retour à l'écran, elles rejoueraient toute l'arrivée.
   Les rideaux sont rendus invisibles (sans être retirés, pour la même raison) ; les images ne sont pas grossies. */
@media print {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
  [data-reveal] { opacity: 1 !important; translate: none !important; clip-path: none !important; }
  [data-reveal] img, .heros .vue img { scale: none !important; }
  html.js .cadre::after, html.js a.agrandir::before, html.js .rideau-cadre::before,
  html.js main > section:first-child .photo::before { visibility: hidden !important; }
}

/* css/carte.css */
/* La carte (/carte/) et la page « corriger » (/carte/corriger/), écrites par outils/generer-carte.mjs.
   Jetons et classes communes : base.css et vitrine.css (--papier, --encre, --rouge, --noyer). Ici : classes carte-*,
   couv-* et corr-*.
   Mouvement : transform et opacity, 160 à 300 ms, var(--courbe) ; base.css fige tout en mouvement réduit. */

/* ── /carte/ (V4, 24.10.2026) : la carte imprimée de la maison, posée sur la table de la salle ──────────────── */
/* L'objet : un papier épais crème (fibres calculées, medias/matieres/fibres.webp), coins à peine adoucis, posé sur le
   noyer (ombre de contact et ombre longue, lumière d'en haut à gauche). L'impression : encre noire et rouge, qui
   mord le papier (masque encre.webp, le bord du creux qui prend la lumière), un double filet rouge en marge. La
   couverture jaune s'ouvre une fois par visite (html.couverture, posée dans le <head>) ; les familles se déplient
   comme le papier (generer-carte.mjs). */

/* La barre, posée sur la table */
.barre.barre-table { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: var(--papier); --anneau: var(--jaune); }
.barre-table .barre-menu { border-color: rgb(244 237 221 / .7); }
.barre-table .barre-menu[aria-expanded="true"] { background: var(--papier); color: var(--encre); }
.barre.barre-table .menu { background: var(--noyer) url(/medias/matieres/bois.webp) 0 0 / 1024px 512px; color: var(--papier); --filet: rgb(244 237 221 / .2); border-bottom-color: rgb(244 237 221 / .2); }
.barre-table .btn-commander { background: var(--jaune); color: var(--ardoise); --remplir: var(--papier); }
.barre-table.flotte { background: rgb(40 28 20 / .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -20px rgb(0 0 0 / .7); }

.carte-page { padding: 92px 0 72px; }
@media (min-width: 960px) { .carte-page { padding: 128px 0 112px; } }
.carte-scene {
  max-width: var(--large); margin-inline: auto; padding-inline: 10px;
  display: grid; gap: 48px; justify-items: center;
}
@media (min-width: 600px) { .carte-scene { padding-inline: var(--marge); } }
@media (min-width: 960px) {
  .carte-scene { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; column-gap: clamp(40px, 5vw, 88px); justify-items: stretch; }
}

/* La feuille */
.carte-papier {
  position: relative; width: 100%; max-width: 760px; padding: 44px 22px 38px 34px; border-radius: 3px;
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .5), 0 3px 6px -2px rgb(0 0 0 / .35), 0 26px 40px -18px rgb(0 0 0 / .75), 0 70px 110px -50px rgb(0 0 0 / .6);
  --filet: rgb(42 37 34 / .16); --filet-fort: rgb(42 37 34 / .34); --anneau: var(--encre); --gris: #5C544D;
  /* le point de fuite au haut de la feuille : en tournant, la couverture grandit vers le bas, jamais vers la barre
     (corrections du 24.10 ; au milieu de la feuille, son bord proche montait derrière Menu et le logo) */
  perspective: 2200px; perspective-origin: 50% 0;
}
@media (min-width: 600px) { .carte-papier { padding: 64px 60px 52px 70px; } }
/* le double filet rouge imprimé en marge, et la lumière sur la feuille */
.carte-papier::before {
  content: ''; position: absolute; inset: 10px; pointer-events: none; border: 3px double rgb(163 53 43 / .55); border-radius: 1px;
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp); -webkit-mask-size: 256px; mask-size: 256px;
}
@media (min-width: 600px) { .carte-papier::before { inset: 18px; border-width: 4px; } }
.carte-papier::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(155deg, rgb(255 255 255 / .3), transparent 30%, transparent 75%, rgb(80 56 24 / .07));
}
/* l'impression qui mord : sur les titres, les noms, les prix */
.carte-papier :is(h1, h2, .carte-nom, .carte-prix, .carte-variante, .carte-resume, .carte-tableau thead th) {
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp);
  -webkit-mask-size: 256px 256px; mask-size: 256px 256px;
}
.carte-papier :is(h1, h2, .carte-nom, .carte-prix) { text-shadow: 0 1px 0 rgb(255 255 255 / .6); }

/* La tête de la feuille : le logo de la maison imprimé, le titre, centrés comme sur une carte */
.carte-tete { position: relative; text-align: center; }
.carte-logo {   /* le logo de la maison (medias/logo, vectorisé), imprimé à l'encre : sa forme croisée avec le masque de l'encre */
  display: block; width: 76px; height: 74px; margin: 0 auto 14px; background: var(--encre);
  -webkit-mask-image: url(/medias/logo/cigogne.svg), url(/medias/matieres/encre.webp); mask-image: url(/medias/logo/cigogne.svg), url(/medias/matieres/encre.webp);
  -webkit-mask-size: contain, 256px; mask-size: contain, 256px; -webkit-mask-repeat: no-repeat, repeat; mask-repeat: no-repeat, repeat;
  -webkit-mask-position: 50% 50%, 0 0; mask-position: 50% 50%, 0 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.carte-tete h1 { font-size: clamp(38px, 9vw, 60px); line-height: 1.04; letter-spacing: -.012em; }
.carte-tete h1 em { color: var(--rouge); }
.carte-intro { margin: 14px auto 0; max-width: 26em; font: italic 400 19px/1.4 var(--f-titre); color: #4A433D; }
.carte-tete .actions { justify-content: center; margin-top: 24px; }
.carte-tete .btn-tel { border-color: var(--encre); color: var(--encre); --remplir: var(--encre); }
.carte-tete .btn-commander { box-shadow: 0 1px 1px rgb(0 0 0 / .3), 0 8px 16px -8px rgb(0 0 0 / .5); }
.carte-tete .aujourdhui { justify-content: center; margin-top: 20px; font-size: 15px; font-weight: 600; color: #4A433D; }
/* l'ornement sous la tête : un filet rouge, un losange */
.carte-tete::after {
  content: ''; display: block; width: 120px; height: 9px; margin: 30px auto 0;
  background: linear-gradient(var(--rouge), var(--rouge)) 0 50% / 52px 1.5px no-repeat, linear-gradient(var(--rouge), var(--rouge)) 100% 50% / 52px 1.5px no-repeat,
    linear-gradient(45deg, transparent 33%, var(--rouge) 33% 67%, transparent 67%) 50% 50% / 9px 9px no-repeat;
}

/* Les familles : <details> natifs, ouvrables séparément. */
.carte-familles { margin-top: 28px; }
.carte-outils { display: flex; justify-content: flex-end; }
.carte-tout {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; color: var(--encre);
  font: 600 15px/1 var(--f-texte); letter-spacing: .04em; text-decoration: underline; text-decoration-color: var(--rouge); text-decoration-thickness: 1.5px; text-underline-offset: .3em;
}
.carte-tout[hidden] { display: none; }
.carte-liste { border-top: 1.5px solid rgb(42 37 34 / .7); }
.carte-famille { position: relative; border-bottom: 1px solid var(--filet-fort); }
.carte-famille > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 18px;
  padding: 20px 0 19px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.carte-famille > summary::-webkit-details-marker { display: none; }
.carte-famille > summary::marker { content: ''; }
.carte-famille > summary h2 { grid-column: 1; font-size: clamp(25px, 2.6vw, 30px); line-height: 1.12; }
.carte-resume { grid-column: 1; font: italic 400 16px/1.3 var(--f-titre); color: var(--gris); }
/* le signe : un rond imprimé ; ouvert, il s'encre */
.carte-signe {
  grid-column: 2; grid-row: 1 / span 2; position: relative; width: 38px; height: 38px;
  border: 1.5px solid var(--encre); border-radius: 50%; transition: transform .22s var(--courbe), background-color .22s;
}
.carte-signe::before, .carte-signe::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.8px; margin: -.9px 0 0 -6.5px;
  border-radius: 1px; background: currentColor; transition: transform .26s var(--courbe);
}
.carte-signe::after { transform: rotate(90deg); }
@media (hover: hover) { .carte-famille > summary:hover .carte-signe { transform: scale(1.08); background: rgb(163 53 43 / .1); } }
.carte-famille[open] > summary .carte-signe { background: var(--encre); color: var(--papier); }
.carte-famille[open] > summary .carte-signe::after { transform: rotate(90deg) scaleX(0); }

.carte-contenu { position: relative; padding: 0 0 26px; }
/* La famille s'ouvre en hauteur fluide là où le navigateur sait animer vers auto (interpolate-size) ; ailleurs, d'un
   coup. Le contenu se déplie comme le papier : il tourne sur son pli du haut (rotateX), une ombre quitte le pli. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    html.carte-fluide { interpolate-size: allow-keywords; }
    html.carte-fluide .carte-famille::details-content {
      block-size: 0; overflow-y: clip;
      transition: block-size .5s var(--courbe), content-visibility .5s allow-discrete;
    }
    html.carte-fluide .carte-famille[open]::details-content { block-size: auto; }
  }
}
@keyframes deplie { from { opacity: .2; transform: perspective(900px) rotateX(-82deg); } 55% { opacity: 1; } }
@keyframes pli-ombre { from { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  html.carte-fluide .carte-famille[open] > .carte-contenu { transform-origin: 50% 0; animation: deplie .62s cubic-bezier(.2, .8, .25, 1) both; }
  html.carte-fluide .carte-famille[open] > .carte-contenu::before {
    content: ''; position: absolute; inset: 0 -6px; pointer-events: none;
    background: linear-gradient(180deg, rgb(60 40 20 / .26), rgb(60 40 20 / .08) 40%, transparent 80%);
    opacity: 0; animation: pli-ombre .62s ease-out;
  }
}
.carte-note { margin-bottom: 8px; font: italic 400 17px/1.45 var(--f-titre); color: var(--gris); }

.carte-plats > li { padding: 14px 0; border-top: 1px dotted rgb(42 37 34 / .32); }
.carte-plats > li:first-child { padding-top: 8px; border-top: 0; }
.carte-plat { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 18px; }
.carte-nom { font: 400 21px/1.25 var(--f-titre); }
.carte-prix { font: 400 21px/1.25 var(--f-titre); text-align: right; white-space: nowrap; }
.carte-desc { grid-column: 1 / -1; margin-top: 3px; font-size: 16px; line-height: 1.45; color: var(--gris); }
.carte-variantes { grid-column: 1 / -1; margin-top: 8px; }
.carte-variantes li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 5px 0; }
.carte-variante { font: italic 400 18px/1.3 var(--f-titre); }
.carte-variantes .carte-prix { font-size: 19px; }

/* Les salades : deux colonnes de prix, Petite et Grande. */
.carte-tableau { width: 100%; border-collapse: collapse; }
.carte-tableau thead th { padding: 4px 0 8px 14px; font: 600 12px/1.2 var(--f-texte); letter-spacing: .18em; text-transform: uppercase; color: var(--rouge); text-align: right; }
.carte-tableau thead th:first-child { padding-left: 0; }
.carte-tableau tbody tr { border-top: 1px dotted rgb(42 37 34 / .32); }
.carte-tableau tbody th { padding: 14px 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.carte-tableau td { width: 4.4em; padding: 14px 0 14px 12px; vertical-align: baseline; }
.carte-tableau .carte-nom, .carte-tableau .carte-desc { display: block; }
@media (max-width: 399.98px) { .carte-tableau td { width: 3.7em; padding-left: 8px; } .carte-tableau .carte-prix { font-size: 19px; } }

/* Les cartons glissés dans la carte : le jeudi, le vendredi, « Bon à savoir ». Le jaune de la couverture, en papier. */
.carte-papier :is(.jeudi, .carte-mentions) {
  position: relative; border-radius: 2px;
  background: var(--jaune) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--ardoise);
  box-shadow: 0 1px 1px rgb(0 0 0 / .3), 0 12px 20px -12px rgb(0 0 0 / .55);
}
.carte-contenu .jeudi { margin-top: 26px; rotate: -.6deg; }
.carte-papier .jeudi h3 { font-size: 26px; line-height: 1.1; }
.carte-papier .jeudi-prix { font: 400 36px/1 var(--f-titre); }
.carte-papier .jeudi-pastille { background: var(--rouge); }
.carte-mentions { margin-top: 44px; padding: 26px 22px 24px; rotate: .5deg; }
@media (min-width: 600px) { .carte-mentions { padding: 32px 32px 30px; } }
.carte-mentions h2 { font-size: clamp(26px, 2.6vw, 30px); line-height: 1.1; }
.carte-mentions ul { display: grid; gap: 10px; margin-top: 16px; }
.carte-mentions li { position: relative; padding-left: 20px; }
.carte-mentions li::before { content: ''; position: absolute; left: 1px; top: .64em; width: 7px; height: 7px; rotate: 45deg; background: var(--rouge); }
.carte-mentions .btn-tel { margin-top: 22px; white-space: normal; text-align: left; }

/* La couverture : une fois par visite. Elle tourne sur sa charnière (le bord gauche) et découvre la feuille ; passé le
   quart de tour, on voit son dos (le papier crème) ; elle s'efface en se posant. La feuille sous elle reçoit son ombre. */
.carte-couverture { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js.couverture .carte-couverture {
    display: block; position: absolute; z-index: 4; left: 0; right: 0; top: 0;
    height: min(100%, calc(100vh - 120px)); height: min(100%, calc(100svh - 120px - var(--onglet)));
    transform-origin: 0 50%; transform-style: preserve-3d;
    animation: couv-ouvre 1.6s cubic-bezier(.6, .04, .22, 1) .5s both;
    pointer-events: none;
  }
  html.js.couverture .carte-papier > .carte-tete .entre { animation: none; }
}
.couv-face, .couv-dos { position: absolute; inset: 0; border-radius: 3px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.couv-face {
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; color: var(--ardoise);
  background: var(--jaune) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: 0 1px 1px rgb(0 0 0 / .5), 0 24px 40px -18px rgb(0 0 0 / .7), inset 0 0 0 10px var(--jaune), inset 0 0 0 11.5px rgb(48 56 60 / .45);
}
.couv-logo {
  display: block; width: 150px; height: 147px; background: var(--ardoise);
  -webkit-mask: url(/medias/logo/cigogne.svg) 50% 50% / contain no-repeat; mask: url(/medias/logo/cigogne.svg) 50% 50% / contain no-repeat;
}
.couv-titre { margin-top: 10px; font: italic 400 54px/1 var(--f-titre); letter-spacing: -.01em; }
.couv-sous { font: 600 12px/1.6 var(--f-texte); letter-spacing: .28em; text-transform: uppercase; }
.couv-face :is(.couv-titre, .couv-sous) { text-shadow: 0 1px 0 rgb(255 245 200 / .7), 0 -1px 0 rgb(80 50 0 / .25); }
.couv-dos {
  transform: rotateY(180deg);
  background: #EFE6D2 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: inset -30px 0 40px -20px rgb(80 56 24 / .25);
}
/* l'opacité n'est jamais sur la couverture elle-même : elle aplatirait sa 3D (on reverrait le recto en passant la
   verticale) ; chaque face s'efface seule à la fin du tour */
@keyframes couv-ouvre {
  0% { transform: rotateY(0); }
  12% { transform: rotateY(-6deg); }
  100% { transform: rotateY(-178deg); visibility: hidden; }
}
@keyframes couv-efface { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html.js.couverture :is(.couv-face, .couv-dos) { animation: couv-efface 1.6s linear .5s both; }
}

/* La photo : un tirage posé sur la table, à côté de la carte (au bureau, il reste à l'écran pendant la lecture). */
.carte-tirage {
  width: min(84%, 380px); margin: 0; padding: 12px 12px 18px; rotate: 2.2deg;
  background: #F7F1E4 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 16px 26px -12px rgb(0 0 0 / .7), 0 40px 60px -30px rgb(0 0 0 / .55);
}
.carte-tirage-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.carte-tirage-photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-tirage-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(128deg, rgb(255 255 255 / .16), transparent 36%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.carte-tirage figcaption { margin-top: 12px; padding-inline: 4px; font: italic 400 17px/1.35 var(--f-titre); color: #4A433D; }
@media (min-width: 960px) {
  .carte-tirage { position: sticky; top: 120px; width: 100%; margin-top: 90px; justify-self: start; }
}

/* ── /carte/corriger/ ────────────────────────────────────────────────────────────────────────────────── */
.corr-page { --onglet: 0px; background: var(--ardoise); }
@media (max-width: 959.98px) { .corr-page { padding-bottom: calc(72px + env(safe-area-inset-bottom)); } }

.corr-retour {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-left: auto;
  font: 600 16px/1 var(--f-texte); text-decoration: none; border-bottom: 1.5px solid currentColor;
}
.corr-retour svg { width: 18px; height: 18px; transition: transform .2s var(--courbe); }
.corr-retour:hover svg { transform: translateX(3px); }

.corr-tete { padding: 32px 0 56px; }
@media (min-width: 960px) { .corr-tete { padding: 48px 0 88px; } }
.corr-tete h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.012em; }
.corr-intro { margin-top: 18px; max-width: 34em; font-size: 19px; }
.rang-texte .corr-discret { margin-top: 14px; max-width: 34em; font-size: 16px; }
.corr-etapes { display: grid; gap: 12px; }
.corr-etapes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-content: start; gap: 10px; align-items: baseline; }
.corr-num { font: italic 400 30px/1 var(--f-titre); }
.corr-etapes p { font-size: 17px; line-height: 1.45; }
.corr-etapes strong { font-weight: 600; }
@media (min-width: 600px) {
  .corr-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .corr-etapes li { grid-template-columns: 1fr; gap: 10px; padding-top: 16px; border-top: 1.5px solid var(--ardoise); }
  .corr-num { font-size: 40px; }
}

.corr-corps { padding: 48px 0 88px; background: var(--blanc); }
@media (min-width: 960px) { .corr-corps { padding: 72px 0 112px; } }
.corr-corps .rang { row-gap: 48px; }
.corr-groupe + .corr-groupe { margin-top: 60px; }
.corr-groupe > h2 { padding-bottom: 14px; border-bottom: 1.5px solid var(--ardoise); font-size: clamp(28px, 3vw, 34px); line-height: 1.1; }
.corr-groupe .corr-sous { margin-top: 12px; font-size: 16px; color: var(--gris); }

/* Les questions */
/* Une question = un bloc séparé par un filet, sans cadre : seuls les choix sont des cases. */
.corr-question { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--filet-fort); }
.corr-sous + .corr-question { margin-top: 10px; padding-top: 14px; border-top: 0; }
.corr-question legend { padding: 0; font: 400 21px/1.25 var(--f-titre); text-wrap: balance; }
.corr-contexte { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--gris); }
.corr-choix { display: grid; gap: 8px; margin-top: 14px; }
.corr-option { border: 1.5px solid var(--filet-fort); border-radius: var(--rayon); background: var(--blanc); }
.corr-option:has(input[type="radio"]:checked) { border-color: var(--ardoise); background: var(--jaune); }
.corr-radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; font-size: 17px; line-height: 1.3; cursor: pointer; }
.corr-radio input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ardoise); }
.corr-precision { display: block; padding: 0 12px 12px 46px; }

/* Les lignes de la carte */
.corr-lignes { margin-top: 2px; }
.corr-ligne { padding: 16px 0; border-bottom: 1px solid var(--filet); }
.corr-plat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.corr-nom { font: 400 20px/1.25 var(--f-titre); }
.corr-prix { font: 600 17px/1.3 var(--f-texte); white-space: nowrap; }
.corr-gestes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.corr-enlever {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; cursor: pointer;
  border: 1.5px solid var(--filet-fort); border-radius: var(--rayon); font: 600 16px/1 var(--f-texte);
}
.corr-enlever input { width: 18px; height: 18px; margin: 0; accent-color: var(--ardoise); }
.corr-enlever:has(input:checked) { border-color: var(--ardoise); background: var(--ardoise); color: var(--blanc); }
.corr-enlever:has(input:checked) input { accent-color: var(--jaune); }
.corr-enlever:has(input:focus-visible) { outline: 3px solid var(--anneau); outline-offset: 3px; }
.corr-enlever input:focus-visible { outline: none; }
.corr-champ input, .corr-precision input, .corr-libre {
  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--filet-fort); border-radius: var(--rayon);
  background: var(--blanc); color: var(--ardoise); font: 600 16px/1.2 var(--f-texte);
}
.corr-champ input { width: 8.5em; }
.corr-precision input { width: 100%; }
.corr-champ input::placeholder, .corr-precision input::placeholder, .corr-libre::placeholder { color: var(--gris); opacity: 1; font-weight: 400; }
.corr-champ input:focus, .corr-precision input:focus, .corr-libre:focus { border-color: var(--ardoise); }
.corr-ligne.enleve .corr-nom, .corr-ligne.enleve .corr-prix, .corr-ligne.change .corr-prix {
  color: var(--gris); text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.corr-ligne.enleve .corr-champ { opacity: .45; }
.corr-ligne.change .corr-champ input:not(:placeholder-shown) { border-color: var(--ardoise); }
/* Un prix qui n'est pas compris (lot 1, 1.1) : le champ passe au jaune, la phrase dit quoi écrire. */
.corr-champ input[aria-invalid="true"] { border: 2px solid var(--ardoise); background: var(--jaune); }
.corr-faute { flex-basis: 100%; font-size: 15px; line-height: 1.4; font-weight: 600; }

.corr-autre h2 label { cursor: pointer; }
.corr-libre { display: block; width: 100%; min-height: 132px; margin-top: 16px; padding: 12px 14px; font: 400 17px/1.5 var(--f-texte); resize: vertical; }

/* L'aperçu du message : à gauche et à l'écran au bureau ; après le formulaire au téléphone. */
.corr-apercu { padding: 24px 20px 22px; border-radius: var(--rayon); background: var(--ardoise); color: var(--blanc); --anneau: var(--jaune); }
@media (min-width: 960px) {
  .corr-media { align-self: stretch; }
  .corr-apercu { position: sticky; top: 24px; padding: 30px 30px 26px; }
}
.corr-apercu h2 { font-size: clamp(26px, 2.6vw, 30px); line-height: 1.1; }
.corr-message {
  max-height: min(52vh, 460px); margin-top: 16px; padding: 16px 16px 18px; overflow: auto; overflow-wrap: anywhere;
  border: 1px solid var(--filet-clair); border-radius: var(--rayon); background: rgb(255 255 255 / .06);
  font: 400 16px/1.5 var(--f-texte); white-space: pre-wrap;
}
.corr-message.vide { color: rgb(255 255 255 / .78); }
.corr-compte { margin-top: 14px; font-size: 16px; font-weight: 600; }
.corr-compte:empty { display: none; }
.corr-envoyer {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 14px; padding: 0 20px;
  border: 0; border-radius: var(--rayon); background: var(--jaune); color: var(--ardoise); font: 600 17px/1 var(--f-texte);
  cursor: pointer; transition: transform .18s var(--courbe);
}
.corr-envoyer:hover { transform: translateY(-2px); }
.corr-envoyer:active { transform: none; }
.corr-envoyer[hidden] { display: none; }
.corr-note { margin-top: 12px; font-size: 15px; line-height: 1.45; color: rgb(255 255 255 / .78); }
.corr-note a { color: var(--blanc); }

/* La barre du bas (téléphone) : le compte et « Envoyer », toujours à portée ; elle s'efface devant l'aperçu. */
.corr-bas {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 10px var(--marge) calc(10px + env(safe-area-inset-bottom)); background: var(--ardoise); color: var(--blanc);
  box-shadow: 0 -8px 20px rgb(48 56 60 / .22); --anneau: var(--jaune);
  transition: transform .24s var(--courbe), opacity .24s var(--courbe), visibility 0s;
}
.corr-bas[hidden] { display: none; }
.corr-bas p { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.corr-bas .corr-envoyer { flex: none; width: auto; min-height: 48px; margin: 0; padding: 0 22px; }
.corr-bas.efface { transform: translateY(110%); opacity: 0; visibility: hidden; transition: transform .24s var(--courbe), opacity .24s var(--courbe), visibility 0s .24s; }
@media (min-width: 960px) { .corr-bas { display: none !important; } }

.corr-pied { padding: 28px var(--marge) 32px; background: var(--ardoise); color: rgb(255 255 255 / .78); font-size: 15px; text-align: center; --anneau: var(--jaune); }
.corr-pied a { color: var(--blanc); }

/* css/hebergement.css */
/* Hébergement et page introuvable, V4 temps 2, constructeur A (24.10.2026, travail/prestige/livraison/BRIEF-V4.md).
   Feuille chargée après base.css et avant pages.css (ordre alphabétique de construire.mjs) : chaque règle est préfixée
   par la classe du <body> (.page-heb, .page-err), donc elle passe devant pages.css, univers.css et vitrine.css sans y
   toucher. Les matières sont celles du temps 1 (pierre, chêne, craie, papier, noyer, crépi, enseigne), plus le
   lin de l'étiquette des nuits (medias/heb/lin.webp, calculé). Lumière d'en haut à gauche. */

/* ═══ L'hébergement ═════════════════════════════════════════════════════════════════════════════════════ */

/* La barre, posée sur le film du nid (quand elle revient au défilement, elle reprend le blanc de base.css) */
.page-heb .barre:not(.flotte) {
  position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent;
  color: #fff; --anneau: var(--jaune);
}
.page-heb .barre:not(.flotte) .barre-logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgb(0 0 0 / .45)); }
.page-heb .barre:not(.flotte) :is(.barre-liens a, .barre-tel) { text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.page-heb .barre:not(.flotte) .barre-menu { border-color: rgb(255 255 255 / .8); }
.page-heb .barre:not(.flotte) .barre-menu[aria-expanded="true"] { background: #fff; color: var(--ardoise); }
.page-heb .barre:not(.flotte) .menu { color: var(--ardoise); }
.page-heb .barre:not(.flotte) .barre-commander { background: var(--jaune); color: var(--ardoise); --remplir: #fff; }

/* La pierre : le nid, les nuits et la visite sur une seule ardoise (aucun raccord entre elles). Carreau raccordable
   (medias/heb/pierre.webp, l'ardoise de la maison fondue sur elle-même) : aucun joint droit, ni en largeur ni en hauteur. */
.page-heb .heb-pierre {
  background: #2B3032 url(/medias/heb/pierre.webp) 50% 0 / 1200px auto; color: #F4F2EB;
}

/* 1. Le nid : le film « pose » (univers.css, .nid-film), plus haut ici, et le titre posé sur sa fin. Le film se fond
   dans la pierre elle-même (masque sur la figure : la pierre de .heb-pierre paraît dessous), plus d'aplat ni de ligne. */
.page-heb .heb-film {
  height: clamp(380px, 68svh, 700px); background: transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, rgb(0 0 0 / .55) 74%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 50%, rgb(0 0 0 / .55) 74%, transparent 98%);
}
@media (min-width: 960px) { .page-heb .heb-film { height: min(80svh, 56vw); } }
.page-heb .heb-film::after { background: linear-gradient(180deg, rgb(20 24 26 / .5), transparent 24%, transparent 50%, rgb(20 24 26 / .4)); }
.page-heb .heb-film .nid-fixe, .page-heb .heb-film .nid-video { object-position: 66% 50%; }
.heb-nid-texte { position: relative; max-width: var(--large); margin: -92px auto 0; padding: 0 var(--marge); }
.heb-sur { font: 600 13px/1.2 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--jaune); }
.page-heb .heb-nid h1 {
  margin-top: 12px; max-width: 11.5em; font-size: clamp(38px, 10.2vw, 76px); line-height: 1.03; letter-spacing: -.012em;
  color: #F4F2EB; text-shadow: 0 2px 24px rgb(0 0 0 / .35);
}
.page-heb .heb-nid h1 em { color: var(--jaune); }
.page-heb .heb-intro { margin-top: 16px; max-width: 34em; font-size: 18px; line-height: 1.5; color: rgb(244 242 235 / .86); }
@media (min-width: 960px) { .page-heb .heb-intro { font-size: 20px; } .heb-nid-texte { margin-top: -120px; } }

/* 2. Les nuits : une étiquette de lin, brodée au fil rouge (points avant autour, prix au point lancé, nœuds) */
.heb-nuits-dedans { max-width: var(--large); margin-inline: auto; padding: 40px var(--marge) 40px; display: grid; gap: 30px; }
@media (min-width: 960px) {
  .heb-nuits-dedans { grid-template-columns: minmax(0, 540px) minmax(0, 1fr); align-items: end; column-gap: 72px; padding-block: 64px 56px; }
}
.heb-etiquette {
  position: relative; max-width: 500px; padding: 30px 22px 24px; rotate: -1.1deg; border-radius: 2px;
  background: linear-gradient(rgb(230 220 198 / .42), rgb(230 220 198 / .42)), #E2D6BE url(/medias/heb/lin.webp) 0 0 / 128px 128px; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 14px 24px -12px rgb(0 0 0 / .75), 0 36px 54px -30px rgb(0 0 0 / .6);
}
@media (min-width: 600px) { .heb-etiquette { padding: 38px 40px 32px; } }
/* les points de broderie, à 9 px du bord : des traits de fil (7 px), leur ombre sur la toile */
.heb-etiquette::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rouge) 0 7px, transparent 7px 12px) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rouge) 0 7px, transparent 7px 12px) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--rouge) 0 7px, transparent 7px 12px) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--rouge) 0 7px, transparent 7px 12px) 100% 0 / 2px 100% no-repeat;
  filter: drop-shadow(0 1px 0 rgb(40 20 10 / .35));
}
.heb-etiquette::after {   /* la lumière sur la toile, le bord un rien replié */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgb(255 255 255 / .24), transparent 40%, transparent 78%, rgb(60 40 20 / .12));
  box-shadow: inset 0 0 0 1px rgb(120 100 70 / .25);
}
/* le fil brodé : le rouge, le relief du fil (ombre et lumière), et le grain des points lancés (masque rayé) */
.heb-etiquette :is(.heb-etiquette-titre, .tarif-prix), .heb-compris li::before {
  color: var(--rouge);
  -webkit-mask-image: repeating-linear-gradient(118deg, #000 0 1.3px, rgb(0 0 0 / .74) 1.3px 2.3px);
  mask-image: repeating-linear-gradient(118deg, #000 0 1.3px, rgb(0 0 0 / .74) 1.3px 2.3px);
  text-shadow: 0 1px 0 rgb(255 240 220 / .45), 0 1.5px 1.5px rgb(40 10 0 / .35);
}
.heb-etiquette-titre { font: italic 400 36px/1 var(--f-titre); letter-spacing: -.01em; }
.page-heb .heb-tarifs { margin-top: 16px; border-top: 1px dashed rgb(42 37 34 / .35); }
.page-heb .heb-tarifs li { border-bottom: 1px dashed rgb(42 37 34 / .35); padding: 14px 0; }
.page-heb .heb-tarifs .tarif-nom { font-size: 22px; color: var(--encre); }
.page-heb .heb-tarifs .tarif-prix { font: 400 26px/1.1 var(--f-titre); }
@media (min-width: 600px) { .page-heb .heb-tarifs .tarif-nom { font-size: 26px; } .page-heb .heb-tarifs .tarif-prix { font-size: 30px; } }
.page-heb .heb-tarifs .tarif-prix small { font: italic 400 15px/1 var(--f-titre); color: #5C544D; }
.heb-compris { display: grid; gap: 8px; margin-top: 16px; }
.heb-compris li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.4; color: #3B342F; }
.heb-compris li::before {   /* un nœud brodé : le fil enroulé (tours du fil en rayons), la lumière en haut à gauche */
  content: ''; position: absolute; left: 3px; top: .42em; width: 10px; height: 10px; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgb(255 214 196 / .55), transparent 46%),
    repeating-conic-gradient(from 12deg, var(--rouge) 0 30deg, #84261E 30deg 45deg);
  box-shadow: 0 1px 1px rgb(40 10 0 / .45);
}
/* l'adresse de courriel ne se coupe jamais au milieu : sur une ligne à elle, un rien plus petite sous 375 px */
.page-heb .heb-adresse { white-space: nowrap; }
@media (max-width: 374.98px) { .page-heb .heb-adresse { font-size: 15.5px; } }
.heb-nuits-actions .actions { margin-top: 0; }
.heb-nuits-actions .heb-courriel { margin-top: 16px; font-size: 17px; }

/* 3. La visite : un couloir de tirages ; la photo glisse dans son cadre (--d), les pièces loin du centre reculent (--a) */
.heb-visite { padding: 24px 0 72px; }
.heb-visite-tete { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.heb-visite-tete h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; }
.heb-visite-tete p { margin-top: 10px; font-size: 17px; color: rgb(244 242 235 / .8); }
.heb-couloir {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 330px); gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 30px max(var(--marge), calc(50% - 165px)) 40px; scroll-padding-inline: max(var(--marge), calc(50% - 165px));
}
.heb-couloir::-webkit-scrollbar { display: none; }
@media (min-width: 960px) {
  .heb-couloir { grid-auto-columns: 380px; gap: 40px; padding-inline: max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge))); scroll-snap-type: x proximity; }
}
.heb-piece { scroll-snap-align: center; }
.heb-piece figure {
  position: relative; margin: 0; padding: 10px 10px 14px; transform-origin: 50% 60%;
  background: #F7F1E4 url(/medias/heb/papier-creme.webp) 0 0 / 512px 512px; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .4), 0 14px 24px -10px rgb(0 0 0 / .7), 0 36px 56px -30px rgb(0 0 0 / .55);
}
.heb-couloir.vivant .heb-piece figure { scale: calc(1 - var(--a, 0) * .07); }
.heb-piece figure::before {   /* les pièces loin du centre dans la pénombre */
  content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: rgb(18 14 10 / .55); opacity: 0;
}
.heb-couloir.vivant .heb-piece figure::before { opacity: calc(var(--a, 0) * .6); }
.page-heb .heb-piece .agrandir { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0; }
.page-heb .heb-piece img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; scale: 1.14; }
.heb-couloir.vivant .heb-piece img { translate: calc(var(--d, 0) * -9%) 0; }
.heb-piece figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding-inline: 4px; font: italic 400 18px/1.3 var(--f-titre); }
.heb-num { font: 600 12px/1 var(--f-texte); letter-spacing: .1em; color: var(--rouge); }
.heb-pas { display: flex; justify-content: flex-end; gap: 12px; max-width: var(--large); margin: -12px auto 0; padding-inline: var(--marge); }
.heb-pas[hidden] { display: none; }
.heb-pas button {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid rgb(244 242 235 / .6); background: transparent; color: #F4F2EB; transition: background-color .2s, color .2s;
}
.heb-pas button:not([aria-disabled="true"]):hover { background: #F4F2EB; color: var(--ardoise); }
.heb-pas button[aria-disabled="true"] { opacity: .32; cursor: default; }   /* au bout du couloir */
.heb-pas svg { width: 22px; height: 22px; }
/* le focus sur un tirage : un anneau rouge (le fil de la maison) dans la marge du papier crème, 6,2:1 */
.heb-piece .agrandir:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; }
/* le bloc Best4GoEat de cette page : le crépi déjà multiplié (base.css le fusionne au jaune ; ici, aucune fusion) */
.page-heb .b4g { background: var(--jaune) url(/medias/heb/crepi-jaune.webp) 0 0 / 512px 512px; }

/* 4. Dans les appartements : écrit à la craie sur l'ardoise de la salle (cadre de chêne en haut et en bas). Ni cadre ni
   pictogramme : chaque ligne écrite à la main, un trait de craie tiré à main levée entre elles (SVG, masque de craie). */
.page-heb .heb-appart {
  position: relative; background: #2B3032 url(/medias/heb/pierre.webp) 50% 50% / 1200px auto;
  border-block: 16px solid #7A512D; border-image: url(/medias/matieres/cadre.webp) 128 0 / 16px 0 stretch;
}
.page-heb .heb-appart h2, .page-heb .heb-appart .rang-texte > p, .page-heb .heb-appart .heb-equip li {
  -webkit-mask-image: url(/medias/matieres/craie.webp); mask-image: url(/medias/matieres/craie.webp);
  -webkit-mask-size: 190px 190px; mask-size: 190px 190px;
}
.page-heb .heb-appart .heb-equip { display: grid; gap: 0; border: 0; }
.page-heb .heb-appart .heb-equip li {
  position: relative; display: block; padding: 22px 0 20px; border: 0; border-radius: 0; background: none; box-shadow: none;
  text-shadow: 0 0 .5px rgb(255 255 255 / .6), 0 0 7px rgb(255 255 255 / .12);
}
.page-heb .heb-appart .heb-equip li::before {   /* le trait de craie, tiré à main levée */
  content: ''; position: absolute; left: 0; right: 6%; top: 0; height: 8px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M1.5 5.1C40 3.6 76 4.6 114 3.9s79-1.7 118-.5c25 .7 45 1.5 66.5 1' fill='none' stroke='%23F4F2EB' stroke-width='1.7' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.page-heb .heb-appart .heb-equip li:nth-child(2n)::before { right: 12%; scale: -1 1; }
.page-heb .heb-appart .heb-equip h3 { margin: 0; font-size: 25px; line-height: 1.15; color: #F4F2EB; }
.page-heb .heb-appart .heb-equip p { margin-top: 6px; font: italic 400 18px/1.4 var(--f-titre); color: rgb(244 242 235 / .8); }
@media (min-width: 600px) {
  .page-heb .heb-appart .heb-equip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; }
  .page-heb .heb-appart .heb-equip li { padding: 26px 0 24px; }
}

/* 5. La table : deux tirages posés sur le noyer (vitrine.css, .table) */
.page-heb .heb-table .heb-duo .photo {
  padding: 8px 8px 12px; rotate: -1.6deg;
  background: #F7F1E4 url(/medias/heb/papier-creme.webp) 0 0 / 512px 512px;
  box-shadow: 0 1px 1px rgb(0 0 0 / .4), 0 14px 22px -10px rgb(0 0 0 / .7);
}
.page-heb .heb-table .heb-duo .photo + .photo { rotate: 2deg; }
.page-heb .heb-table .photo :is(img, .agrandir) { border-radius: 0; }
.page-heb .heb-table .heb-duo figcaption { margin-top: 8px; padding-inline: 2px; font: italic 400 16px/1.3 var(--f-titre); color: var(--encre); }

/* 6. En haut de la vieille ville : sur le crépi de la façade, la photo en tirage */
.page-heb .heb-alentours {
  background: var(--jaune) url(/medias/heb/crepi-jaune.webp) 0 0 / 512px 512px;
  color: var(--ardoise); --filet: rgb(48 56 60 / .2); --anneau: var(--ardoise);
  box-shadow: inset 0 14px 18px -14px rgb(110 70 0 / .5);
}
.page-heb .heb-alentours .rang-texte > h2::after { background: var(--rouge); }
.page-heb .heb-alentours h2 em { color: var(--rouge); }
.page-heb .heb-alentours .photo {
  padding: 10px 10px 14px; rotate: .9deg; background: #F7F1E4 url(/medias/heb/papier-creme.webp) 0 0 / 512px 512px;
  box-shadow: 0 1px 1px rgb(60 40 0 / .4), 0 16px 26px -12px rgb(60 40 0 / .6);
}
.page-heb .heb-alentours .photo :is(img, .agrandir) { border-radius: 0; }
.page-heb .heb-alentours .photo figcaption { margin-top: 10px; font: italic 400 16px/1.3 var(--f-titre); color: var(--encre); }

/* 7. Réserver une nuit : sur la pierre (raccordable, comme le haut de la page), le carton des choses à dire, scotché */
.page-heb .heb-reserver { background: #2B3032 url(/medias/heb/pierre.webp) 50% 50% / 1200px auto; }
.page-heb .heb-memo {
  position: relative; rotate: -1deg; border-radius: 2px; padding: 32px 26px 24px;
  background: var(--papier) url(/medias/heb/papier.webp) 0 0 / 512px 512px; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 16px 26px -12px rgb(0 0 0 / .75), 0 40px 60px -34px rgb(0 0 0 / .6);
}
.page-heb .heb-memo::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; translate: -50% 0; rotate: -2deg;
  background: linear-gradient(180deg, rgb(238 230 208 / .84), rgb(222 212 186 / .8)); box-shadow: 0 1px 2px rgb(0 0 0 / .2);
  clip-path: polygon(0 6%, 4% 0, 8% 9%, 12% 1%, 16% 7%, 20% 0, 100% 0, 96% 8%, 100% 15%, 96% 26%, 100% 37%, 96% 49%, 100% 60%, 96% 72%, 100% 84%, 96% 93%, 100% 100%, 0 100%, 4% 90%, 0 79%, 4% 66%, 0 55%, 4% 43%, 0 31%, 4% 19%);
}
.page-heb .heb-memo .puces li::before { background: var(--rouge); }

/* ═══ La page introuvable : la façade et la potence vide ══════════════════════════════════════════════ */
.page-err .barre:not(.flotte) { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.page-err .err {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip; padding: 108px 0 72px;
  min-height: calc(100vh - var(--onglet)); min-height: calc(100svh - var(--onglet)); display: flex; align-items: center;
  background: var(--jaune) url(/medias/heb/crepi-jaune.webp) 0 0 / 512px 512px;
  color: var(--ardoise); --anneau: var(--ardoise);
}
.page-err .err::before {   /* l'avant-toit, le soleil d'en haut à gauche, les coins sourds */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(118 78 14 / .46), rgb(118 78 14 / .16) 64px, rgb(118 78 14 / 0) 150px),
    radial-gradient(48% 40% at 22% 18%, rgb(255 250 228 / .45), transparent 75%),
    radial-gradient(150% 110% at 40% 30%, transparent 52%, rgb(110 70 0 / .26));
}
.page-err .err .rang { width: 100%; }
.page-err .err h1 { color: #2C3234; text-shadow: 0 1px 0 rgb(255 240 190 / .45); }
.page-err .err h1 em { color: var(--rouge); }
.page-err .err-intro { color: var(--ardoise); }
.page-err .err .lien-fleche { color: var(--ardoise); }
.err-potence { position: relative; margin: 0 auto; width: min(76vw, 420px); padding-bottom: 8px; }
.err-potence img { display: block; width: 100%; height: auto; }
.err-potence-objet { position: relative; z-index: 1; }
.err-potence-ombre { position: absolute; left: 0; top: 0; z-index: 0; filter: brightness(0) blur(3px); opacity: .32; translate: 7% 5%; }
.err-potence figcaption { position: relative; margin-top: 18px; font: italic 400 16px/1.3 var(--f-titre); color: #5A4614; text-align: center; }
@media (min-width: 960px) {
  .page-err .err { padding-top: 128px; }
  .page-err .err .rang-media { justify-self: end; max-width: 460px; }
}

@media print {
  .page-heb .heb-pierre, .page-heb .heb-appart, .page-heb .heb-alentours, .page-err .err { background: none; color: var(--ardoise); }
  .heb-film, .heb-pas, .err-potence-ombre { display: none; }
}

/* css/pages.css */
/* La Cigogne : les pages intérieures écrites à la main (PLAN.md, 16.10.2026).
   Hébergement (heb-), Réservations (resa-), page introuvable (err-). Jetons et classes communes : base.css.
   Grille : photos à gauche, titres à droite (.rang > .rang-texte puis .rang-media dans le DOM).
   Mouvement : « la montée » (base.css) ; transform et opacity seuls ici ; base.css fige tout en mouvement réduit. */

/* ── Les têtes de page ───────────────────────────────────────────────────────────────────────────────── */
.heb-tete, .resa-tete { padding: 40px 0 72px; }
@media (min-width: 960px) { .heb-tete, .resa-tete { padding: 64px 0 112px; } }
.heb-tete h1, .resa-tete h1, .err h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.012em; }
.rang-texte .heb-intro, .rang-texte .resa-intro, .rang-texte .err-intro { margin-top: 20px; font-size: 19px; max-width: 34em; }
@media (min-width: 960px) { .rang-texte .heb-intro, .rang-texte .resa-intro, .rang-texte .err-intro { font-size: 20px; } }

/* Le courriel publié par la maison : toujours en second, après le téléphone. */
.heb-courriel, .resa-courriel {
  display: inline-flex; align-items: flex-start; gap: 10px; max-width: 100%; min-height: 44px; padding-block: 9px;
  font-weight: 600; line-height: 1.45; text-decoration-thickness: 1px;
}
.heb-courriel svg, .resa-courriel svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.heb-courriel span, .resa-courriel span { min-width: 0; overflow-wrap: anywhere; }

/* Deux photos côte à côte, la seconde plus basse (la table et le toit) */
.heb-duo, .resa-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.heb-duo .photo + .photo, .resa-duo .photo + .photo { margin-top: 36px; }
.heb-duo .agrandir, .resa-duo .agrandir { aspect-ratio: 4 / 5; overflow: hidden; }
@media (min-width: 960px) {
  .heb-duo, .resa-duo { gap: 24px; }
  .heb-duo .photo + .photo, .resa-duo .photo + .photo { margin-top: 64px; }
}
@media (max-width: 599.98px) { .heb-duo .photo figcaption, .resa-duo .photo figcaption { font-size: 14px; } }

/* ═══ Hébergement ═══════════════════════════════════════════════════════════════════════════════════════ */

/* La colonne des titres reste à l'écran le long de la galerie, quand elle tient dans la hauteur. */
@media (min-width: 960px) and (min-height: 820px) {
  .heb-tete .rang-texte { position: sticky; top: 32px; }
}

/* Les tarifs : les lignes communes (.tarifs, base.css) */
.heb-tete .puces { margin-top: 22px; }
.heb-tete .actions { margin-top: 30px; }
.heb-tete .heb-courriel { margin-top: 14px; font-size: 17px; }

/* La galerie : les neuf photos des appartements. Téléphone : deux colonnes, une pleine largeur sur trois.
   Dès 600 px : six colonnes, des cases carrées (une rangée = une colonne), trois bandes. */
.heb-galerie-boite { container-type: inline-size; }
.heb-galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.heb-galerie > li { min-width: 0; }
.heb-galerie .agrandir { overflow: hidden; aspect-ratio: 4 / 5; }
.heb-galerie .heb-pleine { grid-column: 1 / -1; }
.heb-galerie .heb-pleine .agrandir { aspect-ratio: 1 / 1; }
.heb-galerie .agrandir img { transition-duration: .3s; }   /* le zoom : base.css, sous (hover: hover), coupé en mouvement réduit */
@media (min-width: 600px) {
  .heb-galerie {
    grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
    grid-auto-rows: 104px;                               /* navigateur sans unités de conteneur */
    grid-auto-rows: calc((100cqi - 60px) / 6);
  }
  .heb-galerie .agrandir, .heb-galerie .heb-pleine .agrandir { aspect-ratio: auto; height: 100%; }
  /* bande 1 : le séjour (4 × 5), la chambre et le linge à sa droite */
  .heb-galerie > li:nth-child(1) { grid-area: 1 / 1 / span 5 / span 4; }
  .heb-galerie > li:nth-child(2) { grid-area: 1 / 5 / span 3 / span 2; }
  .heb-galerie > li:nth-child(3) { grid-area: 4 / 5 / span 2 / span 2; }
  /* bande 2 : les trois photos de cuisine et de table, côte à côte */
  .heb-galerie > li:nth-child(4) { grid-area: 6 / 1 / span 3 / span 2; }
  .heb-galerie > li:nth-child(5) { grid-area: 6 / 3 / span 3 / span 2; }
  .heb-galerie > li:nth-child(6) { grid-area: 6 / 5 / span 3 / span 2; }
  /* bande 3 : le canapé et le coin nuit à gauche, les lits en grand à droite (le miroir de la bande 1) */
  .heb-galerie > li:nth-child(7) { grid-area: 9 / 1 / span 2 / span 2; }
  .heb-galerie > li:nth-child(8) { grid-area: 11 / 1 / span 2 / span 2; }
  .heb-galerie > li:nth-child(9) { grid-area: 9 / 3 / span 4 / span 4; }
}
/* Les photos se découvrent une à une sous leur rideau (base.css, « la montée ») : l'image n'est jamais à opacité
   nulle, la première est celle du LCP au bureau. Au téléphone, la galerie est sous l'écran : elle attend d'y entrer. */

/* Dans les appartements (ardoise) : quatre cases */
/* Téléphone : des lignes (icône à gauche) ; dès 600 px : quatre cases. */
.heb-equip { display: grid; border-top: 1px solid var(--filet); }
.heb-equip li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.heb-equip svg { grid-row: span 2; width: 30px; height: 30px; color: var(--jaune); }
.heb-equip h3 { font-size: 23px; line-height: 1.15; }
.heb-equip p { margin-top: 4px; font-size: 17px; }
@media (min-width: 600px) {
  .heb-equip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 0; }
  .heb-equip li { display: block; padding: 22px 22px 20px; border: 1px solid var(--filet); border-radius: var(--rayon); }
  .heb-equip h3 { margin-top: 16px; font-size: 24px; line-height: 1.12; }
  .heb-equip p { margin-top: 8px; }
}

/* Les alentours : les distances données par la maison */
.heb-distances { margin-top: 26px; border-top: 1px solid var(--filet); }
.heb-distances > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--filet);
}
.heb-distances dt { font: 400 23px/1.2 var(--f-titre); }
.heb-distances dt .chiffres { font-size: 32px; line-height: 1; }
.heb-distances dd { margin: 0; }
@media (min-width: 480px) { .heb-distances > div { grid-template-columns: minmax(0, 9em) minmax(0, 1fr); } }
.heb-alentours .agrandir { aspect-ratio: 800 / 470; overflow: hidden; }

/* Réserver une nuit (jaune) : ce qu'il faut dire au téléphone */
.heb-reserver .tel-grand { margin-top: 18px; }
.heb-reserver .heb-courriel { margin-top: 10px; }
.heb-memo { padding: 26px 24px 24px; border-radius: var(--rayon); background: var(--blanc); }
.heb-memo h3 { font-size: 26px; line-height: 1.12; }
.heb-memo .puces { margin-top: 16px; }

/* ═══ Réservations ══════════════════════════════════════════════════════════════════════════════════════ */
.resa-voie { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--filet); }
.rang-texte .resa-voie h2 { font: italic 400 22px/1.2 var(--f-titre); }
.resa-voie .tel-grand { margin-top: 6px; }
.resa-voie .aujourdhui { margin-top: 12px; }
.resa-voie .resa-courriel { margin-top: 6px; font-size: 18px; }
.rang-texte .resa-voie p.sourd { margin-top: 4px; font-size: 16px; }

/* Ce qui se réserve : les lignes des tarifs (.tarifs, base.css), lisibles sans geste */
.rang-media > .tarifs:first-child { margin-top: 0; }
/* « Un appartement » et son prix demandent 321 px, donc un écran de 361 px : en dessous de 375 px, les quatre lignes
   posent toutes la valeur sous le nom, un seul dessin dans la liste (VERIF-A, A-V3 ; travail/corrections/). */
@media (max-width: 374.98px) { .resa-tarifs li { display: grid; justify-items: start; row-gap: 2px; } }
.resa-suite { display: flex; flex-wrap: wrap; gap: 0 28px; }

/* ═══ La page introuvable ═══════════════════════════════════════════════════════════════════════════════ */
.err { padding: 40px 0 80px; }
@media (min-width: 960px) { .err { padding: 72px 0 120px; } }
.err .rang { align-items: center; }
.err-liens { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 8px; }
.err-photo { width: 100%; max-width: 400px; }
.err-photo img { aspect-ratio: 5 / 6; }
@media (max-width: 959.98px) { .err-photo { max-width: 320px; } }
@media (min-width: 960px) { .err .rang-media { justify-self: end; width: 100%; max-width: 400px; } }

/* css/reservation.css */
/* La Cigogne : /reservation/ (reservation.js) et, plus bas, /carte/corriger/ (generer-carte.mjs). Jetons et classes
   communes : base.css, vitrine.css (--papier, --encre, --rouge, --noyer). Ce fichier passe après carte.css et
   pages.css : il surcharge leurs règles resa- et corr-.
   V4 (24.10.2026, temps 2, constructeur B) : le livre de réservations ouvert sur le comptoir de la salle (noyer).
   La couverture en toile rouge (le rouge du bec de l'enseigne), le papier ligné à fibres, la reliure cousue, deux
   signets de soie pour « Une table » et « Une nuit » : le choisi pend jusqu'au bas de son mot, l'autre remonte. Le
   choix d'un logement s'entoure à l'encre rouge, comme au stylo. Plus bas, la façade : les horaires peints à la
   feuille d'or sur la vitre de la porte, un reflet qui passe avec le défilement.
   Contrastes sur le papier (#F4EDDD) : encre 13,4:1 ; aides #5C544D 6,3:1 ; bord des champs #7D7166 4,0:1 ;
   rouge 6,2:1 ; mot non choisi #6B625A 5,1:1. Or sur la vitre : 4,6:1 au plus sombre. Cibles de 44 px au moins.
   Sans JavaScript, le formulaire n'existe pas à l'écran (le téléphone et le courriel suffisent) et le livre non plus :
   la page de gauche reste sur le comptoir. Mouvement : transform, translate, opacity ; base.css fige tout en réduit. */

html:not(.js) .resa-carte, .resa-carte[hidden], .resa-form[hidden], .resa-volet[hidden], .resa-erreur[hidden] { display: none !important; }
/* JavaScript présent, reservation.js pas encore prêt : la carte tient sa place, invisible (ni vue, ni lue, ni atteinte au
   clavier). Prêt, il retire data-attente ; s'il renonce ou échoue, il pose hidden ; s'il n'a pas tourné du tout (non
   chargé, illisible), le petit script de la page le fait à DOMContentLoaded. Rien ne bouge à son arrivée (RELECTURE-FINALE D5). */
html.js .resa-carte[data-attente] { visibility: hidden; }
/* la ligne des jours fermés, écrite par le script depuis les horaires : sa place est gardée pendant l'attente */
html.js .resa-carte[data-attente] .resa-aide[data-aide-fermeture]:empty { display: block; min-height: 1.4em; }

/* ── La barre : sur le crépi de la façade (le logo est à l'encre ardoise) ─────────────────────────────── */
.resa-page .barre {
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  border-bottom-color: transparent; box-shadow: 0 12px 18px -14px rgb(30 18 8 / .7);
}
.resa-page .barre .menu { background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply; }

/* ── Le comptoir : le noyer de la salle, la lampe en haut à gauche ───────────────────────────────────── */
.resa-comptoir {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  background-color: var(--noyer);
  background-image:
    radial-gradient(120% 70% at 26% 0%, rgb(255 226 180 / .15), transparent 62%),
    radial-gradient(150% 110% at 50% 40%, transparent 50%, rgb(10 6 2 / .45)),
    url(/medias/matieres/bois.webp);
  background-size: auto, auto, 1024px 512px;
  color: var(--papier); --anneau: var(--jaune); --filet: rgb(244 237 221 / .22);
}
.resa-dedans { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); display: grid; gap: 40px; }
.resa-comptoir h1 { color: var(--papier); text-shadow: 0 2px 22px rgb(0 0 0 / .35); }
.resa-comptoir h1 em { color: var(--jaune); }
.resa-intro { margin-top: 18px; max-width: 30em; font-size: 19px; line-height: 1.45; color: rgb(244 237 221 / .88); }
@media (min-width: 960px) {
  .resa-dedans { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(40px, 5vw, 80px); row-gap: 56px; align-items: end; }
  .resa-entete { grid-column: 1; grid-row: 1; padding-bottom: 20px; }
  .resa-duo { grid-column: 2; grid-row: 1; }
  .resa-livre { grid-column: 1 / -1; grid-row: 2; }
  .resa-intro { font-size: 20px; }
}

/* ── Le livre ────────────────────────────────────────────────────────────────────────────────────────── */
.resa-livre { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 52px; }
/* la couverture : toile rouge tissée, plus grande que les pages, son ombre sur le comptoir */
.resa-livre::before {
  content: ''; grid-row: 1; grid-column: 1; z-index: -2; margin: -9px -10px -13px -13px; border-radius: 5px 8px 8px 5px;
  background:
    url(/assets/grain.png) 0 0 / 160px 160px,
    repeating-linear-gradient(90deg, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #45170F, #6B2A21 18%, #5E231B 60%, #4A1A13);
  box-shadow: inset 0 1px 0 rgb(255 220 200 / .14), 0 2px 3px rgb(0 0 0 / .55), 0 30px 46px -18px rgb(0 0 0 / .8), 0 80px 120px -60px rgb(0 0 0 / .7);
}
html:not(.js) .resa-livre::before, .resa-tete:not(.avec-formulaire) .resa-livre::before { display: none; }
html:not(.js) .resa-gauche, .resa-tete:not(.avec-formulaire) .resa-gauche { grid-row: auto; }

/* La page de droite (le formulaire) : papier épais, lignes bleues, marge rouge doublée, reliure cousue à gauche. */
.resa-carte {
  --x: 32px;   /* la marge rouge */
  grid-row: 1; grid-column: 1; position: relative; min-width: 0;
  padding: 0 18px 32px calc(var(--x) + 14px);
  color: var(--encre); --anneau: var(--encre); --filet: rgb(42 37 34 / .16); --filet-fort: rgb(42 37 34 / .34);
  background-color: var(--papier);
  background-image:
    repeating-linear-gradient(180deg, #8C6E4E 0 6px, transparent 6px 13px),
    linear-gradient(90deg, rgb(64 40 18 / .36), rgb(64 40 18 / .1) 12px, transparent 34px),
    linear-gradient(90deg, transparent var(--x), rgb(163 53 43 / .5) var(--x) calc(var(--x) + 1.5px), transparent 0 calc(var(--x) + 4px), rgb(163 53 43 / .5) 0 calc(var(--x) + 5.5px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 31px, rgb(78 112 156 / .2) 31px 32px),
    linear-gradient(160deg, rgb(255 255 255 / .32), transparent 40%, transparent 82%, rgb(90 60 30 / .08)),
    url(/medias/matieres/fibres.webp);
  background-size: 1.5px 100%, auto, auto, auto, auto, 512px 512px;
  background-position: 5px 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat, repeat;
  background-blend-mode: normal, normal, normal, normal, normal, multiply;
  border-radius: 2px 4px 4px 2px;
  /* la tranche : les feuilles du dessous, à droite et en bas */
  box-shadow: 1px 1px 0 #E0D5BD, 2px 2px 0 #F0E7D3, 3px 3px 0 #DACDB3, 4px 4px 0 #ECE2CD, 5px 5px 0 #D3C6AA, 6px 7px 8px -2px rgb(0 0 0 / .35);
  container-type: inline-size;
}
@media (min-width: 600px) { .resa-carte { --x: 40px; padding-right: 30px; } }

/* ── Les deux signets de soie : Une table, Une nuit ──────────────────────────────────────────────────── */
/* Ils sortent de la tête du livre (le haut de la page les rogne) ; le choisi descend jusqu'au bas de son mot. */
.resa-genre {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px;
  margin: 0 -18px 0 calc((var(--x) + 14px) * -1); padding: 0 18px 0 calc(var(--x) + 14px);
  overflow: hidden; overflow: clip;
  border-bottom: 3px double rgb(163 53 43 / .55);
}
@media (min-width: 600px) { .resa-genre { margin-right: -30px; padding-right: 30px; } }
.resa-signet { position: relative; display: block; min-width: 0; min-height: 108px; padding: 24px 2px 18px 33px; cursor: pointer; }
.resa-signet input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.resa-ruban {
  position: absolute; left: 2px; top: 0; width: 22px; height: 98px; pointer-events: none;
  transform: translateY(-48px); filter: drop-shadow(1px 3px 2px rgb(40 20 10 / .38));
  transition: transform .6s cubic-bezier(.3, 1.3, .45, 1);
}
.resa-ruban i {
  display: block; width: 100%; height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 10px), 0 100%);   /* la queue d'aronde */
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .06) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #6E1D17, #B23E33 30%, #D4594C 46%, #A3352B 62%, #741F18);
}
.resa-signet-nuit .resa-ruban i {
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .06) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #1A2E4B, #34598A 30%, #5079AE 46%, #2E4D78 62%, #1C3150);
}
.resa-signet-mot { display: block; font: 400 clamp(19px, 5.3vw, 26px)/1.1 var(--f-titre); color: #6B625A; transition: color .3s var(--courbe); }
.resa-signet-mot small {
  display: block; margin-top: 6px; font: 600 11.5px/1.3 var(--f-texte); letter-spacing: .14em; text-transform: uppercase;
}
.resa-signet-mot::after {   /* le trait d'encre sous le mot choisi */
  content: ''; display: block; width: 2.4em; height: 2px; margin-top: 9px; border-radius: 1px; background: var(--rouge);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--courbe) .1s;
}
/* page étroite (320) : le sous-titre en bas de casse, sans espacement, pour que « appartement » tienne */
@container (max-width: 250px) {
  .resa-signet { padding-left: 30px; }
  .resa-signet-mot small { font-size: 12px; letter-spacing: 0; text-transform: none; }
}
.resa-signet input:checked ~ .resa-ruban { transform: translateY(0); }
.resa-signet input:checked ~ .resa-signet-mot { color: var(--encre); }
.resa-signet input:checked ~ .resa-signet-mot small { color: var(--rouge); }
.resa-signet input:checked ~ .resa-signet-mot::after { transform: scaleX(1); }
@media (hover: hover) { .resa-signet input:not(:checked):hover ~ .resa-ruban { transform: translateY(-38px); } }
.resa-signet input:focus-visible ~ .resa-signet-mot { outline: 3px solid var(--encre); outline-offset: 5px; border-radius: 3px; }
.resa-signet input:focus-visible { outline: none; }

/* ── Le formulaire ───────────────────────────────────────────────────────────────────────────────────── */
.resa-form { display: grid; gap: 24px; margin-top: 0; }
.resa-genre + .resa-volet { margin-top: 6px; }
.resa-volet { display: grid; gap: 24px; }
.resa-paire { display: grid; gap: 24px; }
@container (min-width: 400px) { .resa-paire { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; } }
@media (prefers-reduced-motion: no-preference) {
  /* une page tournée : le volet choisi arrive (il passe de display: none à visible) */
  .resa-volet { animation: volet-entre .5s var(--courbe) both; }
}
@keyframes volet-entre { from { opacity: 0; translate: 0 10px; } }

.resa-champ { display: grid; gap: 7px; align-content: start; min-width: 0; }
.resa-champ > label, .resa-choix > legend { font: 600 16px/1.3 var(--f-texte); color: var(--encre); }
.resa-choix > legend { padding: 0; margin-bottom: 10px; }
.resa-facultatif { font-weight: 400; color: #5C544D; }
.resa-champ input, .resa-champ select, .resa-champ textarea {
  display: block; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 12px 14px;
  border: 1.5px solid #7D7166; border-radius: 3px; background-color: rgb(255 253 247 / .8); color: var(--encre);
  box-shadow: inset 0 1px 2px rgb(60 40 20 / .12);
  font: 400 18px/1.3 var(--f-texte); -webkit-appearance: none; appearance: none;
}
.resa-champ input[type="date"] { line-height: 26px; }
.resa-champ input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.resa-champ select {
  padding-right: 44px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2522' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px 18px;
}
.resa-champ select:disabled { cursor: not-allowed; color: #6B625A; }
.resa-champ textarea { min-height: 104px; resize: vertical; }
.resa-champ input:focus, .resa-champ select:focus, .resa-champ textarea:focus { border-color: var(--encre); background-color: rgb(255 253 247 / .95); }
/* un champ date a quatre arrêts au clavier (jour, mois, année, icône du calendrier) ; sur l'icône, le champ n'est plus
   :focus (Chrome) mais reste :focus-within : l'anneau tient sur les quatre */
.resa-champ input[type="date"]:focus-within { border-color: var(--encre); outline: 3px solid var(--anneau); outline-offset: 3px; }
.resa-champ :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--rouge); box-shadow: inset 0 0 0 1.5px var(--rouge); }
@container (min-width: 400px) { .resa-court { max-width: calc(50% - 9px); } }

.resa-aide { font-size: 15px; line-height: 1.4; color: #5C544D; }
.resa-aide:empty { display: none; }
.resa-erreur { display: flex; align-items: flex-start; gap: 8px; font: 600 15.5px/1.35 var(--f-texte); color: var(--encre); }
/* le « ! » est dessiné, pas lu : texte de remplacement vide (le premier content sert aux navigateurs qui ne le savent pas) */
.resa-erreur::before {
  content: '!'; content: '!' / ''; flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0;
  border-radius: 50%; background: var(--rouge); color: var(--papier); font: 600 13px/1 var(--f-texte);
}

/* ── Studio ou appartement, demi-pension : le choix s'entoure à l'encre rouge ─────────────────────────── */
.resa-choix { display: grid; gap: 8px; min-width: 0; }
.resa-options { display: grid; gap: 16px 18px; }
@container (min-width: 400px) { .resa-options-logement { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.resa-options-oui-non { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resa-option { position: relative; display: block; min-width: 0; }
.resa-option input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.resa-option-corps {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px;
  min-height: 52px; height: 100%; padding: 12px 14px; border: 1.5px solid #7D7166; border-radius: 3px;
  background: rgb(255 253 247 / .7); transition: background-color .25s var(--courbe), border-color .25s var(--courbe);
}
.resa-option-corps::after {   /* le rond d'encre, tracé à la main */
  content: ''; position: absolute; inset: -6px -8px; pointer-events: none;
  border: 2.2px solid var(--rouge); border-radius: 50% 46% 52% 48% / 60% 50% 54% 44%; rotate: -1.4deg;
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp); -webkit-mask-size: 256px; mask-size: 256px;
  opacity: 0; scale: .9; transition: opacity .2s var(--courbe), scale .5s cubic-bezier(.3, 1.4, .5, 1);
}
.resa-options-oui-non .resa-option-corps { justify-content: center; align-items: center; }
.resa-option-nom { font: 400 20px/1.2 var(--f-titre); }
.resa-option-prix { font: 600 17px/1.2 var(--f-texte); white-space: nowrap; }
.resa-option-prix small { font-size: 15px; font-weight: 400; }
.resa-option input:hover + .resa-option-corps { border-color: var(--encre); }
.resa-option input:checked + .resa-option-corps { border-color: transparent; background: rgb(163 53 43 / .07); }
.resa-option input:checked + .resa-option-corps::after { opacity: 1; scale: 1; }
.resa-option input:checked + .resa-option-corps .resa-option-prix { color: var(--rouge); }
.resa-option input:focus-visible + .resa-option-corps { outline: 3px solid var(--encre); outline-offset: 9px; }
.resa-option input[aria-invalid="true"] + .resa-option-corps { border-color: var(--rouge); box-shadow: inset 0 0 0 1.5px var(--rouge); }

/* le piège à robots : ni vu, ni lu, ni atteint au clavier */
.resa-piege { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Le bouton, et ce qu'il fera ────────────────────────────────────────────────────────────────────── */
.resa-envoyer {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin-top: 4px; padding: 0 26px;
  border: 0; border-radius: 3px; background: var(--encre); color: var(--papier); --anneau: var(--encre);
  font: 600 17px/1.15 var(--f-texte); cursor: pointer;
  box-shadow: 0 1px 1px rgb(0 0 0 / .35), 0 10px 18px -10px rgb(40 26 10 / .6);
  transition: transform .18s var(--courbe), box-shadow .18s var(--courbe);
}
.resa-envoyer:hover { transform: translateY(-2px); box-shadow: 0 2px 2px rgb(0 0 0 / .3), 0 14px 24px -10px rgb(40 26 10 / .65); }
.resa-envoyer:active { transform: translateY(0); }
.resa-envoyer:disabled { cursor: progress; opacity: .75; transform: none; box-shadow: none; }
/* pendant l'envoi : le bouton garde sa couleur (et le focus), seul le libellé change */
.resa-envoyer[aria-disabled="true"] { cursor: progress; transform: none; box-shadow: none; }
@container (min-width: 400px) { .resa-envoyer { width: auto; justify-self: start; } }
.resa-note { margin-top: -10px; }

/* ── Les issues : une fiche glissée dans le livre ───────────────────────────────────────────────────── */
.resa-issue-carte {
  margin-top: 26px; padding: 22px 20px 24px; border-radius: 2px; rotate: -.4deg;
  background: #FBF7EE url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: 0 1px 1px rgb(0 0 0 / .25), 0 12px 20px -12px rgb(40 26 10 / .55);
}
.resa-issue-carte:focus { outline: none; }
.resa-issue-carte:focus-visible { outline: 3px solid var(--encre); outline-offset: 3px; }
.resa-issue-carte h3 { font: 400 25px/1.15 var(--f-titre); }
.resa-issue-carte > * + *, .resa-carte .resa-issue-carte > * + * { margin-top: 12px; }
.resa-issue-carte p { font-size: 17px; line-height: 1.5; }
.resa-issue-carte p.resa-secours-titre, .resa-carte .resa-issue-carte > p.resa-secours-titre { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--filet); font-weight: 600; }
.resa-issue-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.resa-bouton, .resa-bouton-trait {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
  border-radius: 3px; font: 600 16px/1.15 var(--f-texte); text-decoration: none; cursor: pointer;
}
.resa-bouton { background: var(--encre); color: var(--papier); border: 1.5px solid var(--encre); }
.resa-bouton-trait { background: transparent; color: var(--encre); border: 1.5px solid var(--encre); }
.resa-bouton, .resa-bouton-trait { transition: transform .18s var(--courbe), box-shadow .18s var(--courbe), background-color .18s var(--courbe), color .18s var(--courbe); }
.resa-bouton:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgb(40 26 10 / .7); }
.resa-bouton-trait:hover { background: var(--encre); color: var(--papier); }
.resa-adresse { overflow-wrap: anywhere; font-weight: 600; }
.resa-issue-carte .chiffres { white-space: nowrap; }
.resa-copie-etat:empty, .resa-copie:empty { display: none; }
.resa-copie-etat { font-weight: 600; overflow-wrap: anywhere; }
.resa-texte {
  display: block; width: 100%; margin-top: 4px; padding: 12px; border: 1.5px solid #7D7166; border-radius: 3px;
  font: 400 15px/1.45 var(--f-texte); color: var(--encre); background: rgb(255 253 247 / .9); resize: vertical;
}
.resa-raisons { display: grid; gap: 6px; padding-left: 0; }
.resa-raisons li { position: relative; padding-left: 20px; font-size: 16px; }
.resa-raisons li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; rotate: 45deg; background: var(--rouge); }

/* ── La page de gauche : le téléphone, le courriel, ce qui se réserve ───────────────────────────────── */
/* Au téléphone (et sans le livre), sur le comptoir : le papier pour les mots, le carton pour les tarifs. */
.resa-gauche { grid-row: 2; grid-column: 1; min-width: 0; display: grid; align-content: start; }
.resa-voie { margin-top: 0; padding-top: 22px; border-top: 1px solid var(--filet); }
.resa-voie + .resa-voie { margin-top: 26px; }
.resa-voie h2 { font: 600 12.5px/1.2 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--jaune); }
.resa-voie .tel-grand { margin-top: 6px; font-size: clamp(34px, 9vw, 44px); color: inherit; }
.resa-voie .aujourdhui { margin-top: 8px; font-size: 16px; }
.resa-voie .resa-courriel { margin-top: 8px; font-size: 18px; color: inherit; }
.resa-tarif {
  position: relative; margin-top: 44px; padding: 32px 22px 28px; border-radius: 2px; rotate: .5deg;
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  color: var(--encre); --filet: rgb(42 37 34 / .17); --anneau: var(--encre); --gris: #5C544D;
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 18px 30px -14px rgb(0 0 0 / .75), 0 50px 80px -40px rgb(0 0 0 / .6);
}
.resa-tarif h2 { font-size: clamp(30px, 7.6vw, 40px); line-height: 1.08; }
.resa-tarif h2::after { content: ''; display: block; width: 56px; height: 2px; margin-top: 14px; background: var(--rouge); }
.resa-tarif > p { margin-top: 16px; font-size: 17px; line-height: 1.5; }
.resa-tarif .tarifs { margin-top: 22px; border-top-color: rgb(42 37 34 / .5); }
.resa-tarif .tarif-nom { font-size: 23px; }
.resa-tarif .tarif-prix { font: 400 24px/1.15 var(--f-titre); color: var(--rouge); }
.resa-tarif .tarif-prix small { font: 400 15px var(--f-texte); color: var(--gris); }
.resa-tarif .tarifs li { border-bottom-style: dotted; border-bottom-color: rgb(42 37 34 / .32); }
.resa-tarif .resa-suite { margin-top: 18px; }

/* Les deux tirages, posés sur le comptoir */
.resa-duo { gap: 18px; padding: 8px 6px 18px; }
.resa-tirage {
  padding: 9px 9px 12px; rotate: var(--tourne, 0deg);
  background: #F7F1E4 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .4), 0 12px 22px -10px rgb(0 0 0 / .7), 0 34px 54px -30px rgb(0 0 0 / .6);
  transition: translate .5s var(--courbe), rotate .5s var(--courbe);
}
.resa-tirage img { border-radius: 0; }
.resa-tirage .agrandir { position: relative; }
.resa-tirage .agrandir::after { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.resa-tirage figcaption { margin-top: 10px; padding-inline: 2px; font: italic 400 16px/1.3 var(--f-titre); color: #4A433D; }
@media (hover: hover) { .resa-tirage:hover { translate: 0 -5px; rotate: calc(var(--tourne, 0deg) * .4); } }
@media (min-width: 960px) {
  .resa-duo { width: min(46vw, 520px); gap: 26px; padding: 0 8px 0 0; margin-bottom: -40px; position: relative; z-index: 1; }
  .resa-tirage figcaption { font-size: 17px; }
}
/* le rideau des photos du haut (base.css) n'a rien à faire sur le comptoir : les tirages se posent */
html.js .resa-duo .photo a.agrandir::before { content: none; }
html.js .resa-duo .photo a.agrandir img { animation: none; }

/* ── Au bureau, le livre ouvert : deux pages, la reliure au milieu ──────────────────────────────────── */
@media (min-width: 960px) {
  :where(html.js) .resa-tete.avec-formulaire .resa-livre { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; row-gap: 0; }
  :where(html.js) .resa-tete.avec-formulaire .resa-livre::before { grid-column: 1 / -1; margin: -12px -14px -16px -14px; border-radius: 7px; }
  /* la page de gauche : le même papier, en miroir ; sa tranche à gauche */
  :where(html.js) .resa-tete.avec-formulaire .resa-livre::after {
    content: ''; grid-row: 1; grid-column: 1; z-index: -1; border-radius: 4px 2px 2px 4px;
    background-color: var(--papier);
    background-image:
      linear-gradient(270deg, rgb(64 40 18 / .36), rgb(64 40 18 / .1) 12px, transparent 40px),
      linear-gradient(90deg, transparent 52px, rgb(163 53 43 / .5) 52px 53.5px, transparent 0 56px, rgb(163 53 43 / .5) 0 57.5px, transparent 0),
      repeating-linear-gradient(180deg, transparent 0 31px, rgb(78 112 156 / .2) 31px 32px),
      linear-gradient(200deg, rgb(255 255 255 / .1), transparent 40%, transparent 82%, rgb(90 60 30 / .1)),
      url(/medias/matieres/fibres.webp);
    background-size: auto, auto, auto, auto, 512px 512px;
    background-blend-mode: normal, normal, normal, normal, multiply;
    box-shadow: -1px 1px 0 #E0D5BD, -2px 2px 0 #F0E7D3, -3px 3px 0 #DACDB3, -4px 4px 0 #ECE2CD, -5px 5px 0 #D3C6AA, -6px 7px 8px -2px rgb(0 0 0 / .35);
  }
  :where(html.js) .resa-tete.avec-formulaire .resa-carte { grid-column: 2; --x: 46px; padding: 0 48px 48px calc(var(--x) + 18px); border-radius: 2px 4px 4px 2px; }
  :where(html.js) .resa-tete.avec-formulaire .resa-genre { margin-right: -48px; padding-right: 48px; margin-left: calc((var(--x) + 18px) * -1); padding-left: calc(var(--x) + 18px); column-gap: 18px; }
  :where(html.js) .resa-tete.avec-formulaire .resa-signet { min-height: 124px; padding: 30px 6px 20px 46px; }
  :where(html.js) .resa-tete.avec-formulaire .resa-ruban { left: 6px; width: 26px; height: 114px; transform: translateY(-58px); }
  :where(html.js) .resa-tete.avec-formulaire .resa-signet input:checked ~ .resa-ruban { transform: translateY(0); }
  :where(html.js) .resa-tete.avec-formulaire .resa-signet input:not(:checked):hover ~ .resa-ruban { transform: translateY(-48px); }
  :where(html.js) .resa-tete.avec-formulaire .resa-gauche {
    grid-row: 1; grid-column: 1; padding: 56px 56px 48px 76px; color: var(--encre); --anneau: var(--encre); --filet: rgb(42 37 34 / .2); --gris: #5C544D;
  }
  :where(html.js) .resa-tete.avec-formulaire .resa-voie { border-top: 0; padding-top: 0; }
  :where(html.js) .resa-tete.avec-formulaire .resa-voie + .resa-voie { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--filet); }
  :where(html.js) .resa-tete.avec-formulaire .resa-voie h2 { color: var(--rouge); }
  :where(html.js) .resa-tete.avec-formulaire .resa-voie .tel-grand { font-size: 44px; }
  :where(html.js) .resa-tete.avec-formulaire .resa-tarif { margin-top: 44px; padding: 34px 0 0; rotate: none; background: none; box-shadow: none; border-top: 3px double rgb(163 53 43 / .55); }
  :where(html.js) .resa-tete.avec-formulaire .resa-tarif h2 { font-size: 36px; }
}
/* sans le livre (sans JS, ou si le script renonce), au bureau : la page de gauche sur le comptoir, en deux colonnes */
@media (min-width: 960px) {
  html:not(.js) .resa-gauche, .resa-tete:not(.avec-formulaire) .resa-gauche { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 64px; }
  html:not(.js) .resa-gauche .resa-tarif, .resa-tete:not(.avec-formulaire) .resa-gauche .resa-tarif { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  html:not(.js) .resa-gauche .resa-voie, .resa-tete:not(.avec-formulaire) .resa-gauche .resa-voie { grid-column: 1; }
}

/* ── L'arrivée : le livre se pose, les signets tombent de la tête, les tirages se posent ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  html.js .resa-livre { animation: livre-pose 1s var(--courbe) .12s backwards; }
  html.js .resa-ruban i { animation: ruban-tombe 1.1s cubic-bezier(.3, 1.25, .45, 1) .75s backwards; }
  html.js .resa-signet-nuit .resa-ruban i { animation-delay: .88s; }
  html.js .resa-tirage { animation: tirage-pose .9s var(--courbe) .3s backwards; }
  html.js .resa-tirage + .resa-tirage { animation-delay: .42s; }
}
@keyframes livre-pose { from { opacity: 0; translate: 0 28px; } }
@keyframes ruban-tombe { from { translate: 0 -100%; } }
@keyframes tirage-pose { from { opacity: 0; translate: 0 -16px; rotate: calc(var(--tourne, 0deg) - 5deg); scale: 1.04; } }

/* ── La façade : l'adresse sur le crépi, les horaires à la feuille d'or sur la vitre ─────────────────── */
.resa-facade {
  position: relative; color: var(--ardoise); --anneau: var(--ardoise);
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: inset 0 16px 20px -14px rgb(60 30 0 / .55);
}
.resa-facade::before {   /* le soleil d'en haut à gauche, les coins plus sourds */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 14% 0%, rgb(255 248 220 / .45), transparent 62%), radial-gradient(130% 100% at 50% 50%, transparent 58%, rgb(110 70 0 / .2));
}
.resa-facade .rang { position: relative; }
.section.resa-facade .rang-texte > h2::after { background: var(--rouge); }
.resa-facade .aujourdhui { margin-top: 30px; }

/* La porte : son cadre de bois peint crème (comme les fenêtres de la façade), une moulure ; la vitre : sombre et
   bleutée (la salle derrière), le ciel reflété en haut, la lampe de la salle au fond ; l'or posé dessus. */
.resa-vitre {
  position: relative; isolation: isolate; max-width: 460px; padding: 16px; border-radius: 3px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / .55), transparent 30%, transparent 70%, rgb(90 70 40 / .18)),
    #EAE3D2 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px;
  background-blend-mode: normal, multiply;
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / .9), inset -1px -1px 0 rgb(90 70 40 / .3),
    0 1px 1px rgb(60 36 0 / .3), 14px 28px 40px -16px rgb(70 42 0 / .55);
}
.resa-vitre::before {   /* la moulure autour de la vitre : un creux, une arête claire */
  content: ''; position: absolute; inset: 10px; z-index: 3; pointer-events: none; border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgb(110 90 60 / .35), 0 0 0 1px rgb(255 255 255 / .8), inset 2px 2px 3px rgb(60 40 20 / .35);
}
@media (min-width: 960px) { .resa-vitre { margin-left: auto; padding: 20px; } .resa-vitre::before { inset: 13px; } }
.resa-vitre .resa-dorure, .resa-vitre .resa-reflet { border-radius: 1px; }
.resa-dorure.carte-horaires {
  position: relative; padding: 34px 26px 30px; border-radius: 1px;
  background:
    linear-gradient(176deg, rgb(160 192 228 / .26), rgb(120 150 190 / .08) 22%, transparent 40%),
    radial-gradient(70% 40% at 78% 100%, rgb(255 196 120 / .1), transparent 70%),
    linear-gradient(160deg, #20272C, #151A1D 58%, #181D20);
  box-shadow: inset 0 5px 12px rgb(0 0 0 / .6), inset 0 0 0 1px rgb(0 0 0 / .55);
}
/* la feuille d'or : un dégradé de métal découpé dans la lettre, un trait sombre dessous (filter, une fois) */
.resa-dorure { --or: linear-gradient(172deg, #FBEFC4 0%, #E9C870 26%, #BC9139 50%, #F2D88C 68%, #C99E44 100%); }
.resa-dorure :is(h3, .semaine th, .semaine td) {
  background: var(--or); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.resa-dorure h3, .resa-dorure .semaine { filter: drop-shadow(0 1px 0 rgb(0 0 0 / .8)); }
.resa-dorure h3 { font: italic 400 clamp(32px, 8vw, 40px)/1.1 var(--f-titre); text-align: center; }
.resa-dorure h3::after {   /* le filet d'or sous le titre */
  content: ''; display: block; width: 72px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, #D9B65E 20%, #F2D88C 50%, #D9B65E 80%, transparent);
}
.resa-dorure .semaine { margin-top: 18px; font: 400 18px/1.25 var(--f-titre); }
.resa-dorure .semaine th, .resa-dorure .semaine td { padding: 10px 0; border-bottom: 1px solid rgb(217 182 94 / .22); font-weight: 400; }
.resa-dorure .semaine th { font-style: italic; }
.resa-dorure .semaine td { font-variant-numeric: lining-nums tabular-nums; }
.resa-dorure .semaine tr:last-child :is(th, td) { border-bottom: 0; }
.resa-dorure .semaine tr.ce-jour { background: linear-gradient(90deg, transparent, rgb(233 200 112 / .12) 30%, rgb(233 200 112 / .12) 70%, transparent); }
.resa-dorure .semaine tr.ce-jour :is(th, td) { font-weight: 400; }
.resa-dorure .semaine tr.ferme { color: inherit; }
.resa-dorure .semaine tr.ferme :is(th, td) { opacity: .78; }
/* le reflet de la rue sur la vitre : une lumière en biais, qui passe quand la page défile */
.resa-reflet {
  position: absolute; inset: 16px; z-index: 2; pointer-events: none; overflow: hidden; overflow: clip;
}
@media (min-width: 960px) { .resa-reflet { inset: 20px; } }
.resa-reflet::before {
  content: ''; position: absolute; inset: -10% -60%;
  background: linear-gradient(112deg, transparent 32%, rgb(255 255 255 / .09) 41%, rgb(255 255 255 / .02) 47%, rgb(255 255 255 / .11) 53%, transparent 62%);
  transform: translateX(-12%);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .resa-reflet { view-timeline: --vitre block; }
    .resa-reflet::before { animation: reflet-passe linear both; animation-timeline: --vitre; will-change: transform; }
  }
}
@keyframes reflet-passe { from { transform: translateX(-34%); } to { transform: translateX(22%); } }

@media print {
  .resa-comptoir, .resa-facade { background: none; color: var(--ardoise); }
  .resa-livre::before, .resa-livre::after, .resa-ruban, .resa-reflet { display: none; }
  .resa-dorure :is(h3, .semaine th, .semaine td) { background: none; color: var(--ardoise); -webkit-text-fill-color: currentColor; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════════════════
   /carte/corriger/ (V4) : la page de la maison, dans les matières de la maison. La tête sur le crépi de la façade,
   les corrections sur une feuille de la carte posée sur le noyer, le message qui s'écrit à la craie sur l'ardoise
   (cadre de chêne). Mêmes classes corr-* qu'avant (carte.css) : ici, matières et typographie seulement.
   ════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.corr-page { background: var(--noyer); }
.barre.corr-barre, .corr-tete.champ-jaune {
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
}
.barre.corr-barre { box-shadow: none; }
.corr-tete { position: relative; isolation: isolate; }
.corr-tete::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 70% at 14% 0%, rgb(255 248 220 / .45), transparent 62%), radial-gradient(130% 100% at 50% 50%, transparent 58%, rgb(110 70 0 / .2));
}
.corr-tete h1 em { color: var(--rouge); }
.corr-num { color: var(--rouge); }
@media (min-width: 600px) { .corr-etapes li { border-top: 3px double rgb(48 56 60 / .6); } }

.corr-corps {
  background-color: var(--noyer);
  background-image: radial-gradient(120% 60% at 26% 0%, rgb(255 226 180 / .13), transparent 62%), url(/medias/matieres/bois.webp);
  background-size: auto, 1024px 512px;
  box-shadow: inset 0 14px 18px -12px rgb(0 0 0 / .55);
}
/* la feuille : le papier de la carte, sa double marge rouge */
.corr-corps .rang-texte {
  position: relative; padding: 36px 20px 40px; border-radius: 3px;
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  --filet: rgb(42 37 34 / .16); --filet-fort: rgb(42 37 34 / .34); --anneau: var(--encre); --gris: #5C544D;
  box-shadow: 0 1px 1px rgb(0 0 0 / .5), 0 3px 6px -2px rgb(0 0 0 / .35), 0 26px 40px -18px rgb(0 0 0 / .75);
}
.corr-corps .rang-texte::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none; border: 3px double rgb(163 53 43 / .5); border-radius: 1px;
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp); -webkit-mask-size: 256px; mask-size: 256px;
}
@media (min-width: 600px) { .corr-corps .rang-texte { padding: 52px 48px 52px; } .corr-corps .rang-texte::before { inset: 16px; } }
@media (max-width: 599.98px) { .corr-corps .rang { padding-inline: 12px; } }
.corr-groupe > h2 { border-bottom: 3px double rgb(163 53 43 / .55); }
.corr-groupe .corr-sous { font-style: italic; font-family: var(--f-titre); }
.corr-option { border-color: #7D7166; border-radius: 3px; background: rgb(255 253 247 / .7); }
.corr-option:has(input[type="radio"]:checked) { border-color: var(--encre); background: rgb(241 205 98 / .55); }
.corr-radio input, .corr-enlever input { accent-color: var(--encre); }
.corr-enlever { border-color: #7D7166; border-radius: 3px; background: rgb(255 253 247 / .6); }
.corr-enlever:has(input:checked) { border-color: var(--encre); background: var(--encre); color: var(--papier); }
.corr-champ input, .corr-precision input, .corr-libre { border-color: #7D7166; border-radius: 3px; background: rgb(255 253 247 / .8); color: var(--encre); }
.corr-champ input:focus, .corr-precision input:focus, .corr-libre:focus { border-color: var(--encre); }
.corr-champ input[aria-invalid="true"] { border-color: var(--rouge); background: rgb(241 205 98 / .6); }
.corr-ligne { border-bottom-style: dotted; border-bottom-color: rgb(42 37 34 / .32); }
.corr-ligne.enleve .corr-nom, .corr-ligne.enleve .corr-prix, .corr-ligne.change .corr-prix { color: #6B625A; text-decoration-color: var(--rouge); }

/* l'aperçu : l'ardoise de la maison dans son cadre de chêne ; le titre à la craie */
.corr-apercu {
  position: relative; border-radius: 2px; color: #F4F2EB;
  background: url(/assets/grain.png) 0 0 / 160px 160px, #2B3032 url(/medias/matieres/ardoise.webp) 50% 50% / cover;
  border: 14px solid var(--chene, #8A5A32); border-image: url(/medias/matieres/cadre.webp) 128 / 14px stretch;
  box-shadow: inset 0 4px 7px rgb(0 0 0 / .5), 0 2px 2px rgb(0 0 0 / .4), 10px 24px 34px -14px rgb(0 0 0 / .7);
}
.corr-apercu h2 {
  font: italic 400 clamp(30px, 3vw, 36px)/1.05 var(--f-titre); color: #F4F2EB;
  -webkit-mask-image: url(/medias/matieres/craie.webp); mask-image: url(/medias/matieres/craie.webp); -webkit-mask-size: 190px 190px; mask-size: 190px 190px;
  text-shadow: 0 0 .5px rgb(255 255 255 / .7), 0 0 7px rgb(255 255 255 / .14);
}
.corr-message { border: 1px dashed rgb(244 242 235 / .3); background: rgb(255 255 255 / .04); color: #F4F2EB; }
.corr-bas { background: url(/assets/grain.png) 0 0 / 160px 160px, #2B3032 url(/medias/matieres/ardoise.webp) 50% 50% / 1200px auto; border-top: 6px solid #7A512D; }
.corr-pied { background: url(/assets/grain.png) 0 0 / 160px 160px, #2B3032 url(/medias/matieres/ardoise.webp) 50% 0 / 1200px auto; }

/* css/univers.css */
/* L'univers de la Cigogne (24.10.2026, travail/prestige/livraison/UNIVERS.md) : le ciel où passe la vraie cigogne,
   l'ardoise des offres pendue au mur jaune de la façade, le nid de « Dormir à la Cigogne ».
   BG : « vraiment des objets et du visuel extrêmement qualitatifs ». Chaque objet a sa matière (medias/matieres :
   la pierre, le chêne du cadre, la craie, le crépi ; des calculs de bruit et de lumière, aucune IA), sa lumière
   (venue d'en haut à gauche), son ombre portée et sa profondeur. Le mouvement est mené par cigogne.js (l'univers) ;
   ici, les états. Sans JS ou en mouvement réduit : l'oiseau fixe, les deux ardoises l'une sous l'autre, l'image fixe
   du nid ; rien ne bouge. */

:root { --ciel-haut: #5A80B8; --ciel-bas: #7196CB; --craie: #F4F2EB; --chene: #8A5A32; }

/* ── 1. Le ciel ───────────────────────────────────────────────────────────────────────────────────────────── */
/* La bande EST le ciel du film (bleu uni, un peu plus profond en haut). V4 : deux couloirs ; le titre est posé dans
   le bas de la bande, l'oiseau vole au-dessus (cigogne.js mesure le titre et fait tenir l'oiseau dans le haut). */
.ciel {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  display: grid; align-content: end; justify-items: center;
  height: clamp(460px, 84vh, 720px); height: clamp(460px, 84svh, 720px);
  background:
    radial-gradient(110% 80% at 86% 0%, rgb(255 255 255 / .2), transparent 58%),
    linear-gradient(180deg, rgb(30 36 39 / .32), transparent 22%),
    linear-gradient(180deg, var(--ciel-haut), #6A90C7 52%, var(--ciel-bas));
  color: #fff;
}
.ciel-toile { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* sans JS ou en mouvement réduit : l'oiseau fixe, dans le couloir du haut (sa hauteur ne passe jamais 36 % de la bande) */
.ciel-fixe {
  position: absolute; z-index: 2; left: 50%; top: 6%; width: auto; height: auto; max-width: min(72%, 560px); max-height: 36%;
  translate: -50% 0; pointer-events: none;
}
.ciel-texte {
  position: relative; z-index: 1; padding: 0 var(--marge) clamp(36px, 7svh, 76px); max-width: 1100px; text-align: center;
}
.ciel-sur {
  font: 600 13px/1.2 var(--f-texte); letter-spacing: .26em; text-transform: uppercase; color: var(--nuit);
}
.ciel h2 {
  margin-top: 16px; font-size: clamp(42px, 10.5vw, 104px); line-height: 1; letter-spacing: -.02em; color: #fff;
  /* le blanc sur le bleu clair : le bas de la bande est un ton plus profond (#7196CB, 3,0:1 sans ombre) et une ombre
     serrée, dense, tient le bord des lettres (3:1 et plus au ras des lettres : corrections du 24.10) */
  text-shadow: 0 1px 2px rgb(16 36 66 / .5), 0 0 14px rgb(16 36 66 / .3), 0 2px 30px rgb(20 50 90 / .25);
}
.ciel h2 em { display: block; }
@media (min-width: 700px) { .ciel h2 em { display: inline; } }
/* le mouvement est armé : l'oiseau fixe laisse la place à la toile */
@media (prefers-reduced-motion: no-preference) {
  html.js .ciel-fixe { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ciel-toile { display: none; } }
html:not(.js) .ciel-toile { display: none; }

/* ── 2. L'ardoise des offres, sur le mur de la façade ────────────────────────────────────────────────────── */
/* Le mur : le jaune de la façade, crépi (multiplié), un soleil d'en haut à gauche, les coins plus sourds. */
.scene {
  position: relative;
  background-color: var(--jaune);
  /* l'avant-toit : un peu d'ombre en haut du mur, sous le ciel */
  background-image: linear-gradient(180deg, rgb(150 110 40 / .5), rgb(255 255 255 / 0) 90px), url(/medias/matieres/crepi.webp);
  background-size: 100% 90px, 512px 512px; background-repeat: no-repeat, repeat; background-blend-mode: multiply;
}
.scene-colle {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; align-items: center; gap: 56px;
  padding: 72px var(--marge) 88px;
}
.scene-colle::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 70% at 14% 0%, rgb(255 248 220 / .5), transparent 62%),
    radial-gradient(130% 100% at 50% 50%, transparent 58%, rgb(110 70 0 / .22));
}

/* La craie : un blanc cassé, mangé par le grain de la pierre (masque), un léger nuage de poussière. */
.craie {
  color: var(--craie);
  -webkit-mask-image: url(/medias/matieres/craie.webp); mask-image: url(/medias/matieres/craie.webp);
  -webkit-mask-size: 190px 190px; mask-size: 190px 190px;
  text-shadow: 0 0 .5px rgb(255 255 255 / .7), 0 0 7px rgb(255 255 255 / .14);
}

.pend { position: relative; display: grid; justify-items: center; gap: 56px; }
.clou, .ombre-ardoise, .chant, .prix-reste { display: none; }
.ardoise { position: relative; display: grid; gap: 56px; width: min(100%, 372px); }

/* Une face : le cadre de chêne (onglets aux coins, border-image), la pierre dedans. */
.face {
  position: relative; display: flex;
  border: 16px solid var(--chene); border-image: url(/medias/matieres/cadre.webp) 128 / 16px stretch;
  border-radius: 2px;
  box-shadow: 0 2px 2px rgb(60 36 0 / .28), 12px 26px 36px -14px rgb(70 42 0 / .5);
}
.pierre {
  position: relative; flex: 1; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 20px 18px;
  background: #2B3032 url(/medias/matieres/ardoise.webp) 50% 50% / cover;
}
/* le grain fin de la pierre, et l'ombre du cadre sur elle (au-dessus de tout, le tirage compris) */
.pierre::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: url(/assets/grain.png) 0 0 / 160px 160px;
  box-shadow: inset 0 4px 7px rgb(0 0 0 / .55), inset 3px 0 6px rgb(0 0 0 / .32), inset -2px 0 5px rgb(0 0 0 / .25), inset 0 -2px 4px rgb(0 0 0 / .3);
}
/* le reflet : une lumière rasante sur la pierre, qui glisse quand l'ardoise tourne (--reflet, cigogne.js) */
.pierre::before {
  content: ''; position: absolute; inset: -10% -40%; z-index: 2; pointer-events: none;
  background: linear-gradient(104deg, transparent 34%, rgb(255 255 255 / .05) 44%, rgb(255 255 255 / .1) 50%, rgb(255 255 255 / .04) 56%, transparent 66%);
  transform: translateX(var(--reflet, -28%)); will-change: transform;
}

.face-titre { font-size: inherit; line-height: 1; }
.trace { display: inline-block; }
.face-jour { display: block; font: italic 400 clamp(54px, 15.5vw, 66px)/.96 var(--f-titre); letter-spacing: -.015em; padding-inline: .1em .14em; }
.face-art { display: block; font-size: .5em; line-height: 1.1; }
.face-quand { display: block; margin-top: 8px; font: 600 12px/1.2 var(--f-texte); letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.face .jeudi-pastille {
  position: absolute; z-index: 1; top: 14px; right: 14px; padding: 6px 9px 7px;
  font: italic 400 15px/1 var(--f-titre); border: 1.5px solid currentColor; border-radius: 50%; rotate: 8deg;
}
.face .jeudi-pastille[hidden] { display: none; }

/* Le tirage : une vraie photo des plats, papier, scotché sur la pierre. */
.tirage {
  position: relative; z-index: 1; margin-top: 20px; width: 86%; padding: 7px; background: #F5F1E7;
  rotate: var(--tourne, 0deg);
  box-shadow: 0 1px 1px rgb(0 0 0 / .4), 0 10px 18px -8px rgb(0 0 0 / .7);
}
.tirage img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.tirage::after {   /* un rien de brillant sur le papier photo */
  content: ''; position: absolute; inset: 7px; pointer-events: none;
  background: linear-gradient(125deg, rgb(255 255 255 / .16), transparent 38%);
}
.tirage::before {   /* le ruban adhésif, en haut */
  content: ''; position: absolute; z-index: 1; left: 50%; top: -11px; width: 74px; height: 24px; translate: -50% 0;
  rotate: calc(var(--tourne, 0deg) * -1.6);
  background: linear-gradient(180deg, rgb(238 230 208 / .82), rgb(226 216 190 / .78));
  box-shadow: 0 1px 2px rgb(0 0 0 / .18);
  clip-path: polygon(0 6%, 4% 0, 8% 9%, 12% 1%, 16% 7%, 20% 0, 100% 0, 96% 8%, 100% 15%, 96% 26%, 100% 37%, 96% 49%, 100% 60%, 96% 72%, 100% 84%, 96% 93%, 100% 100%, 0 100%, 4% 90%, 0 79%, 4% 66%, 0 55%, 4% 43%, 0 31%, 4% 19%);
}
.face-plat { margin-top: 18px; max-width: 15em; font: 400 20px/1.28 var(--f-titre); }
.face-detail { margin-top: 6px; max-width: 22em; font: 400 15px/1.35 var(--f-texte); opacity: .82; }
.face-prix { position: relative; margin-top: auto; padding-top: 12px; }
.face-chiffre, .prix-reste { font: 400 clamp(74px, 21vw, 92px)/1 var(--f-titre); letter-spacing: -.02em; white-space: nowrap; }
.face-chiffre { display: inline-block; }

@media (min-width: 700px) {
  .ardoise { width: min(100%, 940px); }
  .face { border-width: 20px; border-image-width: 20px; }
  .pierre {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); grid-template-rows: auto auto auto 1fr auto;
    column-gap: 34px; align-items: start; text-align: left; padding: 40px 40px 30px 44px;
  }
  .face-titre, .face-plat, .face-detail, .face-prix { grid-column: 1; }
  .face-titre { grid-row: 1; } .face-plat { grid-row: 2; } .face-detail { grid-row: 3; } .face-prix { grid-row: 5; }
  .tirage { grid-column: 2; grid-row: 1 / -1; align-self: center; width: 100%; margin: 0; }
  .face-jour { font-size: clamp(76px, 8.4vw, 100px); padding-inline: 0 .14em; }
  .face-art { font-size: .44em; }
  .face-quand { margin-top: 12px; font-size: 13px; }
  .face-plat { margin-top: 26px; font-size: 24px; }
  .face-detail { font-size: 16px; }
  .face-prix { align-self: end; padding-top: 22px; }
  .face-chiffre, .prix-reste { font-size: clamp(96px, 11vw, 124px); }
  .face .jeudi-pastille { top: auto; bottom: 22px; right: auto; left: calc(54% - 120px); }
}

/* ── L'ardoise en mouvement (cigogne.js pose .vive) : trois écrans de haut, la scène collée ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .scene.vive { height: 300vh; height: 300svh; }
  .scene.vive .scene-colle {
    position: sticky; top: 0; height: calc(100vh - var(--onglet)); height: calc(100svh - var(--onglet));
    justify-content: center; padding: 0 var(--marge);
  }
  .vive .pend {
    display: block; padding-top: 40px; width: min(100%, 372px); transform-origin: 50% 6px;
    scale: var(--k, 1); margin-bottom: calc(var(--h, 0px) * (var(--k, 1) - 1));
    perspective: 1700px; will-change: transform;
  }
  @media (min-width: 700px) { .vive .pend { width: min(100%, 940px); } }
  /* le clou, la ficelle, l'œillet */
  .vive .clou {
    display: block; position: absolute; left: 50%; top: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #F2EEE4, #8F8A80 45%, #4B4842 80%);
    box-shadow: 1px 2px 2px rgb(60 36 0 / .45);
  }
  .vive .pend::before {   /* la ficelle */
    content: ''; position: absolute; left: 50%; top: 6px; height: 40px; width: 1.6px; margin-left: -.8px; z-index: 0;
    background: linear-gradient(90deg, #6E5B3E, #B49C74 50%, #6E5B3E);
  }
  .vive .ardoise {
    width: 100%; gap: 0; transform-style: preserve-3d; will-change: transform;
  }
  .vive .face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 2px rgb(60 36 0 / .3); }
  .vive .face-jeudi { transform: translateZ(6px); }
  .vive .face-vendredi { transform: rotateY(180deg) translateZ(6px); }
  /* la face de dos est éteinte en plus de backface-visibility (iPhone) ; opacity et non visibility : le lecteur
     d'écran lit toujours les deux offres */
  .vive .ardoise[data-face="jeudi"] .face-vendredi, .vive .ardoise[data-face="vendredi"] .face-jeudi { opacity: 0; }
  /* l'épaisseur : les deux chants de chêne, vus pendant le retournement */
  .vive .chant {
    display: block; position: absolute; top: 0; bottom: 0; left: 50%; width: 12px; margin-left: -6px;
    background: linear-gradient(90deg, #5E3C20, #A27447 40%, #7A512D);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
  }
  .vive .chant-g { transform: rotateY(-90deg) translateZ(var(--demi, 180px)); }
  .vive .chant-d { transform: rotateY(90deg) translateZ(var(--demi, 180px)); }
  /* l'ombre sur le mur : elle s'amincit quand l'ardoise est de profil */
  .vive .ombre-ardoise {
    display: block; position: absolute; left: 18px; right: 18px; top: 58px; bottom: 18px; z-index: 0; border-radius: 6px;
    background: rgb(92 58 0 / .36); box-shadow: 0 0 28px 16px rgb(92 58 0 / .36); translate: 14px 24px; will-change: transform;
  }
  /* le prix qui reste : hors du plan 3D, sur la boîte du prix du jeudi (cigogne.js pose left et top) */
  .vive .prix-reste {
    display: block; position: absolute; z-index: 2; margin: 0; transform-origin: 50% 60%; will-change: transform;
  }
  .vive .face-chiffre { visibility: hidden; }
  /* la craie s'écrit : le titre se découvre de gauche à droite (--w, cigogne.js) */
  .vive .trace { clip-path: inset(-30% calc((1 - var(--w, 1)) * 100% - 2%) -40% -8%); }
}

/* ── 3. Le nid : « Dormir à la Cigogne » commence par le film « pose » ─────────────────────────────────────── */
.dormir { position: relative; }
.nid-film {
  position: relative; margin: 0; overflow: hidden; background: var(--nuit);
  height: clamp(320px, 62vh, 640px); height: clamp(320px, 62svh, 640px);
}
@media (min-width: 960px) { .nid-film { height: min(76svh, 52vw); } }
.nid-fixe, .nid-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 58%; }
.nid-video { display: none; }
.nid-film::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(30 36 39 / .18), transparent 20%, transparent 58%, var(--ardoise));
}
@media (prefers-reduced-motion: no-preference) { html.js .nid-film.vif .nid-video { display: block; animation: nid-fondu .6s ease-out both; } }
@keyframes nid-fondu { from { opacity: 0; } }
.dormir-corps { position: relative; margin-top: -40px; padding-top: 0; }
@media (min-width: 960px) { .dormir-corps { margin-top: 0; padding-top: 64px; } }
/* le bord de la table des classiques porte son ombre sur le haut du nid (le passage n'est plus coupé au rasoir) */
.dormir > .nid-film::after { box-shadow: inset 0 18px 20px -14px rgb(0 0 0 / .7); }

/* Les nuits (corrections du 24.10) : l'étiquette de lin de /hebergement/ en miniature (toile calculée medias/heb/lin.webp,
   points avant au fil rouge tout autour, prix au point lancé). Un objet posé sur l'ardoise, un rien de travers. */
.nid-etiquette {
  position: relative; max-width: 420px; margin-top: 26px; padding: 22px 20px 18px; rotate: -1deg; border-radius: 2px;
  background: linear-gradient(rgb(230 220 198 / .42), rgb(230 220 198 / .42)), #E2D6BE url(/medias/heb/lin.webp) 0 0 / 128px 128px; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .5), 0 12px 22px -10px rgb(0 0 0 / .8), 0 30px 46px -26px rgb(0 0 0 / .65);
}
@media (min-width: 600px) { .nid-etiquette { padding: 26px 28px 22px; } }
.nid-etiquette::before {   /* les points avant, à 7 px du bord : des traits de fil de 6 px, leur ombre sur la toile */
  content: ''; position: absolute; inset: 7px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--rouge) 0 6px, transparent 6px 10px) 0 0 / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--rouge) 0 6px, transparent 6px 10px) 0 100% / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, var(--rouge) 0 6px, transparent 6px 10px) 0 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--rouge) 0 6px, transparent 6px 10px) 100% 0 / 2px 100% no-repeat;
  filter: drop-shadow(0 1px 0 rgb(40 20 10 / .35));
}
.nid-etiquette::after {   /* la lumière sur la toile, le bord un rien replié */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgb(255 255 255 / .24), transparent 40%, transparent 78%, rgb(60 40 20 / .12));
  box-shadow: inset 0 0 0 1px rgb(120 100 70 / .25);
}
.nid-etiquette :is(.nid-etiquette-titre, .tarif-prix) {   /* le fil brodé : relief et grain des points lancés */
  color: var(--rouge);
  -webkit-mask-image: repeating-linear-gradient(118deg, #000 0 1.3px, rgb(0 0 0 / .74) 1.3px 2.3px);
  mask-image: repeating-linear-gradient(118deg, #000 0 1.3px, rgb(0 0 0 / .74) 1.3px 2.3px);
  text-shadow: 0 1px 0 rgb(255 240 220 / .45), 0 1.5px 1.5px rgb(40 10 0 / .35);
}
.nid-etiquette-titre { font: italic 400 28px/1 var(--f-titre); letter-spacing: -.01em; }
.nid-tarifs { margin-top: 12px; border-top: 1px dashed rgb(42 37 34 / .35); }
.nid-tarifs li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 11px 0; border-bottom: 1px dashed rgb(42 37 34 / .35); }
.nid-tarifs .tarif-nom { font: 400 21px/1.15 var(--f-titre); color: var(--encre); }
.nid-tarifs .tarif-prix { font: 400 24px/1.1 var(--f-titre); white-space: nowrap; }
.nid-tarifs .tarif-prix small { font: italic 400 15px/1 var(--f-titre); color: #5C544D; }
.nid-compris { display: grid; gap: 6px; margin-top: 14px; }
.nid-compris li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.4; color: #3B342F; }
.nid-compris li::before {   /* un point avant : un trait de fil rouge, son ombre sur la toile */
  content: ''; position: absolute; left: 2px; top: .66em; width: 10px; height: 2px; border-radius: 1px;
  background: var(--rouge); rotate: -8deg; filter: drop-shadow(0 1px 0 rgb(40 20 10 / .3));
}
.dormir-corps .nid-etiquette + .actions { margin-top: 28px; }

/* Les tirages des appartements : trois photos sur papier, posées en éventail sur l'ardoise (elles se chevauchent,
   chacune tournée, son ombre portée) ; la légende écrite dans la marge du bas. */
.nid-tirages { display: flex; align-items: flex-start; justify-content: center; padding: 18px 0 30px; }
.nid-tirage {
  position: relative; flex: 0 0 41%; margin: 0; padding: 6px 6px 0; rotate: var(--tourne, 0deg);
  background: #F7F1E4 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 12px 22px -10px rgb(0 0 0 / .8), 0 30px 46px -26px rgb(0 0 0 / .6);
}
.nid-tirage + .nid-tirage { margin-left: -11%; }
.nid-tirage:nth-child(2) { z-index: 1; margin-top: 26px; }
.nid-tirage:nth-child(3) { margin-top: 8px; }
.nid-tirage:nth-child(3) figcaption { text-align: right; }   /* le tirage du milieu couvre son bord gauche */
.nid-tirage .agrandir { aspect-ratio: 4 / 5; border-radius: 0; }
.nid-tirage img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.nid-tirage a.agrandir::after {   /* plus de pastille d'interface : le brillant du papier photo, le bord un peu enfoncé */
  inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(128deg, rgb(255 255 255 / .16), transparent 36%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14);
}
.nid-tirage figcaption { margin: 0; padding: 7px 2px 9px; font: italic 400 14px/1.2 var(--f-titre); color: #4A423C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .nid-tirage { transition: translate .5s var(--courbe), rotate .5s var(--courbe); }
  .nid-tirage:hover { z-index: 2; translate: 0 -6px; rotate: calc(var(--tourne, 0deg) * .4); }
}
@media (min-width: 600px) {
  .nid-tirage { padding: 9px 9px 0; }
  .nid-tirage figcaption { padding: 9px 2px 12px; font-size: 16px; }
}
@media (min-width: 960px) { .nid-tirages { padding: 0 0 40px; } .nid-tirage { flex-basis: 42%; } }

/* ── Les passages (corrections du 24.10) : chaque jointure a son objet ────────────────────────────────────────── */
/* La façade sur le ciel : la gouttière de zinc au bas du toit (un tube : lumière sur le haut, ombre dessous), ses
   crochets, et son ombre sur le haut du ciel. */
.ciel::before {
  content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 15px; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 172px, rgb(34 38 41 / .55) 172px 175px, transparent 175px 178px) 0 0 / 100% 9px no-repeat,
    linear-gradient(180deg, #4B5357 0, #A9B2B6 16%, #E4E8E9 30%, #B8C0C3 46%, #7D868A 72%, #4A5155 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / .2), 0 7px 12px -3px rgb(16 28 48 / .42);
}
/* Le mur des offres sur la table, la table des classiques sur le nid : le chant de noyer de la table, qui prend la
   lumière sur son arête ; l'ombre du mur sur la table, celle de la table sur la photo du nid. */
.recos.table, .classiques.table { position: relative; }
.recos.table::before, .classiques.table::after {
  content: ''; position: absolute; z-index: 1; left: 0; right: 0; height: 14px; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(255 222 176 / .42) 0, rgb(255 222 176 / .12) 1.5px, transparent 3px, transparent 70%, rgb(0 0 0 / .45)),
    #2E2017 url(/medias/matieres/bois.webp) 0 0 / 1024px 512px;
}
.recos.table::before { top: 0; box-shadow: 0 8px 14px -4px rgb(0 0 0 / .6); }
.classiques.table::after { bottom: 0; }


@media print {
  .ciel { height: auto; padding-block: 24px; background: none; color: var(--ardoise); }
  .ciel h2 { color: var(--ardoise); text-shadow: none; }
  .ciel-toile, .ciel-fixe, .nid-film { display: none; }
  .scene { background: none; }
}

/* css/vitrine.css */
/* L'accueil, V4 (24.10.2026, travail/prestige/livraison/BRIEF-V4.md) : tout l'accueil dans l'univers de la maison.
   La vitrine est la façade jaune et son enseigne (la vraie, détourée) ; les recommandations sont des tirages posés sur
   la table de la salle ; les classiques, un feuillet de la carte imprimée ; l'affiche du cordon bleu, la grande ardoise
   de la salle ; « Réserver et nous trouver », la pierre et un carton des horaires. Matières : medias/matieres (calculées,
   aucune IA). Lumière d'en haut à gauche partout. Feuille chargée après base.css (ordre alphabétique de construire.mjs).
   L'ancienne vitrine (photos qui défilent, bouton Pause) : travail/prestige/livraison/avant-v4/source/css/vitrine.css. */

:root {
  --creme: #F6F0E4; --nuit: #1E2427;
  --papier: #F4EDDD;      /* la carte imprimée, les tirages, le carton des horaires */
  --encre: #2A2522;       /* l'encre noire de l'impression : 13,4:1 sur le papier */
  --rouge: #A3352B;       /* le rouge du bec et des pattes de l'enseigne : 4,4:1 sur le jaune, 6,2:1 sur le papier */
  --noyer: #3A281D;       /* la table de la salle */
}
.champ-creme { background: var(--creme); color: var(--ardoise); }

/* ── La barre, posée sur la façade ──────────────────────────────────────────────────────────────────── */
.barre-vitrine {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent; color: var(--ardoise); --anneau: var(--ardoise);
}
.barre.barre-vitrine .menu {
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  color: var(--ardoise); border-bottom-color: rgb(48 56 60 / .2);
}

/* ── La vitrine : la façade et son enseigne ─────────────────────────────────────────────────────────── */
.vitrine {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--onglet)); min-height: calc(100svh - var(--onglet));
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  color: var(--ardoise); --anneau: var(--ardoise);
}
@media (min-width: 960px) { .vitrine { min-height: max(640px, 100vh); min-height: max(640px, 100svh); } }
/* Le mur : l'ombre de l'avant-toit en haut, les coins plus sourds, l'ombre du tilleul, le soleil d'en haut à gauche. */
.mur { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mur::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(118 78 14 / .46), rgb(118 78 14 / .16) 64px, rgb(118 78 14 / 0) 150px),
    radial-gradient(150% 110% at 40% 30%, transparent 52%, rgb(110 70 0 / .26));
}
.mur-soleil {
  position: absolute; inset: -20% -10%;
  background: radial-gradient(48% 40% at 26% 22%, rgb(255 250 228 / .5), rgb(255 250 228 / .14) 55%, transparent 75%);
}
.mur-feuilles {   /* le tilleul devant la façade (outils/images.py, feuillage) : son ombre, très douce */
  position: absolute; left: -150px; top: -70px; width: 560px; height: 600px;
  background: url(/assets/feuillage.webp) no-repeat 50% 50% / contain; opacity: .16;
}

.vitrine-dedans {
  position: relative; width: 100%; max-width: var(--large); margin-inline: auto;
  padding: 72px var(--marge) 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px;
  grid-template-areas: "sur enseigne" "titre titre" "intro intro" "actions actions" "jour jour";
}
.vitrine-texte { display: contents; }
.vitrine-sur { grid-area: sur; align-self: end; margin-bottom: 18px; }
.vitrine h1 { grid-area: titre; }
.vitrine-intro { grid-area: intro; }
.vitrine .actions { grid-area: actions; }
.vitrine .aujourdhui { grid-area: jour; }

/* L'enseigne : la photo détourée et son ombre portée sur le mur (la même image, noire et floue, décalée en bas à droite). */
.enseigne { grid-area: enseigne; position: relative; margin: -6px 0 0 0; height: clamp(240px, 47svh, 430px); }
.enseigne img { width: auto; height: 100%; max-width: none; }
.enseigne-objet { position: relative; z-index: 1; will-change: transform; }
.enseigne-ombre {
  position: absolute; left: 0; top: 0; filter: brightness(0) blur(3px); opacity: .34;
  translate: 9% 4%; will-change: transform;   /* sa propre couche : le flou n'est peint qu'une fois, puis déplacé */
}

/* La typographie peinte sur la façade : la peinture ardoise, un rien de relief (la lumière d'en haut à gauche).
   Pas de mix-blend-mode : sur un premier écran qui bouge au défilement, il coûtait des images (mesuré, V4-NOTES). */
.vitrine-sur {
  font: 600 13px/1.35 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: #2E3436; max-width: 11em;
}
.vitrine-sur span { color: var(--rouge); }
/* au téléphone le surtitre passe sur deux lignes : le point de séparation ne pendrait plus au bout de la première,
   les deux mots sont l'un sous l'autre (corrections du 24.10) */
@media (max-width: 599.98px) { .vitrine-sur span { display: none; } }
.vitrine h1 {
  margin-top: 6px; max-width: 11em; color: #2C3234; text-shadow: 0 1px 0 rgb(255 240 190 / .45), 0 -1px 0 rgb(90 60 0 / .12);
  font-size: clamp(34px, 10.6vw, 60px); line-height: 1.03; letter-spacing: -.012em;
}
.vitrine h1 em { color: var(--rouge); white-space: nowrap; }   /* « vieille ville » ne se coupe jamais */
.vitrine-intro { margin-top: 16px; max-width: 32em; font-size: 18px; line-height: 1.5; color: var(--ardoise); }
.vitrine .actions { margin-top: 22px; }
.vitrine .aujourdhui { margin-top: 18px; font-size: 16px; }
.vitrine .btn-commander { box-shadow: 0 1px 1px rgb(60 40 0 / .3), 0 10px 20px -10px rgb(60 40 0 / .55); }
.vitrine .btn-tel { background: rgb(255 255 255 / .12); }
@media (max-width: 1099.98px) { .h1-coupe { display: none; } }
/* Téléphone, à toutes les hauteurs (corrections du 24.10 ; la règle ne valait que sous 760 px de haut, et de 761 à
   900 px l'onglet couvrait Commander et le numéro) : Commander passe avant l'intro, et l'enseigne prend la hauteur que
   lui laisse l'écran utile (l'onglet déduit) pour que les deux boutons tiennent au-dessus de l'onglet, 12 px d'air. */
@media (max-width: 599.98px) {
  .enseigne { height: clamp(150px, calc(100vh - var(--onglet) - 360px), 430px); height: clamp(150px, calc(100svh - var(--onglet) - 360px), 430px); }
  .vitrine-dedans { grid-template-areas: "sur enseigne" "titre titre" "actions actions" "jour jour" "intro intro"; padding-top: 72px; }
  .vitrine .actions { margin-top: 18px; }
  .vitrine-intro { margin-top: 18px; }
}
/* Tablette et bureau : le texte à gauche, l'enseigne à droite, grande. */
@media (min-width: 600px) {
  .vitrine-dedans {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: none; align-items: center;
    column-gap: clamp(28px, 6vw, 120px); padding: 104px var(--marge) 64px;
  }
  .vitrine-texte { display: block; grid-column: 1; grid-row: 1; }
  .vitrine-sur { margin: 0; max-width: none; }
  .vitrine h1 { margin-top: 18px; font-size: clamp(46px, 6.4vw, 80px); }
  .vitrine-intro { font-size: 19px; }
  .enseigne { grid-column: 2; grid-row: 1; height: min(64svh, 560px); margin-right: clamp(0px, 3vw, 72px); }
  .mur-feuilles { left: auto; right: -60px; top: -90px; width: 760px; height: 820px; }
}
@media (min-width: 960px) {
  .vitrine-dedans { padding-block: 120px 80px; }
  .vitrine h1 { font-size: clamp(56px, 5.2vw, 82px); max-width: 10.5em; }
}
@media (min-width: 1100px) {
  .vitrine h1 { max-width: 14em; font-size: clamp(54px, 4.5vw, 76px); }   /* deux lignes coupées au sens : « La table et le toit, / en haut de la vieille ville » */
  .vitrine-intro { font-size: 20px; }
  .enseigne { height: min(80svh, 800px); }
}

/* ── La table de la salle (recommandations, classiques) ───────────────────────────────────────────────── */
.table {
  background-color: var(--noyer);
  background-image:
    radial-gradient(110% 80% at 24% 0%, rgb(255 226 180 / .12), transparent 62%),
    radial-gradient(140% 110% at 50% 40%, transparent 48%, rgb(10 6 2 / .42)),
    url(/medias/matieres/bois.webp);
  background-size: auto, auto, 1024px 512px;
  color: var(--papier); --anneau: var(--jaune); --filet: rgb(244 237 221 / .2);
}
/* Le papier : la couleur, les fibres multipliées, une lumière rasante ; un objet posé, son ombre sur la table. */
.papier {
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  color: var(--encre);
}

/* ── Les recommandations : trois tirages sur la table ───────────────────────────────────────────────── */
.recos-dedans { max-width: var(--large); margin-inline: auto; padding-inline: var(--marge); }
.recos-sur { margin-bottom: 12px; font: 600 13px/1.2 var(--f-texte); letter-spacing: .2em; text-transform: uppercase; color: rgb(244 237 221 / .78); }
.recos-tete h2 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.08; color: var(--papier); }
.recos-liste { display: grid; margin-top: 30px; }
/* Téléphone : un tiroir de côté, le tirage suivant dépasse et fait signe. Dès 600 px, les trois sont sur la table
   (à 768, le troisième était hors champ sans aucun indice : corrections du 24.10). */
@media (max-width: 599.98px) {
  .recos-liste {
    grid-auto-flow: column; grid-auto-columns: min(76%, 340px); gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-inline: calc(-1 * var(--marge)); padding: 22px var(--marge) 40px; scroll-padding-inline: var(--marge);
  }
  .recos-liste::-webkit-scrollbar { display: none; }
  .reco { scroll-snap-align: start; }
}
@media (min-width: 600px) { .recos-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3.4vw, 56px); margin-top: 40px; padding-bottom: 24px; } }
@media (min-width: 960px) { .recos-liste { margin-top: 48px; } }
.reco { --tourne: 0deg; }
.tirage-reco {
  position: relative; margin: 0; padding: 10px 10px 16px; rotate: var(--tourne);
  background: #F7F1E4 url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .4), 0 12px 22px -10px rgb(0 0 0 / .7), 0 34px 54px -30px rgb(0 0 0 / .6);
  transition: translate .5s var(--courbe), box-shadow .5s var(--courbe), rotate .5s var(--courbe);
}
@media (min-width: 960px) { .tirage-reco { padding: 14px 14px 20px; } }
@media (hover: hover) {
  .tirage-reco:hover { translate: 0 -6px; rotate: calc(var(--tourne) * .4); box-shadow: 0 2px 2px rgb(0 0 0 / .35), 0 22px 32px -12px rgb(0 0 0 / .7), 0 50px 70px -30px rgb(0 0 0 / .55); }
}
.tirage-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #2b2420; }
.tirage-photo img { width: 100%; height: 100%; object-fit: cover; }
.tirage-photo::after {   /* le papier photo : un rien de brillant, le bord de l'image un peu enfoncé */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(128deg, rgb(255 255 255 / .16), transparent 36%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14);
}
.reco-texte { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline; margin-top: 14px; padding-inline: 4px; }
.reco-nom { font: 400 22px/1.15 var(--f-titre); }
.reco-prix { grid-column: 2; grid-row: 1; font: 400 21px/1.15 var(--f-titre); white-space: nowrap; color: var(--rouge); }
.reco-prix-mot { font: 600 13px/1.2 var(--f-texte); letter-spacing: .14em; text-transform: uppercase; }
.reco-desc { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; line-height: 1.4; color: #5C544D; }
@media (min-width: 600px) and (max-width: 959.98px) {
  .tirage-reco { padding: 8px 8px 14px; }
  .reco-texte { grid-template-columns: minmax(0, 1fr); margin-top: 12px; padding-inline: 2px; }
  .reco-nom { font-size: 19px; }
  .reco-prix { grid-column: 1; grid-row: auto; margin-top: 4px; font-size: 19px; }
  .reco-desc { font-size: 14px; }
}
/* Le carton de la carte (un plat sans photo) : le même papier que le tirage, la face imprimée comme la carte (double
   filet rouge, logo de la maison et nom à l'encre qui mord), à la place de la photo. */
.carton-tete {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 1 / 1;
  color: var(--encre); text-align: center;
}
.carton-tete::before {   /* le double filet rouge, imprimé */
  content: ''; position: absolute; inset: 6px; border: 3px double rgb(163 53 43 / .6); border-radius: 1px;
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp); -webkit-mask-size: 256px; mask-size: 256px;
}
.carton-logo {
  display: block; width: clamp(64px, 38%, 128px); aspect-ratio: 150 / 147; background: var(--encre);
  -webkit-mask: url(/medias/logo/cigogne.svg) 50% 50% / contain no-repeat; mask: url(/medias/logo/cigogne.svg) 50% 50% / contain no-repeat;
  opacity: .9;
}
.carton-mot {
  font: italic 400 clamp(26px, 3vw + 12px, 44px)/1 var(--f-titre); letter-spacing: -.01em; color: var(--rouge);
  -webkit-mask-image: url(/medias/matieres/encre.webp); mask-image: url(/medias/matieres/encre.webp); -webkit-mask-size: 256px; mask-size: 256px;
  text-shadow: 0 1px 0 rgb(255 255 255 / .6);
}
@media (min-width: 600px) and (max-width: 959.98px) { .carton-mot { font-size: clamp(22px, 3.4vw, 30px); } }
/* le carton est plus épais qu'un tirage : il porte un rien plus d'ombre, son bord prend la lumière */
.carton-reco { box-shadow: 0 1px 1px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .5), 0 14px 24px -10px rgb(0 0 0 / .72), 0 36px 56px -30px rgb(0 0 0 / .6); }

/* ── Les classiques : un feuillet de la carte imprimée ──────────────────────────────────────────── */
.classiques { overflow: hidden; overflow: clip; }
.classiques-dedans { max-width: 820px; margin-inline: auto; padding-inline: calc(var(--marge) - 4px); }
.feuillet {
  position: relative; padding: 38px 24px 30px; border-radius: 2px;   /* droit : tourné, il coûtait une image de 150 ms à son arrivée (mesuré) */
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 18px 30px -14px rgb(0 0 0 / .75), 0 50px 80px -40px rgb(0 0 0 / .6);
  --filet: rgb(42 37 34 / .17); --anneau: var(--encre);
}
.feuillet::before {   /* la lumière sur la feuille : plus claire en haut à gauche, un rien d'ombre au pli du bas */
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(150deg, rgb(255 255 255 / .28), transparent 42%, transparent 80%, rgb(80 60 30 / .08));
}
@media (min-width: 600px) { .feuillet { padding: 56px 56px 44px; } }
.feuillet .rang-texte { position: relative; }
.feuillet-sur { font: 600 12px/1.2 var(--f-texte); letter-spacing: .32em; text-transform: uppercase; color: var(--rouge); }
.feuillet h2 { margin-top: 10px; font-size: clamp(32px, 6.4vw, 48px); line-height: 1.06; max-width: 9em; }
.section .feuillet .rang-texte > h2::after { background: var(--rouge); height: 2px; }
/* l'impression qui mord le papier : le bord du creux qui prend la lumière (le masque d'encre de /carte/ n'est pas
   repris ici : sur une feuille qui tombe en s'animant, il coûtait une image de 130 ms, mesuré) */
.feuillet :is(h2, .plat-nom, .plat-prix, .feuillet-sur) { text-shadow: 0 1px 0 rgb(255 255 255 / .6), 0 -.5px 0 rgb(42 37 34 / .25); }
.feuillet .plats { margin-top: 26px; border-top-color: rgb(42 37 34 / .3); }
.feuillet .plats li { border-bottom-style: dotted; border-bottom-color: rgb(42 37 34 / .3); }
.feuillet .plat-nom { font-size: 22px; }
.feuillet .plat-prix { font: 400 21px/1.3 var(--f-titre); }
.feuillet .plat-desc { color: #5C544D; }
.feuillet .mention { font-weight: 400; font-size: 15px; color: #5C544D; }
.feuillet .lien-fleche { color: var(--encre); border-bottom-color: var(--rouge); }
@media (min-width: 960px) {
  .classiques .plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; border-top: 0; margin-top: 36px; }
  .classiques .plats li:nth-child(-n+2) { border-top: 1px solid rgb(42 37 34 / .3); }
}

/* ── La grande ardoise de la salle (l'affiche du cordon bleu) : pierre, cadre de chêne en haut et en bas, craie ── */
.section.affiche.grande-ardoise {
  position: relative; isolation: isolate;
  background: #2B3032 url(/medias/matieres/ardoise.webp) 50% 50% / 1200px auto;
  border-block: 16px solid #7A512D; border-image: url(/medias/matieres/cadre.webp) 128 0 / 16px 0 stretch;
}
.grande-ardoise::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(/assets/grain.png) 0 0 / 160px 160px;
  box-shadow: inset 0 6px 9px rgb(0 0 0 / .5), inset 0 -4px 7px rgb(0 0 0 / .4);
}
.grande-ardoise :is(.titre-affiche, .poids-chiffre, .poids-suite, .cordons-titre, .ligne-nom, .ligne-prix, .choix-nom, .choix-prix, .surtitre-mots, .poids-unite, .t-maison) {
  -webkit-mask-image: url(/medias/matieres/craie.webp); mask-image: url(/medias/matieres/craie.webp);
  -webkit-mask-size: 190px 190px; mask-size: 190px 190px;
  text-shadow: 0 0 .5px rgb(255 255 255 / .6), 0 0 7px rgb(255 255 255 / .12);
}
.grande-ardoise .titre-affiche, .grande-ardoise .poids-chiffre { color: #F4F2EB; }

/* ── Réserver et nous trouver : la pierre, la façade, le carton des horaires ─────────────────────────────── */
.pierre-fond {
  position: relative; isolation: isolate;
  background: #2B3032 url(/medias/matieres/ardoise.webp) 50% 50% / 1200px auto;
}
.trouver-bande { --glisse: 10; position: relative; height: clamp(320px, 96vw, 540px); overflow: hidden; background: var(--nuit); }
.trouver-bande img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none;
  object-fit: cover; object-position: 70% 4%;
}
.trouver-bande::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(43 48 50 / .15) 0, rgb(43 48 50 / 0) 30%, rgb(43 48 50 / 0) 62%, #2B3032 100%);
}
@keyframes glisse { from { transform: translateY(-10%); } to { transform: translateY(10%); } }
@keyframes glisse-doux { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js .trouver-bande { view-timeline: --glisse block; }
    html.js .trouver-bande img { animation: glisse linear both; animation-timeline: --glisse; }
  }
}
.trouver-corps.section { padding-top: 40px; }
/* Le carton des horaires : papier épais, scotché sur la pierre, un rien de travers. */
.trouver .carte-horaires {
  position: relative; rotate: -.9deg; border-radius: 2px; padding: 30px 24px 22px;
  background: var(--papier) url(/medias/matieres/fibres.webp) 0 0 / 512px 512px; background-blend-mode: multiply; color: var(--encre);
  --filet: rgb(42 37 34 / .16); --anneau: var(--encre);
  box-shadow: 0 1px 1px rgb(0 0 0 / .45), 0 16px 26px -12px rgb(0 0 0 / .75), 0 40px 60px -34px rgb(0 0 0 / .6);
}
.trouver .carte-horaires::before {   /* le ruban adhésif */
  content: ''; position: absolute; left: 50%; top: -12px; width: 96px; height: 26px; translate: -50% 0; rotate: 2.4deg;
  background: linear-gradient(180deg, rgb(238 230 208 / .84), rgb(222 212 186 / .8));
  box-shadow: 0 1px 2px rgb(0 0 0 / .2);
  clip-path: polygon(0 6%, 4% 0, 8% 9%, 12% 1%, 16% 7%, 20% 0, 100% 0, 96% 8%, 100% 15%, 96% 26%, 100% 37%, 96% 49%, 100% 60%, 96% 72%, 100% 84%, 96% 93%, 100% 100%, 0 100%, 4% 90%, 0 79%, 4% 66%, 0 55%, 4% 43%, 0 31%, 4% 19%);
}
.trouver .carte-horaires h3 { font-size: 28px; }
.trouver .semaine tr.ce-jour th, .trouver .semaine tr.ce-jour td { color: var(--rouge); }
@media (min-width: 960px) {
  .trouver { position: relative; }
  .trouver-bande { --glisse: 6; position: absolute; top: 0; right: 0; bottom: 0; width: min(46%, 860px); height: auto; }
  .trouver-bande img { top: -7%; height: 114%; object-position: 88% 30%; }
  html.js .trouver-bande img { animation-name: glisse-doux; }
  .trouver-bande::after {
    background:
      linear-gradient(to right, #2B3032 0, rgb(43 48 50 / .5) 6%, rgb(43 48 50 / 0) 24%),
      linear-gradient(to bottom, rgb(43 48 50 / .3) 0, rgb(43 48 50 / 0) 14%, rgb(43 48 50 / 0) 84%, rgb(43 48 50 / .6) 100%);
  }
  .trouver-corps.section { padding-block: 96px; }
  .trouver .rang {
    grid-template-columns: minmax(0, 1fr); row-gap: 64px;
    max-width: none; width: min(560px + var(--marge), 54% - 48px); margin-left: max(0px, (100% - var(--large)) / 2); padding-right: 0;
  }
  .trouver .rang > .rang-texte { grid-column: 1; grid-row: 1; }
  .trouver .rang > .rang-media { grid-column: 1; grid-row: 2; }
  .trouver .carte-horaires { padding: 40px 38px 30px; }
}

@media print {
  .barre-vitrine { position: static; }
  .vitrine { min-height: 0; background: none; }
  .mur, .enseigne-ombre, .trouver-bande { display: none; }
  .table, .pierre-fond, .section.affiche.grande-ardoise { background: none; color: var(--ardoise); }
}

/* css/vol.css */
/* Le vol de la cigogne : la couche de mise en scène (23.10.2026, BG : « un site entre 5 et 10 000 euros, que le
   motion design soit effectif »). Feuille chargée en dernier (ordre alphabétique de construire.mjs) : elle prolonge
   « la montée » de base.css sans la défaire. Références relevées : travail/prestige/recherche/.
   Le fil ne change pas : ce qui apparaît MONTE. Deux courbes seulement : --courbe (les entrées, base.css) et
   --scene (les grands gestes : l'ouverture, les rideaux pleine page), lente au départ, lente à l'arrivée.
   Règles tenues : transform, opacity, clip-path (et le rayon du rideau, un instant) ; rien de caché sans html.js ;
   mouvement réduit = rien de tout cela (la dernière règle de base.css fige tout, ici rien ne s'arme sans
   prefers-reduced-motion: no-preference). */

:root { --scene: cubic-bezier(.76, 0, .24, 1); --ouv: 0s; }

/* ── 1. L'ouverture : le nid de la cheminée (accueil, une fois par visite, 1,8 s en tout) ──────────────────── */
/* Trois plans (UNIVERS.md, 24.10.2026) : le ciel du film (16 x 9 points étirés : un dégradé exact, 200 octets), le
   nom, puis le premier plan détouré (la cigogne sur son nid, la cheminée, le toit) : le nom passe DERRIÈRE l'oiseau.
   0 à 1,8 s le premier plan se pose (de 1,12 à 1) plus vite que le ciel (de 1,05 à 1) : la profondeur ; 0,16 s le
   nom monte de son masque, mot après mot ; 0,62 s la ligne du dessous ; 1,22 s la scène se lève (0,58 s), le
   premier plan en retard sur le ciel. Tout ce qui suit dans la vitrine est décalé de --ouv. */
.ouverture { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js.intro { --ouv: 1.3s; }
  html.js.intro .ouverture {
    position: fixed; inset: 0; z-index: 90; display: block; overflow: hidden; background: #72BFFE;
    animation: ouv-part .58s var(--scene) 1.22s forwards; will-change: transform;
  }
  html.js.intro .ouverture.saute { animation: ouv-fond .32s ease forwards; }
  .ouv-ciel {
    position: absolute; inset: -2%; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAIAAAC0SDtlAAAAjUlEQVR42k2PwQ3DMAwDj467cBfsZro+ZCUxDIiwj6KU768ACCDnOMWWYlfZV+ZtONs9QjFHJOwrGiC+eitCgkKIT699LSatRVp4J7xGRfaO892ogkmPf986juxrOfQIEQ2am17HaSe8aKwHPTpQ49yfZb1ylUUqKkWj3rsBe8dxZ52WvWsSlZCCYBHgDy/igxs5+7ghAAAAAElFTkSuQmCC) 50% 50% / 100% 100% no-repeat;
    animation: ouv-ciel 1.8s cubic-bezier(.2, .7, .2, 1) both;
  }
  .ouv-premier {
    position: absolute; inset: 0; z-index: 1; background: url(/medias/nid/premier-plan-1600.webp) 52% 50% / cover no-repeat;
    transform-origin: 52% 30%; animation: ouv-premier 1.8s cubic-bezier(.2, .7, .2, 1) both, ouv-premier-part .58s var(--scene) 1.22s forwards;
  }
  .ouv-nom {
    position: absolute; left: 0; right: 0; top: 2.5%; z-index: 0; text-align: center; color: #fff;
    font: 400 clamp(56px, 11.5vw, 156px)/1 var(--f-titre); letter-spacing: -.02em; white-space: nowrap;
    text-shadow: 0 2px 34px rgb(20 60 110 / .28);
    animation: ouv-nom-part .58s var(--scene) 1.22s forwards;
  }
  .ouv-nom span { display: inline-block; animation: masque-monte .9s var(--courbe) .16s backwards; }
  .ouv-nom span + span { animation-delay: .26s; }
  .ouv-sur {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); text-align: center; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .5);
    font: 600 12px/1.2 var(--f-texte); letter-spacing: .26em; text-transform: uppercase;
    animation: texte-monte .8s var(--courbe) .62s backwards, ouv-nom-part .58s var(--scene) 1.22s forwards;
  }
  .ouv-sur span { margin-inline: .3em; color: var(--orange); }
  @media (max-aspect-ratio: 1/1) {
    .ouv-premier { background-image: url(/medias/nid/premier-plan-800.webp); background-position: 50% 50%; }
    .ouv-nom { top: 8.5%; font-size: clamp(54px, 16vw, 120px); }
  }
}
@keyframes ouv-part { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes ouv-premier { from { scale: 1.12; opacity: 0; } 22% { opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes ouv-premier-part { to { translate: 0 22%; } }
@keyframes ouv-nom-part { to { translate: 0 -18vh; opacity: .4; } }
@keyframes ouv-ciel { from { scale: 1.05; } }
@keyframes ouv-fond { to { opacity: 0; visibility: hidden; } }

/* La vitrine après l'ouverture (V4) : le mur se pose (de 1,05 à 1) pendant que le rideau se lève ; l'enseigne monte
   à sa place, puis le soleil passe sur la façade et l'ombre de l'enseigne s'allonge sur le mur (elle part de
   l'enseigne : la lumière arrive). Le titre sort de son masque, puis l'intro, les boutons, la ligne du jour ; la barre
   descend en dernier. Tout est posé avant 3 s ; ensuite plus rien ne bouge seul. Sans ouverture (visite suivante) :
   la même chose, plus tôt. */
@keyframes vitrine-pose { from { scale: var(--pose-de, 1.05); } }
@keyframes enseigne-arrive { from { opacity: 0; translate: 0 28px; } }
@keyframes ombre-arrive { from { opacity: 0; translate: 0 0; } }
@keyframes soleil-passe { from { opacity: 0; translate: -30% -8%; } }
@keyframes barre-descend { from { opacity: 0; translate: 0 -18px; } }
@media (prefers-reduced-motion: no-preference) {
  html.js .mur { animation: vitrine-pose 2s var(--courbe) backwards; }
  html.js .enseigne-objet { animation: enseigne-arrive 1.25s var(--courbe) .1s backwards; }
  html.js .enseigne-ombre { animation: ombre-arrive 2.1s cubic-bezier(.3, .55, .2, 1) .35s backwards; }
  html.js .mur-soleil { animation: soleil-passe 2.6s cubic-bezier(.3, .55, .2, 1) .1s backwards; }
  html.js.intro .mur { --pose-de: 1.1; animation-duration: 2.2s; animation-delay: 1.1s; }
  html.js.intro .enseigne-objet { animation-delay: calc(var(--ouv) + .05s); }
  html.js.intro .enseigne-ombre { animation-delay: calc(var(--ouv) + .3s); }
  html.js.intro .mur-soleil { animation-delay: calc(var(--ouv) - .1s); }
  html.js.intro .vitrine .titre-mots .m { animation-delay: calc(var(--ouv) + .06s + var(--l, 0) * .11s); }
  html.js.intro .vitrine .entre { animation-delay: calc(var(--ouv) + .3s + var(--i, 0) * 110ms); }
  html.js.intro .barre-vitrine .barre-dedans > * { animation: barre-descend .8s var(--courbe) backwards; animation-delay: calc(var(--ouv) + .55s); }
  html.js.intro .barre-vitrine .barre-dedans > :nth-child(2) { animation-delay: calc(var(--ouv) + .62s); }
  html.js.intro .barre-vitrine .barre-dedans > :nth-child(3) { animation-delay: calc(var(--ouv) + .69s); }
  html.js.intro .barre-vitrine .barre-dedans > :nth-child(n+4) { animation-delay: calc(var(--ouv) + .76s); }
  html.js.intro .onglet.monte .onglet-commander { animation-delay: calc(var(--ouv) - .1s); }   /* en place quand le nid s'en va : jamais un instant sans Commander */
}

/* ── 2. Les titres des sections, mot à mot (cigogne.js : .mots, --l la ligne, --w le rang dans la ligne) ──────── */
/* Le titre entier ne sort plus de son masque : chaque mot sort du sien, ligne après ligne ; le filet suit le dernier. */
.mots .m { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="titre"].mots.est-monte { animation: none; }
  [data-reveal="titre"].mots.est-monte .m {
    animation: masque-monte .95s var(--courbe) backwards;
    animation-delay: calc(min(var(--r, 0), 4) * 80ms + var(--l, 0) * 130ms + var(--w, 0) * 42ms);
  }
  [data-reveal="titre"].mots.est-monte::after { animation-delay: calc(.52s + min(var(--r, 0), 4) * 80ms); }
}

/* Les objets posés (V4) : les tirages des recommandations et le feuillet de la carte tombent sur la table, un rien
   tournés, et s'y posent (opacité, translation, rotation : rien qui force à repeindre). */
@keyframes pose-objet { from { opacity: 0; translate: 0 -34px; rotate: calc(var(--tourne, 0deg) + 3deg); } }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="objet"]:not(.est-monte) { opacity: 0; }
  [data-reveal="objet"].est-monte { animation: pose-objet .95s cubic-bezier(.2, .8, .25, 1) backwards; animation-delay: calc(min(var(--r, 0), 3) * 130ms); }
}

/* L'affiche du cordon bleu : « Cordon » lettre à lettre, puis « bleu » s'écrit (de gauche à droite), le filet de
   « maison » pousse vers lui, et « Le » se pose en dernier, comme une signature. */
.affiche-vole .c { display: inline-block; }
@keyframes plume-ecrit {
  from { clip-path: inset(-.3em 100% -.35em -.25em); }
  to { clip-path: inset(-.3em -.3em -.35em -.25em); }
}
@keyframes le-pose { from { opacity: 0; translate: -.5em 0; } }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal="titre"].affiche-vole.est-monte { animation: none; }
  .affiche-vole.est-monte .c { animation: masque-monte 1s var(--courbe) backwards; animation-delay: calc(.05s + var(--c, 0) * 55ms); }
  .affiche-vole.est-monte .t-bleu { animation: plume-ecrit 1s cubic-bezier(.65, 0, .35, 1) .46s backwards; }
  .affiche-vole.est-monte .t-maison { animation: texte-monte .8s var(--courbe) .82s backwards; }
  .affiche-vole.est-monte .t-maison::before { transform-origin: 100% 50%; animation: filet-trace .9s var(--courbe) .74s backwards; }
  .affiche-vole.est-monte .t-le { animation: le-pose .8s var(--courbe) 1s backwards; }
}

/* ── 3. Les roues : chaque chiffre roule jusqu'à sa valeur (300 à 350, 20.–) ─────────────────────────────────────── */
/* .roue garde le chiffre réel (.roue-fin, en place, invisible pendant le tour) ; la pile glisse dessus, dans la fenêtre
   d'une ligne (--pas, l'interligne mesuré). Avant le tour, la fenêtre est vide : jamais un faux chiffre immobile.
   La pile part d'un cran sous la fenêtre ; la roue de droite tourne plus longtemps et se pose la dernière. Tout est
   posé avant 2,9 s, quand cigogne.js retire la pile. */
.roue { position: relative; display: inline-block; }
.roues .roue { clip-path: inset(-.05em -.45em -.05em); }
.roues .roue-fin { visibility: hidden; }
.roue-pile {
  position: absolute; top: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  visibility: hidden; pointer-events: none;
}
.roue-pile > span { display: block; height: var(--pas); line-height: var(--pas); }
@keyframes roue-tourne {
  from { translate: 0 var(--pas); }
  to { translate: 0 calc(var(--n, 0) * -1 * var(--pas)); }
}
@media (prefers-reduced-motion: no-preference) {
  .roule .roue-pile {
    visibility: visible; will-change: translate;
    animation: roue-tourne calc(1.2s + min(var(--k, 0), 5) * .15s) cubic-bezier(.12, .7, .16, 1) calc(var(--k, 0) * 60ms) both;
  }
}

/* ── 4. Le ruban : le jaune de la façade, les mots de la maison en Caslon romain (l'italique n'a pas les accents),
   séparés de points orange, le bec de l'enseigne. cigogne.js le fait glisser avec le défilement (V4 : il ne bouge
   plus seul, il s'arrête quand la page s'arrête) et en ajoute des copies. Le crépi de la façade, l'encre multipliée. */
.ruban {
  position: relative; overflow: hidden; overflow: clip; color: var(--ardoise); padding-block: clamp(15px, 1.9vw, 24px); user-select: none;
  background: var(--jaune) url(/medias/matieres/crepi.webp) 0 0 / 512px 512px; background-blend-mode: multiply;
  box-shadow: inset 0 10px 14px -10px rgb(110 70 0 / .45), inset 0 -10px 14px -10px rgb(110 70 0 / .35);
}
.ruban-motif { color: #2C3234; }
.ruban-piste { display: flex; width: max-content; }
html.js .ruban-piste { will-change: transform; }
.ruban-motif {
  display: flex; flex: none; align-items: center; gap: .62em; padding-right: .62em;
  font: 400 clamp(25px, 3.3vw, 46px)/1.12 var(--f-titre); letter-spacing: -.01em; white-space: nowrap; text-wrap: nowrap;
}
.ruban-motif i { flex: none; width: .19em; height: .19em; border-radius: 50%; background: var(--orange); translate: 0 .04em; }

/* ── 5. La barre revient quand on remonte : posée en haut sur un voile, plus basse d'un cran ; repart en descendant. */
.barre-cale { display: block; }
.barre.flotte { position: fixed; top: 0; left: 0; right: 0; z-index: 50; translate: 0 -110%; transition: translate .55s var(--courbe); }
.barre.flotte.montre { translate: none; }
.barre.flotte .barre-dedans { min-height: 64px; padding-block: 6px; }
.barre.flotte .barre-logo img { height: 46px; }
.barre-vitrine.flotte {
  background: rgb(241 205 98 / .9); border-bottom-color: rgb(110 70 0 / .18);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 14px 30px -22px rgb(80 50 0 / .6);
}
.barre.flotte:not(.barre-vitrine) { box-shadow: 0 14px 34px -24px rgb(48 56 60 / .55); }

/* ── 6. La bulle « Voir » suit la souris sur les photos qui s'agrandissent (au bureau ; .vue : sur une photo). ── */
.bulle, .bulle.vue {
  position: fixed; inset: 0 auto auto 0; z-index: 80; width: 92px; height: 92px; margin: -46px 0 0 -46px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: var(--jaune); color: var(--ardoise); box-shadow: 0 14px 34px -14px rgb(0 0 0 / .5);
  font: 600 13px/1 var(--f-texte); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase;
  opacity: 0; scale: .25; transition: scale .5s var(--courbe), opacity .22s linear;
}
.bulle.vue { opacity: 1; scale: 1; }
body:has(> .bulle) a.agrandir { cursor: none; }

/* ── 7. Les boutons d'appel s'aimantent (cigogne.js pose translate) et reviennent en douceur. ─────────────────── */
.aimant { transition: transform .18s var(--courbe), box-shadow .18s var(--courbe), color 0s .07s, translate .6s var(--courbe); }

/* ── 8. Le grain : un papier très fin sur l'ardoise et la crème (2 à 6 % d'opacité, 160 px, jamais animé). ────── */
.champ-ardoise:where(:not(.vitrine, .grande-ardoise, .pierre-fond)), .champ-creme { background-image: url(/assets/grain.png); background-size: 160px 160px; }

/* ── 9. Au défilement (animation-timeline ; ailleurs, rien ne bouge) ─────────────────────────────────────────── */
/* La vitrine reste derrière : la fenêtre du milieu recule plus vite que ses voisines, le texte s'en va vers le haut,
   la nuit tombe sur les photos. Les assiettes : au bureau, trois vitesses (la colonne du milieu est en avance, puis en
   retard) ; au téléphone, l'assiette au bord est pleine, ses voisines s'effacent et rapetissent. Le toit : les deux
   colonnes de photos glissent l'une contre l'autre. Nous trouver : la façade s'ouvre comme une arche. */
@keyframes vitrine-recule { to { translate: 0 var(--recul, 7%); } }
@keyframes vitrine-texte-part { to { opacity: 0; translate: 0 -72px; } }
@keyframes vitrine-nuit { to { opacity: .6; } }
@keyframes reco-decale { from { translate: 0 var(--de, 0px); } to { translate: 0 calc(var(--de, 0px) * -1); } }
@keyframes reco-grandit { 0%, 100% { scale: .86; opacity: .5; } 56% { scale: 1; opacity: 1; } }
@keyframes toit-glisse { from { translate: 0 calc(var(--toit, 30px) * var(--amp, 1)); } to { translate: 0 calc(var(--toit, 30px) * var(--amp, 1) * -1); } }
@keyframes facade-arche {
  from { clip-path: inset(var(--arche-h, 12%) 17% 0 17% round 50% 50% 0 0 / var(--arche-v, 30%) var(--arche-v, 30%) 0 0); }
  to { clip-path: inset(0 0 0 0 round 0 0 0 0 / 0 0 0 0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* (V4 : la vitrine est la façade ; son départ au défilement est mené par cigogne.js, aussi sur iPhone) */

    html.js .nid-tirages { view-timeline: --toit block; --amp: .5; }
    html.js .nid-tirage { animation: toit-glisse linear both; animation-timeline: --toit; }
    html.js .nid-tirage:nth-child(2) { --toit: -34px; }
    html.js .nid-tirage:nth-child(3) { --toit: 14px; }

    html.js .trouver-bande { --arche-v: 34%; animation: facade-arche linear both; animation-timeline: --glisse; animation-range: entry 0% cover 48%; }

    @media (max-width: 599.98px) {
      html.js .reco { animation: reco-grandit linear both; animation-timeline: view(inline); }
    }
    @media (min-width: 600px) {
      html.js .recos-liste { view-timeline: --recos block; }
      html.js .reco { animation: reco-decale linear both; animation-timeline: --recos; }
      html.js .reco:nth-child(1) { --de: 24px; }
      html.js .reco:nth-child(2) { --de: 64px; }
      html.js .reco:nth-child(3) { --de: 40px; }
    }
    @media (min-width: 960px) {
      html.js .reco:nth-child(1) { --de: 36px; }
      html.js .reco:nth-child(2) { --de: 104px; }
      html.js .reco:nth-child(3) { --de: 64px; }
      html.js .nid-tirages { --amp: 1; }
      html.js .trouver-bande { --arche-h: 9%; --arche-v: 20%; }
    }
  }
}
