/* ==========================================================================
   KM BURGER RIOM — FEUILLE DE STYLE UNIQUE
   Organisation : 1. Variables  2. Base  3. En-tete  4. Composants
                  5. Pages      6. Panier  7. Pied de page  8. Responsive
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES  —  changer une couleur ici la change sur tout le site
   ========================================================================== */
:root {
  --noir: #14110f;
  --noir-doux: #1f1b18;
  --charbon: #2b2521;
  --creme: #f7f1e8;
  --creme-doux: #ede4d6;

  --lave: #d8341f;        /* rouge volcan — couleur principale */
  --lave-clair: #f0512c;
  --braise: #f0a02c;      /* orange braise — accent */
  --vert: #3f8f4f;        /* validations, "ouvert" */

  --texte: #14110f;
  --texte-doux: #6b615a;
  --bordure: #e0d5c5;

  --rayon: 14px;
  --rayon-s: 8px;
  --ombre: 0 4px 16px rgba(20, 17, 15, 0.08);
  --ombre-forte: 0 12px 32px rgba(20, 17, 15, 0.18);

  --largeur: 1140px;
  --titre: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --corps: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--corps);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--titre);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 0.4em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--lave); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section--sombre { background: var(--noir); color: var(--creme); }
.section--sombre h2 { color: var(--creme); }
.section--creme { background: var(--creme-doux); }

.section__intro {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}
.section__intro p { color: var(--texte-doux); font-size: 1.05rem; }
.section--sombre .section__intro p { color: rgba(247, 241, 232, 0.75); }

/* Petit bandeau rouge au-dessus des titres de section */
.surtitre {
  display: inline-block;
  font-family: var(--corps);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--lave);
  margin-bottom: 10px;
}

/* Accessibilite : lien d'evitement + focus visible */
.saut-contenu {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lave);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
}
.saut-contenu:focus { left: 0; }

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

/* ==========================================================================
   3. EN-TETE ET NAVIGATION
   ========================================================================== */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 15, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(247, 241, 232, 0.1);
}

.entete__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  font-family: var(--titre);
  font-size: 1.6rem;
  color: var(--creme);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--lave-clair); }
.logo small {
  font-family: var(--corps);
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: rgba(247, 241, 232, 0.55);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  color: var(--creme);
  padding: 9px 14px;
  border-radius: var(--rayon-s);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.nav a:hover { background: rgba(247, 241, 232, 0.1); text-decoration: none; }
.nav a[aria-current='page'] { color: var(--braise); }

/* Bouton hamburger — visible seulement sur mobile */
.burger-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--creme);
  padding: 8px;
  cursor: pointer;
  border-radius: var(--rayon-s);
}
.burger-btn svg { width: 26px; height: 26px; }

/* Pastille compteur du panier dans la nav */
.nav__panier { position: relative; }
.compteur-panier {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--lave);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
}
.compteur-panier.actif { display: flex; }

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

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border: 0;
  border-radius: 50px;
  background: var(--lave);
  color: #fff;
  font-family: var(--corps);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  background: var(--lave-clair);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--ombre-forte);
}
.btn:active { transform: translateY(0); }
.btn:disabled { background: #b9aea3; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--fantome {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--creme);
}
.btn--fantome:hover { background: var(--creme); color: var(--noir); border-color: var(--creme); }

.btn--sombre { background: var(--noir); }
.btn--sombre:hover { background: var(--charbon); }

.btn--large { width: 100%; }
.btn--petit { padding: 9px 18px; font-size: 0.9rem; }

/* --- Cartes produit --- */
.grille {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.produit {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;          /* la photo epouse les coins arrondis */
  box-shadow: var(--ombre);
  transition: transform 0.15s, box-shadow 0.15s;
}
.produit:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }

/* --- Photo du produit --- */
.produit__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--creme-doux);
  overflow: hidden;
}
.produit__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* remplit sans deformer, quitte a rogner */
  display: block;
  transition: transform 0.4s ease;
}
.produit:hover .produit__photo img { transform: scale(1.05); }

/* La pastille se pose par-dessus la photo */
.produit__photo .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  box-shadow: 0 2px 10px rgba(20, 17, 15, 0.3);
}

/* Le texte et le bouton, sous la photo */
.produit__corps {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 18px 20px 20px;
}

/* Pastille "Le préféré" / "N°1 des ventes" */
.badge {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 50px;
  background: var(--braise);
  color: var(--noir);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   PRODUIT ÉPUISÉ
   --------------------------------------------------------------------------
   Le produit reste sur la carte, volontairement : le faire disparaître
   laisserait croire à un habitué qu'on ne le fait plus du tout. On le montre
   donc éteint, avec la mention « Épuisé », pour dire « pas aujourd'hui ».
   ========================================================================== */
.badge--epuise { background: var(--lave); color: #fff; }

.produit--epuise .produit__photo img {
  filter: grayscale(1);
  opacity: 0.45;
}
.produit--epuise .produit__nom,
.produit--epuise .produit__prix { color: var(--texte-doux); }
.produit--epuise .produit__prix { text-decoration: line-through; }
.produit--epuise .produit__desc { opacity: 0.7; }
.produit--epuise .btn {
  background: transparent;
  color: var(--texte-doux);
  border: 1px solid var(--bordure);
  cursor: not-allowed;
}

.produit__haut {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.produit__nom { margin: 0; font-size: 1.2rem; }
.produit__prix {
  font-family: var(--titre);
  font-size: 1.45rem;
  color: var(--lave);
  white-space: nowrap;
}
.produit__desc {
  color: var(--texte-doux);
  font-size: 0.94rem;
  margin: 8px 0 16px;
  flex-grow: 1;
}
.produit__indispo {
  color: var(--texte-doux);
  font-style: italic;
  font-size: 0.9rem;
}

/* --- Champs de formulaire --- */
.champ { margin-bottom: 18px; }
.champ[hidden] { display: none; }
.champ label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.champ .obligatoire { color: var(--lave); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-s);
  font-family: var(--corps);
  font-size: 1rem;
  background: #fff;
  color: var(--texte);
}
.champ textarea { min-height: 90px; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--lave);
  outline: 2px solid rgba(216, 52, 31, 0.18);
}
.champ__aide { font-size: 0.84rem; color: var(--texte-doux); margin: 5px 0 0; }
.champ__erreur { color: var(--lave); font-size: 0.86rem; margin: 5px 0 0; display: none; }
.champ--invalide input, .champ--invalide select { border-color: var(--lave); }
.champ--invalide .champ__erreur { display: block; }

/* Rappel « on vous connaît », au-dessus du formulaire */
.client-connu {
  background: rgba(63, 143, 79, 0.1);
  border-left: 4px solid var(--vert);
  border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.client-connu[hidden] { display: none; }
.client-connu a { margin-left: 4px; white-space: nowrap; }

/* Bandeau « le retrait n'est pas pour aujourd'hui ».
   Il est volontairement voyant et placé AVANT la liste des heures : c'est le
   seul endroit où le client peut encore se rendre compte que le service du
   jour est terminé. Un simple texte d'aide sous le champ ne se lisait pas. */
.jour-autre {
  display: block;
  /* Orange soutenu plutôt que le rouge des erreurs : rien n'est cassé,
     c'est un avertissement à lire. */
  background: rgba(240, 160, 44, 0.16);
  border: 2px solid #c47000;
  color: #6b3d00;
  border-radius: var(--rayon-s);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.jour-autre[hidden] { display: none; }
.jour-autre strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.jour-autre span { display: block; font-size: 0.94rem; }

/* Cases a cocher des supplements */
.cases { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.case {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: #fff;
  cursor: pointer;
  font-size: 0.92rem;
}
.case:hover { border-color: var(--lave); }
.case input { width: auto; margin: 0; accent-color: var(--lave); }

/* Précision demandée par un supplément (quel fromage ?). Elle occupe toute
   la largeur : sur une grille de cases, une liste déroulante glissée dans
   une colonne se lisait comme un supplément de plus. */
.case__precision {
  grid-column: 1 / -1;
  margin: -2px 0 4px;
  border-color: var(--lave);
}

/* ==========================================================================
   5. PAGES
   ========================================================================== */

/* --- Banniere d'accueil --- */
.hero {
  position: relative;
  /* La photo est assombrie par un dégradé : sans lui, le texte blanc
     devient illisible sur les zones claires du pain et des frites. */
  background:
    linear-gradient(to bottom,
      rgba(20, 17, 15, 0.78) 0%,
      rgba(20, 17, 15, 0.62) 45%,
      rgba(20, 17, 15, 0.88) 100%),
    url('../img/hero-mobile.jpg') center / cover no-repeat;
  background-color: var(--noir);   /* le temps que la photo arrive */
  color: var(--creme);
  padding: 104px 0 112px;
  overflow: hidden;
  text-align: center;
}

/* Au-delà du mobile, on sert la grande version */
@media (min-width: 720px) {
  .hero {
    background:
      linear-gradient(to bottom,
        rgba(20, 17, 15, 0.76) 0%,
        rgba(20, 17, 15, 0.58) 45%,
        rgba(20, 17, 15, 0.88) 100%),
      url('../img/hero.jpg') center / cover no-repeat;
    background-color: var(--noir);
  }
}

/* La vidéo se glisse SOUS le dégradé assombrissant, au-dessus de la photo.
   Si elle ne charge pas, la photo reste visible : rien ne casse. */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero__video[hidden] { display: none; }
.hero__video--visible { opacity: 1; }

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Le même dégradé que sur la photo, sinon le texte blanc devient illisible
   dès que la vidéo passe sur une image claire. */
.hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(20, 17, 15, 0.76) 0%,
    rgba(20, 17, 15, 0.58) 45%,
    rgba(20, 17, 15, 0.88) 100%);
}


.hero::after {
  /* halo de braise, en surimpression discrete */
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -220px;
  background: radial-gradient(circle, rgba(240, 160, 44, 0.22), transparent 68%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }
.hero h1 { color: var(--creme); margin-bottom: 14px; }
.hero h1 em { color: var(--braise); font-style: normal; }
.hero__accroche {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: rgba(247, 241, 232, 0.85);
  margin-bottom: 30px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Bandeau ouvert / ferme (rempli par main.js) */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(247, 241, 232, 0.12);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.statut__point {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--texte-doux);
}
.statut--ouvert .statut__point { background: #5fd97a; box-shadow: 0 0 0 4px rgba(95, 217, 122, 0.25); }
.statut--ferme .statut__point { background: var(--lave-clair); }

/* --- Bandeau des atouts --- */
.atouts { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.atout { text-align: center; }
.atout__icone {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lave);
  color: #fff;
}
.atout__icone svg { width: 26px; height: 26px; }
.atout h3 { margin-bottom: 6px; }
.atout p { color: var(--texte-doux); font-size: 0.94rem; margin: 0; }

/* --- Tableau des horaires --- */
.horaires { max-width: 560px; margin: 0 auto; }
.horaires__ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px dashed var(--bordure);
}
.section--sombre .horaires__ligne { border-color: rgba(247, 241, 232, 0.16); }
.horaires__ligne:last-child { border-bottom: 0; }
.horaires__jour { font-weight: 700; }
.horaires__heures { text-align: right; color: var(--texte-doux); }
.section--sombre .horaires__heures { color: rgba(247, 241, 232, 0.75); }
.horaires__ligne--aujourdhui {
  background: rgba(240, 160, 44, 0.14);
  border-radius: var(--rayon-s);
  padding-left: 12px;
  padding-right: 12px;
}
.horaires__ligne--ferme .horaires__heures { color: var(--lave-clair); }

/* --- Livraison --- */
.livraison { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.livraison__lien {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: var(--rayon);
  background: #fff;
  border: 1px solid var(--bordure);
  font-weight: 700;
  color: var(--texte);
  box-shadow: var(--ombre);
  transition: transform 0.15s;
}
.livraison__lien:hover { transform: translateY(-3px); text-decoration: none; }

/* --- Contact / plan --- */
.contact-grille {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact__bloc { margin-bottom: 24px; }
.contact__bloc h3 { margin-bottom: 4px; }
.contact__bloc p { margin: 0; color: var(--texte-doux); }
.contact__bloc a { font-weight: 700; }
.carte-plan {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* --- Pages de texte (mentions legales) --- */
.texte-legal { max-width: 760px; }
.texte-legal h2 {
  font-size: 1.35rem;
  margin-top: 38px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lave);
}
.texte-legal ul { padding-left: 20px; }
.texte-legal li { margin-bottom: 7px; }

/* --- Page carte : navigation par categories --- */
.categories-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: var(--creme);
  border-bottom: 1px solid var(--bordure);
  padding: 12px 0;
  margin-bottom: 34px;
}
.categories-nav__liste {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.categories-nav a {
  white-space: nowrap;
  padding: 9px 17px;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--bordure);
  color: var(--texte);
  font-size: 0.92rem;
  font-weight: 600;
}
.categories-nav a:hover, .categories-nav a.actif {
  background: var(--lave);
  color: #fff;
  border-color: var(--lave);
  text-decoration: none;
}

.categorie { margin-bottom: 52px; scroll-margin-top: 140px; }
.categorie__entete { margin-bottom: 22px; }
.categorie__entete h2 { margin-bottom: 2px; }
.categorie__entete p { color: var(--texte-doux); margin: 0; }

/* --- Barre de panier, collée en bas de l'écran --- */
.barre-panier {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(20, 17, 15, 0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--lave);
  /* env(safe-area-inset-bottom) : évite la barre gestuelle des iPhone */
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.barre-panier[hidden] { display: none; }
.barre-panier--visible { transform: translateY(0); }

.barre-panier__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.barre-panier__compte {
  color: var(--creme);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.barre-panier .btn { flex-shrink: 0; }

/* Sans ce dégagement, la barre masque la dernière fiche produit. */
body.avec-barre-panier { padding-bottom: 92px; }

@media (max-width: 520px) {
  .barre-panier__compte { font-size: 0.88rem; }
  .barre-panier .btn { padding: 12px 18px; font-size: 0.92rem; }
}

/* --- Fenetre de personnalisation d'un produit --- */
.modale[hidden] { display: none; }
.modale {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 17, 15, 0.6);
}
.modale__boite {
  background: var(--creme);
  border-radius: var(--rayon);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--ombre-forte);
}
.modale__entete {
  position: sticky;
  top: 0;
  background: var(--creme);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--bordure);
}
.modale__entete h2 { margin: 0; font-size: 1.5rem; }
.modale__fermer {
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--texte-doux);
  padding: 0 4px;
}
.modale__corps { padding: 20px 24px; }

/* Photo du produit en tete de la fenetre de personnalisation */
.modale__photo {
  aspect-ratio: 16 / 9;
  border-radius: var(--rayon-s);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--creme-doux);
}
.modale__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modale__pied {
  position: sticky;
  bottom: 0;
  background: var(--creme);
  padding: 16px 24px 22px;
  border-top: 1px solid var(--bordure);
}

/* Le detail de la formule, revele quand le client passe en menu.
   Le liseré et le retrait montrent que ces choix dependent du menu. */
.formule {
  border-left: 3px solid var(--braise);
  background: rgba(240, 160, 44, 0.07);
  border-radius: 0 var(--rayon-s) var(--rayon-s) 0;
  padding: 16px 16px 2px;
  margin: -4px 0 18px;
}
.formule[hidden] { display: none; }
.formule .champ:last-child { margin-bottom: 14px; }

/* La case « En menu » elle-meme, mise en avant */
.case--menu { border-color: var(--braise); }
.case--menu:has(input:checked) { background: rgba(240, 160, 44, 0.14); }

/* Selecteur de quantite */
.quantite { display: flex; align-items: center; gap: 14px; }
.quantite button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--bordure);
  background: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--texte);
}
.quantite button:hover { border-color: var(--lave); color: var(--lave); }
.quantite output { font-weight: 700; min-width: 24px; text-align: center; }

/* ==========================================================================
   6. PANIER ET COMMANDE
   ========================================================================== */
.commande-grille {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.35fr 1fr;
  align-items: start;
}

.panier__vide { text-align: center; padding: 56px 20px; }
.panier__vide p { color: var(--texte-doux); }

.ligne-panier {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--bordure);
}

/* Vignette du produit dans le panier */
.ligne-panier__photo {
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: var(--rayon-s);
  overflow: hidden;
  background: var(--creme-doux);
}
.ligne-panier__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ligne-panier__corps { flex-grow: 1; }
.ligne-panier__nom { font-weight: 700; margin: 0 0 3px; }
.ligne-panier__options {
  font-size: 0.88rem;
  color: var(--texte-doux);
  margin: 0 0 9px;
}
.ligne-panier__prix { font-weight: 700; white-space: nowrap; }
.ligne-panier__retirer {
  background: none;
  border: 0;
  color: var(--texte-doux);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 12px;
}
.ligne-panier__retirer:hover { color: var(--lave); }

.recap {
  background: #fff;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 24px;
  box-shadow: var(--ombre);
  position: sticky;
  top: 90px;
}
.recap__ligne {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  color: var(--texte-doux);
  font-size: 0.95rem;
}
.recap__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0 4px;
  margin-top: 10px;
  border-top: 2px solid var(--noir);
  font-family: var(--titre);
  font-size: 1.6rem;
}

.encart {
  padding: 14px 16px;
  border-radius: var(--rayon-s);
  background: rgba(240, 160, 44, 0.14);
  border-left: 4px solid var(--braise);
  font-size: 0.9rem;
  margin: 18px 0;
}
.encart strong { display: block; margin-bottom: 3px; }

/* Variante d'alerte : le restaurant ne peut pas prendre la commande.
   Le rouge tranche avec l'orange des encarts d'information : on ne peut pas
   la confondre avec le rappel du paiement au retrait, juste a cote. */
.encart--ferme {
  background: rgba(199, 46, 32, 0.10);
  border-left-color: var(--lave);
}

/* Liste des moyens de paiement : des pastilles, plus lisibles qu'une phrase
   à rallonge, et repérables d'un coup d'œil. */
.paiements {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 10px 0 0;
}
.paiements li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--bordure);
  border-radius: 50px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--texte);
}
.paiements li::before {
  content: '✓';
  color: var(--vert);
  font-weight: 700;
}

/* Choix emporter / livraison */
.choix-mode { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.choix-mode label {
  display: block;
  padding: 14px;
  text-align: center;
  border: 2px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
.choix-mode input { position: absolute; opacity: 0; pointer-events: none; }
.choix-mode input:checked + span { color: var(--lave); }
.choix-mode label:has(input:checked) { border-color: var(--lave); background: rgba(216, 52, 31, 0.06); }

/* Message de confirmation apres envoi */
.confirmation { text-align: center; padding: 44px 20px; }
.confirmation__icone {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */
.pied {
  background: var(--noir);
  color: rgba(247, 241, 232, 0.72);
  padding: 52px 0 26px;
  font-size: 0.94rem;
}
.pied__grille {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 34px;
}
.pied h3 { color: var(--creme); font-size: 1.05rem; margin-bottom: 12px; }
.pied a { color: rgba(247, 241, 232, 0.72); }
.pied a:hover { color: var(--braise); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 7px; }
.pied__bas {
  border-top: 1px solid rgba(247, 241, 232, 0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(247, 241, 232, 0.45);
}

/* ==========================================================================
   8. RESPONSIVE  —  mobile d'abord dans l'esprit, ajustements ici
   ========================================================================== */
@media (max-width: 860px) {
  .contact-grille,
  .commande-grille { grid-template-columns: 1fr; }
  .recap { position: static; }
}

@media (max-width: 720px) {
  .burger-btn { display: block; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--noir);
    border-bottom: 1px solid rgba(247, 241, 232, 0.12);
    padding: 8px 12px 16px;
    display: none;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 13px 14px; border-radius: var(--rayon-s); }

  .nav__panier { align-self: flex-start; }
  .compteur-panier { position: static; margin-left: 8px; }

  .section { padding: 52px 0; }
  .hero { padding: 60px 0 66px; }
  .hero__actions .btn { width: 100%; }
  .choix-mode { grid-template-columns: 1fr; }
  .categories-nav { top: 68px; }
}

/* Respect du reglage systeme "moins d'animations" */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Impression : on masque la navigation */
@media print {
  .entete, .categories-nav, .pied, .btn { display: none !important; }
  body { background: #fff; }
}

/* Ligne de panier dont le produit vient d'être épuisé : elle doit sauter aux
   yeux, c'est elle qui empêche la commande de partir. */
.ligne-panier--epuise {
  border: 1px solid var(--lave);
  background: rgba(216, 52, 31, 0.06);
}
.ligne-panier--epuise .ligne-panier__nom { text-decoration: line-through; }
.ligne-panier--epuise .ligne-panier__photo img { filter: grayscale(1); opacity: 0.5; }

/* ==========================================================================
   CARTE DE FIDÉLITÉ
   --------------------------------------------------------------------------
   Dix pastilles plutôt qu'un compteur « 8/10 » : une carte presque pleine
   sous les yeux donne envie de la finir, un chiffre ne dit rien.
   ========================================================================== */
.fidelite {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  background: #fff;
}
.fidelite[hidden] { display: none; }

.fidelite__entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.fidelite__entete strong { font-size: 1rem; }
.fidelite__entete span { color: var(--texte-doux); font-size: 0.9rem; }

.fidelite__tampons {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.tampon {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--bordure);
  border-radius: 50%;
  color: transparent;
  font-size: 0.9rem;
  line-height: 1;
}
.tampon--pris {
  border-style: solid;
  border-color: var(--lave);
  background: var(--lave);
  color: #fff;
}
/* La prochaine case est soulignée : c'est celle que cette commande remplira. */
.tampon--suivant { border-color: var(--braise); }

.fidelite__message {
  margin: 12px 0 0;
  font-size: 0.93rem;
  color: var(--texte-doux);
}

/* Récompense disponible : la carte change de ton, on ne peut pas la manquer. */
.fidelite--recompense {
  border-color: var(--vert);
  background: rgba(63, 143, 79, 0.08);
}
.fidelite--recompense .fidelite__message {
  color: var(--vert);
  font-weight: 700;
}

.confirmation__fidelite {
  margin: 14px 0 20px;
  padding: 12px 16px;
  border-radius: var(--rayon-s);
  background: rgba(240, 160, 44, 0.14);
  font-weight: 600;
}
.confirmation__fidelite[hidden] { display: none; }

@media (max-width: 420px) {
  /* Dix pastilles sur un petit écran deviennent minuscules : deux rangées. */
  .fidelite__tampons { grid-template-columns: repeat(5, 1fr); }
}

/* La règle du programme, sous la carte : lue ici, elle évite la discussion
   au comptoir le jour où le client réclame sa récompense. */
.fidelite__regle {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--bordure);
  font-size: 0.82rem;
  color: var(--texte-doux);
}

/* Panier sous le seuil : dit pendant qu'on peut encore ajouter des frites. */
.fidelite__seuil {
  margin: 10px 0 0;
  padding: 9px 12px;
  border-radius: var(--rayon-s);
  background: rgba(240, 160, 44, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
}
.fidelite__seuil[hidden] { display: none; }

/* ==========================================================================
   SUIVI DE COMMANDE
   ========================================================================== */
.suivi-lien {
  margin: 22px 0;
  padding: 18px;
  border-radius: var(--rayon);
  background: rgba(63, 143, 79, 0.1);
  border: 1px solid var(--vert);
  text-align: left;
}
.suivi-lien[hidden] { display: none; }
.suivi-lien strong { display: block; margin-bottom: 6px; }
.suivi-lien p { font-size: 0.92rem; color: var(--texte-doux); }

.suivi { max-width: 620px; margin: 0 auto; }
.suivi__titre {
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: 6px 0 10px;
}
.suivi__titre--prete { color: var(--vert); }
.suivi__titre--bientot { color: var(--braise); }
.suivi__titre--annulee { color: var(--lave); }
.suivi__detail { font-size: 1.05rem; color: var(--texte-doux); }
.suivi__erreur { text-align: center; padding: 40px 0; }

/* Les trois étapes, en ligne : reçue, en préparation, prête. */
.etapes {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 26px 0;
  gap: 4px;
}
.etape {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-doux);
}
.etape__point {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--bordure);
  margin-bottom: 8px;
}
.etape--faite .etape__point { background: var(--vert); }
.etape--faite .etape__nom { color: var(--texte); }
.etape--en-cours .etape__point { background: var(--braise); }
.etape--en-cours .etape__nom { color: var(--texte); font-weight: 700; }
