/* ==========================================================================
   LA VOILE — pages hors maquette (refonte d'après la maquette d'Edo, 19.11.2026)
   Feuille des pages que la maquette ne couvre pas (Une soirée, Événements, À emporter, News, pages légales, pages « merci », bon à
   imprimer, 404, gabarits des fiches) : leur mise en page d'avant, gardée, avec les polices et les couleurs de la maquette.
   Chargée par src/layouts/Base.astro seulement sur une page sans prop « styles », APRÈS site.css : celle-ci pose les jetons de la
   maquette (--ink, --navy, --paper, --sand, --line, --pad, --bar, --grey, --slate, polices), l'en-tête, le menu mobile, le pied de
   page, le focus et le lien « Aller au contenu ». Cette feuille ne redéfinit aucun de ces jetons ; elle donne seulement aux noms
   d'avant (--paper-2, --mist, --taupe…, --font-display, --font-text) une valeur de la nouvelle palette.
   Les règles propres à l'accueil, La Maison, Menus, L'Omakase, Infos et Bons cadeaux restent tant que ces pages n'ont pas leur
   nouvelle vue ; elles seront à retirer ensuite (pages/<page>.css les remplace).
   Retirés le 19.11.2026 : voile d'entrée, Lenis, apparitions au défilement (has-js, data-reveal, data-hero), séquence « voyage »,
   ancien en-tête, ancien menu mobile, ancien pied de page (site.css).
   ========================================================================== */

:root {
  /* Noms d'avant, valeurs de la palette de la maquette (site.css). */
  --paper-2: var(--sand);
  --sand-max: #D9D2C6;
  --mist: #5F7A86;
  --taupe: #7E7F80;
  /* Petits textes (décision D12) : 4,5:1 au moins sur --paper et --sand (même rôle qu'avant). */
  --taupe-texte: var(--grey);
  --mist-texte: var(--slate);
  --mist-nuit: rgba(247, 245, 240, 0.7);
  --line-soft: rgba(16, 33, 47, 0.08);

  /* Polices de la maquette (css/fonts.css, variables de site.css). */
  --font-display: var(--f-serif);
  --font-text: var(--f-sans);

  --fs-hero: clamp(3.2rem, 7.6vw, 7rem);
  --fs-h1: clamp(2.6rem, 5.4vw, 4.6rem);
  --fs-h2: clamp(2.1rem, 3.8vw, 3.4rem);
  --fs-h3: clamp(1.45rem, 2.2vw, 1.9rem);
  --fs-lead: clamp(1.25rem, 1.9vw, 1.65rem);
  --fs-body: 1.04rem;
  --fs-small: 0.88rem;
  --fs-label: 0.72rem;

  --section: clamp(5.5rem, 12vh, 9.5rem);
  /* Hauteur de l'en-tête : la barre de la maquette (90 px, 72 px sur téléphone). */
  --header-h: var(--bar);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.002em;
  /* Une seule graisse par police et pas d'italique : le navigateur ne fabrique ni gras ni italique (11.11.2026). */
  font-synthesis: none; /* aucun italique écrit dans cette feuille (retirés le 05.12.2026 : ils ne s'affichaient pas) */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sand); color: var(--navy); }

/* Focus clavier : règle commune dans site.css ; ici, blanc cassé sur les fonds sombres de ces pages. */
.hero, .resa-card-panel { --focus: var(--white); }

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.06;
  letter-spacing: 0.002em;
}

.display-hero { font-size: var(--fs-hero); font-weight: 300; }
h1, .display-1 { font-size: var(--fs-h1); font-weight: 300; }
h2, .display-2 { font-size: var(--fs-h2); font-weight: 300; }
h3, .display-3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }

/* Titre principal en deux parties (décision D9, option B, 13.11.2026) : le petit libellé factuel et le grand titre dans le même h1,
   sans rien changer à l'écran. Le h1 extérieur ne porte aucun style : il se comporte comme le bloc qui contenait les deux lignes.
   Le grand titre est un bloc qui reprend l'apparence d'un h1 (classes « display display-1 », ou « display display-hero » sur
   l'accueil) ; le libellé garde sa classe « label ». Les réglages propres à chaque contexte suivent (.page-head, .soiree-hero). */
h1.h1-duo { font: inherit; color: inherit; letter-spacing: inherit; }
.h1-duo-titre { display: block; }

.lead {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.45;
  color: var(--navy);
}

.lead em, .display em, h1 em, h2 em { font-style: normal; font-weight: 700; } /* accent des titres : en gras (pas d'italique) */

.label {
  display: inline-block;
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.label--mist { color: var(--mist-texte); }

p + p { margin-top: 1.1em; }

.text-block > .label { margin-bottom: 1.6rem; }
.text-block > h1, .text-block > h2, .text-block > h3 { margin-bottom: 1.4rem; }
.text-block > p { max-width: 34em; }
.text-block > .lead { margin-bottom: 1.2rem; max-width: 24em; }

.muted { color: var(--taupe-texte); }
.small { font-size: var(--fs-small); }

.jp {
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  letter-spacing: 0.35em;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--paper2 { background: var(--paper-2); }
.section--sand { background: linear-gradient(180deg, var(--paper) 0%, var(--sand) 260%); }

.hairline { border: 0; border-top: 1px solid var(--line); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem);
}

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Médias
   -------------------------------------------------------------------------- */

.media {
  overflow: hidden;
  position: relative;
  background: var(--paper-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.media--43 { aspect-ratio: 4 / 5; }
.media--45 { aspect-ratio: 4 / 5; }
.media--34 { aspect-ratio: 3 / 4; }
.media--169 { aspect-ratio: 16 / 9; }
.media--32 { aspect-ratio: 3 / 2; }
.media--11 { aspect-ratio: 1 / 1; }
.media--916 { aspect-ratio: 10 / 14; }

.caption {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  color: var(--taupe-texte);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Boutons & liens
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 1.02em 2.3em;
  border: 1px solid var(--navy);
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.btn:hover { background: var(--navy); color: var(--paper); }

.btn--solid { background: var(--navy); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--navy); }

.btn--light { border-color: rgba(250, 247, 241, 0.85); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.35em;
  position: relative;
}

.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.link-arrow:hover::after { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Composants récurrents
   -------------------------------------------------------------------------- */

/* Bandeau titre de page interne */
.page-head {
  padding: calc(var(--header-h) + clamp(3.5rem, 9vh, 7rem)) 0 clamp(2.5rem, 6vh, 4.5rem);
}
.page-head .label { margin-bottom: 1.8rem; }
.page-head h1 { max-width: 11em; }
.page-head h1.h1-duo { max-width: none; }
.page-head .h1-duo-titre { max-width: 11em; }
.page-head .lead { margin-top: 2rem; }

/* Rangée de menu (étapes, formats) */
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2.5rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.menu-row:last-child { border-bottom: 1px solid var(--line); }
.menu-row h3 { display: flex; align-items: baseline; gap: 1rem; }
.menu-row .menu-note { color: var(--taupe-texte); font-size: var(--fs-small); max-width: 36em; }
.menu-row .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  white-space: nowrap;
}
.price small { font-size: 0.62em; color: var(--taupe-texte); letter-spacing: 0.06em; }

/* Filet vertical décoratif */
.tick {
  width: 1px; height: 4.5rem;
  background: var(--line);
  margin-inline: auto;
}

/* Chiffres discrets */
.figure-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.1em;
  color: var(--mist);
  letter-spacing: 0.08em;
}
.caption .figure-num { color: var(--mist-texte); } /* dans une légende, le chiffre est un petit texte (D12) */

/* Preuves sobres (G&M etc.) */
.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 6rem);
  justify-content: center;
  text-align: center;
}
.proofs .proof .value {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--navy);
  line-height: 1.1;
}
.proofs .proof .label { margin-top: 0.7rem; }

/* Réduire les animations (réglage de l'appareil, lot L5, décision D14 : pas de bouton pause) : ni défilement adouci ni animation
   (site.css coupe déjà le fondu de page et les transitions). Les <source> des vidéos ont media="… (prefers-reduced-motion:
   no-preference)" : l'affiche ou l'image reste. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   ACCUEIL
   ========================================================================== */

/* ------- Hero : le globe ------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  color: var(--paper);
}

.hero-media { position: absolute; inset: 0; }
.hero-media video,
.hero-media .hero-still {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-media video { z-index: 1; }

@media (max-width: 760px), (orientation: portrait) {
  .hero-media video { display: none; }
}

.hero-scrim {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(200deg, rgba(0, 22, 32, 0) 42%, rgba(0, 22, 32, 0.44) 82%),
    linear-gradient(0deg, rgba(0, 22, 32, 0.30), rgba(0, 22, 32, 0) 34%);
}

.hero-content {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(3.5rem, 10vh, 6.5rem);
  z-index: 2;
}

.hero-content .display-hero { color: var(--paper); max-width: 9.5em; }

.label--hero {
  color: rgba(250, 247, 241, 0.82);
  margin-bottom: 2rem;
}

.hero-sub {
  margin-top: 1.6rem;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  color: rgba(250, 247, 241, 0.85);
}
.hero-sub .jp { font-size: 0.85em; opacity: 0.85; }

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.link-arrow--light { color: var(--paper); }
.link-arrow--light::after { background: rgba(250, 247, 241, 0.8); }

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px; height: clamp(3rem, 7vh, 4.5rem);
  overflow: hidden;
  z-index: 2;
}
.hero-cue span {
  position: absolute; inset: 0;
  background: rgba(250, 247, 241, 0.75);
  animation: cue 2.6s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ------- Teaser maison ------- */
.home-maison {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
  background: var(--paper);
}
.home-maison-media {
  min-height: 76vh;
  overflow: hidden;
}
.home-maison-media img {
  width: 100%; height: 112%;
  object-fit: cover;
}
.home-maison-panel {
  padding: clamp(3rem, 8vh, 6rem) clamp(2rem, 5vw, 5rem);
  align-self: center;
  max-width: 34rem;
}
.home-maison-panel h2 { margin: 1.4rem 0 1.6rem; }

@media (max-width: 900px) {
  .home-maison { grid-template-columns: 1fr; }
  .home-maison-media { min-height: 58vh; }
}

/* ------- Pièces flottantes (puzzle) ------- */
.puzzle { overflow: hidden; }
.puzzle-piece-1 {
  width: clamp(90px, 11vw, 170px);
  top: 4%; right: 6%;
  opacity: 0.9;
}
.puzzle-piece-2 {
  width: clamp(56px, 6vw, 100px);
  bottom: 2.5%; left: 2.5%;
  opacity: 0.8;
}
.puzzle-piece-3 {
  width: clamp(80px, 9vw, 150px);
  top: 12%; left: 10%;
  opacity: 0.55;
}
@media (max-width: 760px) {
  .puzzle-piece-1, .puzzle-piece-3 { display: none; }
}

/* ==========================================================================
   PAGES INTÉRIEURES
   ========================================================================== */

/* Ancres (#reserver, #midi…) : décalage de l'en-tête fixe donné par scroll-padding-top sur html (lot L5) ; scroll-margin-top
   s'y ajouterait, il n'est donc plus posé ici. */

/* Rangée éditoriale alternée (pièces du puzzle, la maison) */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 7vh, 5.5rem);
}
.split:nth-child(even) .split-media { order: 2; }
.split .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 300;
  color: var(--sand-max);
  line-height: 1;
  display: block;
  margin-bottom: 1.2rem;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split:nth-child(even) .split-media { order: 0; }
}

/* Bandeau image pleine largeur */
.banner {
  height: clamp(20rem, 62vh, 38rem);
  overflow: hidden;
  position: relative;
}
.banner img {
  width: 100%; height: 118%;
  object-fit: cover;
}

/* Écosystème — liste sobre */
.eco-list { border-top: 1px solid var(--line); }
.eco-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr auto;
  gap: 1rem 2.5rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.eco-row .eco-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.eco-row .eco-role { color: var(--ink); }
.eco-row .eco-place { color: var(--taupe-texte); font-size: var(--fs-small); white-space: nowrap; }
@media (max-width: 700px) {
  .eco-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Presse */
.press-row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr auto;
  gap: 1rem 2.5rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.press-row:first-child { border-top: 1px solid var(--line); }
.press-row .press-source { font-family: var(--font-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.press-row .press-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.press-row a.press-title:hover { color: var(--slate); }
.press-row .press-date { color: var(--taupe-texte); font-size: var(--fs-small); white-space: nowrap; }
@media (max-width: 700px) {
  .press-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Réservation / infos pratiques */
.resa-frame {
  width: 100%;
  height: 620px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

/* Carte de réservation (lien plein vers l'assistant TheFork) */
.resa-card { display: block; position: relative; overflow: hidden; }
.resa-card .resa-card-media { aspect-ratio: 4 / 4.6; }
.resa-card img { transition: transform 1.4s var(--ease-out); }
.resa-card:hover img { transform: scale(1.04); }
.resa-card-panel {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  background: linear-gradient(0deg, rgba(0, 22, 32, 0.55), rgba(0, 22, 32, 0) 85%);
}
.resa-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--paper);
  line-height: 1.15;
}
.resa-card .btn { pointer-events: none; margin-top: 0.4rem; }
.resa-card-panel .label--mist { color: var(--mist-nuit); } /* sur la photo assombrie (D12) */
.map-frame {
  width: 100%;
  height: clamp(20rem, 50vh, 30rem);
  border: 0;
  filter: saturate(0.72) contrast(0.98);
  display: block;
}
.info-line {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 0.5rem 2.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.info-line:first-child { border-top: 1px solid var(--line); }
.info-line dt { color: var(--taupe-texte); font-size: var(--fs-small); letter-spacing: 0.04em; }
.info-line dd { margin: 0; color: var(--ink); }
/* « En bref » (D17) : sur un écran étroit, le terme au-dessus de son texte, comme l'écosystème et la presse (les horaires, inchangés,
   gardent leurs deux colonnes). */
@media (max-width: 700px) {
  .en-bref .info-line { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* FAQ sobre (Infos et L'Omakase en <dl>, décision D17 : <dt> question, <dd> réponse) */
.faq-list { margin: 0; }
.faq-item dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.25; color: var(--navy); }
.faq-item dd { margin: 0; max-width: 36em; }
.faq-item dd a, .info-line dd a { border-bottom: 1px solid var(--line); }
.faq-head { margin-bottom: clamp(2rem, 5vh, 3rem); }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.9rem 0;
  display: grid;
  grid-template-columns: minmax(14rem, 24rem) 1fr;
  gap: 1rem 3rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.35rem; }
.faq-item p { max-width: 36em; margin: 0; }
@media (max-width: 800px) {
  .faq-item { grid-template-columns: 1fr; }
}

/* Instagram */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.5rem);
}
.insta-grid a { display: block; }
.insta-grid .media { aspect-ratio: 4 / 5; }
.insta-grid img { transition: transform 1.2s var(--ease-out); }
.insta-grid a:hover img { transform: scale(1.045); }
@media (max-width: 700px) {
  .insta-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Bons cadeaux (version fonctionnelle, étape 3 — à reprendre à l'étape 2)
   -------------------------------------------------------------------------- */

.gift-layout { align-items: start; }

.gift-form { display: grid; gap: 1.9rem; max-width: 34rem; }
.gift-field { display: grid; gap: 0.7rem; border: 0; }
.gift-field legend { margin-bottom: 0.9rem; }
.gift-optional { color: var(--taupe-texte); letter-spacing: 0.12em; font-weight: 400; margin-left: 0.5em; }

.gift-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65em 0;
  transition: border-color 0.3s var(--ease-out);
}
.gift-input:focus { outline: none; border-bottom-color: var(--navy); }
textarea.gift-input { resize: vertical; min-height: 4.5em; }

.gift-amounts { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gift-chip { position: relative; cursor: pointer; }
.gift-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gift-chip span {
  display: inline-block;
  padding: 0.8em 1.3em;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.gift-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.gift-chip input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }

.gift-designs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.gift-design { position: relative; display: grid; gap: 0.5rem; cursor: pointer; }
.gift-design input { position: absolute; opacity: 0; pointer-events: none; }
.gift-design img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border: 1px solid var(--line); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.3s var(--ease-out); }
.gift-design input:checked + img { outline-color: var(--navy); }
.gift-design input:focus-visible + img { outline-color: var(--slate); }
.gift-other { margin-top: 0.6rem; display: grid; gap: 0.3rem; max-width: 12rem; }
.gift-other[hidden] { display: none; }

.gift-terms { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; }
.gift-terms input { margin-top: 0.25em; accent-color: var(--navy); }
.gift-terms a, .gift-conditions a { border-bottom: 1px solid var(--line); }
/* Formulaires d'achat (worker/shop.ts) : le lien « confidentialité » souligné comme « conditions de vente » ; les deux mentions du bas
   espacées par la grille seule (sans la marge de « p + p » en plus ; revue du 24.11.2026). */
.gift-form p.small a { border-bottom: 1px solid var(--line); }
.gift-form > p + p { margin-top: 0; }

.gift-error { color: #8a2c2c; }
.gift-turnstile:empty { display: none; }
.gift-submit { justify-self: start; }
.gift-submit[disabled] { opacity: 0.5; cursor: wait; }

.gift-aside { display: grid; gap: 3.5rem; }

.gift-card {
  display: grid;
  gap: 0.6rem;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  aspect-ratio: 1.6 / 1;
  align-content: center;
}
.gift-card-photo { width: calc(100% + 2 * clamp(2rem, 4vw, 3rem)); max-width: none; margin: calc(-1 * clamp(2rem, 4vw, 3rem)) calc(-1 * clamp(2rem, 4vw, 3rem)) 1.4rem; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.gift-card--preview { aspect-ratio: auto; align-content: start; }
.gift-card-amount { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 300; color: var(--navy); line-height: 1.05; }
.gift-card-for { font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist-texte); min-height: 1.2em; }
/* Code d'un bon (version à imprimer) : en Jost, lettres espacées de 0,2 em, comme le code de la carte de la page Bon cadeau
   (css/pages/bons-cadeaux.css, .card .code), et non plus dans une police système à chasse fixe (demande de Johnny du 05.12.2026 : les
   polices du site partout, celles de la maquette d'Edo). Une seule graisse (400), sans faux gras. */
.gift-card-code { font-family: var(--f-jost); font-weight: 400; letter-spacing: 0.2em; color: var(--ink); }

.gift-lookup { display: grid; gap: 0.5rem; margin-top: 1.2rem; }
.gift-lookup-row { display: flex; gap: 1rem; align-items: flex-end; }
.gift-lookup-row .gift-input { flex: 1; text-transform: uppercase; letter-spacing: 0.06em; }

.gift-conditions { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.6rem; max-width: 46em; }
.gift-conditions li { padding-left: 1.4em; position: relative; }
.gift-conditions li::before { content: '—'; position: absolute; left: 0; color: var(--mist); }

/* Version à imprimer */
.gift-card--print { max-width: 40rem; aspect-ratio: auto; gap: 0.8rem; }
.gift-card--print[hidden] { display: none; }
.gift-card-brand { font-family: var(--font-display); font-size: 2rem; color: var(--navy); margin-bottom: 1.5rem; }
.gift-card-message { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); }
.gift-card-code-label { margin-top: 1.4rem; }
/* Code d'un seul tenant (revue des aperçus du 04.12.2026 : sur un téléphone, il se coupait aux tirets) ; plus petit sur un téléphone
   (jusqu'à 480 px, ci-dessous). */
.gift-card--print .gift-card-code { font-size: 1.35rem; white-space: nowrap; }
/* Pas de « Pour … » ni de message : rien, pas même la marge de la grille (avant : un vide sous le montant). De même pour la ligne
   « restant sur un bon de CHF 50 », écrite seulement sous le solde d'un bon entamé (relecture finale du 04.12.2026, N2). */
.gift-card--print .gift-card-for:empty, .gift-card--print .gift-card-message:empty, .gift-card--print .gift-card-total:empty { display: none; }
.gift-card-meta { font-size: var(--fs-small); color: var(--mist-texte); }
/* Adresses sous la carte : « la-voile.ch » d'un seul tenant, l'adresse des conditions coupée seulement après « la-voile.ch/ » (N4). */
.gift-card-meta .insecable { white-space: nowrap; }
.gift-card-qr { display: block; width: 120px; margin: 0.6rem 0 0.4rem; }
.gift-card-qr svg { display: block; width: 100%; height: auto; }
.gift-print-actions { margin-top: 2rem; }

@media (max-width: 900px) {
  .gift-card { aspect-ratio: auto; }
}
/* Téléphone : le code garde ses lettres espacées (0,2 em) et rapetisse avec l'écran pour tenir sur une ligne dans la carte. En Jost,
   les lettres n'ont pas toutes la même largeur (W 0,99 em, tiret 0,21 em) : mesuré le 05.12.2026 sur 200 000 codes tirés comme
   l'API (apps/api/src/gift/codes.ts), 10,35 em de lettres en médiane, 12,45 em pour 99,99 % des codes, soit 16,25 em avec
   l'espacement. Largeur intérieure de la carte jusqu'à 800 px : 100vw - 110 px (marges de page 2 × 22 px, marges de la carte
   2 × 32 px, bords) ; d'où la taille (100vw - 110 px) / 16,5, au plus 1.35rem : 12,5 px à 320 px, 17 px à 390 px, 1.35rem dès
   470 px. Avant : 1.1rem et 0,04 em jusqu'à 420 px (police à chasse fixe). L'impression (zone de 703 px) n'est pas concernée. */
@media (max-width: 480px) {
  .gift-card--print .gift-card-code { font-size: min(1.35rem, calc((100vw - 110px) / 16.5)); }
}

/* Impression : une seule page A4 (revue des aperçus du 04.12.2026 : Chrome imprimait une deuxième page, blanche sous le bas du
   cadre). Marges de la page, hauteur libre, et la carte un peu resserrée à l'impression seulement (espaces et photo plus basse,
   comme le PDF qui réduit sa photo quand le message est long) ; l'écran ne change pas. */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { height: auto; min-height: 0; }
  .site-header, .site-footer, .mnav, .gift-print-actions, #print-status, #ts-print { display: none !important; }
  /* Bon annulé, remboursé, échu ou utilisé (carte cachée) : son message s'imprime (relecture finale du 04.12.2026, N1 : avant, une
     page blanche). */
  #gift-print[hidden] ~ #print-status:not([hidden]) { display: block !important; }
  #contenu { animation: none; }
  body { background: #fff; }
  .page-head { padding: 0; }
  .gift-card--print { border: 1px solid #00364B; background: #fff; margin: 0 auto; break-inside: avoid; gap: 0.5rem; }
  .gift-card--print .gift-card-photo { aspect-ratio: 5 / 2; margin-bottom: 1rem; }
  .gift-card--print .gift-card-brand { margin-bottom: 0.75rem; }
  .gift-card--print .gift-card-code-label { margin-top: 0.8rem; }
  .gift-card--print .gift-card-message { line-height: 1.45; }
  .gift-card--print .gift-card-qr { margin: 0.2rem 0 0; }
  /* Message de plus de 150 caractères : photo plus basse et message un peu plus petit (relecture finale du 04.12.2026, N5 : 300
     caractères de lettres larges, « W », « M », passaient sur une deuxième page, la carte coupée ; photo en 5/1 au lieu de 4/1 pour
     que le pire cas tienne aussi avec la ligne « restant sur un bon de … » d'un bon entamé, N2). */
  .gift-card--print[data-message="long"] .gift-card-photo { aspect-ratio: 5 / 1; }
  .gift-card--print[data-message="long"] .gift-card-message { font-size: 1.15rem; }
  /* Visuel « globe » (data-design, posé par bons.js ; demande de Johnny du 05.12.2026) : centrée, la photo perdait à l'impression la
     pointe et le haut du globe (en 5/2), et la moitié du globe (en 5/1). Dans public/media/bons/globe.jpg (1120 × 560), le globe va
     de la pointe (y ≈ 45) au bas de la sphère (y ≈ 291), soit 44 % de la hauteur de la photo.
     - Message court : 5/2 (80 % de la hauteur visible), cadrage ancré vers le haut (20 % : la bande visible va de y ≈ 22 à 470,
       pointe à 13 px du bord) ; le pied et la table restent.
     - Message long : une bande de 5/1 ne montre que 40 % de la hauteur, moins que le globe ; 4/1 pour ce visuel (50 %, de y ≈ 28 à
       308 avec 10 % : autant de marge au-dessus de la pointe que sous la sphère). La photo a 32 px de plus : le message passe à
       1.1rem (au lieu de 1.15rem) et son interligne à 1.3 (au lieu de 1.45), pour que le pire cas de la relecture N5 (300 lettres
       larges sur un bon entamé, neuf lignes) tienne toujours sur une page A4, avec la même marge qu'avant (mesuré le 05.12.2026 :
       bas de la carte à 1018 px pour 1032 disponibles ; « lac » : 1020).
     Le visuel « lac » ne change pas (centré, 5/2 ou 5/1, message à 1.15rem). L'écran ne change pas (photo entière, en 2/1). */
  .gift-card--print[data-design="globe"] .gift-card-photo { object-position: 50% 20%; }
  .gift-card--print[data-design="globe"][data-message="long"] .gift-card-photo { aspect-ratio: 4 / 1; object-position: 50% 10%; }
  .gift-card--print[data-design="globe"][data-message="long"] .gift-card-message { font-size: 1.1rem; line-height: 1.3; }
}

/* ==========================================================================
   CONTENUS MODIFIÉS DEPUIS L'ÉDITION DU SITE — zones remplies par le Worker
   (menu de la semaine, bloc « En ce moment », Carnet). Sans contenu, la page
   reste telle qu'elle est construite : une section vide garde l'attribut hidden.
   ========================================================================== */

[data-zone][hidden] { display: none !important; }

/* Ordinal en exposant (« 1er ») : reste en minuscules dans un libellé en capitales. */
.label sup, .note-date sup {
  font-size: 0.72em;
  line-height: 0;
  letter-spacing: 0.04em;
  text-transform: none;
  vertical-align: super;
}

/* Bloc « En ce moment » (accueil) — sans photo, texte seul centré */
.now-text { max-width: 44rem; margin-inline: auto; text-align: center; }
.now-text h2 { margin: 1.4rem 0 1.6rem; }
.now-text p:not(.label) { max-width: 36em; margin-inline: auto; }
.now-link { margin-top: 2.2rem; }

/* Menu de la semaine (Menus, #midi) */
.menu-week {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 32em;
}
.menu-week .label { display: block; margin-bottom: 0.6rem; }
.menu-week p + p { margin-top: 0; }
.menu-week a:not(.link-arrow) { border-bottom: 1px solid var(--line); }

/* Fermetures et vacances (accueil, dans le premier écran ; Menus, en tête de page) : une phrase, un filet, rien de plus.
   Pas de bandeau ni de couleur d'alerte : la typographie du site, en italique (DA : discret, élégant). */
.closure-note {
  margin-top: 2.2rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  max-width: 30em;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--navy);
}
.closure-note p + p { margin-top: 0.55em; }
.closure-note--hero {
  margin-top: 1.7rem;
  color: rgba(250, 247, 241, 0.94);
  border-left-color: rgba(250, 247, 241, 0.5);
  max-width: 28em;
}
@media (max-width: 760px) {
  .closure-note { font-size: 1.12rem; }
}

/* Carnet — aperçu de l'accueil */
.carnet-apercu-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.4rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  border-bottom: 1px solid var(--line);
}
.carnet-apercu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.4rem, 5vw, 5rem);
}
.note-card { display: grid; gap: 1.4rem; align-content: start; }
.note-card-body { display: grid; gap: 0.8rem; align-content: start; }
.note-card-body > * { margin: 0; }
.note-card h3 { transition: color 0.4s var(--ease-out); }
.note-card:hover h3 { color: var(--slate); }
.note-card-text { max-width: 34em; }
/* Une seule note : toute la largeur, photo et texte côte à côte (texte seul : largeur de lecture). */
.carnet-apercu-grid--une { grid-template-columns: minmax(0, 1fr); }
.carnet-apercu-grid--une .note-card--media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
}
.carnet-apercu-grid--une .note-card:not(.note-card--media) { max-width: 44rem; }
@media (max-width: 900px) {
  .carnet-apercu-grid { grid-template-columns: 1fr; }
  .carnet-apercu-grid--une .note-card--media { grid-template-columns: 1fr; }
}

/* Carnet — la page : date en marge, texte, photo à droite */
.note {
  display: grid;
  /* Le texte d'abord : la date garde une marge étroite, la photo reste plus petite que le texte à toute largeur. */
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 3fr) minmax(0, 2fr);
  gap: 1rem clamp(1.6rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2.2rem, 5vh, 3.4rem) 0;
  border-top: 1px solid var(--line);
}
.note:last-child { border-bottom: 1px solid var(--line); }
.note--text .note-body { grid-column: span 2; }
.note-date { font-size: var(--fs-small); color: var(--taupe-texte); letter-spacing: 0.04em; padding-top: 0.35em; }
.note-media { grid-column: 3; grid-row: 1; }
.note-title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; margin-bottom: 1rem; }
/* Textes saisis dans le dashboard (news, événements, produits) : un mot ou une adresse très longs se coupent plutôt que de déborder
   sur téléphone (revue du 24.11.2026 ; l'aperçu du dashboard fait de même). */
.note-title, .note-body, .shop-text, .shop-head h1, .shop-event-body, .shop-product-body, .note-card-body { overflow-wrap: anywhere; }
.note-body p { max-width: 36em; }
.note-link { margin-top: 1.6rem; }
.carnet-section:has(.carnet-liste:empty) { display: none; } /* API muette : pas de bande vide */
.carnet-vide {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--slate);
  padding: clamp(2rem, 5vh, 3rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
  .note { grid-template-columns: 1fr; gap: 1rem; }
  .note--text .note-body, .note-media { grid-column: auto; grid-row: auto; }
}

/* ==========================================================================
   PAGES LÉGALES — texte long, lisible, sans effet
   ========================================================================== */
.legal { max-width: 46em; }
.legal h2 { font-size: var(--fs-h3); margin: 3.2rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--font-text); font-size: var(--fs-body); font-weight: 600; margin: 1.8rem 0 0.5rem; color: var(--navy); }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 0.8rem; }
.legal ul { list-style: none; display: grid; gap: 0.55rem; margin: 0.9rem 0; padding: 0; }
.legal ul li { padding-left: 1.4em; position: relative; }
.legal ul li::before { content: '—'; position: absolute; left: 0; color: var(--mist); }
.legal a { border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.legal .legal-version { color: var(--slate); font-size: var(--fs-small); margin-top: 3.2rem; }

/* ==========================================================================
   NEWSLETTER ET BLOCS TEMPORAIRES DE L'ACCUEIL (10.11.2026)
   Inscription : bloc de l'accueil (temporaire), /js/newsletter.js ; celle du bas de chaque page est dans site.css.
   « Offrir un voyage à La Voile » (jusqu'à Noël). Interrupteurs : src/data/site.ts (temporaire).
   ========================================================================== */

.temp-blocks { border-bottom: 1px solid var(--line-soft); }
.temp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.temp-grid--one { grid-template-columns: minmax(0, 44rem); justify-content: center; }
.temp-title { font-size: var(--fs-h3); font-weight: 400; line-height: 1.2; margin: 1rem 0 1rem; }
.temp-gift { display: grid; gap: 1.6rem; align-content: start; }
.temp-gift-text > p:not(.label) { max-width: 30em; }
.temp-gift-text .link-arrow { margin-top: 1.6rem; }
.temp-gift:hover .temp-title { color: var(--slate); }
.temp-gift .temp-title { transition: color 0.4s var(--ease-out); }
.temp-newsletter > p:not(.label) { max-width: 30em; }
@media (max-width: 900px) {
  .temp-grid { grid-template-columns: 1fr; }
}

/* Formulaire de l'accueil (variante « bloc ») tant que l'accueil garde sa vue d'avant ; le formulaire du pied de page est dans
   site.css. */
.newsletter-form--bloc { display: grid; gap: 0.9rem; margin-top: 1.8rem; }
.newsletter-form--bloc .newsletter-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.2rem 1.6rem; align-items: end; }
.newsletter-form--bloc .newsletter-fields .newsletter-submit { grid-column: 1 / -1; justify-self: start; }
.newsletter-form--bloc .newsletter-field { display: grid; gap: 0.3rem; }
.newsletter-form--bloc .newsletter-optional { color: var(--taupe-texte); margin-left: 0.4em; }
.newsletter-form--bloc .newsletter-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.6em 0;
  transition: border-color 0.3s var(--ease-out);
}
.newsletter-form--bloc .newsletter-input:focus { outline: none; border-bottom-color: var(--navy); }
.newsletter-form--bloc .newsletter-input[aria-invalid="true"] { border-bottom-color: #8a2c2c; }
.newsletter-form--bloc .newsletter-submit[disabled] { opacity: 0.5; cursor: wait; }
.newsletter-form--bloc .newsletter-turnstile:empty { display: none; }
.newsletter-form--bloc .newsletter-status.is-error { color: #8a2c2c; }
.newsletter-form--bloc .newsletter-status.is-ok {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--navy);
}
.newsletter-form--bloc .newsletter-note a { border-bottom: 1px solid var(--line); }
.newsletter-form--bloc.is-done .newsletter-fields, .newsletter-form--bloc.is-done .newsletter-note { display: none; }
@media (max-width: 540px) {
  .newsletter-form--bloc .newsletter-fields { grid-template-columns: 1fr; }
}

/* Achat d'un bon : case de la newsletter, sous celle des conditions, jamais cochée d'avance */
.gift-newsletter .muted { color: var(--taupe-texte); }

/* ==========================================================================
   ÉVÉNEMENTS ET À EMPORTER (lot B, 10.11.2026) — zones remplies par le Worker
   (worker/shop.ts) ; formulaires d'achat : /js/boutique.js, champs repris des bons.
   Sobre : un agenda, une typographie, aucune couleur d'alerte (DA §5, §8-9).
   ========================================================================== */

.shop-events { display: grid; border-top: 1px solid var(--line); }
.shop-event {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--line);
}
/* Soirée annulée : seule la photo pâlit ; les textes gardent leur contraste (D12, 4,5:1 ; revue du 24.11.2026). */
.shop-event--off .shop-event-media { opacity: 0.5; }
.shop-event:not(:has(.shop-event-media)) { grid-template-columns: 5.5rem minmax(0, 1fr); }
/* La même chose par une classe du Worker (soirée sans photo) : sans :has() (Firefox avant 121, Safari avant 15.4), le texte restait
   dans la colonne étroite de la photo (revue du 24.11.2026). */
.shop-event--texte { grid-template-columns: 5.5rem minmax(0, 1fr); }
.shop-date { display: grid; justify-items: start; line-height: 1; color: var(--navy); }
.shop-date-day { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.4rem); }
.shop-date-month { margin-top: 0.35rem; font-size: var(--fs-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist-texte); }
.shop-event-body, .shop-product-body { display: grid; gap: 0.7rem; align-content: start; }
.shop-event-body > *, .shop-product-body > * { margin: 0; }
.shop-event h3, .shop-product h3 { transition: color 0.4s var(--ease-out); }
.shop-event:hover h3, .shop-product:hover h3 { color: var(--slate); }
.shop-excerpt { max-width: 38em; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; align-items: baseline; font-size: var(--fs-small); color: var(--ink); }
.shop-tag { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--taupe-texte); }
.shop-empty { color: var(--slate); font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); }

.shop-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.6rem); }
.shop-product { display: grid; gap: 1.3rem; align-content: start; }
/* Selon le nombre de produits (classes du Worker, worker/shop.ts, productGridClass ; mêmes règles que zones.css pour l'accueil).
   Un ou deux produits (demandes de Johnny du 05.12.2026) : chacun sur une ligne de toute la largeur, photo (5 parts) et texte
   (7 parts) côte à côte comme les sections de l'accueil, texte centré en hauteur ; deux produits, deux lignes l'une sous l'autre
   (avant : deux colonnes, des photos de 590 × 787 à 1440 px, plus grandes que celle du produit seul, 480 × 640) ; sans photo, le
   texte seul (extrait à sa largeur de lecture). Deux produits dont un seul a une photo (shop-products--mixte) : le texte de celui sans
   photo dans la colonne du texte de l'autre, pour que titres et prix s'alignent. Côte à côte au-dessus de 900 px seulement (l'un sous
   l'autre jusqu'à 900 px, comme les sections de l'accueil) ; trois ou plus, la grille ci-dessus (deux colonnes jusqu'à 900 px, une
   jusqu'à 560 px, plus bas). Deux classes (.shop-products.shop-products--…) : elles l'emportent sur la grille des écrans moyens. */
.shop-products.shop-products--un, .shop-products.shop-products--deux { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) {
  .shop-products--un .shop-product--media, .shop-products--deux .shop-product--media,
  .shop-products--mixte .shop-product:not(.shop-product--media) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: center; }
  .shop-products--mixte .shop-product:not(.shop-product--media) > .shop-product-body { grid-column: 2; }
}

.shop-teaser .shop-events { border-top: 0; }

.shop-head h1 { max-width: 14em; }
.shop-layout { align-items: start; }
.shop-layout:not(:has(.shop-figure)) { grid-template-columns: minmax(0, 46rem); }
.shop-text { display: grid; gap: 1.1rem; align-content: start; }
.shop-text > p { margin: 0; }
.shop-price { margin-top: 1rem !important; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 300; color: var(--navy); }
.shop-price span { font-family: var(--font-text); font-size: var(--fs-small); color: var(--mist-texte); letter-spacing: 0.02em; }
.shop-state {
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  color: var(--navy);
}
.shop-allergens { display: grid; gap: 0.35rem; }
.shop-pickup { display: grid; gap: 0.5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.shop-pickup ul { list-style: none; display: grid; gap: 0.25rem; }
.shop-note, .shop-back { margin-top: 0.6rem !important; }
.shop-note a { border-bottom: 1px solid var(--line); }
.shop-form { margin-top: 1.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }

/* Nombre de personnes, quantités : − 2 + (cibles de 44 px). */
.shop-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); width: max-content; }
.shop-qty-btn {
  width: 2.9rem;
  min-height: 2.9rem;
  font: inherit;
  font-size: 1.25rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease-out);
}
.shop-qty-btn:hover { background: var(--paper-2); }
.shop-qty-btn:disabled { color: var(--taupe); cursor: default; background: transparent; }
.shop-qty-input {
  width: 3.4rem;
  text-align: center;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-inline: 1px solid var(--line);
  -moz-appearance: textfield;
}
.shop-qty-input::-webkit-outer-spin-button, .shop-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty-input:focus-visible, .shop-qty-btn:focus-visible { outline: 2px solid var(--slate); outline-offset: -2px; }
.shop-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1.2rem; padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft); }
.shop-line-name { min-width: 12rem; flex: 1; }
.shop-days { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shop-days label { position: relative; cursor: pointer; }
.shop-days input { position: absolute; opacity: 0; pointer-events: none; }
.shop-days span {
  display: inline-block;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  font-size: var(--fs-small);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.shop-days input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.shop-days input:focus-visible + span { outline: 2px solid var(--slate); outline-offset: 2px; }

@media (max-width: 900px) {
  .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Un ou deux produits, l'un sous l'autre : photo jamais plus large que sur ordinateur (480 px ; relecture du 05.12.2026). */
  .shop-products--un .shop-product--media .media, .shop-products--deux .shop-product--media .media { max-width: 30rem; }
  /* Avec ou sans photo, la même colonne de date : la règle sans photo (plus haut) l'emportait et décalait le texte (revue du
     24.11.2026). Deux règles séparées : un navigateur sans :has() ignore une liste de sélecteurs entière. */
  .shop-event { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .shop-event:not(:has(.shop-event-media)) { grid-template-columns: 4.2rem minmax(0, 1fr); }
  .shop-event-media { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 560px) {
  .shop-products { grid-template-columns: 1fr; }
  .shop-event { grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1rem; }
  .shop-event:not(:has(.shop-event-media)) { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .shop-date-day { font-size: 2.3rem; }
}

/* Aperçu du bon sur la page d'achat (lot B) : le visuel choisi, tel qu'il part par email et en PDF. */
.gift-preview { display: grid; gap: 0.9rem; }
.gift-preview-caption { margin: 0; }

/* ==========================================================================
   RÉDUIRE LES ANIMATIONS — suite (lot L5) : placée après les règles qu'elle remplace (ligne du premier écran de l'accueil).
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-cue span { animation: none; }
}
