/* ==========================================================================
   IGNACE — feuille de style de la démonstration
   --------------------------------------------------------------------------
   1. Variables (le design system)     7. Signatures
   2. Base et accessibilité            8. La carte (pile de feuilles)
   3. Typographie                      9. Ambiance
   4. Composants (boutons, champs...) 10. Réservation
   5. En-tête et menu                 11. Avis, infos, groupes, pied de page
   6. Accueil et lieu                 12. Animations, aperçu KOVA, mouvement réduit
   Règle : on n'anime que « transform » et « opacity » (et le tracé des coches).
   ========================================================================== */

/* 1. VARIABLES ============================================================ */

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs : la suie, l'os, le papier de la carte, et un seul accent (la braise) */
  --suie: #141110; /* fond */
  --charbon: #1d1916; /* surfaces */
  --terre: #2a211b; /* aplats, emplacements photo */
  --cendre: #3b332c; /* filets */
  --os: #efe6d8; /* texte */
  --os-2: #b8ad9d; /* texte secondaire */
  --papier: #ebe1cf; /* les feuilles de la carte */
  --encre: #1b1613; /* texte sur papier */
  --encre-2: #5c5146; /* texte secondaire sur papier */
  --braise: #e8642a; /* accent : l'action principale et les états importants */
  --alerte: #ff9d85; /* erreurs de formulaire uniquement */
  --blanc-pur: #ffffff; /* reflet des boutons au survol, fond du QR code (il doit rester blanc pour être lisible) */
  --kova-encre: #0b0b0c; /* bandeau « Site de démonstration » : les couleurs de KOVA, volontairement hors palette */
  --kova-papier: #f3f0ea;

  /* Typographie : Gloock pour les titres, Hanken Grotesk pour le texte */
  --titre: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --texte: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-hero: clamp(3rem, 0.2rem + 13.4vw, 9.5rem);
  --t-1: clamp(2.1rem, 1.25rem + 3.8vw, 4.75rem);
  --t-2: clamp(1.6rem, 1.25rem + 1.6vw, 2.6rem);
  --t-3: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --t-txt: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --t-s: 0.9375rem;
  --t-xs: 0.8125rem;

  /* Espacements */
  --e-1: 0.25rem;
  --e-2: 0.5rem;
  --e-3: 0.75rem;
  --e-4: 1rem;
  --e-5: 1.5rem;
  --e-6: 2rem;
  --e-7: 3rem;
  --e-8: 4rem;
  --e-9: 6rem;
  --s-y: clamp(4.5rem, 2.5rem + 8vw, 10rem); /* respiration verticale d'une section */
  --marge: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
  --gout: clamp(1rem, 0.6rem + 1.4vw, 2rem);
  --max: 86rem;
  --tete-h: 4.25rem;
  --kova-h: 2.75rem;

  /* Rayons : un bloc de rayon R et de marge intérieure M contient des éléments de rayon R − M */
  --r-photo: 0.25rem;
  --r-s: 0.5rem; /* boutons, champs */
  --r-m: 1rem; /* cartes : 1rem − 0.5rem de marge = 0.5rem à l'intérieur */
  --r-rond: 999px;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --d-1: 0.2s;
  --d-2: 0.45s;
  --d-3: 0.9s;
}

/* 2. BASE ET ACCESSIBILITÉ ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tete-h) + 1rem);
  background: var(--suie);
}
html.lenis,
html.lenis body {
  height: auto;
}
html.lenis {
  scroll-behavior: auto;
}
.lenis.lenis-stopped {
  overflow: clip;
}
html.en-attente body {
  visibility: hidden;
}
body {
  margin: 0;
  padding-bottom: var(--kova-h);
  font-family: var(--texte);
  font-size: var(--t-txt);
  font-weight: 400;
  line-height: 1.55;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--os);
  background: var(--suie);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-ouvert {
  overflow: hidden;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
::selection {
  color: var(--suie);
  background: var(--braise);
}
:focus-visible {
  outline: 2px solid var(--os);
  outline-offset: 3px;
}
main:focus,
[tabindex="-1"]:focus {
  outline: none;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.evite {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--suie);
  background: var(--os);
  border-radius: var(--r-s);
  transform: translateY(-200%);
}
.evite:focus {
  transform: none;
}
.icones {
  position: absolute;
}
.i {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.w {
  width: min(100% - 2 * var(--marge), var(--max));
  margin-inline: auto;
}
.s {
  padding-block: var(--s-y);
}
/* Dans une grille, un bloc ne s'élargit jamais à cause de son contenu (rangées qui défilent) */
.lieu__g > *,
.carte__g > *,
.resa__g > *,
.infos__g > *,
.groupes > * {
  min-width: 0;
}

/* 3. TYPOGRAPHIE ========================================================== */

.t-1,
.t-2,
.t-3,
.hero__t,
.feuille__t,
.marque,
.pied__nom {
  font-family: var(--titre);
  font-weight: 400;
  text-wrap: balance;
}
.t-1 {
  font-size: var(--t-1);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.t-2 {
  font-size: var(--t-2);
  line-height: 1.08;
  letter-spacing: -0.008em;
}
.t-3 {
  font-size: var(--t-3);
  line-height: 1.15;
}
.chapo {
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  line-height: 1.45;
  text-wrap: pretty;
}
p {
  text-wrap: pretty;
}

/* 4. COMPOSANTS =========================================================== */

/* Boutons : un seul bouton « accent » par écran, pour l'action principale */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.5rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  color: var(--suie);
  background: var(--os);
  border: 0;
  border-radius: var(--r-s);
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blanc-pur);
  opacity: 0;
  transition: opacity var(--d-1) linear;
}
.btn .i {
  transition: transform var(--d-2) var(--ease);
}
.btn--accent {
  background: var(--braise);
}
.btn--trait {
  color: var(--os);
  background: none;
  box-shadow: inset 0 0 0 1px var(--os-2);
}
.btn--s {
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: var(--t-s);
}
.btn--l {
  width: 100%;
  min-height: 3.5rem;
}
.btn:active {
  transform: scale(0.985);
}
@media (hover: hover) {
  .btn:hover::before {
    opacity: 0.16;
  }
  .btn:hover .i {
    transform: translateX(0.2rem);
  }
}
/* État de chargement : le texte s'efface, un anneau tourne */
.btn__charge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 1.25rem;
  margin: -0.625rem 0 0 -0.625rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}
.btn.is-charge {
  cursor: progress;
}
.btn.is-charge .btn__t {
  opacity: 0;
}
.btn.is-charge .btn__charge {
  opacity: 1;
  animation: tourne 0.7s linear infinite;
}
@keyframes tourne {
  to {
    transform: rotate(360deg);
  }
}

/* Liens : le soulignement se tend au survol */
.lien {
  position: relative;
  display: inline-block;
  padding: 0;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: none;
  border: 0;
}
.lien::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.15em;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform var(--d-2) var(--ease);
}
.lien--i {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
}
.lien--i::after {
  bottom: 0.55rem;
}
@media (hover: hover) {
  .lien:hover::after {
    transform: scaleX(0.35);
  }
}

/* Bouton rond (flèches, plus, moins) */
.rond {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform var(--d-1) var(--ease);
}
.rond:active {
  transform: scale(0.92);
}
.rond[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Emplacements photo : un aplat de la palette et un grain léger en attendant la photo */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--terre);
  border-radius: var(--r-photo);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../assets/grain.png");
  opacity: 0.5;
  pointer-events: none;
}
.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cadrage, 50% 50%);
}

/* CADRAGE DES PHOTOS — une ligne par fichier (voir PHOTOS.md).
   Quand l'emplacement recadre la photo, ces deux chiffres disent quelle partie reste visible :
   le premier va de la gauche (0%) à la droite (100%), le second du haut (0%) au bas (100%). */
.ph img[src$="hero.jpg"] {
  --cadrage: 50% 40%;
}
.ph img[src$="lieu-1.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="lieu-2.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="plat-1.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="plat-2.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="plat-3.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="ambiance-1.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="ambiance-2.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="ambiance-3.jpg"] {
  --cadrage: 50% 50%;
}
.ph img[src$="ambiance-4.jpg"] {
  --cadrage: 50% 50%;
}
.ph--v {
  aspect-ratio: 4 / 5;
}
.ph--h {
  aspect-ratio: 3 / 2;
}
/* ?photos=1 : chaque emplacement affiche le nom du fichier attendu */
/* Mode repérage (?photos=1) : le nom du fichier attendu s'affiche sur chaque emplacement */
.ph__nom {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 6;
  padding: 0.2rem 0.5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--suie);
  background: var(--os);
  border-radius: calc(var(--r-s) / 2);
}
/* La photo d'accueil passe sous l'en-tête : son étiquette descend d'autant */
.hero__photo .ph__nom {
  top: calc(var(--tete-h) + 0.5rem);
  left: var(--marge);
}

/* Champs de formulaire */
.f {
  display: grid;
  gap: 0.4rem;
}
.f + .f,
.f2 + .f,
.f + .f2 {
  margin-top: var(--e-4);
}
.f2 {
  display: grid;
  gap: var(--e-4);
}
.f2 > .f + .f {
  margin-top: 0;
}
@media (min-width: 36em) {
  .f2 {
    grid-template-columns: 1fr 1fr;
  }
}
.f label {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--os-2);
}
.f__opt {
  font-weight: 400;
}
.f input,
.f textarea,
.rapide select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  color: var(--os);
  background: var(--suie);
  border: 1px solid var(--cendre);
  border-radius: var(--r-s);
}
.f textarea {
  resize: vertical;
}
.f input::placeholder {
  color: var(--os-2);
  opacity: 0.85;
}
.f input:focus-visible,
.f textarea:focus-visible,
.rapide select:focus-visible {
  outline: 2px solid var(--os);
  outline-offset: 1px;
}
.f.est-faux input,
.f.est-faux textarea {
  border-color: var(--alerte);
}
.f__err,
.mod__err {
  font-size: var(--t-s);
  color: var(--alerte);
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Message bref, en bas de l'écran */
.msg {
  position: fixed;
  left: 50%;
  bottom: calc(var(--kova-h) + 1rem);
  z-index: 60;
  width: max-content;
  max-width: min(34rem, 100% - 2rem);
  padding: 0.85rem 1.1rem;
  font-size: var(--t-s);
  color: var(--suie);
  background: var(--os);
  border-radius: var(--r-s);
  opacity: 0;
  transform: translate(-50%, 1rem);
  pointer-events: none;
  transition:
    opacity var(--d-2) var(--ease),
    transform var(--d-2) var(--ease);
}
.msg.is-vu {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Bandeau KOVA */
.kova {
  position: fixed;
  inset: auto 0 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--kova-h);
  padding: 0.3rem 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  color: var(--kova-encre);
  background: var(--kova-papier);
}
.kova svg:first-child {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
}
.kova .i {
  width: 1rem;
  height: 1rem;
}
.kova b {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* 5. EN-TÊTE ET MENU ====================================================== */

.tete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
}
.tete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--suie);
  border-bottom: 1px solid var(--cendre);
  opacity: 0;
  transition: opacity var(--d-2) var(--ease);
}
.tete.is-solide::before {
  opacity: 1;
}
.tete__in {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  height: var(--tete-h);
}
.marque {
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.tete__nav {
  display: none;
  gap: var(--e-6);
  margin-inline: auto;
  font-size: var(--t-s);
  font-weight: 500;
}
.tete__nav a {
  position: relative;
  padding-block: 0.75rem;
  text-decoration: none;
}
.tete__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.45rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-2) var(--ease);
}
@media (hover: hover) {
  .tete__nav a:hover::after {
    transform: none;
  }
}
.tete__act {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  margin-left: auto;
}
.langue {
  display: flex;
  padding: 0.2rem;
  border: 1px solid var(--cendre);
  border-radius: var(--r-s);
}
.langue button {
  min-width: 2.25rem;
  min-height: 2rem;
  padding: 0 0.4rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--os-2);
  background: none;
  border: 0;
  border-radius: 0.3rem; /* 0.5rem − 0.2rem */
}
.langue button[aria-pressed="true"] {
  color: var(--suie);
  background: var(--os);
}
/* Le bouton « Réserver » de l'en-tête ne prend la couleur d'accent que s'il est le seul
   bouton principal à l'écran (ni l'accueil, ni le module de réservation ne sont visibles) */
.tete__resa {
  color: var(--suie);
}
.tete__resa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--braise);
  transition: opacity var(--d-1) linear;
}
.tete.sans-accent .tete__resa {
  color: var(--os);
  background: none;
  box-shadow: inset 0 0 0 1px var(--os-2);
}
.tete.sans-accent .tete__resa::after {
  opacity: 0;
}
.tete__menu {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
}
.tete__menu .i {
  width: 1.5rem;
  height: 1.5rem;
}
/* Petits téléphones (360 et 375 px) : l'en-tête se resserre pour que tout tienne dans les marges */
@media (max-width: 23.9375em) {
  .tete__in {
    gap: var(--e-3);
  }
  .tete__act {
    gap: var(--e-1);
  }
  .tete__resa {
    padding-inline: 0.75rem;
  }
}
@media (max-width: 21.9375em) {
  .tete__resa {
    display: none;
  }
}
@media (min-width: 64em) {
  .tete__nav {
    display: flex;
  }
  .tete__act {
    margin-left: 0;
    gap: var(--e-3);
  }
  .tete__menu {
    display: none;
  }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--kova-h) + var(--e-5));
  background: var(--suie);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition:
    opacity var(--d-2) var(--ease),
    visibility 0s linear var(--d-2);
}
.menu.is-ouvert {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.menu__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tete-h);
}
.menu__nav {
  display: grid;
  margin-block: auto;
  padding-block: var(--e-6);
}
.menu__nav a {
  padding-block: 0.35rem;
  font-family: var(--titre);
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  line-height: 1.1;
  text-decoration: none;
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity var(--d-3) var(--ease),
    transform var(--d-3) var(--ease);
}
.menu.is-ouvert .menu__nav a {
  opacity: 1;
  transform: none;
}
.menu.is-ouvert .menu__nav a:nth-child(2) {
  transition-delay: 0.05s;
}
.menu.is-ouvert .menu__nav a:nth-child(3) {
  transition-delay: 0.1s;
}
.menu.is-ouvert .menu__nav a:nth-child(4) {
  transition-delay: 0.15s;
}
.menu.is-ouvert .menu__nav a:nth-child(5) {
  transition-delay: 0.2s;
}
.menu__bas {
  display: grid;
  gap: var(--e-2);
  justify-items: start;
  padding-top: var(--e-5);
  color: var(--os-2);
  border-top: 1px solid var(--cendre);
}
.menu__bas .lien {
  font-size: 1.25rem;
  color: var(--os);
}

/* 6. ACCUEIL ET LIEU ====================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--kova-h));
  min-height: calc(100svh - var(--kova-h));
  isolation: isolate;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: 0;
}
/* Le voile garantit le contraste du texte, quelle que soit la photo */
.hero__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 17, 16, 0.96) 0%, rgba(20, 17, 16, 0.78) 34%, rgba(20, 17, 16, 0.3) 68%, rgba(20, 17, 16, 0.62) 100%),
    linear-gradient(to right, rgba(20, 17, 16, 0.45), rgba(20, 17, 16, 0) 70%);
}
.hero__in {
  display: grid;
  gap: var(--e-6);
  align-items: end;
  margin-top: auto;
  padding-top: calc(var(--tete-h) + var(--e-7));
  padding-bottom: var(--e-6);
}
.etat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: var(--e-4);
  padding: 0.3rem 0.75rem 0.3rem 0.65rem;
  font-size: var(--t-s);
  font-weight: 500;
  background: rgba(20, 17, 16, 0.6);
  border: 1px solid var(--cendre);
  border-radius: var(--r-rond);
}
.etat__pt {
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid var(--os);
  border-radius: 50%;
}
.etat.est-ouvert .etat__pt {
  background: var(--os);
}
.hero__sur {
  margin-bottom: var(--e-3);
  font-size: var(--t-s);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--os-2);
}
.hero__t {
  margin-left: -0.04em; /* alignement optique du T sur la marge */
  font-size: min(var(--t-hero), 17.5vh);
  font-size: min(var(--t-hero), 17.5svh); /* le titre ne déborde pas des écrans peu hauts */
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: nowrap;
}
.hero__chapo {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.45;
}
.hero__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
  margin-top: var(--e-5);
}
.hero__resa {
  flex: 1 1 auto;
  min-height: 3.5rem;
}

.rapide {
  display: none;
}
.faits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--e-3) var(--gout);
  padding-block: var(--e-4);
  font-size: var(--t-s);
  border-top: 1px solid rgba(239, 230, 216, 0.22);
}
.faits div:last-child {
  display: none;
}
.faits dt {
  color: var(--os-2);
}
.faits dd {
  font-weight: 600;
}
.faits a {
  text-decoration: none;
}

@media (min-width: 40em) {
  .hero__resa {
    flex: 0 0 auto;
  }
  .faits {
    grid-template-columns: repeat(3, 1fr);
  }
  .faits div:last-child {
    display: block;
  }
}
@media (min-width: 64em) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--e-6) var(--e-8);
    padding-bottom: var(--e-6);
  }
  .hero__haut {
    grid-column: 1 / -1;
  }
  @media (max-height: 50em) {
    .hero__in {
      row-gap: var(--e-5);
      padding-top: calc(var(--tete-h) + var(--e-4));
      padding-bottom: var(--e-4);
    }
  }
  /* Sur grand écran, la réservation express devient l'action principale du premier écran */
  .js .hero__resa {
    display: none;
  }
  .js .rapide {
    display: grid;
    gap: var(--e-3);
    width: 21rem;
    padding: var(--e-2);
    background: rgba(29, 25, 22, 0.9);
    border: 1px solid var(--cendre);
    border-radius: var(--r-m);
  }
  .rapide__t {
    padding: var(--e-3) var(--e-3) 0;
    font-family: var(--titre);
    font-size: 1.35rem;
    line-height: 1.15;
  }
  .rapide__champs {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: var(--e-2);
    padding-inline: var(--e-1);
  }
  .rapide__c {
    display: grid;
    gap: 0.3rem;
    font-size: var(--t-xs);
    font-weight: 500;
    color: var(--os-2);
  }
  .rapide select {
    font-size: 1rem;
    font-weight: 500;
  }
  .rapide .btn {
    min-height: 3.25rem;
    border-radius: var(--r-s);
  }
}

/* Le lieu */
.lieu__g {
  display: grid;
  gap: var(--e-6) var(--gout);
}
.lieu__txt {
  display: grid;
  gap: var(--e-4);
  max-width: 36rem;
}
.lieu__txt p:not(.chapo) {
  color: var(--os-2);
}
.lieu__p2 {
  width: 82%;
  margin-left: auto;
}
.chiffres {
  display: grid;
  gap: 0;
}
.chiffres div {
  padding-block: var(--e-4);
  border-top: 1px solid var(--cendre);
}
.chiffres dt {
  font-family: var(--titre);
  font-size: var(--t-3);
  line-height: 1.15;
}
.chiffres dd {
  margin-top: 0.3rem;
  color: var(--os-2);
}
@media (min-width: 48em) {
  .lieu__g {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: var(--e-8);
    align-items: start;
  }
  .lieu__t {
    grid-column: 1 / 10;
  }
  .lieu__p1 {
    grid-column: 1 / 6;
    grid-row: 2 / 4;
  }
  .lieu__txt {
    grid-column: 7 / 13;
    grid-row: 2;
    padding-top: var(--e-6);
  }
  .lieu__p2 {
    grid-column: 7 / 13;
    grid-row: 3;
    width: 100%;
    align-self: end;
  }
  .chiffres {
    grid-column: 1 / 13;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gout);
  }
}

/* 7. SIGNATURES =========================================================== */

.sign {
  background: var(--charbon);
}
.sign__t {
  max-width: 13em;
}
.sign__l {
  display: grid;
  gap: var(--e-7);
  margin-top: var(--e-7);
}
.sign__i .ph {
  background: var(--terre);
}
.sign__i .ph img {
  transition: transform 1.4s var(--ease);
}
.sign__c {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem var(--e-4);
  margin-top: var(--e-4);
}
.sign__c p:not(.sign__p) {
  grid-column: 1;
  max-width: 26rem;
  color: var(--os-2);
}
.sign__p {
  grid-column: 2;
  grid-row: 1;
  font-size: var(--t-3);
  font-weight: 500;
  line-height: 1.3;
}
@media (hover: hover) {
  .sign__i:hover .ph img {
    transform: scale(1.045);
  }
}
@media (min-width: 48em) {
  .sign__l {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gout);
    margin-top: var(--e-8);
  }
  .sign__i:nth-child(2) {
    margin-top: var(--e-9);
  }
  .sign__i:nth-child(3) {
    margin-top: var(--e-7);
  }
}

/* 8. LA CARTE : une pile de feuilles ====================================== */

.carte__g {
  display: grid;
  gap: var(--e-7) var(--gout);
}
.carte__intro {
  display: grid;
  gap: var(--e-5);
  align-content: start;
}
.carte__intro .chapo {
  color: var(--os-2);
}
.carte__onglets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--e-2);
}
.carte__onglets button {
  min-height: 2.75rem;
  padding: 0 0.25rem;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--os);
  background: none;
  border: 1px solid var(--cendre);
  border-radius: var(--r-rond);
  transition: transform var(--d-1) var(--ease);
}
.carte__onglets button[aria-selected="true"] {
  color: var(--suie);
  background: var(--os);
  border-color: var(--os);
}
.carte__onglets button:active {
  transform: scale(0.96);
}
.midi {
  padding-top: var(--e-5);
  border-top: 1px solid var(--cendre);
}
.midi p {
  max-width: 26rem;
  margin-top: var(--e-2);
  color: var(--os-2);
}

.pile__f {
  display: grid;
  gap: var(--e-4);
}
.feuille {
  position: relative;
  padding: clamp(1.5rem, 0.9rem + 2.6vw, 3.25rem);
  color: var(--encre);
  background: var(--papier) url("../assets/grain.png");
  border-radius: 0.2rem;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.7);
}
.feuille :focus-visible {
  outline-color: var(--encre);
}
.feuille__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-4);
  padding-bottom: var(--e-4);
  border-bottom: 1px solid var(--encre);
}
.feuille__t {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1;
}
.feuille__n {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--encre-2);
}
.plats li {
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(27, 22, 19, 0.16);
}
.plats li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.plat__n {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
}
.plat__f {
  flex: 1;
  min-width: 1rem;
  border-bottom: 1px dotted var(--encre-2);
  transform: translateY(-0.25em);
}
.plat__p {
  flex: none;
  font-weight: 500;
}
.plat__d {
  margin-top: 0.15rem;
  padding-right: 3.5rem;
  font-size: var(--t-s);
  color: var(--encre-2);
}
.plats__col {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding-top: var(--e-3);
  font-size: var(--t-xs);
  color: var(--encre-2);
}
.plats__col span,
.plats--vins .plat__p {
  width: 4.6rem;
  text-align: right;
}
.plats--vins li {
  padding-block: 0.7rem;
}
/* Sur téléphone, les deux colonnes de prix de la cave se resserrent pour laisser la place au nom du vin */
@media (max-width: 30em) {
  .plats__col,
  .plats--vins .plat__n {
    gap: 0.4rem;
  }
  .plats__col span,
  .plats--vins .plat__p {
    width: 3.4rem;
  }
  /* Le nom du vin prend toute la place restante : les pointillés s'effacent */
  .plats--vins .plat__f {
    display: none;
  }
  .plats--vins .plat__n > span:first-child {
    flex: 1;
    min-width: 0;
    text-wrap: balance;
  }
}
@media (max-width: 21.9375em) {
  .plats__col span,
  .plats--vins .plat__p {
    width: 2.9rem;
  }
}
.feuille__note,
.carte__legal {
  font-size: var(--t-xs);
  line-height: 1.5;
}
.feuille__note {
  margin-top: var(--e-4);
  color: var(--encre-2);
}
.carte__legal {
  margin-top: var(--e-5);
  color: var(--os-2);
}
.pile__cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
  margin-top: var(--e-5);
}
.pile__aide {
  font-size: var(--t-s);
  color: var(--os-2);
  text-align: center;
}

/* Mode « pile » (activé par le script) : les feuilles sont superposées, on les feuillette */
/* Les feuilles tournées ou en train de sortir ne doivent jamais élargir la page */
.carte {
  overflow: hidden;
}
@supports (overflow: clip) {
  .carte {
    overflow: clip;
  }
}
.is-pile .pile__f {
  gap: 0;
  padding: 0 1.25rem 1.25rem 0;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.is-pile .feuille {
  grid-area: 1 / 1;
  min-width: 0; /* la feuille la plus chargée (la cave) ne doit pas élargir les autres */
  transform-origin: 50% 130%;
  transition:
    transform 0.7s var(--ease),
    opacity 0.45s var(--ease);
}
.is-pile .feuille::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--encre);
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}
.is-pile .feuille[data-pos="0"] {
  z-index: 4;
  cursor: grab;
}
.is-pile .feuille[data-pos="1"] {
  z-index: 3;
  transform: translate(0.625rem, 0.625rem) rotate(1.2deg);
}
.is-pile .feuille[data-pos="1"]::after {
  opacity: 0.1;
}
.is-pile .feuille[data-pos="2"] {
  z-index: 2;
  transform: translate(1.25rem, 1.25rem) rotate(-0.9deg);
}
.is-pile .feuille[data-pos="2"]::after {
  opacity: 0.2;
}
.is-pile .feuille[data-pos="3"] {
  z-index: 1;
  transform: translate(1.25rem, 1.25rem) rotate(-0.9deg);
  opacity: 0;
}
.is-pile .feuille.est-sortie {
  z-index: 5;
  transform: translateX(-118%) rotate(-9deg);
  opacity: 0;
}
.is-pile .feuille.sans-transition,
.is-pile .feuille.sans-transition::after {
  transition: none;
}
.is-pile .feuille.est-tiree {
  transition: none;
  cursor: grabbing;
}

@media (min-width: 64em) {
  .carte__g {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .carte__intro {
    grid-column: 1 / 6;
    position: sticky;
    top: calc(var(--tete-h) + var(--e-6));
  }
  .pile {
    grid-column: 7 / 13;
  }
  .carte__onglets {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .carte__onglets button {
    min-height: 0;
    padding: 0.1rem 0;
    font-family: var(--titre);
    font-size: var(--t-2);
    font-weight: 400;
    line-height: 1.25;
    color: var(--os-2);
    border: 0;
    border-radius: 0;
    opacity: 0.55;
    transition:
      opacity var(--d-2) var(--ease),
      transform var(--d-2) var(--ease);
  }
  .carte__onglets button[aria-selected="true"] {
    color: var(--os);
    background: none;
    opacity: 1;
    transform: translateX(0.75rem);
  }
  .carte__onglets button:hover {
    opacity: 1;
  }
}

/* 9. AMBIANCE ============================================================= */

.amb {
  padding-bottom: 0;
}
.amb__t {
  max-width: 12em;
}
.amb__d {
  margin-top: var(--e-7);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.amb__d::-webkit-scrollbar {
  display: none;
}
.amb__l {
  display: flex;
  align-items: flex-end;
  gap: var(--gout);
  width: max-content;
  padding-inline: var(--marge);
}
.amb__i {
  flex: none;
  scroll-snap-align: center;
}
.amb__i--1 {
  width: clamp(14rem, 62vw, 24rem);
}
.amb__i--1 .ph {
  aspect-ratio: 3 / 4;
}
.amb__i--2,
.amb__i--4 {
  width: clamp(18rem, 80vw, 38rem);
}
.amb__i--2 .ph,
.amb__i--4 .ph {
  aspect-ratio: 3 / 2;
}
.amb__i--3 {
  width: clamp(13rem, 56vw, 22rem);
}
.amb__i--3 .ph {
  aspect-ratio: 1;
}
.amb figcaption {
  margin-top: var(--e-3);
  font-size: var(--t-s);
  color: var(--os-2);
}
/* Sur grand écran, la rangée glisse avec le défilement de la page */
.amb__d.is-defile {
  overflow: hidden;
  scroll-snap-type: none;
}

/* 10. RÉSERVATION ========================================================= */

.resa__g {
  display: grid;
  gap: var(--e-7) var(--gout);
}
.resa__intro {
  display: grid;
  gap: var(--e-5);
  align-content: start;
}
.gages {
  display: grid;
  gap: var(--e-3);
}
.gages li {
  display: flex;
  gap: var(--e-3);
}
.gages .i {
  margin-top: 0.2em;
  color: var(--os-2);
}
.resa__groupe {
  padding-top: var(--e-5);
  color: var(--os-2);
  border-top: 1px solid var(--cendre);
}
.resa__groupe .lien {
  color: var(--os);
}

.mod {
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  background: var(--charbon);
  border: 1px solid var(--cendre);
  border-radius: var(--r-m);
}
.mod__etapes {
  display: flex;
  gap: var(--e-2) var(--e-5);
  margin-bottom: var(--e-5);
  padding-bottom: var(--e-4);
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--os-2);
  border-bottom: 1px solid var(--cendre);
  counter-reset: etape;
}
.mod__etapes li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  counter-increment: etape;
}
.mod__etapes li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: var(--t-xs);
  border: 1px solid currentColor;
  border-radius: 50%;
}
.mod__etapes li.est-actif {
  color: var(--os);
}
.mod__etapes li.est-fait::before {
  color: var(--suie);
  background: var(--os);
  border-color: var(--os);
}
.mod__etapes li:not(.est-actif) span {
  display: none;
}
@media (min-width: 30em) {
  .mod__etapes li:not(.est-actif) span {
    display: inline;
  }
}
.mod__note {
  color: var(--os-2);
}
.mod__bloc + .mod__bloc {
  margin-top: var(--e-5);
}
.mod__bloc legend {
  margin-bottom: var(--e-3);
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--os-2);
}
.mod__bloc--pers {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mod__bloc--pers legend {
  float: left;
  margin: 0;
}
.pas {
  display: flex;
  align-items: center;
  gap: var(--e-3);
}
.pas__n {
  min-width: 2ch;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

/* Les jours : une rangée qu'on fait défiler */
.jours {
  display: flex;
  gap: var(--e-2);
  margin-inline: calc(-1 * var(--e-2));
  padding: 0.25rem var(--e-2);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.jours::-webkit-scrollbar {
  display: none;
}
.jour {
  position: relative;
  flex: none;
  scroll-snap-align: start;
}
.jour input,
.creneau input,
.opt input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.jour__c {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 4rem;
  padding: 0.6rem 0.25rem;
  font-size: var(--t-xs);
  color: var(--os-2);
  border: 1px solid var(--cendre);
  border-radius: var(--r-s);
  transition: transform var(--d-1) var(--ease);
}
.jour__n {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--os);
}
.jour input:checked + .jour__c,
.creneau input:checked + .creneau__c {
  color: var(--suie);
  background: var(--os);
  border-color: var(--os);
}
.jour input:checked + .jour__c .jour__n {
  color: var(--suie);
}
.jour input:focus-visible + .jour__c,
.creneau input:focus-visible + .creneau__c,
.opt input:focus-visible + .opt__c {
  outline: 2px solid var(--os);
  outline-offset: 3px;
}
.jour input:active + .jour__c,
.creneau input:active + .creneau__c {
  transform: scale(0.95);
}
.jour input:disabled {
  cursor: not-allowed;
}
.jour input:disabled + .jour__c {
  opacity: 0.45;
}

/* Les créneaux */
.creneaux {
  display: grid;
  gap: var(--e-4);
  min-height: 9.5rem;
}
.creneaux__t {
  margin-bottom: var(--e-2);
  font-size: var(--t-xs);
  color: var(--os-2);
}
.creneaux__l {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr));
  gap: var(--e-2);
}
.creneau {
  position: relative;
}
.creneau__c {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  border: 1px solid var(--cendre);
  border-radius: var(--r-s);
  transition: transform var(--d-1) var(--ease);
}
.creneau input:disabled {
  cursor: not-allowed;
}
.creneau input:disabled + .creneau__c {
  font-weight: 400;
  color: var(--os-2);
  text-decoration: line-through;
  border-style: dashed;
  opacity: 0.6;
}
.creneau input:checked + .creneau__c {
  animation: choix 0.35s var(--ease);
}
@keyframes choix {
  50% {
    transform: scale(1.06);
  }
}
.mod__err {
  margin-top: var(--e-4);
}
.mod__p .btn--l {
  margin-top: var(--e-5);
}

/* Étape 2 */
.mod__recap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--e-2) var(--e-4);
  margin-bottom: var(--e-5);
  padding: var(--e-3) var(--e-4);
  font-weight: 600;
  background: var(--suie);
  border-radius: var(--r-s);
}
.mod__recap .lien {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--os-2);
}
.opts {
  display: grid;
  gap: var(--e-2);
  margin-top: var(--e-5);
}
.opt {
  position: relative;
  display: flex;
  gap: var(--e-3);
  padding: var(--e-4);
  border: 1px solid var(--cendre);
  border-radius: var(--r-s);
}
.opt__c {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  color: var(--suie);
  border: 1px solid var(--os-2);
  border-radius: 0.3rem;
}
.opt__c .i {
  width: 1.1rem;
  height: 1.1rem;
  stroke-width: 2.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--d-2) var(--ease);
}
.opt input:checked + .opt__c {
  background: var(--os);
  border-color: var(--os);
}
.opt input:checked + .opt__c .i {
  stroke-dashoffset: 0;
}
.opt__t {
  display: grid;
  gap: 0.15rem;
  font-size: var(--t-s);
  color: var(--os-2);
}
.opt__t strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--os);
}
.mod__rgpd {
  margin-top: var(--e-4);
  font-size: var(--t-xs);
  color: var(--os-2);
}

/* Étape 3 : la confirmation */
.mod__ok {
  display: grid;
  gap: var(--e-4);
  justify-items: start;
}
.coche {
  width: 3.5rem;
  height: 3.5rem;
  fill: none;
  stroke: var(--braise);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coche circle {
  opacity: 0.35;
}
.coche path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.mod__ok.est-vu .coche path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.7s var(--ease) 0.15s;
}
.mod__lignes {
  display: grid;
  gap: var(--e-2);
  width: 100%;
}
.mod__lignes li {
  display: flex;
  gap: var(--e-3);
  padding-top: var(--e-2);
  border-top: 1px solid var(--cendre);
}
.mod__lignes .i {
  margin-top: 0.2em;
  color: var(--os-2);
}
.mod__demo {
  font-size: var(--t-s);
  color: var(--os-2);
}
.mod__fin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
}
.mod__fin .lien {
  font-size: var(--t-s);
}

@media (min-width: 64em) {
  .resa__g {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .resa__intro {
    grid-column: 1 / 6;
    position: sticky;
    top: calc(var(--tete-h) + var(--e-6));
  }
  .mod {
    grid-column: 7 / 13;
  }
}

/* 11. AVIS, INFOS, GROUPES, PIED DE PAGE ================================== */

.avis {
  background: var(--charbon);
}
.avis__tete {
  display: grid;
  gap: var(--e-3);
}
.avis__note {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  font-weight: 600;
}
.etoiles {
  display: flex;
  gap: 0.15rem;
}
.etoiles .i {
  fill: currentColor;
  stroke: none;
}
.avis__fictif {
  max-width: 34rem;
  font-size: var(--t-s);
  color: var(--os-2);
}
.avis__l {
  display: grid;
  gap: 0;
  margin-top: var(--e-7);
}
.avis__i {
  display: grid;
  gap: var(--e-4);
  align-content: space-between;
  padding-block: var(--e-5);
  border-top: 1px solid var(--cendre);
}
.avis__i blockquote {
  font-family: var(--titre);
  font-size: var(--t-3);
  line-height: 1.3;
}
.avis__qui {
  font-size: var(--t-s);
  color: var(--os-2);
}
.avis__qui strong {
  font-weight: 600;
  color: var(--os);
}
.avis__qui span::before {
  content: "· ";
}
@media (min-width: 56em) {
  .avis__l {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gout);
  }
}

/* Le QR code : papier clair et encre sombre, pour qu'un téléphone le lise bien */
.qr {
  display: grid;
  gap: var(--e-5);
  align-items: center;
  margin-top: var(--e-7);
  padding: var(--e-2);
  color: var(--encre);
  background: var(--papier) url("../assets/grain.png");
  border-radius: var(--r-m);
}
.qr :focus-visible {
  outline-color: var(--encre);
}
.qr__code {
  width: 9.5rem;
  aspect-ratio: 1;
  margin: var(--e-4) 0 0 var(--e-4);
  background: var(--blanc-pur);
  border-radius: var(--r-s); /* 1rem − 0.5rem */
}
.qr__code svg {
  width: 100%;
  height: 100%;
  fill: var(--encre);
}
.qr__txt {
  display: grid;
  gap: var(--e-2);
  justify-items: start;
  padding: 0 var(--e-4) var(--e-4);
}
.qr__txt p {
  max-width: 30rem;
  color: var(--encre-2);
}
.qr__vu {
  font-weight: 600;
  color: var(--encre) !important;
}
@media (min-width: 40em) {
  .qr {
    grid-template-columns: auto 1fr;
  }
  .qr__code {
    margin: var(--e-4);
  }
  .qr__txt {
    padding: var(--e-4) var(--e-5) var(--e-4) 0;
  }
}

/* Infos */
.infos__g {
  display: grid;
  gap: var(--e-7) var(--gout);
}
.infos__txt {
  display: grid;
  gap: var(--e-5);
  align-content: start;
}
.infos__txt > p {
  color: var(--os-2);
}
.infos__act {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3);
}
.horaires {
  width: 100%;
  border-collapse: collapse;
}
.horaires th,
.horaires td {
  padding-block: 0.7rem;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--cendre);
}
.horaires th {
  width: 7.5rem;
  color: var(--os-2);
}
.horaires td {
  text-align: right;
}
.horaires__l {
  display: block;
}
.horaires__s {
  display: none;
}
@media (min-width: 30em) {
  .horaires__l {
    display: inline;
  }
  .horaires__s {
    display: inline;
  }
  .horaires__s::before {
    content: " · ";
    color: var(--os-2);
    white-space: pre;
  }
}
.horaires .est-aujourdhui th,
.horaires .est-aujourdhui td {
  font-weight: 600;
  color: var(--os);
}
.horaires .est-aujourdhui th::after {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-left: 0.5rem;
  vertical-align: 0.15em;
  background: var(--braise);
  border-radius: 50%;
}
.plan {
  border-radius: var(--r-photo);
  overflow: hidden;
}
.plan svg {
  width: 100%;
  height: auto;
}
.plan__fond {
  fill: var(--charbon);
}
.plan__ilot path {
  fill: var(--terre);
}
.plan__eau {
  fill: var(--suie);
}
.plan__quai {
  fill: none;
  stroke: var(--cendre);
  stroke-width: 12;
}
.plan__vague {
  fill: none;
  stroke: var(--cendre);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.plan__pont {
  fill: none;
  stroke: var(--cendre);
  stroke-width: 14;
}
.plan__nom text,
.plan__p text {
  font-family: var(--texte);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  fill: var(--os-2);
}
.plan__p rect {
  fill: none;
  stroke: var(--os-2);
}
.plan__ici circle {
  fill: var(--braise);
}
.plan__ici .plan__halo {
  opacity: 0.22;
}
.plan__ici text {
  font-family: var(--titre);
  font-size: 24px;
  fill: var(--os);
}
@media (min-width: 64em) {
  .infos__g {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }
  .infos__txt {
    grid-column: 1 / 7;
  }
  .plan {
    grid-column: 8 / 13;
    position: sticky;
    top: calc(var(--tete-h) + var(--e-6));
  }
}

/* Groupes */
.groupes {
  display: grid;
  gap: var(--e-6) var(--gout);
  margin-top: var(--s-y);
  padding-top: var(--e-7);
  border-top: 1px solid var(--cendre);
}
.groupes__txt {
  display: grid;
  gap: var(--e-4);
  align-content: start;
}
.groupes__txt p {
  max-width: 30rem;
  color: var(--os-2);
}
.groupes__f .btn {
  margin-top: var(--e-4);
}
.groupes__ok {
  margin-top: var(--e-4);
  padding: var(--e-4);
  border: 1px solid var(--os-2);
  border-radius: var(--r-s);
}
@media (min-width: 64em) {
  .groupes {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .groupes__txt {
    grid-column: 1 / 6;
  }
  .groupes__f {
    grid-column: 7 / 13;
  }
}

/* Pied de page */
.pied {
  padding-top: var(--e-8);
  font-size: var(--t-s);
  color: var(--os-2);
  border-top: 1px solid var(--cendre);
  overflow: hidden;
}
.pied__g {
  display: grid;
  gap: var(--e-6) var(--gout);
}
.pied__t {
  margin-bottom: var(--e-2);
  font-weight: 600;
  color: var(--os);
}
.pied a {
  text-underline-offset: 0.2em;
}
.pied__demo {
  display: grid;
  gap: var(--e-3);
  align-content: start;
}
.pied__nom {
  margin: var(--e-7) 0 -0.19em;
  font-size: clamp(6rem, 33vw, 34rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  color: var(--charbon);
  -webkit-text-stroke: 1px var(--cendre);
  user-select: none;
}
@media (min-width: 48em) {
  .pied__g {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .pied__g {
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
  }
}

/* 12. ANIMATIONS, APERÇU KOVA, MOUVEMENT RÉDUIT =========================== */

/* Titres : chaque mot attend derrière un cache, puis monte ligne par ligne */
.mot {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.14em 0.04em 0.2em;
  margin: -0.14em -0.04em -0.2em;
}
.mot__i {
  display: inline-block;
}
.anim [data-decoupe]:not(.is-vu) .mot__i {
  transform: translateY(110%);
}
.anim .rv:not(.is-vu) {
  opacity: 0;
  transform: translateY(1.5rem);
}
.anim .rv {
  transition:
    opacity var(--d-3) var(--ease),
    transform var(--d-3) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
/* Photos des plats : un rideau se lève, l'image se pose */
.anim [data-voile]::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--charbon);
  transform-origin: top;
  transition: transform 1.1s var(--ease);
}
.anim [data-voile].is-vu::before {
  transform: scaleY(0);
}
.anim [data-voile]:not(.is-vu) img {
  transform: scale(1.2);
}
/* Parallaxe : l'image est un peu plus haute que son cadre */
.anim [data-parallaxe] img {
  top: -9%;
  height: 118%;
}
.anim [data-parallaxe] {
  transition: opacity 1.2s var(--ease);
}
.anim [data-parallaxe]:not(.is-vu) {
  opacity: 0;
}
/* Accueil : la photo « s'allume », le titre monte, le reste suit */
.anim .mot__i {
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--l, 0) * 90ms + var(--i, 0) * 60ms);
}
.anim .hero__t .mot__i {
  transition-delay: calc(0.3s + var(--l, 0) * 120ms);
}
.anim .hero__photo img {
  transition:
    opacity 2.4s cubic-bezier(0.3, 0, 0.2, 1),
    transform 3s var(--ease);
}
.anim .hero:not(.est-pret) .hero__photo img {
  opacity: 0;
  transform: scale(1.14);
}
.anim .hero :is(.etat, .hero__sur, .hero__chapo, .hero__act, .rapide, .faits) {
  transition:
    opacity 1.2s var(--ease),
    transform 1.2s var(--ease);
}
.anim .hero:not(.est-pret) :is(.etat, .hero__sur, .hero__chapo, .hero__act, .rapide, .faits) {
  opacity: 0;
  transform: translateY(1rem);
}
.anim .hero .hero__sur {
  transition-delay: 0.1s;
}
.anim .hero .hero__chapo {
  transition-delay: 0.6s;
}
.anim .hero .hero__act,
.anim .hero .rapide {
  transition-delay: 0.75s;
}
.anim .hero .faits {
  transition-delay: 0.9s;
}
/* La pile de feuilles fait un petit signe la première fois qu'on la voit */
.anim .pile__f.fait-signe .feuille[data-pos="0"] {
  animation: signe 1.2s var(--ease);
}
@keyframes signe {
  35% {
    transform: translateX(-2.25rem) rotate(-2.6deg);
  }
}

/* Aperçu dans un écran du site KOVA : tout est visible, rien ne bouge, pas de bandeau */
.embed,
.embed body {
  height: auto;
  overflow: hidden;
  scroll-behavior: auto;
}
.embed body {
  padding-bottom: 0;
}
.embed .kova,
.embed .msg {
  display: none;
}
.embed .tete {
  position: absolute;
}
.embed .carte__intro,
.embed .resa__intro,
.embed .plan {
  position: static;
}
.embed .hero {
  min-height: 760px; /* jamais de hauteur en « vh » ici : la page d'accueil KOVA donne à l'aperçu la hauteur de la page entière */
}
.embed .hero__t {
  font-size: var(--t-hero);
}
@media (min-width: 64em) {
  .embed .hero {
    min-height: 800px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
