/* Pizza du Terril : feuille de style.
   Deux matières : la houille (le charbon du terril, fond sombre) et la farine (le fond clair).
   Une seule couleur d'action : le vert des terrils qui ont reverdi (bouleaux, mousses) ;
   la brique et le feu restent dans les photos. Titres en Chivo (grotesque
   industrielle, celle des plaques de la mine), texte en Geologica. Rayon maximal : 4 px. */

@font-face {
  font-family: "Chivo";
  src: url("fonts/chivo-latin.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geologica";
  src: url("fonts/geologica-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --houille: #1D1B19;
  --houille-2: #272421;
  --houille-3: #36322E;
  --houille-4: #4F4943;
  --farine: #EFEDE8;
  --farine-2: #E2DED6;
  --farine-3: #D3CDC2;
  --papier: #F8F6F2;
  --craie: #F2EDE4;
  --cendre: #B7AEA2;
  --suie: #5E5852;
  --trait-fort: #6B645D;
  --vert: #33752D;
  --vert-fonce: #285E23;
  --vert-clair: #8DC05A;
  --vert-texte: #F7F4EC;
  --erreur: #B3261E;
  --erreur-clair: #F2A39B;
  /* Anneau de focus : vert foncé sur la farine, vert clair sur la houille. */
  --anneau: var(--vert-fonce);
  --laiton: #B8955A;
  --laiton-fonce: #7E6235;

  --police-titre: "Chivo", "Arial Narrow", Arial, sans-serif;
  --police-texte: "Geologica", "Segoe UI", Arial, sans-serif;

  --pas--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.9rem);
  --pas-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --pas-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.4rem);
  --pas-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --pas-3: clamp(2rem, 1.5rem + 2.3vw, 3.3rem);
  --pas-4: clamp(2.5rem, 1.6rem + 4.2vw, 5.2rem);

  --colonne: 1240px;
  --gouttiere: clamp(16px, 4vw, 40px);
  --rayon: 4px;
  --entete-h: 64px;
  --sortie: cubic-bezier(0.22, 1, 0.36, 1);
  --rebond: cubic-bezier(0.2, 0.9, 0.3, 1.25);
  --ombre-carte: 0 1px 0 rgba(29, 27, 25, 0.06), 0 10px 28px -18px rgba(29, 27, 25, 0.45);
}

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

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--brnsg-barre, 0px) + var(--entete-h-reel, 97px) + 24px);
  background: var(--houille);
  scrollbar-color: var(--trait-fort) var(--farine-2);
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: var(--pas-0);
  line-height: 1.6;
  color: var(--houille);
  background: var(--farine);
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.fond-houille {
  background: var(--houille);
  color: var(--craie);
}

img,
video,
svg,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--police-titre);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 0.9em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--vert);
  color: var(--vert-texte);
}

:focus-visible {
  outline: 3px solid var(--anneau);
  outline-offset: 3px;
}

body.fond-houille,
.section--houille,
.entete,
.js .nav,
.hero,
.compositeur,
.dialogue,
.recap-carte,
.merci-retrait,
.taillette-encart,
.alerte,
.pied,
.toast {
  --anneau: var(--vert-clair);
}

/* Sections claires posées dans une page sombre (accueil) : retour au vert foncé. */
.section--farine,
.section--farine-2,
.page-tete,
.carte-onglets {
  --anneau: var(--vert-fonce);
}

.barre-panier {
  --anneau: var(--vert-texte);
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--craie);
  color: var(--houille);
  padding: 10px 14px;
  border-radius: var(--rayon);
  font-weight: 600;
}

.lien-evitement:focus {
  top: calc(var(--brnsg-barre, 0px) + 12px);
}

main:focus {
  outline: none;
}

.colonne {
  width: 100%;
  max-width: calc(var(--colonne) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.icone {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */

.section {
  padding-block: clamp(56px, 8vw, 112px);
}

.section--houille {
  background: var(--houille);
  color: var(--craie);
}

.section--farine {
  background: var(--farine);
  color: var(--houille);
}

.section--farine-2 {
  background: var(--farine-2);
  color: var(--houille);
}

.section-tete {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-tete--ligne {
  max-width: none;
  display: grid;
  gap: 12px 48px;
  align-items: end;
}

.titre-section {
  font-size: var(--pas-3);
  font-weight: 900;
  margin-bottom: 14px;
}

.section-chapo {
  font-size: var(--pas-1);
  line-height: 1.5;
  max-width: 62ch;
  color: inherit;
}

.section--houille .section-chapo {
  color: var(--cendre);
}

.section--farine .section-chapo,
.section--farine-2 .section-chapo {
  color: var(--suie);
}

.section-suite {
  margin-top: 36px;
}

@media (min-width: 900px) {
  .section-tete--ligne {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .section-tete--ligne .titre-section {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------------ */
/* Boutons et liens d'action                                            */
/* ------------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--rayon);
  background: var(--vert);
  color: var(--vert-texte);
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s var(--sortie);
}

.bouton:hover {
  background: var(--vert-fonce);
}

.bouton:active {
  transform: translateY(1px);
}

.bouton[aria-busy="true"],
.bouton:disabled {
  opacity: 0.72;
  cursor: progress;
}

.bouton--large {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 1.05rem;
}

.bouton .icone-fleche {
  transition: transform 0.2s var(--sortie);
}

.bouton:hover .icone-fleche {
  transform: translateX(3px);
}

.bouton-prix {
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid rgba(247, 241, 232, 0.45);
}

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--vert-fonce);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.lien-fleche:hover {
  text-decoration-thickness: 2px;
}

.lien-fleche--clair {
  color: var(--craie);
}

.lien-fleche--clair:hover {
  color: var(--vert-clair);
}

.lien-fleche .icone-fleche {
  transition: transform 0.2s var(--sortie);
}

.lien-fleche:hover .icone-fleche {
  transform: translateX(3px);
}

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: var(--rayon);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.pastille--maison {
  border-color: transparent;
  background: var(--houille);
  color: var(--craie);
}

.pastille--maison::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--vert-clair);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.section--houille .pastille--maison,
.compositeur .pastille--maison {
  background: var(--craie);
  color: var(--houille);
}

.section--houille .pastille--maison::before,
.compositeur .pastille--maison::before {
  background: var(--vert);
}

/* ------------------------------------------------------------------ */
/* En-tête                                                              */
/* ------------------------------------------------------------------ */

.entete {
  position: sticky;
  top: var(--brnsg-barre, 0px);
  z-index: 900;
  background: var(--houille);
  color: var(--craie);
  border-bottom: 1px solid var(--houille-3);
}

.entete-grille {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas:
    "logo . panier menu"
    "tel tel tel tel";
  align-items: center;
  column-gap: 8px;
  min-height: 56px;
}

.logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--craie);
  text-decoration: none;
  min-height: 48px;
}

.logo-marque {
  width: 40px;
  height: 26px;
}

.logo-terril {
  fill: var(--craie);
}

.logo-terril-loin {
  fill: var(--cendre);
}

.logo-feu {
  fill: var(--vert-clair);
}

.logo-texte {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-nom {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-lieu {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cendre);
  margin-top: 4px;
}

.nav {
  grid-area: nav;
}

.entete-tel {
  grid-area: tel;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: calc(-1 * var(--gouttiere));
  padding: 6px var(--gouttiere);
  background: var(--houille-2);
  border-top: 1px solid var(--houille-3);
  color: var(--craie);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: 40px;
}

.entete-tel-numero {
  font-family: var(--police-titre);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.entete-etat {
  color: var(--cendre);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entete-etat::before {
  content: "·";
  margin-right: 8px;
}

.entete-panier {
  grid-area: panier;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  color: var(--craie);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.entete-panier:hover {
  border-color: var(--cendre);
}

.entete-panier[aria-current="page"] {
  border-color: var(--craie);
}

.entete-panier-compte {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 4px;
  border-radius: var(--rayon);
  background: var(--houille-3);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.entete-panier.a-des-articles .entete-panier-compte {
  background: var(--vert);
  color: var(--vert-texte);
}

.entete-panier.secoue .entete-panier-compte {
  animation: secousse 0.42s var(--rebond);
}

@keyframes secousse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.menu-bouton {
  grid-area: menu;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: none;
  color: var(--craie);
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 419px) {
  .menu-bouton-texte {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .menu-bouton {
    padding-inline: 13px;
  }

  .logo-nom {
    font-size: 0.95rem;
  }
}

.menu-bouton-traits {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits {
  background: transparent;
  box-shadow: none;
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::before,
.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after {
  transform: rotate(-45deg);
}

.nav-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liste a {
  display: block;
  color: var(--craie);
  text-decoration: none;
  font-weight: 500;
}

.nav-liste a:hover,
.nav-liste a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--vert-clair);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

@media (max-width: 979px) {
  .js .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--houille);
    border-bottom: 1px solid var(--houille-3);
    padding: 8px var(--gouttiere) 20px;
    display: none;
  }

  .js .nav.est-ouvert {
    display: block;
  }

  .nav-liste a {
    padding: 14px 0;
    border-bottom: 1px solid var(--houille-3);
    font-size: 1.1rem;
  }

  .no-js .nav {
    grid-column: 1 / -1;
  }

  .no-js .menu-bouton {
    display: none;
  }

  .entete-panier-libelle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (min-width: 980px) {
  .entete-grille {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "logo nav tel panier";
    column-gap: 28px;
    min-height: var(--entete-h);
  }

  .nav-liste {
    display: flex;
    gap: 26px;
    justify-content: center;
  }

  .entete-tel {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.25;
  }

  .entete-tel .icone {
    display: none;
  }

  .entete-tel-numero {
    font-size: 1.05rem;
  }

  .entete-etat::before {
    content: none;
  }

  .menu-bouton {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* Hero : le four                                                       */
/* ------------------------------------------------------------------ */

.hero {
  background: var(--houille);
  color: var(--craie);
  padding-block: clamp(28px, 5vw, 72px) clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero-grille {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-titre {
  font-size: var(--pas-4);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.028em;
  margin-bottom: 22px;
  max-width: 13ch;
}

.hero-chapo {
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--cendre);
  max-width: 46ch;
}

.hero-prochain {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 6px 0 26px;
  padding: 10px 14px;
  border-left: 3px solid var(--vert-clair);
  background: var(--houille-2);
  font-size: 0.98rem;
}

.hero-prochain-libelle {
  color: var(--cendre);
}

.hero-prochain strong {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--craie);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 8px 0 22px;
}

.hero-etat {
  font-size: 0.9rem;
  color: var(--cendre);
}

.hero-four {
  justify-self: center;
  width: min(100%, 340px);
}

.four-arche {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 50% 50% var(--rayon) var(--rayon) / 34% 34% var(--rayon) var(--rayon);
  background: var(--houille-2);
  isolation: isolate;
}

.four-poster,
.four-poster img,
.four-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.four-video {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.four-video.est-prete {
  opacity: 1;
}

.four-pause {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 237, 228, 0.35);
  border-radius: var(--rayon);
  background: rgba(29, 27, 25, 0.72);
  color: var(--craie);
}

.four-pause .icone {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2.4;
}

.four-pause .icone-lecture,
.four-pause[aria-pressed="true"] .icone-pause {
  display: none;
}

.four-pause[aria-pressed="true"] .icone-lecture {
  display: block;
}

.four-pause .icone-pause {
  fill: none;
}

.four-legende {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--cendre);
}

@media (min-width: 900px) {
  .hero-grille {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(32px, 5vw, 80px);
  }

  .hero-four {
    justify-self: end;
    width: min(100%, 460px);
  }
}

/* ------------------------------------------------------------------ */
/* Le compositeur                                                       */
/* ------------------------------------------------------------------ */

.section--compositeur {
  border-top: 1px solid var(--houille-3);
}

.compositeur {
  display: grid;
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  color: var(--craie);
}

.compositeur-scene {
  margin: 0;
  position: relative;
}

.compositeur-plateau {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.compositeur-gabarit {
  position: absolute;
  inset: 1%;
  border: 1px dashed rgba(242, 237, 228, 0.22);
  border-radius: 50%;
}

.compositeur-gabarit span {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 8px;
  background: var(--houille);
  color: var(--cendre);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.compositeur--dialogue .compositeur-gabarit span {
  background: var(--houille-2);
}

.compositeur-pizza {
  position: absolute;
  inset: 0;
  transform: scale(var(--taille, 0.775));
  transition: transform 0.55s var(--sortie);
}

.compositeur-photo,
.compositeur-photo img,
.compositeur-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compositeur-photo img {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
}

.compositeur-base {
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
}

.compositeur-garniture {
  position: absolute;
  left: 11%;
  top: 11%;
  width: 78%;
  height: 78%;
}

.couche {
  position: absolute;
  inset: 0;
}

.couche svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.piece {
  position: absolute;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scaleX(var(--m, 1));
  filter: drop-shadow(0 1.5px 1.5px rgba(20, 12, 6, 0.4));
  pointer-events: none;
  user-select: none;
}

.compositeur-mesure {
  margin-top: 12px;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1rem;
  color: var(--cendre);
}

.compositeur-panneau {
  background: var(--houille-2);
  border: 1px solid var(--houille-3);
  border-radius: var(--rayon);
  padding: clamp(18px, 3vw, 28px);
}

.compositeur--dialogue .compositeur-panneau {
  background: var(--houille-3);
  border-color: var(--houille-4);
}

.compositeur-libelle {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cendre);
  margin-bottom: 6px;
}

.select-enveloppe {
  position: relative;
}

.select-enveloppe::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--craie);
  border-bottom: 2px solid var(--craie);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.compositeur-select {
  width: 100%;
  min-height: 52px;
  padding: 10px 44px 10px 14px;
  appearance: none;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: var(--houille);
  color: var(--craie);
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.35rem;
}

.compositeur-description {
  margin: 12px 0 4px;
  color: var(--craie);
}

.compositeur-glose {
  color: var(--cendre);
  font-size: 0.92rem;
}

.compositeur-groupe {
  margin: 20px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--houille-4);
  min-width: 0;
}

.compositeur-groupe legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 4px;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.08rem;
}

.compositeur-aide {
  clear: both;
  font-size: 0.86rem;
  color: var(--cendre);
  margin-bottom: 10px;
}

.tailles {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.taille {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: var(--houille);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.taille input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.taille:hover {
  border-color: var(--cendre);
}

.taille:has(input:checked) {
  border-color: var(--vert-clair);
  background: var(--houille-3);
  box-shadow: inset 0 -3px 0 var(--vert);
}

.taille:has(input:focus-visible) {
  outline: 3px solid var(--vert-clair);
  outline-offset: 2px;
}

.taille-nom {
  font-weight: 600;
  font-size: 0.92rem;
}

.taille-cm {
  font-size: 0.8rem;
  color: var(--cendre);
}

.taille-prix {
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.puces {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.puce {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: var(--houille);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.puce input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.puce::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--cendre);
  border-radius: 2px;
  transform: translateY(-50%);
}

.puce:has(input:checked)::before {
  border-color: var(--craie);
  background: var(--craie);
  box-shadow: inset 0 0 0 2px var(--houille);
}

.puce:has(input:not(:checked)) span {
  color: var(--cendre);
  text-decoration: line-through;
  text-decoration-color: var(--cendre);
}

.puce:hover {
  border-color: var(--cendre);
}

.puce:has(input:focus-visible) {
  outline: 3px solid var(--vert-clair);
  outline-offset: 2px;
}

.puce--ajout::before {
  border-style: dashed;
}

.puce--ajout:has(input:not(:checked)) span {
  color: var(--craie);
  text-decoration: none;
}

.puce--ajout:has(input:checked) {
  border-color: var(--vert-clair);
  background: var(--houille-3);
}

.puce--ajout:has(input:checked)::before {
  border-style: solid;
  border-color: var(--vert-clair);
  background: var(--vert-clair);
}

.puce--ajout:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.puce-prix {
  color: var(--cendre);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.compositeur-infos {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--rayon);
  background: var(--houille);
  font-size: 0.9rem;
}

.compositeur-infos p {
  margin: 0 0 6px;
}

.info-libelle {
  display: inline-block;
  min-width: 9.5em;
  color: var(--cendre);
}

.compositeur-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
}

.compositeur-ajouter {
  flex: 1 1 220px;
}

.quantite {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  overflow: hidden;
}

.quantite-bouton {
  width: 48px;
  min-height: 48px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.quantite-bouton:hover {
  background: rgba(127, 120, 112, 0.18);
}

.quantite-bouton:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantite-valeur {
  display: grid;
  place-items: center;
  min-width: 40px;
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.compositeur-sans-js {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--cendre);
}

.js .compositeur-sans-js {
  display: none;
}

.no-js .compositeur-action,
.no-js .compositeur-groupe .puces input,
.no-js .produit-bouton,
.no-js .bouton-ajout {
  display: none;
}

@media (max-width: 899px) {
  .compositeur-scene {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h-reel, 97px) - 1px);
    z-index: 4;
    margin-inline: calc(-1 * var(--gouttiere));
    padding: 10px var(--gouttiere) 6px;
    background: var(--houille);
    border-bottom: 1px solid var(--houille-3);
  }

  .dialogue .compositeur-scene {
    top: 69px;
    margin-inline: calc(-1 * clamp(16px, 3vw, 32px));
    padding-inline: clamp(16px, 3vw, 32px);
    background: var(--houille-2);
  }

  .compositeur-plateau {
    width: min(100%, 38vh, 330px);
  }

  .compositeur-mesure {
    margin-top: 4px;
    font-size: 0.9rem;
  }

  .puce {
    min-height: 36px;
    padding: 5px 10px 5px 28px;
    font-size: 0.86rem;
  }

  .puce::before {
    left: 9px;
    width: 11px;
    height: 11px;
  }

  .info-libelle {
    display: block;
    min-width: 0;
    font-size: 0.8rem;
  }

  /* Un élément qui reçoit le focus ne doit pas finir sous la scène collante. */
  .compositeur-panneau :is(input, select, button, label, legend) {
    scroll-margin-top: calc(var(--brnsg-barre, 0px) + var(--entete-h-reel, 97px) + min(38vh, 330px) + 64px);
    scroll-margin-bottom: 24px;
  }

  .dialogue .compositeur-panneau :is(input, select, button, label, legend) {
    scroll-margin-top: calc(69px + min(38vh, 330px) + 64px);
  }
}

@media (min-width: 900px) {
  .compositeur {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .compositeur-scene {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 24px);
  }
}

/* ------------------------------------------------------------------ */
/* Accueil : aperçu de la carte                                         */
/* ------------------------------------------------------------------ */

.apercu {
  display: grid;
  gap: 40px;
}

.apercu-titre {
  font-size: var(--pas-2);
  font-weight: 900;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--houille);
  margin-bottom: 6px;
}

.apercu-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.apercu-ligne {
  border-bottom: 1px solid var(--farine-3);
}

.apercu-lien {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
}

.apercu-photo,
.apercu-photo img {
  width: 72px;
  height: 72px;
}

.apercu-photo img {
  transition: transform 0.45s var(--sortie);
}

.apercu-lien:hover .apercu-photo img {
  transform: rotate(-14deg) scale(1.06);
}

.apercu-texte {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.apercu-nom {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.2;
}

.apercu-lien:hover .apercu-nom {
  text-decoration: underline;
  text-decoration-color: var(--vert);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.apercu-maison {
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vert-fonce);
  margin-left: 6px;
  vertical-align: middle;
}

.apercu-ingredients {
  font-size: 0.88rem;
  color: var(--suie);
}

.apercu-prix {
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.apercu-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--suie);
}

@media (min-width: 900px) {
  .apercu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px;
  }
}

/* ------------------------------------------------------------------ */
/* Accueil : commander en direct                                        */
/* ------------------------------------------------------------------ */

.section--direct {
  padding-top: 0;
}

.direct-grille {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.direct-image picture,
.direct-image img {
  width: 100%;
  border-radius: var(--rayon);
}

.direct-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.direct-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.direct-points li {
  padding: 18px 0;
  border-top: 1px solid var(--farine-3);
}

.direct-point-titre {
  font-size: var(--pas-1);
  font-weight: 800;
  margin-bottom: 6px;
}

.direct-points p {
  color: var(--suie);
}

@media (min-width: 900px) {
  .direct-grille {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .direct-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
}

/* ------------------------------------------------------------------ */
/* Accueil : histoire, taillette, équipe                                */
/* ------------------------------------------------------------------ */

.section--histoire {
  padding-top: 0;
  overflow: hidden;
}

.histoire-paysage {
  position: relative;
  height: clamp(240px, 42vw, 520px);
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.histoire-photo,
.histoire-photo img {
  width: 100%;
  height: 100%;
}

.histoire-photo img {
  object-fit: cover;
  object-position: 50% 40%;
}

.histoire-grille {
  display: grid;
  gap: 40px;
}

.histoire-texte {
  max-width: 62ch;
}

.histoire-texte p {
  color: var(--cendre);
  font-size: 1.05rem;
}

.histoire-texte p:first-of-type {
  color: var(--craie);
  font-size: var(--pas-1);
  line-height: 1.5;
}

.taillette-encart {
  align-self: start;
  padding: 26px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: var(--houille-2);
}

.taillette-titre {
  font-size: var(--pas-1);
  font-weight: 800;
  margin: 20px 0 10px;
}

.taillette-encart p {
  color: var(--cendre);
}

.taillette {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #D9BC85 0%, var(--laiton) 38%, var(--laiton-fonce) 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 238, 200, 0.18), inset 0 -6px 12px rgba(40, 26, 8, 0.45), 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  color: #2A1F12;
}

.taillette::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(42, 31, 18, 0.35);
}

.taillette-trou {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--houille-2);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
}

.taillette-numero {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 10%;
  text-shadow: 0 1px 0 rgba(255, 240, 210, 0.35);
}

.taillette-nom {
  position: absolute;
  bottom: 16%;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.equipe {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 6vw, 80px);
  max-width: calc(1000px + 2 * var(--gouttiere));
}

.portrait {
  margin: 0;
}

.portrait-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--rayon);
}

.portrait figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.portrait-nom {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: var(--pas-1);
}

.portrait-role {
  color: var(--cendre);
}

@media (min-width: 760px) {
  .equipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
  }

  .equipe .portrait:nth-child(2) {
    margin-top: clamp(40px, 8vw, 120px);
  }
}

@media (min-width: 900px) {
  .histoire-grille {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(40px, 6vw, 96px);
  }
}

/* ------------------------------------------------------------------ */
/* Accueil : fait maison, avis, infos, questions                        */
/* ------------------------------------------------------------------ */

.maison-grille,
.faq-grille {
  display: grid;
  gap: 18px 56px;
}

.maison-texte p {
  max-width: 64ch;
}

.maison-loi {
  font-size: 0.88rem;
  color: var(--suie);
}

.maison-loi a {
  color: var(--houille);
}

@media (min-width: 900px) {
  .maison-grille,
  .faq-grille {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

.avis-grille {
  display: grid;
  gap: 32px;
}

.avis-note {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 10px 0 4px;
}

.avis-chiffre {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.avis-sur {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--suie);
}

.avis-nombre {
  color: var(--suie);
}

.avis-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.avis-carte {
  padding: 22px 24px;
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
}

.avis-tete {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.86rem;
  color: var(--suie);
  margin-bottom: 10px;
}

.avis-auteur {
  font-weight: 700;
  color: var(--houille);
}

.avis-carte blockquote {
  margin: 0;
  font-size: 1.02rem;
}

@media (min-width: 900px) {
  .avis-grille {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 56px;
  }

  .avis-liste li:nth-child(2) {
    margin-left: 48px;
  }
}

.infos-grille {
  display: grid;
  gap: 36px;
  align-items: center;
}

.infos-etat {
  font-weight: 600;
  margin-bottom: 14px;
}

.infos-etat [data-etat="ouvert"]::before,
.pied-etat [data-etat="ouvert"]::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #7FBF7A;
  vertical-align: 1px;
}

.horaires {
  margin: 0 0 14px;
}

.horaires div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--houille-3);
}

.horaires--clair div {
  border-bottom-color: var(--farine-3);
}

.horaires dt {
  font-weight: 600;
}

.horaires dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.infos-note {
  font-size: 0.88rem;
  color: var(--cendre);
}

.infos-adresse {
  font-style: normal;
  font-size: 1.05rem;
  margin: 18px 0 10px;
}

.infos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.infos-image img {
  width: 100%;
  border-radius: var(--rayon);
}

@media (min-width: 900px) {
  .infos-grille {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

.faq-liste {
  border-top: 1px solid var(--farine-3);
}

.faq-item {
  border-bottom: 1px solid var(--farine-3);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.12rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--vert);
  border-bottom: 2px solid var(--vert);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--sortie);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item p {
  padding-bottom: 18px;
  color: var(--suie);
  max-width: 64ch;
}

/* ------------------------------------------------------------------ */
/* En-têtes de pages intérieures                                        */
/* ------------------------------------------------------------------ */

.page-tete {
  background: var(--farine);
  padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 36px);
}

.page-tete--serree {
  padding-bottom: 12px;
}

.page-titre {
  font-size: var(--pas-4);
  font-weight: 900;
  letter-spacing: -0.028em;
  line-height: 0.95;
  margin-bottom: 16px;
  max-width: 18ch;
}

.page-chapo {
  font-size: var(--pas-1);
  line-height: 1.5;
  color: var(--suie);
  max-width: 60ch;
}

.section--houille .page-chapo,
.fond-houille .page-chapo {
  color: var(--cendre);
}

.page-note {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--suie);
}

.page-note--moyens {
  padding: 10px 14px;
  border-left: 3px solid var(--houille);
  background: var(--farine-2);
  max-width: 70ch;
}

.alerte {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--rayon);
  background: var(--houille);
  color: var(--craie);
  max-width: 70ch;
}

.sommaire {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.sommaire a {
  font-weight: 600;
  color: var(--vert-fonce);
}

/* ------------------------------------------------------------------ */
/* La carte                                                             */
/* ------------------------------------------------------------------ */

.carte-onglets {
  position: sticky;
  top: calc(var(--brnsg-barre, 0px) + var(--entete-h-reel, 97px));
  z-index: 800;
  background: rgba(239, 237, 232, 0.96);
  border-bottom: 1px solid var(--farine-3);
}

.carte-onglets ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.carte-onglets ul::-webkit-scrollbar {
  display: none;
}

.carte-onglets a {
  display: block;
  padding: 14px 12px;
  white-space: nowrap;
  font-weight: 600;
  text-decoration: none;
  color: var(--suie);
  border-bottom: 3px solid transparent;
}

.carte-onglets a:hover,
.carte-onglets a.est-actif {
  color: var(--houille);
  border-bottom-color: var(--vert);
}


.section--carte {
  padding-top: clamp(28px, 4vw, 48px);
}

.carte-groupe {
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + 160px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.carte-groupe-tete {
  display: grid;
  gap: 6px 40px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--houille);
}

.carte-groupe-tete .titre-section {
  margin-bottom: 0;
}

.carte-groupe-tete p {
  color: var(--suie);
  max-width: 56ch;
}

@media (min-width: 900px) {
  .carte-groupe-tete {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
  }
}

.produits {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

.produit {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + 170px);
}

.produit:target {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
}

.produit-photo {
  padding: 18px 18px 0;
}

.produit-photo picture,
.produit-photo img {
  width: 100%;
}

.produit--pizza .produit-photo img {
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 14px rgba(29, 27, 25, 0.28));
  transition: transform 0.6s var(--sortie);
}

.produit--pizza:hover .produit-photo img {
  transform: rotate(-10deg);
}

.produit-photo--carree img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--rayon);
}

.produit-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.produit-nom {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.produit-mention {
  display: block;
  margin-top: 4px;
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vert-fonce);
}

.produit-glose {
  font-size: 0.9rem;
  color: var(--suie);
}

.produit-ingredients {
  font-size: 0.95rem;
}

.produit-allergenes,
.produit-viandes {
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.produit-libelle {
  font-weight: 700;
  margin-right: 4px;
}

.produit-mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin: 4px 0 12px;
}

.produit-mentions:empty {
  display: none;
}

.prix-tailles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: auto 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--farine-3);
}

.prix-tailles div {
  display: flex;
  flex-direction: column;
}

.prix-tailles dt {
  font-size: 0.78rem;
  color: var(--suie);
  line-height: 1.3;
}

.prix-cm {
  display: block;
}

.prix-tailles dd {
  margin: 2px 0 0;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
}

.produit-prix-unique {
  margin-top: auto;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.3rem;
}

.produit-bouton {
  width: 100%;
}

@media (min-width: 1000px) {
  .produits--pizzas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .produit--vedette {
    grid-column: span 2;
    grid-row: span 2;
  }

  .produit--vedette .produit-photo {
    padding: 28px 48px 0;
  }

  .produit--vedette .produit-photo picture {
    max-width: 560px;
    margin-inline: auto;
  }

  .produit--vedette .produit-corps {
    padding: 22px 28px 28px;
  }

  .produit--vedette .produit-nom {
    font-size: 2.4rem;
  }

  .produits--desserts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.boissons {
  display: grid;
  gap: 24px;
  align-items: center;
}

.boissons-photo img {
  width: 100%;
  border-radius: var(--rayon);
}

.boissons-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.boisson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "nom prix bouton"
    "allergenes prix bouton";
  gap: 0 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--farine-3);
}

.boisson-nom {
  grid-area: nom;
  font-weight: 600;
}

.boisson-contenance {
  font-weight: 400;
  color: var(--suie);
}

.boisson-allergenes {
  grid-area: allergenes;
  font-size: 0.8rem;
  color: var(--suie);
}

.boisson-prix {
  grid-area: prix;
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.bouton-ajout {
  grid-area: bouton;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
}

.bouton-ajout:hover {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--vert-texte);
}

@media (min-width: 900px) {
  .boissons {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.carte-note {
  padding: 18px 20px;
  border-left: 3px solid var(--houille);
  background: var(--farine-2);
  max-width: 80ch;
}

/* ------------------------------------------------------------------ */
/* Boîte de dialogue du compositeur                                     */
/* ------------------------------------------------------------------ */

.dialogue {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: var(--houille-2);
  color: var(--craie);
  overflow: auto;
  overscroll-behavior: contain;
}

.dialogue::backdrop {
  background: rgba(15, 13, 12, 0.72);
}

.dialogue-tete {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--houille-2);
  border-bottom: 1px solid var(--houille-3);
}

.dialogue-titre {
  margin: 0;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.1rem;
}

.dialogue-fermer {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--houille-4);
  border-radius: var(--rayon);
  background: none;
}

.dialogue-fermer:hover {
  border-color: var(--craie);
}

.dialogue .compositeur {
  padding: clamp(16px, 3vw, 32px);
}

.dialogue .compositeur-plateau {
  width: min(100%, 480px);
}

@media (max-width: 640px) {
  .dialogue {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .dialogue .compositeur-plateau {
    width: min(100%, 300px);
  }
}

/* ------------------------------------------------------------------ */
/* Panier et retrait                                                    */
/* ------------------------------------------------------------------ */

.section--panier {
  padding-top: 24px;
}

.panier-grille {
  display: grid;
  gap: 28px;
  align-items: start;
}

/* Les éléments de grille ne s'élargissent pas au contenu défilant (jours, tableaux). */
.panier-grille > *,
.compositeur > *,
.hero-grille > *,
.infos-page-grille > *,
.merci-confirmee > * {
  min-width: 0;
}

.etape {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
}

.etape-titre {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--pas-2);
  font-weight: 900;
  margin-bottom: 14px;
}

.etape-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--rayon);
  background: var(--houille);
  color: var(--craie);
  font-size: 1.05rem;
}

.etape-aide {
  color: var(--suie);
  font-size: 0.94rem;
  max-width: 66ch;
}

.chargement {
  color: var(--suie);
}

.lignes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ligne {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "photo texte"
    "photo actions";
  gap: 6px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--farine-3);
}

.ligne:first-child {
  padding-top: 0;
}

.ligne-photo {
  grid-area: photo;
  width: 64px;
  height: 64px;
}

.ligne-photo img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--rayon);
}

.ligne--pizza .ligne-photo img {
  object-fit: contain;
  border-radius: 0;
}

.ligne-texte {
  grid-area: texte;
  min-width: 0;
}

.ligne-nom {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.25;
}

.ligne-detail {
  font-size: 0.88rem;
  color: var(--suie);
}

.ligne-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.ligne-actions .quantite-bouton {
  width: 40px;
  min-height: 40px;
}

.ligne-prix {
  margin-left: auto;
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ligne-retirer {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--vert-fonce);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.panier-vide {
  padding: 8px 0;
}

.panier-vide-titre {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.3rem;
}

.panier-ajout {
  margin: 12px 0 0;
}

.jours {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  margin: 16px 0 6px;
  scrollbar-width: thin;
}

.jour {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 108px;
  padding: 10px 12px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: transparent;
  text-align: left;
  line-height: 1.25;
}

.jour-nom {
  font-weight: 700;
}

.jour-date,
.jour-info {
  font-size: 0.8rem;
  color: var(--suie);
}

.jour[aria-selected="true"] {
  border-color: var(--houille);
  background: var(--houille);
  color: var(--craie);
}

.jour[aria-selected="true"] .jour-date,
.jour[aria-selected="true"] .jour-info {
  color: var(--cendre);
}

.jour:disabled {
  border-style: dashed;
  border-color: var(--farine-3);
  color: var(--suie);
  cursor: not-allowed;
}

.creneaux-champ {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.creneaux {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.creneau {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  cursor: pointer;
  line-height: 1.25;
}

.creneau input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.creneau-heure {
  font-family: var(--police-titre);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.creneau-place {
  font-size: 0.74rem;
  color: var(--suie);
}

.creneau:hover {
  border-color: var(--houille);
}

.creneau:has(input:checked) {
  border-color: var(--vert);
  background: var(--vert);
  color: var(--vert-texte);
}

.creneau:has(input:checked) .creneau-place {
  color: var(--vert-texte);
}

.creneau:has(input:focus-visible) {
  outline: 3px solid var(--vert-fonce);
  outline-offset: 2px;
}

.creneau--complet {
  border-style: dashed;
  border-color: var(--farine-3);
  color: var(--suie);
  cursor: not-allowed;
}

.creneau--complet input {
  cursor: not-allowed;
}

.creneau--complet .creneau-heure {
  text-decoration: line-through;
}

.creneau-choisi {
  margin: 14px 0 0;
  font-weight: 600;
}

.creneaux-vide {
  grid-column: 1 / -1;
  color: var(--suie);
}

.champ-rangee {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .champ-rangee {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.champ {
  margin-bottom: 16px;
}

.champ label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.champ-optionnel {
  font-weight: 400;
  color: var(--suie);
}

.champ-aide {
  margin: -2px 0 8px;
  font-size: 0.85rem;
  color: var(--suie);
}

.champ input[type="text"],
.champ input[type="tel"],
.champ input[type="email"],
.champ input[type="date"],
.champ input[type="number"],
.champ textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  background: #FFFFFF;
  color: var(--houille);
}

.champ textarea {
  resize: vertical;
}

.champ input:focus,
.champ textarea:focus {
  border-color: var(--houille);
}

.champ [aria-invalid="true"] {
  border-color: var(--erreur);
  box-shadow: inset 0 0 0 1px var(--erreur);
}

.champ-erreur {
  margin: 6px 0 0;
  color: var(--erreur);
  font-size: 0.88rem;
  font-weight: 600;
}

.section--houille .champ-erreur {
  color: var(--erreur-clair);
}

.recap .formulaire-erreur {
  color: var(--erreur);
}

.champ-case {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
}

.champ-case input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--vert);
}

.champ-case label {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 0;
}

.champ-case .champ-erreur {
  grid-column: 2;
}

.champ-piege {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.paiement-choix {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.paiement-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--trait-fort);
  border-radius: var(--rayon);
  cursor: pointer;
}

.paiement-option input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--vert);
}

.paiement-option:has(input:checked) {
  border-color: var(--houille);
  box-shadow: inset 0 0 0 1px var(--houille);
  background: #FFFFFF;
}

.paiement-texte {
  display: flex;
  flex-direction: column;
}

.paiement-titre {
  font-weight: 700;
}

.paiement-detail {
  font-size: 0.88rem;
  color: var(--suie);
}

.recap {
  position: relative;
}

.recap-carte {
  padding: 24px;
  border-radius: var(--rayon);
  background: var(--houille);
  color: var(--craie);
}

.recap-titre {
  font-size: var(--pas-2);
  font-weight: 900;
  margin-bottom: 14px;
}

.recap-lignes {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 0.92rem;
}

.recap-lignes li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--houille-3);
}

.recap-lignes li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.recap-totaux {
  margin: 0 0 14px;
}

.recap-totaux div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.recap-totaux dt {
  color: var(--cendre);
}

.recap-totaux dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.recap-total {
  margin-top: 6px;
  padding-top: 12px !important;
  border-top: 2px solid var(--craie);
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 1.45rem;
}

.recap-total dt {
  color: var(--craie) !important;
}

.recap-adresse {
  font-size: 0.86rem;
  color: var(--cendre);
}

.recap-bouton {
  width: 100%;
  margin-top: 6px;
}

.recap-mention {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--cendre);
}

.recap .formulaire-erreur {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--rayon);
  background: var(--vert-texte);
}

.repli {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--craie);
  border-radius: var(--rayon);
}

.repli-titre {
  font-weight: 700;
}

.repli p {
  font-size: 0.92rem;
}

.repli .bouton {
  width: 100%;
}

@media (min-width: 980px) {
  .panier-grille {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
    gap: 32px;
  }

  .recap-carte {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 24px);
  }
}

/* ------------------------------------------------------------------ */
/* Merci : la taillette                                                 */
/* ------------------------------------------------------------------ */

.section--merci {
  min-height: 70vh;
}

.merci-grille {
  max-width: 1080px;
}

.merci-confirmee {
  display: grid;
  gap: 40px;
  align-items: start;
}

.merci-statut {
  font-size: var(--pas-1);
  color: var(--cendre);
}

.merci-retrait {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--vert-clair);
  background: var(--houille-2);
}

.merci-libelle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cendre);
}

.merci-quand {
  margin: 4px 0 6px;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: var(--pas-2);
  line-height: 1.1;
}

.merci-adresse {
  color: var(--cendre);
  font-size: 0.95rem;
}

.merci-lignes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.merci-lignes li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--houille-3);
}

.merci-lignes .merci-detail {
  display: block;
  font-size: 0.86rem;
  color: var(--cendre);
}

.merci-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 1.4rem;
}

.merci-email {
  color: var(--cendre);
}

.merci-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 10px;
}

.merci-retard {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--cendre);
}

.merci-taillette {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.merci-taillette .taillette {
  width: min(240px, 62vw);
}

.merci-taillette .taillette-numero {
  font-size: clamp(3.4rem, 2.6rem + 3vw, 4.8rem);
}

.merci-taillette .taillette-nom {
  font-size: 0.7rem;
}

.taillette-legende {
  margin-top: 22px;
  max-width: 30ch;
  color: var(--cendre);
}

.taillette-legende-titre {
  display: block;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--craie);
}

.taillette-reference {
  font-size: 0.86rem;
  color: var(--cendre);
}

.taillette-reference span {
  font-variant-numeric: tabular-nums;
  color: var(--craie);
  letter-spacing: 0.04em;
}

@media (min-width: 860px) {
  .merci-confirmee {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: 64px;
  }

  .merci-taillette {
    position: sticky;
    top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 40px);
  }
}

/* ------------------------------------------------------------------ */
/* Allergènes : tableaux                                                */
/* ------------------------------------------------------------------ */

.section--texte {
  padding-top: clamp(20px, 3vw, 36px);
}

.bloc {
  margin-bottom: clamp(48px, 6vw, 80px);
  scroll-margin-top: calc(var(--brnsg-barre, 0px) + 120px);
}

.bloc .titre-section {
  font-size: var(--pas-2);
}

.bloc-aide {
  font-size: 0.92rem;
  color: var(--suie);
  max-width: 72ch;
}

.tableau-enveloppe {
  position: relative;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--farine-3);
  border-radius: var(--rayon);
  background: var(--papier);
}

.tableau-enveloppe:focus-visible {
  outline: 3px solid var(--vert-fonce);
}

.tableau-allergenes,
.tableau-viandes {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tableau-allergenes th,
.tableau-allergenes td,
.tableau-viandes th,
.tableau-viandes td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--farine-2);
  text-align: left;
}

.tableau-allergenes thead th {
  vertical-align: bottom;
  background: var(--farine-2);
}

.tableau-entete {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.8rem;
  max-height: 150px;
}

.tableau-allergenes tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--papier);
  font-weight: 600;
  min-width: 170px;
}

.tableau-allergenes thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}

.tableau-allergenes td {
  text-align: center;
  min-width: 34px;
}

.tableau-info {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--suie);
}

.tableau-groupe th {
  background: var(--houille) !important;
  color: var(--craie);
  font-family: var(--police-titre);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.point {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--houille);
}

.tableau-viandes thead th {
  background: var(--farine-2);
}

.encadre {
  padding: 16px 18px;
  border-radius: var(--rayon);
  background: var(--farine-2);
  max-width: 80ch;
}

.encadre--alerte {
  border-left: 3px solid var(--houille);
}

.deux-listes {
  display: grid;
  gap: 24px;
  margin: 20px 0;
}

@media (min-width: 760px) {
  .deux-listes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.liste-titre {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.liste-simple {
  margin: 0;
  padding-left: 1.2em;
}

.liste-simple li {
  margin-bottom: 6px;
}

.lois {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.lois li {
  padding: 18px 20px;
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
}

.loi-sujet {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.loi-source {
  font-size: 0.85rem;
  color: var(--suie);
}

.loi-source a {
  color: var(--houille);
}

/* ------------------------------------------------------------------ */
/* Infos pratiques                                                      */
/* ------------------------------------------------------------------ */

.infos-page-grille {
  display: grid;
  gap: 8px 48px;
}

.infos-etat--clair {
  font-weight: 600;
}

.adresse-grande {
  font-style: normal;
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: var(--pas-2);
  line-height: 1.15;
  margin-bottom: 14px;
}

.adresse-grande span {
  font-family: var(--police-texte);
  font-weight: 400;
  font-size: 1rem;
  color: var(--suie);
}

.plan {
  margin: 0 0 clamp(40px, 5vw, 64px);
}

.plan-cadre {
  position: relative;
  border-radius: var(--rayon);
  overflow: hidden;
  border: 1px solid var(--farine-3);
}

.plan-fond {
  width: 100%;
  height: auto;
}

.plan-reperes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-repere {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-6px, -50%);
  white-space: nowrap;
}

.plan-point {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--houille);
  box-shadow: 0 0 0 3px var(--papier);
  flex: none;
}

.plan-etiquette {
  padding: 2px 7px;
  border-radius: var(--rayon);
  background: var(--papier);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(29, 27, 25, 0.2);
}

.plan-repere--pizzeria {
  z-index: 2;
}

.plan-repere--pizzeria .plan-point {
  width: 18px;
  height: 18px;
  background: var(--vert);
}

.plan-repere--pizzeria .plan-etiquette {
  background: var(--houille);
  color: var(--craie);
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 0.86rem;
}

.plan-repere--gauche {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 6px), -50%);
}

.plan-repere--parking .plan-point {
  border-radius: 2px;
}

.plan-legende {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--suie);
}

@media (max-width: 560px) {
  .plan-etiquette {
    font-size: 0.68rem;
    padding: 1px 5px;
  }

  .plan-repere--pizzeria .plan-etiquette {
    font-size: 0.74rem;
  }
}

.acces {
  margin: 0;
}

.acces div {
  padding: 14px 0;
  border-bottom: 1px solid var(--farine-3);
}

.acces dt {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.acces dd {
  margin: 0;
  color: var(--suie);
}

.infos-page-photo img {
  width: 100%;
  border-radius: var(--rayon);
}

.infos-page-cote .bloc--paiement {
  margin-top: 28px;
}

.formulaire {
  margin-top: 18px;
}

.formulaire-succes {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--houille);
  background: var(--farine-2);
}

.formulaire-succes-titre {
  font-weight: 700;
}

@media (min-width: 900px) {
  .infos-page-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan,
  .bloc--question {
    grid-column: 1 / -1;
  }

  .bloc--question .formulaire,
  .bloc--question .formulaire-succes,
  .bloc--question > p {
    max-width: 760px;
  }
}

/* ------------------------------------------------------------------ */
/* Pages de texte, 404                                                  */
/* ------------------------------------------------------------------ */

.texte-legal {
  max-width: 80ch;
}

.texte-legal h2 {
  font-size: var(--pas-1);
  font-weight: 800;
  margin: 32px 0 10px;
}

.texte-legal h2:first-child {
  margin-top: 0;
}

.texte-legal a {
  color: var(--vert-fonce);
}

.section--404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.code-erreur {
  font-family: var(--police-titre);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-clair);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */

.pied {
  position: relative;
  overflow: hidden;
  background: var(--houille);
  color: var(--craie);
  padding: clamp(56px, 7vw, 96px) 0 calc(28px + var(--brnsg-onglet, 0px));
  font-size: 0.95rem;
}

.pied-grille {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.pied-titre {
  font-size: 0.8rem;
  font-family: var(--police-texte);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cendre);
  margin-bottom: 12px;
}

.pied-adresse {
  font-style: normal;
  margin: 16px 0 10px;
}

.pied-tel a {
  font-family: var(--police-titre);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap;
}

.pied-tel a:hover {
  color: var(--vert-clair);
}

.horaires--pied div {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 7px 0;
}

.horaires--pied dd {
  color: var(--cendre);
}

.pied-etat {
  margin-top: 10px;
  font-weight: 600;
}

.pied-note {
  font-size: 0.86rem;
  color: var(--cendre);
}

.pied-liens {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pied-liens a {
  display: inline-block;
  padding: 6px 0;
}

.pied a:hover {
  color: var(--vert-clair);
}

.pied-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--houille-3);
  font-size: 0.84rem;
  color: var(--cendre);
}

.pied-legal p {
  margin: 0;
}

.pied-terrils {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(90px, 14vw, 200px);
  fill: var(--houille-2);
  pointer-events: none;
}

@media (min-width: 760px) {
  .pied-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pied-grille {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ */
/* Barre du panier (mobile) et messages                                 */
/* ------------------------------------------------------------------ */

.barre-panier {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--brnsg-onglet, 0px));
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: var(--rayon);
  background: var(--vert);
  color: var(--vert-texte);
  text-decoration: none;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
}

.barre-panier-texte {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.85rem;
}

.barre-panier-total {
  font-family: var(--police-titre);
  font-weight: 900;
  font-size: 1.15rem;
}

.barre-panier-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

@media (min-width: 980px) {
  .barre-panier {
    display: none !important;
  }
}

body:has(.barre-panier:not([hidden])) .pied {
  padding-bottom: calc(96px + var(--brnsg-onglet, 0px));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + var(--brnsg-onglet, 0px));
  z-index: 960;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: var(--rayon);
  background: var(--houille);
  color: var(--craie);
  border: 1px solid var(--houille-4);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  font-size: 0.95rem;
}

.toast a {
  margin-left: 10px;
  font-weight: 700;
  color: var(--vert-clair);
}

@media (min-width: 980px) {
  .toast {
    left: auto;
    right: 100px;
    bottom: calc(24px + var(--brnsg-onglet, 0px));
    transform: none;
  }
}

.toast.est-visible {
  animation: toast-entree 0.35s var(--sortie);
}

@keyframes toast-entree {
  from {
    opacity: 0;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ------------------------------------------------------------------ */
/* État d'ouverture (horaires.js)                                       */
/* ------------------------------------------------------------------ */

[data-brnsg-horaires][data-etat="ferme"] {
  color: inherit;
}

/* ------------------------------------------------------------------ */
/* Mouvement : le haut de page entre en CSS, sans attendre GSAP         */
/* (motion.js ne pilote que les moments au défilement).                  */
/* ------------------------------------------------------------------ */

.ligne-titre {
  padding-bottom: 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-titre,
  .page-titre {
    animation: monte 0.9s var(--sortie) both;
  }

  .hero-chapo {
    animation: apparait 0.8s var(--sortie) 0.15s both;
  }

  .hero-prochain,
  .hero-actions,
  .hero-etat,
  .page-chapo {
    animation: apparait 0.8s var(--sortie) 0.28s both;
  }

  .four-arche {
    animation: ouverture 1.15s cubic-bezier(0.65, 0, 0.2, 1) 0.1s both;
  }

  .four-poster img {
    animation: recul 1.8s var(--sortie) 0.1s both;
  }
}

/* Le titre est peint dès la première image (c'est souvent le LCP) : il glisse seulement. */
@keyframes monte {
  from {
    transform: translateY(0.28em);
  }

  to {
    transform: none;
  }
}

@keyframes apparait {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ouverture {
  from {
    clip-path: inset(44% 0 44% 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes recul {
  from {
    transform: scale(1.12);
  }

  to {
    transform: none;
  }
}

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

  .four-video {
    display: none;
  }
}
