/* Hallmark · shape: Narrative Workflow · genre: editorial · theme: Solstice (deal 1/3, seed caf-boh-resto-bistrot-cuisine-5d97·8b39f4a1·2026-11-21·r0) · job: book · draw: 5dd56a
 * hero: Poster · nav: edge-aligned · footer: letter close · imagery: photographs 5 (the café's own Instagram, warm high=-12) · signature: the room under its gold pendant lamps, three frames on the first screen · solstice: long-light
 * axes: light/high-contrast-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0
 * hero-review: fix · 4 findings · 2 resolved 1 dismissed (long-light is the palette dial, not a sky) 1 kept (material: small photos) · finish-review: subagent · 8 findings · 7 resolved 1 partial (closing photo still small, material) · gap: none */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a bistro could be anywhere; the head names rue des Marchands, the season is drawn as the real 2026 dates and the photos are the café's own room */
@import url("./tokens.css");
@import url("./base.css");

/* Café Bohème : jetons propres à la page (hauteur de barre, épaisseur du trait de saison) */
:root {
  --bar-h: 72px;
  --rule-season: 6px;
}

/* ---------- Accès ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* ---------- Commandes : la pilule vermillon et le lien souligné d'encre ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-xl); border: 0; border-radius: var(--radius-pill); font-family: var(--font-outlier); font-size: var(--text-md); font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); }
.btn--secondary { min-height: 44px; padding: 0 0 var(--space-2xs); border-radius: 0; background: none; color: var(--color-ink); border-bottom: var(--rule-bar) solid var(--color-ink); }
.btn--secondary:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.btn--small { min-height: 44px; padding: 0 var(--space-lg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: background-color var(--dur-short) linear; } .btn:active { transform: none; } }

/* Liens : soulignés d'encre, vermillon au survol */
.link { color: inherit; text-decoration-line: underline; text-decoration-color: currentColor; text-underline-offset: 0.2em; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); }
.link:active { color: var(--color-ink-2); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Case à remplir : un fait que les sources ne donnent pas */
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- Barre collante : elle porte l'appel pour réserver ---------- */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-h); }
.bar__name { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; text-decoration: none; white-space: nowrap; }
.bar__name:hover { color: var(--color-ink-2); }
.bar__name:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.bar__links { display: flex; align-items: center; gap: var(--space-lg); }
.bar__links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.bar__links a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.bar__links a:not(.btn):active { color: var(--color-muted); }
.bar__links a:not(.btn):focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Héros en affiche : trois cadres de la salle, la plaque d'encre posée en bas à gauche ---------- */
.hero { padding-block: var(--space-md) var(--space-lg); }
.hero__stage { position: relative; }
.hero__frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: calc(100svh - var(--bar-h) - var(--space-md) - var(--space-lg)); min-height: 520px; max-height: 960px; }
.hero__frame { min-width: 0; }
.hero__frame > img { outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
/* La plaque s'arrête sur la jointure entre le deuxième et le troisième cadre */
.hero__plate { position: absolute; left: var(--gutter); bottom: 0; z-index: var(--z-raised); width: calc((100% - 2 * var(--gutter)) * 2 / 3); padding: var(--space-xl) var(--space-xl) var(--space-xl); background: var(--color-ink); color: var(--color-paper); }
.hero__head { max-width: 15ch; font-size: clamp(2.5rem, 3.4vw + 1rem, 4.25rem); line-height: 1; color: var(--color-paper); }
.hero .lead { margin-top: var(--space-md); color: var(--color-paper); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); margin-top: var(--space-lg); }
.hero__plate .btn--primary:hover { background: var(--color-paper); color: var(--color-ink); }
.hero__plate .btn--secondary { color: var(--color-paper); border-bottom-color: var(--color-paper); }
.hero__plate .btn--secondary:hover { color: var(--color-gold-2); border-bottom-color: var(--color-gold-2); }
.hero__plate .btn:focus-visible { outline-color: var(--color-gold-2); }

/* ---------- Les étapes : une liste numérotée, chaque étape une section ---------- */
.stages { margin: 0; padding: 0; list-style: none; }
.stage { padding-block: var(--section-gap); }
.stage--l { padding-block: var(--section-gap-l); }
.stage--rule { padding-top: 0; }
.stage--rule > .container { padding-top: var(--space-2xl); border-top: var(--rule-bar) solid var(--color-ink); background-clip: content-box; }

/* Bande d'encre brune : le texte passe en crème dans la même règle */
.band-ink { background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap-s); }
.band-ink .lead { color: var(--color-paper); }
.band-cream { background: var(--color-paper-2); color: var(--color-ink); }

/* ---------- Étape 1 : la saison sur une ligne ---------- */
.season { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: end; }
.season__text .lead { margin-top: var(--space-md); }
.season__call { justify-self: end; font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.season__call a { color: var(--color-paper); text-decoration: underline; text-decoration-color: var(--color-gold); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.season__call a:hover { text-decoration-color: var(--color-accent-ink); }
.season__call a:focus-visible { outline: 2px solid var(--color-gold-2); outline-offset: 4px; }
.year { grid-column: 1 / -1; margin: 0; }
.year__line { display: grid; row-gap: var(--space-sm); }
.year__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 600; color: var(--color-gold-2); }
.year__track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; height: var(--space-lg); background: linear-gradient(var(--color-gold), var(--color-gold)) center / 100% var(--rule-hair) no-repeat; }
/* Du 14 mars (13 jours après le début de mars, sur 245 jours de mars à octobre) au 31 octobre */
.year__season { grid-column: 3 / 11; height: var(--rule-season); margin-inline-start: 5.3%; background: var(--color-gold); }
.year__ends { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-family: var(--font-display); font-size: var(--text-title); line-height: 1.1; }
.year__ends span:first-child { grid-column: 3 / 7; padding-inline-start: 5.3%; }
.year__ends span:last-child { grid-column: 7 / 11; justify-self: end; }
.year figcaption { margin-top: var(--space-xl); max-width: 70ch; font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 600; line-height: 1.5; color: color-mix(in oklab, var(--color-paper) 82%, var(--color-ink)); }
.band-ink .fill { color: var(--color-paper); border-color: color-mix(in oklch, var(--color-paper) 60%, transparent); }

/* ---------- Photographies : carrées, filet d'encre à 10 %, légende dessous ---------- */
.photo { margin: 0; }
.photo__frame { aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
.photo__frame > img { outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; }
.photo figcaption { margin-top: var(--space-sm); font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; color: var(--color-muted); }

/* ---------- Étape 2 : l'assiette à gauche, la fiche réglée à droite ---------- */
.kitchen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-3xl); align-items: center; }
.well { background: var(--color-paper-2); border: var(--rule-bar) solid var(--color-ink); outline: var(--rule-hair) solid var(--color-gold); outline-offset: -7px; box-shadow: var(--shadow-card); }
.label { margin: var(--space-xl) 0 0; padding: var(--space-md) var(--space-xl); }
.label__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 9fr); column-gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-top: var(--rule-hair) dotted var(--color-gold); }
.label__row:first-child { border-top: 0; }
.label dt { font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.label dd { margin: 0; font-family: var(--font-display); font-size: var(--text-title); line-height: 1.2; text-align: right; }

/* ---------- Étape 3 : venir, en rangées ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: start; }
.rows { margin: 0; }
.rows__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); column-gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.rows__row:first-child { border-top: 0; padding-top: 0; }
.rows dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.rows dd { margin: 0; font-size: var(--text-lg); color: var(--color-ink); }
.rows dd + dd { justify-self: end; font-size: var(--text-md); }
.map { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); padding: var(--space-xl); background: var(--color-paper-2); }
.map.is-loaded { display: block; padding: 0; aspect-ratio: 16 / 7; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__note { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Clôture : la réservation et la banquette ---------- */
.close { padding-block: var(--section-gap-s); }
.close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--space-3xl); align-items: center; }
.close__text .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.close__text .btn { margin-top: var(--space-xl); }
.close__photo { justify-self: end; }
.close__photo .photo__frame { aspect-ratio: 330 / 570; max-height: 600px; }

/* ---------- Pied de page en lettre ---------- */
.letter { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-bar) solid var(--color-ink); }
.letter__sign { font-family: var(--font-display); font-size: var(--text-section); line-height: 1.05; max-width: 20ch; text-wrap: balance; }
.letter__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap-columns); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-gold); color: var(--color-ink-2); }
.letter__row a { color: var(--color-ink); text-underline-offset: 0.2em; }
.letter__row a:hover { color: var(--color-accent); }
.letter__row a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.letter__legal { margin-top: var(--space-md); font-family: var(--font-outlier); font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }
.letter__legal:first-of-type { margin-top: var(--space-xl); }

/* ---------- Mentions légales ---------- */
.legal { padding-block: var(--section-gap-s); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--space-3xl); align-items: start; }
.legal__title { font-size: var(--text-section); }
.legal__body { display: grid; gap: var(--space-xl); }
.legal__body section { padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.legal__body h2 { font-size: var(--text-title); }
.legal__body p { margin-top: var(--space-sm); color: var(--color-ink-2); }
.letter--legal { padding-block: var(--space-xl); }
.letter--legal .letter__legal { margin-top: 0; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 60rem) {
  .season { grid-template-columns: minmax(0, 1fr); }
  .season__call { justify-self: start; }
  .kitchen, .close__grid, .visit, .legal__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .map { grid-column: auto; }
  .kitchen__photo { order: 2; max-width: 30rem; }
  .close__photo { max-width: 26rem; justify-self: start; }
}
@media (max-width: 40rem) {
  :root { --bar-h: 64px; }
  .bar__long { display: none !important; }
  .bar__links { gap: var(--space-md); }
  .bar__name { font-size: var(--text-lg); }
  .hero { padding-block: 0; }
  .band-ink { border-top: var(--rule-hair) solid var(--color-gold); }
  .hero__stage { padding-inline: 0; }
  .hero__frames { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; aspect-ratio: 1 / 1; }
  /* Sur téléphone, le héros montre la salle claire : la salle bleue revient à la clôture */
  .hero__frame:first-child { display: none; }
  .hero__frame--side + .hero__frame--side { display: none; }
  .hero__plate { position: static; width: auto; padding: var(--space-lg) var(--space-md) var(--space-xl); }
  .hero__head { font-size: clamp(2rem, 8.6vw, 2.75rem); }
  .year__months { font-size: var(--text-xs); }
  .year__months li:nth-child(even) { visibility: hidden; }
  .year__ends { font-size: var(--text-md); }
  .label { padding: var(--space-xs) var(--space-lg); }
  .label__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .label dd { text-align: left; }
  .rows__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xs); }
  .rows dd + dd { justify-self: start; }
  .letter__row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
}
/* Très petits écrans : la barre garde le nom et l'appel */
@media (max-width: 22rem) {
  .bar__links a:not(.btn) { display: none; }
  .btn--small { padding: 0 var(--space-md); }
}
