@charset "UTF-8";

/* ==========================================================================
   RestoConnect — feuille de style de la boutique
   --------------------------------------------------------------------------
   Posée sur Bootstrap, chargé juste avant : la remise à zéro, la grille et les
   composants interactifs viennent de lui, l'habillage vient d'ici.

   Les couleurs de marque sont injectées par le gabarit depuis le restaurant
   courant (--marque / --marque-fonce), tout le reste en découle : la boutique
   porte l'identité de l'enseigne, jamais la nôtre.
   ========================================================================== */

:root {
  --marque: #2563eb;
  --marque-fonce: #1d4ed8;
  --marque-clair: #eff4ff;

  --encre: #0d1526;
  --encre-2: #344054;
  --encre-3: #667085;
  --encre-4: #98a2b3;

  --fond: #f7f8fa;
  --surface: #ffffff;
  --bordure: #e8eaee;
  --bordure-forte: #d6dae1;

  --vert: #12996b;
  --vert-clair: #e7f7f0;
  --ambre: #d9820a;
  --ambre-clair: #fdf3e4;
  --rouge: #d92d20;
  --rouge-clair: #fdeceb;

  --r-s: 9px;
  --r-m: 13px;
  --r-l: 18px;
  --r-xl: 26px;
  --r-pilule: 999px;

  --ombre-s: 0 1px 2px rgba(13, 21, 38, .05);
  --ombre-m: 0 4px 14px rgba(13, 21, 38, .07);
  --ombre-l: 0 16px 40px rgba(13, 21, 38, .12);

  --largeur: 1180px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--encre);
  --bs-border-color: var(--bordure);
  --bs-border-radius: var(--r-s);
}

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

body {
  background: var(--fond);
  color: var(--encre);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

/*
 * `height: auto` autant que `max-width` : c'est l'oubli qui déforme.
 * Une image portant des attributs width/height que le CSS rétrécit garde sa
 * hauteur d'origine et s'écrase. Les éléments qui veulent une hauteur imposée
 * — vignettes, bannières — la redéclarent, et leur sélecteur l'emporte.
 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  line-height: 1.18; letter-spacing: -.025em;
}
p { margin: 0; }

.bi { display: inline-block; vertical-align: -.08em; }

/* Les prix et quantités s'alignent en colonne. */
.prix, .plat-prix, .fiche-prix, .panier-total-ligne, .recap-ligne span { font-variant-numeric: tabular-nums; }

.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 22px; }
.pile { display: flex; flex-direction: column; }
.ligne { display: flex; align-items: center; }
.ecart { justify-content: space-between; }
.pousse { margin-left: auto; }

/* ---------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pilule);
  font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primaire { background: var(--marque); color: #fff; }
.btn-primaire:hover { background: var(--marque-fonce); }

.btn-clair { background: #fff; color: var(--encre); border-color: var(--bordure-forte); }
.btn-clair:hover { border-color: var(--encre-4); }

.btn-fantome { background: transparent; color: var(--encre-2); border-color: var(--bordure); }
.btn-fantome:hover { background: #fff; }

.btn-sombre { background: var(--encre); color: #fff; }
.btn-sombre:hover { background: #1e293b; }

.btn-danger { background: transparent; color: var(--rouge); border-color: var(--rouge-clair); }
.btn-danger:hover { background: var(--rouge-clair); }

.btn-bloc { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled], .btn.desactive { opacity: .5; pointer-events: none; }

/* -------------------------------------------------------------- étiquettes */

.puce {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pilule);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.puce-bleue { background: var(--marque-clair); color: var(--marque-fonce); }
.puce-verte { background: var(--vert-clair); color: var(--vert); }
.puce-ambre { background: var(--ambre-clair); color: var(--ambre); }
.puce-rouge { background: var(--rouge-clair); color: var(--rouge); }
.puce-grise { background: #f1f3f6; color: var(--encre-3); }

/* ------------------------------------------------------------------ cartes */

.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--r-l);
  box-shadow: var(--ombre-s);
}
.carte-corps { padding: 22px; }
.carte-tete {
  padding: 18px 22px; border-bottom: 1px solid var(--bordure);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.carte-tete h3 { font-size: 16px; }

/* ---------------------------------------------------------------- messages */

.alerte {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--r-m);
  font-size: 14px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.alerte-succes { background: var(--vert-clair); color: #14532d; border-color: #bbe7cd; }
.alerte-erreur { background: var(--rouge-clair); color: #7f1d1d; border-color: #f6c9c9; }
.alerte-info { background: var(--marque-clair); color: #1e3a8a; border-color: #cfe0ff; }

/* --------------------------------------------------------------- formulaire */

.champ { margin-bottom: 16px; }
.champ > label,
.etiquette {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 600; color: var(--encre-2);
}
.aide { font-size: 12px; color: var(--encre-3); margin-top: 5px; }
.erreur-champ { font-size: 12.5px; color: var(--rouge); margin-top: 5px; }

.saisie, select.saisie, textarea.saisie {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--bordure-forte);
  border-radius: var(--r-m);
  background: #fff; color: var(--encre);
  font: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.saisie::placeholder { color: var(--encre-4); }
.saisie:focus {
  outline: none;
  border-color: var(--marque);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
textarea.saisie { min-height: 92px; resize: vertical; }
select.saisie { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' d='M1.5 1.75 6 6.25l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.saisie.en-erreur { border-color: var(--rouge); }

.grille-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.case { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--encre-2); }
.case input { margin-top: 3px; accent-color: var(--marque); width: 16px; height: 16px; }

/* ------------------------------------------------------------------ entête */

.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete-interieur { display: flex; align-items: center; gap: 26px; height: 66px; }

.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.03em; }
.marque-jeton {
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: var(--marque); color: #fff;
  display: grid; place-items: center;
  overflow: hidden;
}
/* `contain` et non `cover` : un logo doit être vu en entier. Le recadrer
   coupe le nom de l'enseigne, ce qui est pire que de laisser un peu d'air
   autour. On enlève aussi le fond de marque quand une image l'occupe. */
.marque-jeton:has(img) { background: transparent; }
.marque-jeton img { width: 100%; height: 100%; object-fit: contain; }

.nav-principale { display: flex; align-items: center; gap: 4px; }
.nav-principale a {
  padding: 8px 14px; border-radius: var(--r-pilule);
  font-size: 14px; font-weight: 500; color: var(--encre-2);
}
.nav-principale a:hover { background: #f1f3f6; color: var(--encre); }
.nav-principale a.actif { color: var(--marque); font-weight: 600; }

.entete-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.jeton-lieu {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pilule);
  border: 1px solid var(--bordure); background: #fff;
  font-size: 13px; color: var(--encre-2); font-weight: 500;
}

.icone-bouton {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--bordure); background: #fff;
  display: grid; place-items: center; color: var(--encre-2);
}
.icone-bouton:hover { border-color: var(--encre-4); }
.icone-bouton .compteur {
  position: absolute; transform: translate(12px, -12px);
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pilule); background: var(--marque); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}

.burger { display: none; }

/* Le tiroir de navigation mobile, habillé aux couleurs de l'enseigne. */
.offcanvas { --bs-offcanvas-width: 300px; }
.offcanvas-header { border-bottom: 1px solid var(--bordure); padding: 18px 22px; }
.offcanvas-body { padding: 12px 22px 26px; }
.nav-mobile a {
  display: block; padding: 13px 4px; font-size: 15.5px; font-weight: 550;
  border-bottom: 1px solid var(--bordure);
}
.nav-mobile a:last-of-type { border-bottom: none; }

/* -------------------------------------------------------------------- héros */

.heros {
  position: relative; overflow: hidden;
  /* Une hauteur qui suit l'écran : fixe, le héros écrase le contenu sur un
     petit portable et laisse un vide sur un grand écran. */
  min-height: clamp(360px, 46vh, 520px);
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(120deg, #172554, #1e3a8a 55%, #1d4ed8);
}

/* Le fond, hors du flux. Le héros étant une boîte flexible, une image
   laissée dans le flux deviendrait un élément flexible de plus et se
   partagerait la largeur avec le texte — au lieu de passer derrière. */
.heros-fond { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.heros > .conteneur { position: relative; z-index: 2; width: 100%; }

.heros-image { position: absolute; inset: 0; }
.heros-image img { width: 100%; height: 100%; object-fit: cover; }

/* Le carrousel occupe le fond du héros, sous le voile et le texte : les
   images défilent, le message reste lisible. */
.heros-carrousel { position: absolute; inset: 0; pointer-events: auto; }
.heros-carrousel .carousel-inner,
.heros-carrousel .carousel-item { height: 100%; }
/* `object-fit: cover` sur une hauteur imposée : l'image remplit sans jamais
   s'étirer. C'est ce qui garantit qu'aucun rapport n'est déformé, quelle que
   soit la taille de l'écran ou celle de la photo envoyée. */
.heros-carrousel .carousel-item img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block;
}

/* Un fondu plutôt qu'un glissement : sur une image plein cadre, le
   glissement attire l'œil vers le bord au lieu du contenu. */
.heros-carrousel .carousel-item {
  transition: opacity .7s ease; opacity: 0;
}
.heros-carrousel .carousel-item.active,
.heros-carrousel .carousel-item-next,
.heros-carrousel .carousel-item-prev { opacity: 1; }
.heros-carrousel .carousel-item-next,
.heros-carrousel .carousel-item-prev,
.heros-carrousel .carousel-item.active.carousel-item-start,
.heros-carrousel .carousel-item.active.carousel-item-end { transform: none; }

.heros-legende {
  position: absolute; right: 24px; bottom: 54px; z-index: 3;
  padding: 7px 15px; border-radius: var(--r-pilule);
  background: rgba(2, 6, 23, .55); backdrop-filter: blur(6px);
  color: #fff; font-size: 13px; font-weight: 550;
  max-width: 46%; text-align: right;
}

.heros-puces { z-index: 3; margin-bottom: 18px; pointer-events: auto; }
.heros-puces button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, .45); opacity: 1;
  margin: 0 4px; transition: width .2s, background .2s;
}
.heros-puces button.active { width: 26px; border-radius: var(--r-pilule); background: #fff; }

@media (max-width: 760px) {
  .heros-legende { display: none; }
}

/* Personne ne demande à voir une image bouger. Ceux qui l'ont dit à leur
   système d'exploitation méritent qu'on les écoute. */
@media (prefers-reduced-motion: reduce) {
  .heros-carrousel .carousel-item { transition: none; }
}
.heros-voile {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(2, 6, 23, .88) 0%, rgba(2, 6, 23, .62) 46%, rgba(2, 6, 23, .18) 100%);
}
.heros-contenu { position: relative; padding: 74px 0; max-width: 560px; }
.heros-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; margin-bottom: 20px;
  border-radius: var(--r-pilule);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.heros h1 { font-size: 46px; font-weight: 800; letter-spacing: -.035em; }
.heros h1 em { display: block; font-style: italic; color: #93b4fd; }
.heros p { margin-top: 18px; font-size: 16px; color: rgba(255, 255, 255, .82); max-width: 470px; }
.heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.heros-actions .btn-clair { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.heros-actions .btn-clair:hover { background: rgba(255, 255, 255, .18); }

/* ------------------------------------------------------------------ atouts */

.atouts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: -34px; position: relative; z-index: 5;
}
.atout {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--r-m); box-shadow: var(--ombre-m);
}
.atout-icone {
  width: 38px; height: 38px; flex: none; border-radius: var(--r-s);
  background: var(--marque-clair); color: var(--marque);
  display: grid; place-items: center;
}
.atout strong { display: block; font-size: 14px; }
.atout span { font-size: 12.5px; color: var(--encre-3); }

/* ---------------------------------------------------------------- sections */

.section { padding: 62px 0; }
.section-serree { padding: 38px 0; }

.section-tete {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; margin-bottom: 26px;
}
.section-tete h2 { font-size: 27px; font-weight: 800; }
.section-tete p { color: var(--encre-3); font-size: 14px; margin-top: 5px; }

.outils-carte { display: flex; align-items: center; gap: 10px; }
.recherche { position: relative; }
.recherche .saisie { padding-left: 38px; width: 250px; border-radius: var(--r-pilule); }
.recherche .bi { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--encre-4); }

/* --------------------------------------------------------- onglets filtres */

.onglets {
  display: flex; gap: 4px; padding: 5px;
  background: #eef0f4; border-radius: var(--r-pilule);
  margin: 0 auto 30px; width: fit-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.onglets::-webkit-scrollbar { display: none; }
.onglets a {
  padding: 8px 20px; border-radius: var(--r-pilule);
  font-size: 13.5px; font-weight: 600; color: var(--encre-3);
  white-space: nowrap;
}
.onglets a:hover { color: var(--encre); }
.onglets a.actif { background: #fff; color: var(--marque); box-shadow: var(--ombre-s); }

/* ------------------------------------------------------------ grille plats */

.grille-plats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 20px;
}

.plat-carte {
  background: #fff; border: 1px solid var(--bordure);
  border-radius: var(--r-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.plat-carte:hover { box-shadow: var(--ombre-l); transform: translateY(-3px); border-color: var(--bordure-forte); }

.plat-media { position: relative; aspect-ratio: 4 / 3; background: #eef0f4; }
.plat-media img { width: 100%; height: 100%; object-fit: cover; }
.plat-media .vide { width: 100%; height: 100%; display: grid; place-items: center; color: var(--encre-4); }

.coeur {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); border: none;
  display: grid; place-items: center; color: var(--encre-3);
  box-shadow: var(--ombre-s);
}
.coeur:hover { color: var(--rouge); }
.coeur.aime { color: var(--rouge); }

.note-jeton {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-pilule);
  background: rgba(255, 255, 255, .95);
  font-size: 11.5px; font-weight: 700; color: var(--encre);
  box-shadow: var(--ombre-s);
}
.note-jeton .bi { color: #f0b429; }

.ruban {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: var(--r-pilule);
  background: var(--marque); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.ruban-promo { background: var(--rouge); }

.plat-corps { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.plat-corps h3 { font-size: 14.5px; font-weight: 700; }
.plat-desc {
  font-size: 12.5px; color: var(--encre-3); margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px;
}
.plat-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 11px;
  font-size: 11px; color: var(--encre-4); text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
}
.plat-meta span { display: inline-flex; align-items: center; gap: 4px; }

.plat-pied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--bordure);
}
.plat-prix { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.plat-prix small { font-size: 11px; font-weight: 600; color: var(--encre-4); margin-left: 2px; }
.plat-prix del { display: block; font-size: 11.5px; font-weight: 500; color: var(--encre-4); }
.epuise { font-size: 12px; font-weight: 600; color: var(--encre-4); }

.vide-etat {
  padding: 60px 20px; text-align: center; color: var(--encre-3);
  background: #fff; border: 1px dashed var(--bordure-forte); border-radius: var(--r-l);
}
.vide-etat h3 { font-size: 17px; color: var(--encre); margin-bottom: 6px; }

/* ------------------------------------------------------------ fiche du plat */

.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.fiche-media { border-radius: var(--r-xl); overflow: hidden; background: #eef0f4; aspect-ratio: 1; position: relative; }
.fiche-media img { width: 100%; height: 100%; object-fit: cover; }
.fiche h1 { font-size: 31px; font-weight: 800; margin-top: 12px; }
.fiche-accroche { color: var(--encre-3); margin-top: 10px; font-size: 15px; }
.fiche-prix { font-size: 30px; font-weight: 800; margin: 20px 0; letter-spacing: -.03em; }
.fiche-prix del { font-size: 17px; font-weight: 500; color: var(--encre-4); margin-left: 10px; }

.groupe-options { border-top: 1px solid var(--bordure); padding: 18px 0; }
.groupe-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.groupe-tete strong { font-size: 14.5px; }
.option-ligne {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--bordure); border-radius: var(--r-m);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.option-ligne:hover { border-color: var(--bordure-forte); }
.option-ligne input { accent-color: var(--marque); width: 17px; height: 17px; }
.option-ligne input:checked ~ span:first-of-type { font-weight: 600; }
.option-ligne .prix-option { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--marque); }

.quantite { display: inline-flex; align-items: center; border: 1px solid var(--bordure-forte); border-radius: var(--r-pilule); }
.quantite button {
  width: 38px; height: 38px; border: none; background: none;
  color: var(--encre-2); font-size: 17px; display: grid; place-items: center;
}
.quantite button:hover { color: var(--marque); }
.quantite input {
  width: 42px; border: none; text-align: center; font-weight: 700; font-size: 14px;
  background: none; color: var(--encre); -moz-appearance: textfield;
}
.quantite input::-webkit-outer-spin-button,
.quantite input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------------------------ panier */

.deux-colonnes { display: grid; grid-template-columns: 1fr 372px; gap: 26px; align-items: start; }

.panier-ligne {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--bordure);
}
.panier-ligne:last-child { border-bottom: none; }
.panier-vignette {
  width: 78px; height: 78px; flex: none; border-radius: var(--r-m);
  overflow: hidden; background: #eef0f4;
}
.panier-vignette img { width: 100%; height: 100%; object-fit: cover; }
.panier-infos { flex: 1; min-width: 0; }
.panier-infos h4 { font-size: 14.5px; font-weight: 700; }
.panier-options { font-size: 12.5px; color: var(--encre-3); margin-top: 3px; }
.panier-note { font-size: 12.5px; color: var(--ambre); margin-top: 3px; font-style: italic; }
.panier-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.panier-total-ligne { text-align: right; font-weight: 800; font-size: 15px; white-space: nowrap; }

.recap { position: sticky; top: 84px; }
.recap-ligne {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 14px; color: var(--encre-2);
}
.recap-ligne.remise { color: var(--vert); }
.recap-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--bordure);
  font-size: 19px; font-weight: 800;
}
.recap-total span:first-child { font-size: 14px; font-weight: 600; color: var(--encre-2); }

.promo-forme { display: flex; gap: 8px; margin-top: 14px; }
.promo-forme .saisie { border-radius: var(--r-pilule); text-transform: uppercase; }
.promo-actif {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: var(--vert-clair); border-radius: var(--r-m);
  font-size: 13px; color: #14532d; font-weight: 600;
}

/* --------------------------------------------------------- choix des modes */

.choix-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.choix-mode {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border: 1px solid var(--bordure); border-radius: var(--r-m);
  cursor: pointer; background: #fff; text-align: left;
  transition: border-color .12s, box-shadow .12s;
}
.choix-mode input { position: absolute; opacity: 0; pointer-events: none; }
.choix-mode strong { font-size: 14px; }
.choix-mode span { font-size: 12px; color: var(--encre-3); }
.choix-mode:hover { border-color: var(--bordure-forte); }
.choix-mode:has(input:checked) {
  border-color: var(--marque); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background: var(--marque-clair);
}

/* Le choix du règlement : chaque moyen porte sa consigne, parce qu'un client
   qui choisit « MTN MoMo » doit voir tout de suite vers quel numéro payer. */
.moyen-choix {
  position: relative; display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--bordure); border-radius: var(--r-m);
  cursor: pointer; background: #fff;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.moyen-choix:last-child { margin-bottom: 0; }
.moyen-choix input { position: absolute; opacity: 0; pointer-events: none; }
.moyen-choix:hover { border-color: var(--bordure-forte); }
.moyen-choix:has(input:checked) {
  border-color: var(--marque); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  background: var(--marque-clair);
}
.moyen-choix-pastille {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.moyen-choix-texte { display: flex; flex-direction: column; gap: 3px; }
.moyen-choix-texte strong { font-size: 14.5px; }
.moyen-choix-texte span { font-size: 12.5px; color: var(--encre-3); line-height: 1.5; }

/* ------------------------------------------------------------------- suivi */

.parcours { display: flex; flex-direction: column; gap: 0; }
.parcours-etape { display: flex; gap: 16px; }
.parcours-rail { display: flex; flex-direction: column; align-items: center; }
.parcours-point {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--bordure-forte); background: #fff;
  display: grid; place-items: center; color: var(--encre-4); font-size: 12px;
}
.parcours-barre { width: 2px; flex: 1; background: var(--bordure); min-height: 26px; }
.parcours-etape.faite .parcours-point { background: var(--vert); border-color: var(--vert); color: #fff; }
.parcours-etape.faite .parcours-barre { background: var(--vert); }
.parcours-etape.courante .parcours-point { border-color: var(--marque); color: var(--marque); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.parcours-texte { padding-bottom: 22px; }
.parcours-texte strong { font-size: 14.5px; }
.parcours-texte span { display: block; font-size: 12.5px; color: var(--encre-3); }

/* ------------------------------------------------------------- newsletter */

.newsletter {
  border-radius: var(--r-xl); padding: 54px 30px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--marque), var(--marque-fonce));
}
.newsletter h2 { font-size: 30px; font-weight: 800; max-width: 640px; margin: 0 auto; letter-spacing: -.03em; }
.newsletter p { margin: 14px auto 0; max-width: 560px; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.newsletter-forme { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.newsletter-forme .saisie {
  width: 320px; border-radius: var(--r-pilule);
  background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); color: #fff;
}
.newsletter-forme .saisie::placeholder { color: rgba(255, 255, 255, .65); }
.newsletter-forme .saisie:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); border-color: #fff; }
.newsletter-forme .btn { background: #fff; color: var(--marque-fonce); }
.newsletter small { display: block; margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* -------------------------------------------------------------- pied de page */

.pied { background: #fff; border-top: 1px solid var(--bordure); margin-top: 56px; }
.pied-grille {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px;
  padding: 48px 0 36px;
}
.pied h4 { font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pied a, .pied li { font-size: 13.5px; color: var(--encre-3); }
.pied a:hover { color: var(--marque); }
.pied-intro { font-size: 13.5px; color: var(--encre-3); margin-top: 14px; max-width: 270px; }
.pied-social { display: flex; gap: 8px; margin-top: 18px; }
.pied-social a {
  width: 30px; height: 30px; border-radius: var(--r-s);
  background: #eef0f4; display: grid; place-items: center; color: var(--encre-3);
}
.pied-social a:hover { background: var(--marque); color: #fff; }
.pied-contact li { display: flex; gap: 8px; align-items: flex-start; }
.pied-contact .bi { flex: none; margin-top: 3px; color: var(--encre-4); }
.pied-bas {
  border-top: 1px solid var(--bordure); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--encre-4);
}
.pied-bas nav { display: flex; gap: 18px; }

/* ------------------------------------------------------ panier flottant */

.panier-flottant {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px; border-radius: var(--r-pilule);
  background: var(--marque); color: #fff;
  box-shadow: 0 14px 34px rgba(37, 99, 235, .38);
  font-size: 14px; font-weight: 700;
}
.panier-flottant:hover { background: var(--marque-fonce); }
.panier-flottant .sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .35); }

/* --------------------------------------------------------------- pagination */

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--bordure); border-radius: var(--r-s);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--encre-2);
}
.pagination a:hover { border-color: var(--marque); color: var(--marque); }
.pagination .actif { background: var(--marque); border-color: var(--marque); color: #fff; }
.pagination .inactif { opacity: .45; }

/* ------------------------------------------------------------ espace client */

.compte-grille { display: grid; grid-template-columns: 232px 1fr; gap: 26px; align-items: start; }
.compte-nav { display: grid; gap: 3px; }
.compte-nav a {
  padding: 10px 14px; border-radius: var(--r-m);
  font-size: 14px; font-weight: 500; color: var(--encre-2);
}
.compte-nav a:hover { background: #f1f3f6; }
.compte-nav a.actif { background: var(--marque-clair); color: var(--marque-fonce); font-weight: 600; }

.stats-fidelite { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-tuile { padding: 18px; border: 1px solid var(--bordure); border-radius: var(--r-m); background: #fff; }
.stat-tuile span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--encre-4); }
.stat-tuile strong { display: block; font-size: 22px; font-weight: 800; margin-top: 5px; letter-spacing: -.02em; }

.tableau { width: 100%; border-collapse: collapse; }
.tableau th {
  text-align: left; padding: 11px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-4);
  border-bottom: 1px solid var(--bordure);
}
.tableau td { padding: 14px; border-bottom: 1px solid var(--bordure); font-size: 14px; vertical-align: middle; }
.tableau tr:last-child td { border-bottom: none; }
.tableau .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ------------------------------------------------------------ authentification */

.auth-boite { max-width: 430px; margin: 56px auto; }
.auth-boite .carte-corps { padding: 32px; }
.auth-boite h1 { font-size: 24px; font-weight: 800; }
.auth-boite > p { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--encre-3); }
.auth-boite a { color: var(--marque); font-weight: 600; }

/* ---------------------------------------------------------------- réactif */

@media (max-width: 1000px) {
  .deux-colonnes { grid-template-columns: 1fr; }
  .recap { position: static; }
  .fiche { grid-template-columns: 1fr; gap: 26px; }
  .pied-grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .compte-grille { grid-template-columns: 1fr; }
  .compte-nav { grid-auto-flow: column; overflow-x: auto; }
}

@media (max-width: 780px) {
  .nav-principale, .jeton-lieu { display: none; }
  .burger { display: grid; }
  .heros h1 { font-size: 33px; }
  .heros-contenu { padding: 56px 0; }
  .atouts { grid-template-columns: 1fr; margin-top: -22px; }
  .section { padding: 44px 0; }
  .section-tete { align-items: flex-start; }
  .outils-carte { width: 100%; }
  .recherche { flex: 1; }
  .recherche .saisie { width: 100%; }
  .grille-champs { grid-template-columns: 1fr; }
  .newsletter { padding: 40px 22px; }
  .newsletter h2 { font-size: 23px; }
  .newsletter-forme .saisie { width: 100%; }
  .stats-fidelite { grid-template-columns: 1fr; }
  .panier-flottant { left: 16px; right: 16px; justify-content: center; }
}

@media (max-width: 540px) {
  .pied-grille { grid-template-columns: 1fr; }
  .grille-plats { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .conteneur { padding: 0 16px; }
}

@media print {
  .entete, .pied, .panier-flottant, .btn { display: none !important; }
  body { background: #fff; }
}

/* Bandeau « site en préparation » : la carte de démonstration ne doit jamais
   passer pour la vraie. */
.bandeau-demo {
  padding: 8px 16px; text-align: center; font-size: 13px; font-weight: 600;
  background: #fff4d6; color: #6b4a00; border-bottom: 1px solid #f1d58a;
}

/* L'en-tête ne passe jamais à la ligne : un nom d'enseigne long ou « À propos »
   coupés en deux font un menu bancal. Ce qui ne tient pas se masque, du moins
   utile au plus utile — la pastille de lieu d'abord, elle figure aussi dans
   le pied de page. */
.marque, .nav-principale a, .jeton-lieu { white-space: nowrap; }
.marque { flex-shrink: 0; }
.nav-principale { flex-shrink: 1; min-width: 0; }
@media (max-width: 1240px) {
  .jeton-lieu { display: none; }
}

/* Téléphone : le nom de l'enseigne se réduit avant de pousser les boutons hors
   de l'écran, et la connexion passe dans le tiroir. La barre de filtres
   s'empile : la recherche sur toute la largeur, le tri et le bouton dessous. */
@media (max-width: 780px) {
  .outils-carte { flex-wrap: wrap; }
  .outils-carte .recherche { flex: 1 1 100%; }
  .outils-carte select, .outils-carte .saisie:not([type="search"]) { flex: 1; min-width: 0; }
}
@media (max-width: 540px) {
  .entete-interieur { gap: 10px; }
  .marque { flex-shrink: 1; min-width: 0; font-size: 16px; }
  .marque > :not(.marque-jeton) { overflow: hidden; text-overflow: ellipsis; }
  .entete-connexion { display: none; }
  .entete-actions { gap: 6px; }
}
