/* =====================================================
   AMAYA PIZZERIA – charte graphique
   Reprend la carte papier : fond noir, or, blanc cassé, bleu-gris
   pour les ingrédients, et le drapeau italien en simple décoration.
   Aucune autre couleur n'est utilisée.
   ===================================================== */

/* ---------- Polices hébergées localement (pas de Google Fonts) ----------
   Polices statiques (une graisse par fichier : Cinzel 400 à 900, texte 400 à 700) avec
   « hinting » ajouté par ttfautohint : sur un écran Windows à 100 %, les traits des lettres
   s'alignent sur les pixels au lieu de baver sur deux pixels gris (texte pixélisé ou flou).
   « Amaya Texte » = Lora modifiée (hinting) : renommée, car la licence OFL réserve le nom « Lora ».
   Le navigateur ne télécharge que les graisses réellement utilisées par la page.
   font-display: swap = le texte s'affiche tout de suite avec une police de secours,
   puis change quand la vraie police est chargée. */
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("../fonts/cinzel-latin-900-normal.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Amaya Texte";
  src: url("../fonts/amaya-texte-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables (couleurs et polices) ----------
   Contrastes (formule WCAG) sur le fond #050505 / sur les encadrés #0c0c0d :
   blanc cassé 17,5 / 16,8 ; texte secondaire 12,1 / 11,6 ;
   or 11,1 / 10,7 ; or bordure 9,7 / 9,3 ; or pâle 13,6 / 13,0 ;
   or accroche 8,9 / 8,5 ; bleu-gris 10,7 / 10,3 ; vert 4,9 ; rouge 4,0
   (vert et rouge : décoration et filets seulement, jamais pour du texte).
   Texte #0a0a0a sur or 10,8 ; sur or bordure 9,4 ; sur or pâle 13,2. */
:root {
  --ardoise: #050505;          /* fond principal (nom gardé pour l'espace gérant) */
  --ardoise-clair: #0c0c0d;    /* encadrés, surfaces */
  --noir-survol: #151516;      /* survol */
  --or: #e4b96c;               /* titres, cadres, filets, prix */
  --or-bordure: #d1af5b;       /* sous-titres et bordures fines */
  --or-clair: #f0d49a;         /* survol, accents, liens */
  --or-accroche: #c5a869;      /* accroches manuscrites */
  --blanc-casse: #f2ede3;      /* texte principal */
  --texte-secondaire: #c9c7c2; /* texte secondaire */
  --bleu-clair: #a9bfcc;       /* ingrédients et descriptions (bleu-gris de la carte) */
  --vert-it: #1a8f3e;          /* drapeau italien : décoratif seulement */
  --blanc-it: #f5f5f5;
  --rouge-it: #dc0b19;
  --texte-sur-or: #0a0a0a;     /* texte des boutons dorés */

  /* Petit trait vert / blanc / rouge (comme sur la carte) */
  --trait-tricolore: linear-gradient(
    to right,
    var(--vert-it) 0 33.3%,
    var(--blanc-it) 33.3% 66.6%,
    var(--rouge-it) 66.6% 100%
  );

  --police-titre: "Cinzel", Georgia, serif;
  --police-texte: "Amaya Texte", Georgia, serif;
  --police-accroche: "Great Vibes", "Brush Script MT", cursive;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 1rem;             /* 16 px minimum pour le texte courant */
  line-height: 1.55;
  color: var(--blanc-casse);
  /* Fond noir uni comme la carte, avec un très léger halo en haut de page */
  background-color: var(--ardoise);
  background-image: radial-gradient(ellipse at top, var(--ardoise-clair), var(--ardoise) 60%);
  background-repeat: no-repeat;
  /* Rendu net du texte */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  /* Interdit au navigateur de fabriquer lui-même du gras ou de l'italique :
     c'est ce qui rend le texte flou quand la vraie graisse n'existe pas */
  font-synthesis: none;
  /* Pas de ligatures « fi » / « fl » : le hinting ajouté aux polices les décale (lettre surélevée).
     Les lettres f et i sont alors dessinées séparément, sans différence visible. */
  font-variant-ligatures: no-common-ligatures;
}

/* Les champs de formulaire reprennent la police du site (sinon : police système) */
button, input, select, textarea {
  font-family: inherit;
  font-variant-ligatures: inherit;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Accueil : la zone des pizzas va d'un bord à l'autre de l'écran,
   le reste (logo, pizza du moment, liste) garde la largeur habituelle */
main.page-accueil { max-width: none; padding: 0; }
.accueil-conteneur { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }

/* Titres : Cinzel, capitales, dorés, graisse 600 */
h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--or);
  line-height: 1.25;
}

h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.125rem;
}

a {
  color: var(--or-clair);
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Focus visible au clavier (tous les éléments interactifs) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--or-clair);
  outline-offset: 3px;
}

/* ---------- Classes réutilisables ---------- */

/* Titre de section : titre doré suivi d'un trait vert / blanc / rouge (« NOS PIZZAS ━━ »).
   Utilisation : <h2 class="titre-section">Les Classiques</h2> */
.titre-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}
.titre-section::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 3px;
  border-radius: 2px;
  background: var(--trait-tricolore);
}

/* Variante centrée : le trait tricolore passe sous le titre, comme un soulignement.
   Utilisation : <h1 class="titre-section titre-centre">Notre carte</h1> */
.titre-centre {
  flex-direction: column;   /* empile en colonne au lieu de ranger en ligne */
  gap: 8px;                 /* espace entre le texte et le trait */
  text-align: center;       /* centre le texte s'il passe sur deux lignes */
}
.titre-centre::after {
  flex: none;               /* le trait ne s'étire plus */
  width: 120px;             /* largeur fixe du soulignement */
}

/* Sous-titre de rubrique (« LES CLASSIQUES ») : Cinzel doré, plus petit.
   Utilisation : <h3 class="sous-titre">Les Classiques</h3> */
.sous-titre {
  font-size: 1.05rem;
  color: var(--or-bordure);
}

/* Cadre doré : bordure fine 1 px, coins arrondis, comme les encadrés de la carte.
   Utilisation : <div class="cadre-dore">…</div> */
.cadre-dore {
  border: 1px solid var(--or-bordure);
  border-radius: 12px;
  background: var(--ardoise-clair);
  padding: 20px;
}

/* Nom d'un produit (Lora 600, blanc cassé) */
.nom-produit {
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: 1.125rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--blanc-casse);
}

/* Ingrédients / description : Lora italique bleu-gris */
.ingredients {
  font-family: var(--police-texte);
  font-style: italic;
  color: var(--bleu-clair);
}

/* Accroche : écriture manuscrite dorée (Great Vibes).
   Cette police est illisible en petit : taille minimum 28 px. */
.accroche {
  font-family: var(--police-accroche);
  font-weight: 400;
  font-variant-ligatures: normal;  /* écriture manuscrite : ses ligatures (non modifiées) restent actives */
  font-size: 1.8rem;
  line-height: 1.25;
  color: var(--or-accroche);
}

/* Pastille végétarienne : <span class="pastille-vege">Végétarien</span> */
.pastille-vege {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid var(--vert-it);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--blanc-casse);
}
.pastille-vege::before {
  content: "🌿";
}

/* ---------- Boutons ----------
   .bouton = principal (fond or). .bouton-secondaire = contour doré.
   Fonctionne sur <button> et sur <a class="bouton">. */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;            /* zone cliquable confortable au doigt */
  padding: 10px 18px;
  font-family: var(--police-texte);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--texte-sur-or);
  background: var(--or);
  border: 2px solid var(--or);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.bouton:hover {
  background: var(--or-clair);
  border-color: var(--or-clair);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(228, 185, 108, 0.25);
}
.bouton:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.bouton:disabled:hover { transform: none; box-shadow: none; }

.bouton-secondaire {
  background: transparent;
  color: var(--or-clair);
}
.bouton-secondaire:hover {
  background: var(--noir-survol);
  color: var(--or-clair);
  border-color: var(--or-clair);
}

/* ---------- En-tête ---------- */
.entete {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 16px;
  background: var(--ardoise);
  /* filet doré sous l'en-tête, puis trait tricolore juste en dessous (::after) */
  border-bottom: 1px solid var(--or-bordure);
}
.entete::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--trait-tricolore);
}

.entete a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--blanc-casse);
  text-decoration: none;
}
.entete a:hover {
  color: var(--or-clair);
}

/* Lien du logo : l'image + la mention « À EMPORTER » */
.logo {
  gap: 10px;
}
.logo-image {
  display: block;
  mix-blend-mode: lighten;     /* le fond noir pur de l'image devient invisible sur le fond du site */
  width: 64px;                 /* petit sur mobile, plus grand sur ordinateur */
  height: 64px;
}
.mention-emporter {
  font-family: var(--police-titre);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--or);
}

/* Menu : liens en ligne, qui passent à la ligne si l'écran est étroit */
.entete nav {
  flex: 1 1 100%;              /* mobile : le menu occupe sa propre ligne, centré */
}
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.entete a[aria-current="page"],
.pied a[aria-current="page"] {
  color: var(--or);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
/* Le logo n'est pas souligné quand on est sur l'accueil */
.entete a.logo[aria-current="page"] {
  text-decoration: none;
}

.lien-panier {
  font-weight: 700;
}

/* Lien « Aller au contenu » : caché sauf quand il reçoit le focus au clavier */
.lien-evitement {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or);
  border-radius: 0 0 8px 8px;
}
.lien-evitement:focus {
  top: 0;
}

/* ---------- Pied de page ---------- */
.pied {
  margin-top: 32px;
  padding: 24px 16px;
  text-align: center;
  background: var(--ardoise);
  border-top: 1px solid var(--or-bordure);
}
.pied .accroche {
  margin: 0 0 8px;
}
.liens-pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.liens-pied a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
}
.mention-alcool {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--texte-secondaire);
}
/* Signature du bas de la carte : AMAYA PIZZERIA entre deux traits tricolores */
.signature-pied {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-family: var(--police-titre);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--or);
}
.signature-pied::before,
.signature-pied::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--trait-tricolore);
}
/* Le trait de droite est inversé (rouge à gauche), comme sur la carte */
.signature-pied::after {
  transform: scaleX(-1);       /* sur un simple trait, pas sur du texte */
}

/* Main focalisé par le lien d'évitement : pas de contour sur toute la page */
main[tabindex="-1"]:focus,
main[tabindex="-1"]:focus-visible {
  outline: none;
}

/* ---------- Bannière du gérant, badge Ouvert / Fermé, horaires ---------- */
.banniere-gerant {
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or);
}

.origine { margin: 4px 0; font-size: 0.9rem; font-style: italic; }

.etat-ouverture {
  margin: 0;
  padding: 6px 12px;
  font-size: 0.875rem;
  border: 1px solid var(--or-bordure);
  border-radius: 999px;
}
.etat-ouverture[hidden] { display: none; }
/* Le mot Ouvert / Fermé est toujours écrit : la couleur n'est qu'un renfort */
.etat-ouvert { border-color: var(--vert-it); }
.etat-ouvert strong::before { content: "● "; color: var(--vert-it); }
.etat-ferme { border-color: var(--rouge-it); }
.etat-ferme strong::before { content: "● "; color: var(--rouge-it); }

.horaires-pied { margin: 0 auto 8px; max-width: 320px; }
.horaires-pied[hidden] { display: none; }
.titre-horaires-pied { margin: 0 0 8px; font-size: 1rem; }
.liste-horaires { margin: 0; padding: 0; list-style: none; text-align: left; }
.liste-horaires li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
}
.horaire-jour { text-transform: capitalize; }

/* ---------- Prix seul : Lora doré (tabular-nums seulement sur les montants, voir .prix-montant) ---------- */
.prix {
  font-family: var(--police-texte);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--or);
}

/* Tablette puis ordinateur */
@media (min-width: 600px) {
  .entete { padding: 10px 24px; }
  h1 { font-size: 2.25rem; }
}

/* Ordinateur : en-tête plus grand, menu à droite du logo */
@media (min-width: 700px) {
  .logo-image { width: 88px; height: 88px; }
  .mention-emporter { font-size: 1rem; }
  .entete nav { flex: 0 1 auto; }
  .menu { justify-content: flex-end; gap: 0 24px; }
  .signature-pied { font-size: 1.15rem; letter-spacing: 0.3em; }
}

/* ---------- Bouton fixe du panier (mobile seulement, créé par commun.js) ---------- */
.panier-flottant {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 150;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.panier-flottant[hidden] { display: none; }
/* Le bouton ne doit pas cacher la fin de la page */
body.avec-panier-flottant { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

@media (min-width: 700px) {
  /* Sur grand écran, le lien du haut suffit */
  .panier-flottant { display: none; }
  body.avec-panier-flottant { padding-bottom: 0; }
}

/* ---------- Carte en liste (carte-liste.js) ----------
   Chaque catégorie est un encadré doré ; chaque produit est une ligne :
   nom à gauche, points de conduite, prix à droite (comme la carte papier). */
#vue-roulette[hidden], #vue-liste[hidden] { display: none; }
.legende-carte { margin: 0 0 24px; font-style: italic; color: var(--texte-secondaire); }

.categorie-carte {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--or-bordure);
  border-radius: 12px;
  background: var(--ardoise-clair);
}
.categorie-carte .titre-section { margin-bottom: 8px; }

.liste-produits {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Ligne de produit : on retire le cadre doré individuel (déjà dans le cadre de la catégorie) */
.liste-produits > .produit-liste {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(209, 175, 55, 0.25);
  border-radius: 0;
  background: none;
}
.liste-produits > .produit-liste:last-child { border-bottom: 0; }

/* Texte du produit : nom, précision, ingrédients, prix */
.produit-texte { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 12px; }
.produit-texte > * { grid-column: 1 / -1; margin: 0; }
.produit-precision { font-size: 0.9rem; color: var(--texte-secondaire); }
.produit-icone { font-size: 1rem; }
.produit-liste .choix-halal { margin-left: 8px; font-family: var(--police-texte); font-weight: 400; }
.produit-action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.produit-mention {
  padding: 2px 10px;
  border: 1px solid var(--rouge-it);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blanc-casse);
}
.produit-indisponible { opacity: 0.75; }
.produit-liste .bouton:disabled { opacity: 0.5; cursor: not-allowed; }
.message-erreur {
  padding: 16px;
  border: 1px solid var(--rouge-it);
  border-left-width: 6px;
  border-radius: 8px;
  background: var(--ardoise-clair);
}
.message-erreur p { margin: 0 0 12px; }

/* ---------- Prix par taille (liste, roulette, fenêtre de choix) ----------
   Chaque prix est une cellule : la taille (« 26 cm ») puis le montant (« 8,00 € »).
   tabular-nums seulement sur le montant, jamais sur un texte contenant des espaces. */
.prix-cellule { min-width: 0; }
.prix-taille {
  display: block;
  font-family: var(--police-titre);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--or-bordure);
}
.prix-montant {
  font-family: var(--police-texte);
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--or);
}
.prix-vide { display: none; }
.entete-prix { display: none; }

/* Mobile : les prix sur une ligne sous les ingrédients, la taille au-dessus de chaque montant */
.prix-tailles-liste { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.prix-tailles-liste.prix-seul { justify-content: flex-end; }

/* Petit tableau (aperçu de la roulette, fenêtre de choix) : taille en haut, prix en dessous */
.prix-tableau {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  max-width: 22rem;
  margin: 12px 0;
  border: 1px solid rgba(209, 175, 91, 0.5);
  border-radius: 8px;
  overflow: hidden;
}
.prix-tableau .prix-cellule { padding: 8px 6px; text-align: center; }
.prix-tableau .prix-cellule + .prix-cellule { border-left: 1px solid rgba(209, 175, 91, 0.5); }

/* Écran large : nom ........ | 26 cm | 33 cm | 40 cm | Choisir (colonnes de largeur fixe) */
@media (min-width: 700px) {
  .categorie-carte {
    --col-prix: 5.5rem;
    --col-action: 8rem;
    --ecart-colonnes: 16px;
  }
  .entete-prix,
  .liste-produits > .produit-liste {
    display: grid;
    grid-template-columns: minmax(0, 1fr) calc(var(--col-prix) * 3) var(--col-action);
    column-gap: var(--ecart-colonnes);
    align-items: center;
  }
  .liste-produits > .produit-liste { flex-direction: row; }

  /* En-têtes de colonnes : petites capitales Cinzel dorées, au-dessus des prix */
  .entete-prix { padding-bottom: 6px; border-bottom: 1px solid rgba(209, 175, 91, 0.5); }
  .entete-prix > .prix-tailles { grid-column: 2; }
  .entete-prix .prix-cellule {
    font-family: var(--police-titre);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--or);
  }

  /* Les trois colonnes de prix, de largeur fixe, alignées à droite */
  .prix-tailles-liste {
    display: grid;
    grid-template-columns: repeat(3, var(--col-prix));
    gap: 0;
  }
  .entete-prix .prix-tailles { display: grid; grid-template-columns: repeat(3, var(--col-prix)); }
  .prix-tailles-liste .prix-cellule,
  .entete-prix .prix-cellule { text-align: right; }
  .prix-vide { display: block; }
  .prix-tailles-liste.prix-seul .prix-cellule { grid-column: 3; }

  /* La taille est lue par les lecteurs d'écran mais invisible (l'en-tête la montre) */
  .prix-tailles-liste .prix-cellule { position: relative; }
  .prix-tailles-liste .prix-taille {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .produit-texte { display: block; min-width: 0; }
  .produit-texte > .nom-produit {
    display: flex;
    align-items: baseline;
  }
  /* Points de conduite entre le nom et les prix */
  .produit-liste .nom-produit::after {
    content: "";
    flex: 1 1 20px;
    min-width: 20px;
    margin: 0 8px;
    border-bottom: 1px dotted rgba(209, 175, 91, 0.55);
  }
  /* Bouton « Choisir » dans une colonne fixe à droite */
  .produit-action { flex-direction: column; align-items: stretch; gap: 6px; }
  .produit-action .bouton { width: 100%; }
}

/* ---------- Fenêtre de choix d'un produit (<dialog>) ---------- */
.fenetre-choix {
  /* mobile : plein écran */
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  color: var(--blanc-casse);
  background: var(--ardoise-clair);
  border: 0;
  overflow-y: auto;
}
.fenetre-choix::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.choix-contenu {
  --marge-choix: 16px;
  position: relative;
  padding: var(--marge-choix);
  padding-bottom: 0;           /* la barre du bas colle au bord de la fenêtre */
  overflow-wrap: anywhere;     /* longs noms : pas de débordement */
}
.choix-contenu > * { min-width: 0; }
.choix-fermer {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--or-clair);
  background: transparent;
  border: 1px solid var(--or-bordure);
  border-radius: 8px;
  cursor: pointer;
}
.choix-fermer:hover { background: var(--noir-survol); }
.choix-entete { padding-right: 52px; }
.choix-entete h2 { margin: 0 0 4px; }
.choix-emoji { font-size: 3rem; line-height: 1.2; }
.choix-photo {
  display: block;
  width: 100%;
  height: 220px;               /* hauteur fixe = pas de saut de mise en page au chargement */
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 8px;
}
.choix-precision, .choix-allergenes { margin: 4px 0; font-size: 0.9rem; color: var(--texte-secondaire); }
.choix-a-verifier { color: var(--or-clair); }
.choix-halal {
  padding: 2px 10px;
  border: 1px solid var(--or-bordure);
  border-radius: 999px;
  font-size: 0.875rem;
}
.choix-pastilles { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.choix-pastilles:empty { display: none; }

.choix-groupe {
  margin: 16px 0 0;
  padding: 8px 12px 12px;
  border: 1px solid rgba(209, 175, 55, 0.5);
  border-radius: 8px;
}
.choix-groupe legend { padding: 0 6px; font-weight: 700; color: var(--or); }
.choix-supplements h3 { margin: 20px 0 0; font-size: 1.1rem; }
.choix-limite { margin: 4px 0 0; font-size: 0.9rem; color: var(--texte-secondaire); }

.choix-ligne {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
.choix-ligne[hidden] { display: none; }
.choix-ligne input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--or); }
.choix-libelle { flex: 1; }
.choix-prix { color: var(--or); font-weight: 600; white-space: nowrap; }
/* Opacité 0,75 : texte blanc cassé encore à plus de 7:1 de contraste */
.choix-indisponible { opacity: 0.75; cursor: not-allowed; }

.choix-quantite { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.choix-quantite input {
  width: 64px;
  min-height: 44px;
  text-align: center;
  font-size: 1rem;
  color: var(--blanc-casse);
  background: var(--ardoise);
  border: 1px solid var(--or-bordure);
  border-radius: 8px;
}
.choix-btn-quantite { min-width: 44px; padding: 0; }

.choix-total { margin: 16px 0 8px; font-size: 1.3rem; font-weight: 600; color: var(--or); }
.choix-contenu > .bouton { width: 100%; margin-bottom: var(--marge-choix); }
/* Erreurs : texte blanc cassé (lisible) + barre rouge à gauche */
.choix-erreur, .choix-erreur-champ {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 4px solid var(--rouge-it);
  font-weight: 700;
  color: var(--blanc-casse);
}
.choix-erreur:empty, .choix-erreur-champ:empty { display: none; }

/* Barre fixe en bas de la fenêtre : total + bouton « Ajouter au panier » toujours visibles */
.choix-barre {
  position: sticky;
  bottom: 0;
  margin: 16px calc(var(--marge-choix) * -1) 0;
  padding: 4px var(--marge-choix) calc(12px + env(safe-area-inset-bottom));
  background: var(--ardoise-clair);
  border-top: 1px solid var(--or-bordure);
}
.choix-barre .choix-total { margin: 8px 0; }
.choix-barre .bouton { width: 100%; }

/* Message de confirmation après ajout (centré sans transform, pour garder un texte net) */
.message-panier {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom)); /* au-dessus du bouton fixe du panier */
  z-index: 200;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.message-panier.visible { opacity: 1; }

/* Tablette et ordinateur : fenêtre centrée */
@media (min-width: 700px) {
  .fenetre-choix {
    width: 600px;
    height: auto;
    max-height: 90vh;
    margin: auto;
    border: 1px solid var(--or-bordure);
    border-radius: 12px;
  }
  .choix-contenu { --marge-choix: 24px; padding-top: 24px; }
}

/* ---------- Roulette des pizzas (roulette.js) ----------
   Zone sur toute la largeur de l'écran, sur le fond dessiné (assombri pour garder le texte lisible) :
   bande des catégories en haut, roue au centre, flèches aux deux bords de l'écran, aperçu dessous. */
.zone-pizzas {
  position: relative;
  margin: 8px 0 32px;
  padding-bottom: 40px;
  border-top: 1px solid var(--or-bordure);
  border-bottom: 1px solid var(--or-bordure);
  background-color: var(--ardoise);
  background-image:
    linear-gradient(rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.86)),
    url("../images/fond-pizzas.svg");
  background-size: auto, 640px 640px;  /* motif original (scripts/generer-fond.js), répété sans raccord */
  background-repeat: no-repeat, repeat;
  background-position: center, center top;
}

/* Bande des catégories : toute la largeur, 2 par ligne sur téléphone, toutes sur une ligne ensuite */
.roulette-onglets {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--or-bordure);
  background: rgba(5, 5, 5, 0.6);
}
.roulette-onglet {
  flex: 1 1 50%;
  min-height: 56px;
  padding: 10px 8px;
  font-family: var(--police-titre);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--or-clair);
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(209, 175, 91, 0.35);
  border-bottom: 1px solid rgba(209, 175, 91, 0.35);
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.roulette-onglet:hover { background: rgba(228, 185, 108, 0.12); }
/* Onglet actif : fond doré */
.roulette-onglet[aria-pressed="true"] { background: var(--or); color: var(--texte-sur-or); }
.roulette-onglet:focus-visible { outline: 3px solid var(--or-clair); outline-offset: -3px; }
@media (min-width: 800px) {
  .roulette-onglet { flex: 1 1 0; min-height: 64px; font-size: 0.95rem; border-bottom: 0; }
  .roulette-onglet:last-child { border-right: 0; }
}

/* Scène : une grille sur toute la largeur.
   Téléphone :  description | prix          Ordinateur :  ‹ | description | roue | prix | ›
                ‹ |    roue    | ›                          bouton (sous la roue)
                     bouton
   Les flèches restent aux bords de l'écran, à la hauteur du milieu de la roue. */
.roulette-scene {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 44px;
  grid-template-areas:
    "infos infos prix prix"
    "prec  roue  roue suiv"
    ".     action action .";
  gap: 16px 8px;
  align-items: center;
  padding: 24px 8px 0;
}
.roulette-fleche-gauche { grid-area: prec; }
.roulette-fleche-droite { grid-area: suiv; }
.roulette-infos { grid-area: infos; align-self: start; padding-left: 8px; }
.roulette-roue { grid-area: roue; justify-self: center; }
.roulette-prix { grid-area: prix; align-self: start; justify-self: end; padding-right: 8px; }
.roulette-action { grid-area: action; justify-self: center; }

@media (min-width: 900px) {
  .roulette-scene {
    grid-template-columns: 64px minmax(0, 1fr) min(44vw, 540px) minmax(0, 1fr) 64px;
    grid-template-areas:
      "prec infos roue prix suiv"
      ".    .     action .   .";
    gap: 16px 32px;
    padding: 32px 24px 0;
  }
  /* Description et prix collés en haut, de part et d'autre de la roue */
  .roulette-infos { justify-self: end; width: min(100%, 320px); padding: 0; }
  .roulette-prix { justify-self: start; width: min(100%, 240px); padding: 0; }
}

.roulette-fleche {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--or);
  background: rgba(5, 5, 5, 0.75);
  border: 2px solid var(--or);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.roulette-fleche:hover { background: var(--or); color: var(--texte-sur-or); }
.roulette-fleche-gauche:hover { transform: translateX(-3px); }
.roulette-fleche-droite:hover { transform: translateX(3px); }
.roulette-chevron { fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) {
  .roulette-fleche { width: 64px; height: 64px; }
}

/* Zone de la roue (le disque seul) : on y glisse avec le doigt, donc pas de défilement de page dessus */
.roulette-roue {
  width: min(100%, 520px);
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.roulette-glisse { cursor: grabbing; }
.roulette-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Changement de catégorie : la nouvelle pizza arrive en tournant */
.roulette-entree { animation: roue-entree 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes roue-entree {
  from { opacity: 0; transform: rotate(-70deg) scale(0.85); }
  to { opacity: 1; transform: none; }
}

/* Couleurs de la roue : or, noirs et blanc cassé de la carte */
.roulette-croute { fill: var(--or-bordure); stroke: var(--or-clair); stroke-width: 1.5; }
.roulette-sauce { fill: var(--ardoise); }
.roulette-part { fill: var(--ardoise-clair); }
.roulette-part-indispo { fill: var(--ardoise); }
.roulette-photo-indispo { filter: grayscale(1); opacity: 0.45; }
.roulette-tomate { fill: var(--rouge-it); opacity: 0.75; }
.roulette-basilic { fill: var(--vert-it); opacity: 0.8; }
.roulette-emoji { font-size: 15px; text-anchor: middle; dominant-baseline: middle; }
/* Noms sur les parts : blanc cassé sur noir, sans contour (le contour rendait le texte épais et flou) */
.roulette-nom-part {
  font-family: var(--police-texte);
  font-weight: 600;
  text-anchor: middle;
  fill: var(--blanc-casse);
}
.roulette-nom-indispo { fill: var(--texte-secondaire); font-style: italic; }
.roulette-bord { fill: none; stroke: var(--or-bordure); stroke-width: 1.2; stroke-linejoin: round; pointer-events: none; }
/* Parts en photo : fines lignes de découpe sombres, comme une pizza coupée (contour doré si choisie) */
.roulette-part-groupe-photo .roulette-bord { stroke: rgba(20, 8, 2, 0.6); stroke-width: 0.9; }

/* Part sélectionnée (en haut) : elle se soulève vers le haut avec un petit rebond,
   s'éclaire et reçoit un bord doré plus épais. Le déplacement est en unités du dessin. */
.roulette-part-groupe {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s;
}
.roulette-part-groupe.roulette-part-choisie {
  transform: translateY(-12px);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 6px rgba(240, 212, 154, 0.45));
}
.roulette-part-choisie .roulette-part { fill: var(--noir-survol); }
.roulette-part-choisie .roulette-bord { stroke: var(--or-clair); stroke-width: 2.5; }
.roulette-glisse .roulette-part-groupe { transition-duration: 0.15s; }
.roulette-repere { fill: var(--or); stroke: var(--ardoise); stroke-width: 1.5; stroke-linejoin: round; }

.roulette-aide {
  max-width: 640px;
  margin: 12px auto 0;
  padding: 0 16px;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  color: var(--texte-secondaire);
}
.roulette-legende { margin: 12px 0 0; text-align: center; }

/* Description de la pizza (en haut à gauche) et prix (en haut à droite), sur un fond sombre
   pour rester lisibles sur le dessin ; ils réapparaissent en glissant à chaque changement de pizza */
.roulette-infos,
.roulette-prix {
  padding: 14px 16px;
  background: rgba(12, 12, 13, 0.88);
  border: 1px solid rgba(209, 175, 91, 0.45);
  border-radius: 10px;
}
.roulette-infos p { margin: 6px 0 0; font-size: 0.95rem; }
.roulette-nom { margin: 0; font-size: 1.25rem; }
@media (min-width: 900px) {
  .roulette-nom { font-size: 1.5rem; }
}
.roulette-prix-titre {
  margin: 0 0 8px;
  font-family: var(--police-titre);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--or-bordure);
}
/* Prix en colonne : « 26 cm ........ 8,00 € » sur une ligne par taille */
.roulette-prix .prix-tableau {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.roulette-prix .prix-tableau .prix-cellule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  text-align: left;
}
.roulette-prix .prix-tableau .prix-cellule + .prix-cellule {
  border-left: 0;
  border-top: 1px dotted rgba(209, 175, 91, 0.5);
}
.roulette-prix .prix-taille { display: inline; font-size: 0.8rem; }
.roulette-prix .prix { margin: 0; }

/* Textes qui changent avec la pizza : la description arrive de la gauche, les prix de la droite */
.roulette-texte-anime { animation: texte-gauche 0.45s ease-out both; }
.roulette-prix.roulette-texte-anime { animation-name: texte-droite; }
@keyframes texte-gauche {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes texte-droite {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}

.roulette-action .bouton { min-width: 240px; }
.roulette-action .bouton:disabled { opacity: 0.5; cursor: not-allowed; }

/* Zone lue par les lecteurs d'écran, invisible à l'écran */
.roulette-annonce {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Page panier ---------- */
.annonce-panier {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.panier-info { padding: 12px 16px; border: 1px solid var(--or-bordure); border-radius: 8px; font-weight: 700; }
.liste-panier { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.ligne-panier { display: grid; gap: 12px; }
.ligne-panier { min-width: 0; }
.ligne-panier > * { min-width: 0; }
.ligne-panier .nom-produit, .ligne-detail { overflow-wrap: anywhere; }
.ligne-panier .nom-produit { margin: 0 0 4px; }
.ligne-detail { margin: 2px 0; font-size: 1rem; color: var(--texte-secondaire); }
.ligne-alerte {
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 4px solid var(--rouge-it);
  font-weight: 700;
  color: var(--blanc-casse);
}
.ligne-indisponible { border-color: var(--rouge-it); }
.ligne-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ligne-quantite { display: flex; align-items: center; gap: 8px; }
.bouton-carre { min-width: 44px; padding: 0; font-size: 1.3rem; }
.ligne-quantite-valeur { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ligne-total { margin: 0 0 0 auto; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--or); }
.bouton:disabled { opacity: 0.5; cursor: not-allowed; }
.panier-resume { display: grid; gap: 12px; justify-items: start; }
.panier-resume p { margin: 0; }
.panier-total { font-size: 1.4rem; color: var(--or); }
.panier-alcool { padding: 10px 12px; border: 1px solid var(--or-bordure); border-radius: 8px; }
.panier-raison {
  padding-left: 10px;
  border-left: 4px solid var(--rouge-it);
  font-weight: 700;
  color: var(--blanc-casse);
}
.panier-resume .bouton { width: 100%; }
.panier-retour { display: inline-flex; align-items: center; min-height: 44px; }
.panier-vide { text-align: center; padding: 32px 0; }
.panier-boutons-erreur { display: flex; flex-wrap: wrap; gap: 12px; }
.message-erreur[role="alert"] { margin-bottom: 16px; }

@media (min-width: 600px) {
  .ligne-panier { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .ligne-actions { justify-content: flex-end; }
  .panier-resume .bouton { width: auto; min-width: 240px; }
}

/* ---------- Accueil : logo, slogan et pizza du moment ---------- */
/* Grand logo centré, comme en tête de la carte papier (fond noir : il se fond dans la page) */
.logo-accueil {
  display: block;
  mix-blend-mode: lighten;     /* le noir pur du logo se fond dans la page */
  width: 220px;
  height: auto;
  margin: 0 auto 8px;
}
.slogan-accueil { margin: 0 0 20px; text-align: center; font-size: 2rem; }
.pizza-du-moment { display: grid; gap: 16px; margin-bottom: 32px; text-align: center; border-color: var(--or); }
.pizza-du-moment[hidden] { display: none; }
.pdm-media { display: flex; justify-content: center; align-items: center; }
.pdm-emoji { font-size: 6rem; line-height: 1.1; }
.pdm-photo { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; }
/* Photo de pizza entière (ronde, fond transparent) : montrée en entier */
.pdm-photo.photo-entiere, .choix-photo.photo-entiere { object-fit: contain; border-radius: 0; }
.pdm-etiquette { margin: 0; font-family: var(--police-titre); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; color: var(--or-bordure); }
.pdm-nom { margin: 4px 0; font-size: 1.5rem; }
.pdm-accroche { margin: 0 0 8px; font-size: 2rem; }
.pdm-texte .prix { margin: 0 0 12px; }
.pdm-texte .prix-tableau { margin: 4px auto 16px; }
.pdm-texte .bouton { width: 100%; }

@media (min-width: 700px) {
  .logo-accueil { width: 280px; }
  .slogan-accueil { font-size: 2.4rem; }
  .pizza-du-moment { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; text-align: left; }
  .pdm-texte .prix-tableau { margin-left: 0; }
  .pdm-texte .bouton { width: auto; min-width: 200px; }
}

/* ---------- Page infos pratiques ---------- */
.grille-infos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.info-bloc h2 { margin: 0 0 12px; font-size: 1.15rem; }
.info-bloc p, .info-bloc ol { margin: 0 0 12px; }
.info-valeur { font-size: 1.1rem; overflow-wrap: anywhere; }
.info-etapes { padding-left: 22px; }
.info-etapes li { margin-bottom: 8px; }
.lien-telephone { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
/* Valeur pas encore renseignée : affichée telle quelle, en italique avec un trait pointillé doré */
.info-a-completer { font-style: italic; opacity: 0.85; border-left: 3px dashed var(--or); padding-left: 10px; }
.liste-horaires-page li { border-bottom: 1px dotted rgba(209, 175, 55, 0.5); padding: 6px 0; }
.liste-horaires-page li:last-child { border-bottom: 0; }
.visuellement-cache {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 800px) {
  .grille-infos { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Page commande ---------- */
#zone-commande { display: grid; gap: 20px; }
.commande-form { display: grid; gap: 20px; }
.commande-recap { display: grid; gap: 12px; justify-items: start; }
.commande-recap h2 { margin: 0; font-size: 1.3rem; }
.commande-recap p { margin: 0; }
.commande-recap-liste { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 12px; }
.commande-recap-ligne {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dotted rgba(209, 175, 55, 0.5);
}
.commande-recap-ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.commande-recap-ligne .nom-produit { margin: 0 0 4px; overflow-wrap: anywhere; }
.commande-recap-ligne .ligne-total { margin: 0; white-space: nowrap; }
.commande-groupe { display: grid; gap: 16px; margin: 0; min-width: 0; }
fieldset.commande-groupe legend { padding: 0 6px; font-weight: 700; color: var(--or); }
.commande-groupe p { margin: 0; }
.champ { display: grid; gap: 6px; min-width: 0; }
.champ label { font-weight: 700; }
.champ input[type="text"], .champ input[type="tel"], .champ input[type="email"], .champ select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--police-texte);
  font-size: 1rem;
  color: var(--blanc-casse);
  background: var(--ardoise);
  border: 2px solid var(--or-bordure);
  border-radius: 8px;
}
.champ input[aria-invalid="true"], .champ select[aria-invalid="true"] { border-color: var(--rouge-it); }
.champ-aide { font-size: 0.9rem; font-style: italic; color: var(--texte-secondaire); }
.champ-erreur {
  padding-left: 10px;
  border-left: 4px solid var(--rouge-it);
  font-weight: 700;
  color: var(--blanc-casse);
}
.champ-erreur[hidden] { display: none; }
.case-ligne { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.case-ligne input { width: 24px; height: 24px; margin-top: 2px; flex-shrink: 0; accent-color: var(--or); }
.case-ligne label { flex: 1; display: flex; align-items: center; min-height: 44px; font-weight: 400; }
.case-ligne label a { text-decoration: underline; }
.commande-paiement { display: grid; gap: 12px; justify-items: start; }
.commande-paiement p { margin: 0; }
.commande-paiement .bouton { width: 100%; }
.confirmation-reglement { font-weight: 700; }
.commande-etat:empty { display: none; }
.commande-etat { font-weight: 700; color: var(--or-clair); }
.commande-blocage { display: grid; gap: 16px; justify-items: start; }
.commande-blocage p { margin: 0; }

@media (min-width: 600px) {
  .commande-paiement .bouton { width: auto; min-width: 260px; }
}
@media (min-width: 900px) {
  #zone-commande { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  /* Seulement sur la page de commande (pas sur la confirmation) : le récapitulatif reste visible */
  #zone-commande .commande-recap { position: sticky; top: 16px; }
}
@media (min-width: 900px) {
  #zone-commande > .message-erreur, #zone-commande > .commande-blocage, #zone-commande > p { grid-column: 1 / -1; }
}

/* ---------- Page de confirmation ---------- */
#zone-confirmation { display: grid; gap: 20px; }
#zone-confirmation .message-erreur { display: grid; gap: 12px; justify-items: start; }
#zone-confirmation .message-erreur p { margin: 0; }
.confirmation-message h2 { margin: 0 0 8px; font-size: 1.3rem; }
.confirmation-message p { margin: 0 0 8px; }
.confirmation-message .accroche { margin: 8px 0 0; font-size: 2.2rem; }
.slogan-frise { margin: 8px 0; text-align: center; }
.slogan-panier { margin: 24px 0 0; text-align: center; font-style: italic; color: var(--texte-secondaire); }
.confirmation-statut { font-weight: 700; color: var(--or-clair); }
.confirmation-lien { margin: 0; overflow-wrap: anywhere; }
/* Frise : liste ordonnée, une étape par ligne sur mobile, côte à côte ensuite */
.frise-statuts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.frise-etape {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(209, 175, 55, 0.4);
  border-radius: 8px;
  color: var(--texte-secondaire);
}
.frise-faite { color: var(--blanc-casse); border-color: var(--vert-it); }
.frise-faite::before { content: "✓ "; margin-right: 6px; color: var(--vert-it); }
.frise-courante {
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or);
  border-color: var(--or);
}
@media (min-width: 700px) {
  .frise-statuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .frise-etape { justify-content: center; text-align: center; }
}

/* ---------- Pages légales ---------- */
.bandeau-modele {
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or-clair);
}
.page-legale { max-width: 800px; }
.page-legale h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.page-legale p, .page-legale ul { margin: 0 0 12px; }
.page-legale li { margin-bottom: 6px; }
.page-legale { overflow-wrap: anywhere; }
/* Information à renseigner : bien visible tant que le gérant ne l'a pas saisie */
.a-completer {
  padding: 1px 6px;
  font-weight: 700;
  color: var(--texte-sur-or);
  background: var(--or-clair);
  border-radius: 4px;
}

/* ---------- Animations ----------
   Courtes et discrètes. Toutes sont coupées plus bas si l'utilisateur demande moins d'animations. */

/* Encadrés et titres qui glissent vers le haut en apparaissant (classe ajoutée par commun.js) */
.a-reveler {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.a-reveler.revele { opacity: 1; transform: none; }

/* Grand logo de l'accueil : apparition en douceur */
.logo-accueil { animation: logo-entree 0.9s ease-out both; }
@keyframes logo-entree {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Trait tricolore sous l'en-tête : il se déroule depuis le centre au chargement */
.entete::after { animation: trait-deroule 0.9s ease-out 0.2s both; }
@keyframes trait-deroule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Emoji de la pizza du moment : flotte doucement */
.pdm-emoji { display: inline-block; animation: flotter 3.5s ease-in-out infinite; }
@keyframes flotter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Lien et bouton du panier : petit rebond quand un article est ajouté (commun.js) */
.rebond { animation: rebond 0.5s ease-out; }
@keyframes rebond {
  0% { transform: scale(1); }
  35% { transform: scale(1.18); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ---------- Accessibilité : pas d'animation si l'utilisateur la refuse ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .a-reveler { opacity: 1; transform: none; }
  .bouton:hover { transform: none; }
}

/* ---------- Retrait ou livraison (page commande) ---------- */
.choix-mode { display: grid; gap: 10px; }
@media (min-width: 600px) { .choix-mode { grid-template-columns: 1fr 1fr; } }
.choix-mode-option {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; min-height: 44px;
  border: 2px solid var(--or-bordure); border-radius: 10px;
  background: var(--ardoise); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.choix-mode-option:hover { background: var(--noir-survol); }
.choix-mode-option input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--or); flex: none; }
.choix-mode-option:has(input:checked) { border-color: var(--or-clair); background: var(--noir-survol); box-shadow: 0 0 0 2px var(--or-clair) inset; }
.choix-mode-option:has(input:focus-visible) { outline: 3px solid var(--or-clair); outline-offset: 2px; }
.choix-mode-textes { display: grid; gap: 2px; }
.choix-mode-detail { font-size: 0.9rem; color: var(--texte-secondaire); }
.zone-adresse { display: grid; gap: 16px; }
.zone-adresse[hidden] { display: none; }
.commande-frais { margin: 8px 0 0; text-align: right; color: var(--texte-secondaire); }
.commande-frais[hidden] { display: none; }

/* Page de suivi : autre heure de livraison proposée par la pizzeria */
.proposition-heure {
  margin: 14px 0; padding: 16px; border: 2px solid var(--or-clair); border-radius: 12px;
  background: var(--noir-survol); animation: apparition-proposition 0.4s ease-out;
}
.proposition-titre { margin-top: 0; font-weight: 700; }
.proposition-heure strong { font-size: 1.3em; color: var(--or-clair); }
.proposition-boutons { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 600px) { .proposition-boutons { grid-template-columns: 1fr 1fr; } }
.proposition-boutons button { min-height: 48px; cursor: pointer; }
.proposition-boutons button:disabled { opacity: 0.6; cursor: wait; }
.proposition-erreur { color: #ffb4a9; font-weight: 600; }
.proposition-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--texte-secondaire); }
@keyframes apparition-proposition { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .proposition-heure { animation: none; } }

/* Page de commande : calcul du trajet de livraison */
.info-trajet { margin: 10px 0 0; color: var(--texte-secondaire); }
.info-trajet:empty { display: none; }
.info-trajet-ok { color: #9be3b0; }
.info-trajet-erreur { color: #ffb4a9; font-weight: 600; }
select:disabled { opacity: 0.7; cursor: not-allowed; }
