/* ==========================================================================
   VITRINE RESTAURANT — QUATRE THÈMES DANS UN SEUL FICHIER
   --------------------------------------------------------------------------
   À charger APRÈS boutique.css. Chaque thème s'active par l'attribut
   data-theme posé sur <body> ; aucun sélecteur n'existe hors de ce
   crochet, les quatre cohabitent donc sans se recouvrir.

   Méthode commune : on redéfinit d'abord les jetons de boutique.css — la
   feuille de base se recolore alors toute seule — et on ne réécrit ensuite
   que ce qui change de forme (échelle typographique, ombres, zones tactiles).
   Conséquence à garder en tête : nos sélecteurs étant plus spécifiques que
   ceux de la base, ses propres points de rupture ne peuvent plus nous
   corriger ; chaque thème redonne ses valeurs mobiles à la fin de sa section.

   Plan du fichier
     1. Socle partagé          — jetons et règles vraies pour les quatre
     2. « Maquis »             — maquis de quartier, grillades, emporter
     3. « Bistro »             — table de quartier, carte fixe, service en salle
     4. « Express »            — kiosque, fast-food, comptoir, livraison
     5. « Élégant »            — table de ville, hôtel-restaurant
     6. « Côte »               — Les Délices de la Côte : la structure du
                                 maquis, l'habit du logo
   ========================================================================== */


/* ==========================================================================
   1. SOCLE PARTAGÉ
   ========================================================================== */

:root {
  /* Piles de polices des quatre thèmes. Noms neufs : rien de boutique.css
     n'est recouvert, ces jetons ne servent que dans les sections ci-dessous. */
  --police-titre: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --police-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --- Vrai pour les quatre thèmes ----------------------------------------- */

/* Le bouton « favori » est un frère de la photo, pas son enfant : sans repère
   posé sur la carte, son positionnement absolu remonterait jusqu'à la page. */
:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .plat-carte {
  position: relative;
}

/* Le focus doit se voir : beaucoup de clients naviguent au clavier virtuel ou
   à la manette du navigateur télé. Le trait prend la couleur de l'enseigne. */
:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) :focus-visible {
  outline: 2px solid var(--marque);
  outline-offset: 2px;
}

/* Un bouton qui s'enfonce, passe encore ; une carte qui saute au survol, non. */
@media (prefers-reduced-motion: reduce) {
  :is([data-theme="maquis"], [data-theme="bistro"],
      [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  :is([data-theme="maquis"], [data-theme="bistro"],
      [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .plat-carte:hover {
    transform: none;
  }
}

/* --- Vrai pour les trois thèmes sans ombre (bistro, express, élégant) -----
   Aucune ombre portée : la profondeur vient des filets et du blanc. Et le
   bandeau d'atouts cesse d'être une rangée de cartes flottantes pour devenir
   des colonnes séparées par un filet ; chaque thème n'ajuste ensuite que ses
   marges et le sens du filet une fois la rangée empilée. */

:is([data-theme="bistro"], [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) {
  --ombre-s: none; --ombre-m: none; --ombre-l: none;
}
:is([data-theme="bistro"], [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .atouts {
  margin-top: 0; gap: 0;
}
:is([data-theme="bistro"], [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .atout {
  background: transparent; box-shadow: none;
  border: 0; border-left: 1px solid var(--bordure); border-radius: 0;
}
:is([data-theme="bistro"], [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .atout:first-child {
  border-left: 0;
}


/* ==========================================================================
   2. THÈME « MAQUIS »
   --------------------------------------------------------------------------
   Pour qui : maquis de quartier, grillades, poulet braisé, cuisine populaire
   à emporter — les clients commandent depuis leur téléphone, souvent dehors,
   et doivent voir d'abord le plat, puis le prix, puis le bouton.
   Parti pris : une photo, un prix, un bouton. Rien entre les trois.
   ========================================================================== */

:is([data-theme="maquis"], [data-theme="cote"]) {
  /* Neutres tirés vers la terre : le gris bleuté d'origine sonne « bureau ». */
  --encre: #23130a;
  --encre-2: #4a3222;
  --encre-3: #6b5140;   /* volontairement plus sombre que la base : lu en plein soleil */
  --encre-4: #8a705d;

  --fond: #f7efe4;
  --surface: #fffcf7;
  --bordure: #e5d6c3;
  --bordure-forte: #c9b199;
  --sable: #efe3d3;     /* les creux : onglets, vignettes vides, survols */

  /* Braise et feuille. Ce ne sont que des accents : la marque garde la main. */
  --vert: #3f7d20;  --vert-clair: #eaf3e0;
  --ambre: #b4530b; --ambre-clair: #fbeedd;
  --rouge: #b3261e; --rouge-clair: #fbe6e2;

  /* Dérivés de la marque. --marque-fonce est la couleur d'accent choisie par
     le restaurant : elle peut être plus claire que la principale, on ne peut
     donc pas s'en servir comme ombre. --brique, lui, est toujours plus sombre
     que --marque parce qu'on le mélange vers la terre — d'où sa présence sous
     chaque bouton. */
  --brique: color-mix(in srgb, var(--marque) 58%, #2b1608);
  --marque-clair: color-mix(in srgb, var(--marque) 12%, #fffaf3);
  --halo: color-mix(in srgb, var(--marque) 30%, transparent);

  /* Coins nettement arrondis. */
  --r-s: 12px; --r-m: 18px; --r-l: 24px; --r-xl: 34px;

  /* Ombres franches : décalage net, presque pas de flou. Un objet posé sur la
     table, pas un objet qui lévite. */
  --ombre-s: 0 2px 0 rgba(43, 23, 9, .07);
  --ombre-m: 0 4px 0 rgba(43, 23, 9, .09);
  --ombre-l: 0 8px 0 rgba(43, 23, 9, .12);

  --largeur: 1140px;
  --bs-offcanvas-bg: var(--surface);

  background: var(--fond);
  color: var(--encre);
  font-size: 16px;
  line-height: 1.5;
}

/* ------------------------------------------------------- typo et rythme */

:is([data-theme="maquis"], [data-theme="cote"]) :is(h1, h2, h3, h4, .marque, .btn, .plat-prix, .fiche-prix) {
  font-family: var(--police-titre);
  font-weight: 800;
  /* Un chouïa large : le serrage négatif de la base fait « marque tech ». */
  letter-spacing: -.005em;
}
:is([data-theme="maquis"], [data-theme="cote"]) :is(h1, h2) { line-height: 1.12; }

:is([data-theme="maquis"], [data-theme="cote"]) .section { padding: 52px 0; }
:is([data-theme="maquis"], [data-theme="cote"]) .section-serree { padding: 32px 0; }
:is([data-theme="maquis"], [data-theme="cote"]) .section-tete { margin-bottom: 22px; }
:is([data-theme="maquis"], [data-theme="cote"]) .section-tete h2 { font-size: 30px; }
:is([data-theme="maquis"], [data-theme="cote"]) .section-tete p { font-size: 15px; color: var(--encre-3); }

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

:is([data-theme="maquis"], [data-theme="cote"]) .btn {
  border-radius: var(--r-m);        /* arrondi franc plutôt qu'une pilule fuyante */
  border-width: 2px;
  padding: 13px 23px;
  min-height: 52px;                 /* commandé au pouce, d'une main, debout */
  font-size: 16px;
  transition: filter .15s, background .15s, border-color .15s, transform .08s, box-shadow .08s;
}
/* L'appui enfonce le bouton dans sa propre ombre : le retour tactile qu'on
   n'a pas sur un écran, on le rend à l'œil. */
:is([data-theme="maquis"], [data-theme="cote"]) .btn:active { transform: translateY(3px); box-shadow: none; }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-primaire { background: var(--marque); box-shadow: 0 4px 0 var(--brique); }
:is([data-theme="maquis"], [data-theme="cote"]) .btn-primaire:hover { background: var(--marque); filter: brightness(1.07); }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-clair { color: var(--encre); box-shadow: 0 3px 0 rgba(43, 23, 9, .12); }
:is([data-theme="maquis"], [data-theme="cote"]) .btn-clair:hover { border-color: var(--encre-2); }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-fantome { border-color: var(--bordure-forte); color: var(--encre-2); }
:is([data-theme="maquis"], [data-theme="cote"]) .btn-fantome:hover { background: var(--sable); }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-sombre { background: var(--encre); box-shadow: 0 4px 0 #0d0703; }
:is([data-theme="maquis"], [data-theme="cote"]) .btn-sombre:hover { background: #351d0f; }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-danger { background: var(--rouge-clair); border-color: #e6a9a2; }

:is([data-theme="maquis"], [data-theme="cote"]) .btn-lg { padding: 17px 30px; font-size: 17px; min-height: 58px; }
:is([data-theme="maquis"], [data-theme="cote"]) .btn-sm { padding: 9px 16px; font-size: 14.5px; min-height: 42px; border-radius: var(--r-s); }

/* ------------------------------------------------------ étiquettes, rubans */

:is([data-theme="maquis"], [data-theme="cote"]) .puce {
  padding: 5px 11px; border-radius: var(--r-s);
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em;
}
/* La puce « marque » se colore avec --brique et non --marque-fonce : la
   couleur d'accent du restaurant peut être pâle, le texte deviendrait illisible. */
:is([data-theme="maquis"], [data-theme="cote"]) .puce-bleue { background: var(--marque-clair); color: var(--brique); }
:is([data-theme="maquis"], [data-theme="cote"]) .puce-grise { background: var(--sable); color: var(--encre-2); }

:is([data-theme="maquis"], [data-theme="cote"]) .ruban {
  top: 12px; left: 12px; padding: 5px 11px;
  border-radius: var(--r-s); font-size: 11.5px;
  box-shadow: 0 3px 0 rgba(43, 23, 9, .22);
}

/* --------------------------------------------- surfaces claires et bordures */

:is([data-theme="maquis"], [data-theme="cote"]) :is(.carte, .plat-carte, .atout, .stat-tuile, .choix-mode,
                          .moyen-choix, .option-ligne, .vide-etat, .btn-clair,
                          .icone-bouton, .jeton-lieu, .saisie,
                          .pagination a, .pagination span) {
  background: var(--surface);
  border-color: var(--bordure-forte);
  border-width: 2px;               /* trait épais : le contour tient au soleil */
}

:is([data-theme="maquis"], [data-theme="cote"]) .carte { box-shadow: var(--ombre-m); }
:is([data-theme="maquis"], [data-theme="cote"]) .carte-corps { padding: 20px; }
:is([data-theme="maquis"], [data-theme="cote"]) .carte-tete { padding: 16px 20px; border-bottom: 2px dashed var(--bordure); }
:is([data-theme="maquis"], [data-theme="cote"]) .carte-tete h3 { font-size: 17px; }
:is([data-theme="maquis"], [data-theme="cote"]) .vide-etat { border-style: dashed; font-size: 15px; }
:is([data-theme="maquis"], [data-theme="cote"]) .vide-etat h3 { font-size: 19px; }

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

:is([data-theme="maquis"], [data-theme="cote"]) .alerte { padding: 14px 16px; border-width: 2px; font-size: 15px; font-weight: 600; }
:is([data-theme="maquis"], [data-theme="cote"]) .alerte-info { background: var(--marque-clair); color: var(--encre); border-color: var(--marque); }
:is([data-theme="maquis"], [data-theme="cote"]) .alerte-succes { background: var(--vert-clair); color: #24501a; border-color: #a9cd8c; }
:is([data-theme="maquis"], [data-theme="cote"]) .alerte-erreur { background: var(--rouge-clair); color: #7a1c16; border-color: #e6a9a2; }
/* La page commande sert aussi une alerte « attention » que la base ne connaît pas. */
:is([data-theme="maquis"], [data-theme="cote"]) .alerte-attention { background: var(--ambre-clair); color: #7a3806; border-color: #e8bb87; }

/* ------------------------------------------------------------ formulaires */

:is([data-theme="maquis"], [data-theme="cote"]) .saisie {
  /* 16 px pile : en dessous, iOS zoome tout seul à la mise au point du champ
     et le client perd la page des yeux au moment de saisir son téléphone. */
  font-size: 16px;
  padding: 13px 15px; border-radius: var(--r-m); font-weight: 600;
}
:is([data-theme="maquis"], [data-theme="cote"]) .saisie::placeholder { color: var(--encre-4); font-weight: 500; }
:is([data-theme="maquis"], [data-theme="cote"]) .saisie:focus { border-color: var(--marque); box-shadow: 0 0 0 4px var(--halo); }
/* Le chevron est redessiné plus sombre et plus épais. Il faut aussi replacer
   le fond et la marge droite : les raccourcis `background` et `padding` posés
   plus haut sur .saisie sont plus spécifiques que le `select.saisie` de la
   base et les auraient effacés — chevron répété en haut à gauche, texte
   passant dessous. */
:is([data-theme="maquis"], [data-theme="cote"]) select.saisie {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234a3222' stroke-width='2' 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 15px center;
  padding-right: 42px;
}
:is([data-theme="maquis"], [data-theme="cote"]) textarea.saisie { min-height: 110px; }
:is([data-theme="maquis"], [data-theme="cote"]) :is(.champ > label, .etiquette) { font-size: 14px; font-weight: 700; color: var(--encre); }
:is([data-theme="maquis"], [data-theme="cote"]) .aide { font-size: 13px; color: var(--encre-3); }
:is([data-theme="maquis"], [data-theme="cote"]) .erreur-champ { font-size: 13px; font-weight: 700; }
:is([data-theme="maquis"], [data-theme="cote"]) .case { font-size: 15px; }
:is([data-theme="maquis"], [data-theme="cote"]) .case input { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- en-tête */

:is([data-theme="maquis"], [data-theme="cote"]) .entete {
  /* Opaque : le verre dépoli devient une bouillie illisible dès qu'une photo
     de plat passe dessous, et il coûte cher sur un téléphone d'entrée de gamme. */
  background: var(--surface);
  backdrop-filter: none;
  border-bottom: 2px solid var(--encre);
}
:is([data-theme="maquis"], [data-theme="cote"]) .entete-interieur { height: 68px; gap: 18px; }
:is([data-theme="maquis"], [data-theme="cote"]) .marque { font-size: 19px; letter-spacing: -.015em; }
:is([data-theme="maquis"], [data-theme="cote"]) .marque-jeton { width: 40px; height: 40px; border-radius: var(--r-s); box-shadow: 0 3px 0 var(--brique); }
:is([data-theme="maquis"], [data-theme="cote"]) .marque-jeton:has(img) { box-shadow: none; }

:is([data-theme="maquis"], [data-theme="cote"]) .nav-principale a { padding: 9px 15px; border-radius: var(--r-s); font-size: 15px; font-weight: 700; }
:is([data-theme="maquis"], [data-theme="cote"]) .nav-principale a:hover { background: var(--sable); color: var(--encre); }
:is([data-theme="maquis"], [data-theme="cote"]) .nav-principale a.actif { background: var(--marque); color: #fff; font-weight: 800; }

:is([data-theme="maquis"], [data-theme="cote"]) .jeton-lieu { border-radius: var(--r-s); font-size: 13.5px; font-weight: 600; }
:is([data-theme="maquis"], [data-theme="cote"]) .icone-bouton { width: 44px; height: 44px; border-radius: var(--r-s); color: var(--encre); }
:is([data-theme="maquis"], [data-theme="cote"]) .icone-bouton:hover { border-color: var(--encre-2); background: var(--sable); }
:is([data-theme="maquis"], [data-theme="cote"]) .icone-bouton .compteur {
  transform: translate(15px, -15px);
  min-width: 21px; height: 21px; font-size: 11px;
  background: var(--rouge); border: 2px solid var(--surface);
}
:is([data-theme="maquis"], [data-theme="cote"]) .offcanvas-header { border-bottom: 2px solid var(--encre); }
:is([data-theme="maquis"], [data-theme="cote"]) .nav-mobile a { padding: 15px 4px; font-size: 17px; font-weight: 700; border-bottom: 2px dashed var(--bordure); }

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

:is([data-theme="maquis"], [data-theme="cote"]) .heros {
  min-height: clamp(400px, 52vh, 560px);
  /* Le fond de repli quand le restaurant n'a pas encore de photo : sa couleur,
     poussée vers la terre cuite. Reste chaud avec un bleu comme avec un vert. */
  background: linear-gradient(150deg,
              color-mix(in srgb, var(--marque) 72%, #2b1608),
              color-mix(in srgb, var(--marque) 38%, #7c2d12));
  border-bottom: 3px solid var(--encre);
}
:is([data-theme="maquis"], [data-theme="cote"]) .heros-voile {
  background: linear-gradient(95deg, rgba(35, 17, 6, .90) 0%, rgba(35, 17, 6, .68) 48%, rgba(35, 17, 6, .26) 100%);
}
:is([data-theme="maquis"], [data-theme="cote"]) .heros-contenu { padding: 66px 0; max-width: 620px; }
:is([data-theme="maquis"], [data-theme="cote"]) .heros h1 { font-size: clamp(34px, 8vw, 54px); line-height: 1.06; letter-spacing: -.015em; }
/* Braise plutôt que bleu clair : lisible sur le voile quelle que soit la marque. */
:is([data-theme="maquis"], [data-theme="cote"]) .heros h1 em { font-style: normal; color: #ffc46b; }
:is([data-theme="maquis"], [data-theme="cote"]) .heros p { font-size: 17px; color: rgba(255, 246, 235, .88); }
:is([data-theme="maquis"], [data-theme="cote"]) .heros-badge {
  background: var(--marque); border-color: transparent; border-radius: var(--r-s);
  font-size: 12px; letter-spacing: .1em; box-shadow: 0 3px 0 rgba(0, 0, 0, .3);
}
:is([data-theme="maquis"], [data-theme="cote"]) .heros-actions { gap: 14px; margin-top: 32px; }
:is([data-theme="maquis"], [data-theme="cote"]) .heros-actions .btn-clair { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); box-shadow: none; }
:is([data-theme="maquis"], [data-theme="cote"]) .heros-legende { background: rgba(35, 17, 6, .7); border-radius: var(--r-s); font-weight: 600; }
:is([data-theme="maquis"], [data-theme="cote"]) .heros-puces button.active { background: #ffc46b; }

:is([data-theme="maquis"], [data-theme="cote"]) .atouts { margin-top: -30px; gap: 14px; }
:is([data-theme="maquis"], [data-theme="cote"]) .atout { border-radius: var(--r-l); padding: 16px 18px; box-shadow: var(--ombre-m); }
:is([data-theme="maquis"], [data-theme="cote"]) .atout-icone { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--marque); color: #fff; }
:is([data-theme="maquis"], [data-theme="cote"]) .atout strong { font-size: 15px; }
:is([data-theme="maquis"], [data-theme="cote"]) .atout span { font-size: 13px; color: var(--encre-3); }

/* --------------------------------------------------------- filtres du menu */

:is([data-theme="maquis"], [data-theme="cote"]) .onglets { background: var(--sable); border-radius: var(--r-m); padding: 6px; gap: 6px; }
:is([data-theme="maquis"], [data-theme="cote"]) .onglets a { padding: 10px 18px; border-radius: var(--r-s); font-size: 15px; font-weight: 700; color: var(--encre-2); }
/* Onglet actif plein, texte blanc : le contraste inversé de la base (fond
   blanc, texte coloré) se perd dès qu'il y a du soleil sur l'écran. */
:is([data-theme="maquis"], [data-theme="cote"]) .onglets a.actif { background: var(--marque); color: #fff; box-shadow: 0 3px 0 var(--brique); }
/* padding-left redonné ici pour la même raison que le select : la loupe est
   posée en absolu dans le champ, le texte doit lui laisser la place. */
:is([data-theme="maquis"], [data-theme="cote"]) .recherche .saisie { border-radius: var(--r-m); padding-left: 44px; }
:is([data-theme="maquis"], [data-theme="cote"]) .recherche .bi { color: var(--encre-3); }

/* ------------------------------------------------------------ carte de plat */

:is([data-theme="maquis"], [data-theme="cote"]) .grille-plats { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

:is([data-theme="maquis"], [data-theme="cote"]) .plat-carte { border-radius: var(--r-l); box-shadow: var(--ombre-m); }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-carte:hover { transform: translateY(-2px); box-shadow: var(--ombre-l); border-color: var(--marque); }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-media { background: var(--sable); }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-corps { padding: 15px 16px 16px; }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-corps h3 { font-size: 17px; }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-desc { font-size: 13.5px; color: var(--encre-3); min-height: 38px; }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-meta { font-size: 11.5px; color: var(--encre-3); margin-top: 10px; }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-pied { border-top: 2px dashed var(--bordure); padding-top: 14px; margin-top: 12px; }

/* Le prix est l'information qu'on cherche en premier : noir d'encre, gros,
   et surtout pas coloré — une couleur de marque pâle le ferait disparaître. */
:is([data-theme="maquis"], [data-theme="cote"]) .plat-prix { font-size: 24px; line-height: 1; color: var(--encre); letter-spacing: -.02em; }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-prix small { font-size: 13px; font-weight: 700; color: var(--encre-2); }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-prix del { font-size: 13px; font-weight: 600; color: var(--encre-4); }
:is([data-theme="maquis"], [data-theme="cote"]) .plat-pied .btn-sm { font-size: 15px; padding: 11px 18px; min-height: 46px; }
:is([data-theme="maquis"], [data-theme="cote"]) .epuise { font-size: 13px; font-weight: 800; color: var(--rouge); text-transform: uppercase; }

:is([data-theme="maquis"], [data-theme="cote"]) .coeur { top: 12px; right: 12px; width: 40px; height: 40px; background: rgba(255, 252, 247, .94); box-shadow: var(--ombre-s); }
:is([data-theme="maquis"], [data-theme="cote"]) .note-jeton { left: 12px; bottom: 12px; padding: 5px 11px; border-radius: var(--r-s); font-size: 12.5px; }

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

:is([data-theme="maquis"], [data-theme="cote"]) .fiche { gap: 34px; }
:is([data-theme="maquis"], [data-theme="cote"]) .fiche-media { border: 2px solid var(--bordure-forte); background: var(--sable); box-shadow: var(--ombre-l); }
:is([data-theme="maquis"], [data-theme="cote"]) .fiche h1 { font-size: clamp(26px, 6vw, 36px); }
:is([data-theme="maquis"], [data-theme="cote"]) .fiche-accroche { font-size: 16px; color: var(--encre-2); }
:is([data-theme="maquis"], [data-theme="cote"]) .fiche-prix { font-size: 38px; color: var(--encre); margin: 18px 0; }
:is([data-theme="maquis"], [data-theme="cote"]) .fiche-prix del { font-size: 19px; color: var(--encre-4); }

:is([data-theme="maquis"], [data-theme="cote"]) .groupe-options { border-top: 2px dashed var(--bordure); }
:is([data-theme="maquis"], [data-theme="cote"]) .option-ligne { min-height: 56px; border-radius: var(--r-m); font-size: 15px; margin-bottom: 10px; }
:is([data-theme="maquis"], [data-theme="cote"]) .option-ligne:has(input:checked) { border-color: var(--marque); background: var(--marque-clair); }
:is([data-theme="maquis"], [data-theme="cote"]) .option-ligne input { width: 22px; height: 22px; }
:is([data-theme="maquis"], [data-theme="cote"]) .option-ligne .prix-option { font-size: 15px; font-weight: 800; color: var(--brique); }

:is([data-theme="maquis"], [data-theme="cote"]) .quantite { border-width: 2px; border-radius: var(--r-m); background: var(--surface); }
:is([data-theme="maquis"], [data-theme="cote"]) .quantite button { width: 48px; height: 48px; font-size: 22px; font-weight: 800; color: var(--encre); }
:is([data-theme="maquis"], [data-theme="cote"]) .quantite input { width: 48px; font-size: 17px; font-weight: 800; }

/* ------------------------------------------------------- panier et commande */

:is([data-theme="maquis"], [data-theme="cote"]) .deux-colonnes { grid-template-columns: 1fr 380px; gap: 22px; }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-ligne { padding: 18px 0; border-bottom: 2px dashed var(--bordure); }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-vignette { width: 92px; height: 92px; border-radius: var(--r-m); background: var(--sable); }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-infos h4 { font-size: 16px; }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-options { font-size: 13.5px; color: var(--encre-3); }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-total-ligne { font-size: 18px; }
:is([data-theme="maquis"], [data-theme="cote"]) .recap { top: 88px; }
:is([data-theme="maquis"], [data-theme="cote"]) .recap-ligne { padding: 9px 0; font-size: 15px; }
:is([data-theme="maquis"], [data-theme="cote"]) .recap-total { font-size: 25px; border-top: 2px dashed var(--bordure); }
:is([data-theme="maquis"], [data-theme="cote"]) .recap-total span:first-child { font-size: 15px; font-weight: 700; }
:is([data-theme="maquis"], [data-theme="cote"]) .promo-forme .saisie { border-radius: var(--r-m); font-weight: 800; letter-spacing: .06em; }
:is([data-theme="maquis"], [data-theme="cote"]) .promo-actif { border-radius: var(--r-m); font-size: 14px; }

:is([data-theme="maquis"], [data-theme="cote"]) :is(.choix-mode, .moyen-choix) { border-radius: var(--r-m); min-height: 62px; padding: 14px 16px; }
:is([data-theme="maquis"], [data-theme="cote"]) :is(.choix-mode, .moyen-choix):has(input:checked) {
  border-color: var(--marque); background: var(--marque-clair); box-shadow: 0 0 0 3px var(--halo);
}
:is([data-theme="maquis"], [data-theme="cote"]) :is(.choix-mode strong, .moyen-choix-texte strong) { font-size: 15.5px; }
:is([data-theme="maquis"], [data-theme="cote"]) :is(.choix-mode span, .moyen-choix-texte span) { font-size: 13px; color: var(--encre-3); }
:is([data-theme="maquis"], [data-theme="cote"]) .moyen-choix-pastille { width: 46px; height: 46px; border-radius: var(--r-s); }

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

:is([data-theme="maquis"], [data-theme="cote"]) .parcours-point { width: 32px; height: 32px; border-width: 3px; background: var(--surface); }
:is([data-theme="maquis"], [data-theme="cote"]) .parcours-barre { width: 3px; }
:is([data-theme="maquis"], [data-theme="cote"]) .parcours-etape.courante .parcours-point { border-color: var(--marque); color: var(--marque); box-shadow: 0 0 0 5px var(--halo); }
:is([data-theme="maquis"], [data-theme="cote"]) .parcours-texte strong { font-size: 16px; }
:is([data-theme="maquis"], [data-theme="cote"]) .parcours-texte span { font-size: 13.5px; color: var(--encre-3); }

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

:is([data-theme="maquis"], [data-theme="cote"]) .newsletter {
  border: 3px solid var(--encre); box-shadow: var(--ombre-l);
  background: linear-gradient(140deg, var(--marque), color-mix(in srgb, var(--marque) 45%, #7c2d12));
  padding: 46px 28px;
}
:is([data-theme="maquis"], [data-theme="cote"]) .newsletter h2 { font-size: clamp(24px, 5vw, 34px); }
:is([data-theme="maquis"], [data-theme="cote"]) .newsletter p { font-size: 15.5px; color: rgba(255, 246, 235, .9); }
:is([data-theme="maquis"], [data-theme="cote"]) .newsletter-forme .saisie { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; border-radius: var(--r-m); }
:is([data-theme="maquis"], [data-theme="cote"]) .newsletter-forme .btn { background: #fff; color: var(--brique); box-shadow: 0 4px 0 rgba(0, 0, 0, .3); }

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

:is([data-theme="maquis"], [data-theme="cote"]) .pied { background: var(--encre); border-top: 3px solid var(--brique); margin-top: 48px; }
:is([data-theme="maquis"], [data-theme="cote"]) .pied .marque { color: #fff; }
:is([data-theme="maquis"], [data-theme="cote"]) .pied h4 { color: #fff; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
:is([data-theme="maquis"], [data-theme="cote"]) :is(.pied a, .pied li) { font-size: 14.5px; color: rgba(247, 239, 228, .78); }
:is([data-theme="maquis"], [data-theme="cote"]) .pied a:hover { color: #ffc46b; }
:is([data-theme="maquis"], [data-theme="cote"]) .pied-intro { font-size: 14.5px; color: rgba(247, 239, 228, .72); }
:is([data-theme="maquis"], [data-theme="cote"]) .pied-social a { width: 36px; height: 36px; border-radius: var(--r-s); background: rgba(255, 255, 255, .1); color: #fff; }
:is([data-theme="maquis"], [data-theme="cote"]) .pied-social a:hover { background: var(--marque); }
:is([data-theme="maquis"], [data-theme="cote"]) .pied-contact .bi { color: #ffc46b; }
:is([data-theme="maquis"], [data-theme="cote"]) .pied-bas { border-top-color: rgba(255, 255, 255, .14); font-size: 13px; color: rgba(247, 239, 228, .6); }

/* -------------------------------------------- panier flottant, pagination */

:is([data-theme="maquis"], [data-theme="cote"]) .panier-flottant {
  bottom: 16px; padding: 15px 22px;
  border: 2px solid var(--encre); border-radius: var(--r-m);
  font-size: 17px; font-weight: 800;
  box-shadow: 0 5px 0 var(--brique);
}
:is([data-theme="maquis"], [data-theme="cote"]) .panier-flottant:hover { background: var(--marque); filter: brightness(1.07); }
:is([data-theme="maquis"], [data-theme="cote"]) .panier-flottant:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--brique); }

:is([data-theme="maquis"], [data-theme="cote"]) :is(.pagination a, .pagination span) { min-width: 44px; height: 44px; border-radius: var(--r-s); font-size: 15px; font-weight: 700; }
:is([data-theme="maquis"], [data-theme="cote"]) .pagination .actif { background: var(--marque); border-color: var(--marque); color: #fff; }

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

:is([data-theme="maquis"], [data-theme="cote"]) .compte-nav a { border-radius: var(--r-s); font-size: 15px; font-weight: 700; }
:is([data-theme="maquis"], [data-theme="cote"]) .compte-nav a:hover { background: var(--sable); }
:is([data-theme="maquis"], [data-theme="cote"]) .compte-nav a.actif { background: var(--marque); color: #fff; font-weight: 800; }
:is([data-theme="maquis"], [data-theme="cote"]) .stat-tuile { border-radius: var(--r-m); }
:is([data-theme="maquis"], [data-theme="cote"]) .stat-tuile span { color: var(--encre-3); }
:is([data-theme="maquis"], [data-theme="cote"]) .stat-tuile strong { font-size: 26px; }
:is([data-theme="maquis"], [data-theme="cote"]) .tableau th { font-size: 12px; color: var(--encre-3); border-bottom: 2px solid var(--bordure); }
:is([data-theme="maquis"], [data-theme="cote"]) .tableau td { font-size: 15px; }
:is([data-theme="maquis"], [data-theme="cote"]) .auth-boite h1 { font-size: 27px; }
:is([data-theme="maquis"], [data-theme="cote"]) .auth-boite a { color: var(--brique); font-weight: 700; }

/* Trait de focus épaissi : ce thème se consulte souvent en plein soleil. */
:is([data-theme="maquis"], [data-theme="cote"]) :focus-visible { outline-width: 3px; }

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

@media (max-width: 1000px) {
  /* La base replie déjà cette grille, mais notre règle desktop est plus
     spécifique qu'elle : il faut la replier nous-mêmes. */
  :is([data-theme="maquis"], [data-theme="cote"]) .deux-colonnes { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :is([data-theme="maquis"], [data-theme="cote"]) .entete-interieur { height: 62px; gap: 12px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .heros-contenu { padding: 48px 0; }
  :is([data-theme="maquis"], [data-theme="cote"]) .section { padding: 36px 0; }
  :is([data-theme="maquis"], [data-theme="cote"]) .section-tete h2 { font-size: 25px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .atouts { margin-top: -18px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .btn-lg { padding: 15px 22px; font-size: 16px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .newsletter { padding: 34px 20px; }
}

@media (max-width: 620px) {
  /* min(100%, 250px) : une seule colonne sur un téléphone courant — la photo
     du plat vaut mieux qu'une vignette —, deux dès qu'il y a la place. */
  :is([data-theme="maquis"], [data-theme="cote"]) .grille-plats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .plat-corps { padding: 16px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .plat-prix { font-size: 26px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .plat-desc { min-height: 0; }
  :is([data-theme="maquis"], [data-theme="cote"]) .plat-pied .btn-sm { padding: 12px 20px; min-height: 48px; font-size: 15.5px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .panier-flottant { left: 14px; right: 14px; bottom: 14px; padding: 16px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .panier-vignette { width: 74px; height: 74px; }
  :is([data-theme="maquis"], [data-theme="cote"]) .fiche-prix { font-size: 32px; }
}


/* ==========================================================================
   3. THÈME « BISTRO »
   --------------------------------------------------------------------------
   Pour qui : restaurant de quartier à carte fixe et service à table — bistro,
   table d'hôtes, cuisine de terroir, là où la carte et la description des
   plats comptent plus que les photos.
   Parti pris : la carte se lit, elle ne se feuillette pas. On retire ce qui
   attire l'œil ailleurs que sur le texte — ombres, gros arrondis, aplats de
   couleur — et on rend l'espace et l'interlignage. La couleur de marque ne
   sert qu'à désigner : elle tient aussi bien avec un bleu qu'avec un ocre.
   ========================================================================== */

[data-theme="bistro"] {
  /* Neutres chauds : le gris froid par défaut donne un air de tableau de bord,
     pas de salle à manger. */
  --encre: #221d18; --encre-2: #4d443b; --encre-3: #7c7167; --encre-4: #a89c8f;
  --fond: #faf7f1; --surface: #fffdf9;
  --bordure: #e7dfd2; --bordure-forte: #d5c9b6;

  /* Coins presque droits : un filet sépare mieux deux blocs de texte qu'un
     arrondi. Redéfinir les jetons suffit — toute la feuille les consomme,
     y compris les pilules de .btn. */
  --r-s: 2px; --r-m: 3px; --r-l: 3px; --r-xl: 4px; --r-pilule: 3px;
  --bs-border-radius: 3px;

  --largeur: 1080px;   /* colonne resserrée : on lit une carte, pas un catalogue */

  background: var(--fond); color: var(--encre);
  font-size: 15.5px;
  line-height: 1.72;   /* l'interlignage généreux fait la moitié du travail */
}

/* ------------------------------------------------------------ typographie */

[data-theme="bistro"] :is(h1, h2, h3, h4) {
  font-family: var(--police-titre);
  font-weight: 600;          /* le 800 par défaut crie ; 600 pose la voix */
  letter-spacing: -.008em; line-height: 1.24;
}

/* Les intitulés courts et répétés passent en capitales espacées : c'est la
   signature typographique du thème, et elle remplace les aplats de couleur. */
[data-theme="bistro"] :is(.pied h4, .plat-meta, .stat-tuile span, .puce, .ruban) {
  font-family: var(--police-texte);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}

/* ------------------------------------------------- rythme vertical, cadres */

[data-theme="bistro"] .section { padding: 76px 0; }
[data-theme="bistro"] .section-serree { padding: 46px 0; }
[data-theme="bistro"] .section-tete {
  align-items: flex-end; margin-bottom: 30px;
  padding-bottom: 20px; border-bottom: 1px solid var(--bordure);
}
[data-theme="bistro"] .section-tete h2 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
[data-theme="bistro"] .section-tete p { font-size: 14.5px; margin-top: 8px; max-width: 46ch; }

[data-theme="bistro"] .carte { background: var(--surface); border-color: var(--bordure); box-shadow: none; }
[data-theme="bistro"] .carte-tete { padding: 20px 24px; }
[data-theme="bistro"] .carte-tete h3 { font-size: 15px; letter-spacing: .01em; }
[data-theme="bistro"] .carte-corps { padding: 24px; }
[data-theme="bistro"] .vide-etat { background: var(--surface); border: 1px solid var(--bordure); }

/* Un filet coloré en tête d'alerte plutôt qu'un aplat pastel. */
[data-theme="bistro"] .alerte { border-width: 1px 1px 1px 2px; padding: 14px 18px; }
[data-theme="bistro"] .alerte-succes { border-left-color: var(--vert); }
[data-theme="bistro"] .alerte-erreur { border-left-color: var(--rouge); }
[data-theme="bistro"] .alerte-info {
  background: var(--marque-clair); color: var(--encre);
  border-color: color-mix(in srgb, var(--marque) 26%, #fff); border-left-color: var(--marque);
}

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

[data-theme="bistro"] .btn {
  padding: 12px 22px;
  font-family: var(--police-texte);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
[data-theme="bistro"] .btn:active { transform: none; }   /* pas de rebond : ce n'est pas une application */
[data-theme="bistro"] .btn-lg { padding: 15px 30px; font-size: 12.5px; }
[data-theme="bistro"] .btn-sm { padding: 8px 14px; font-size: 11px; letter-spacing: .08em; }
[data-theme="bistro"] .btn-primaire { background: var(--marque); color: #fff; }
[data-theme="bistro"] .btn-primaire:hover { background: var(--marque-fonce); }
/* Le bouton clair se borde d'encre : sur du papier, un gris clair disparaît. */
[data-theme="bistro"] .btn-clair { background: transparent; color: var(--encre); border-color: var(--encre); }
[data-theme="bistro"] .btn-clair:hover { background: var(--encre); color: var(--fond); border-color: var(--encre); }
[data-theme="bistro"] .btn-fantome { border-color: var(--bordure-forte); }
[data-theme="bistro"] .btn-fantome:hover { background: var(--surface); border-color: var(--encre-4); }
[data-theme="bistro"] .btn-sombre:hover { background: #3a322a; }
[data-theme="bistro"] .puce { padding: 4px 9px; }
[data-theme="bistro"] .puce-grise { background: #efe9de; color: var(--encre-3); }

/* -------------------------------------------------------------- formulaires */

[data-theme="bistro"] .champ { margin-bottom: 20px; }
[data-theme="bistro"] :is(.champ > label, .etiquette) {
  margin-bottom: 8px; color: var(--encre-3);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
[data-theme="bistro"] :is(.saisie, select.saisie, textarea.saisie) {
  padding: 12px 14px; background: var(--surface); border-color: var(--bordure-forte); font-size: 14.5px;
}
/* color-mix plutôt qu'un rgba figé : le halo de focus suit la couleur de l'enseigne. */
[data-theme="bistro"] .saisie:focus {
  border-color: var(--marque);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--marque) 20%, transparent);
}
[data-theme="bistro"] .quantite { border-color: var(--bordure-forte); }
[data-theme="bistro"] .quantite button:hover { color: var(--marque); }

/* ----------------------------------------------------------------- en-tête */

[data-theme="bistro"] .entete {
  background: color-mix(in srgb, var(--fond) 92%, transparent);
  border-bottom: 1px solid var(--bordure);
}
[data-theme="bistro"] .entete-interieur { height: 76px; gap: 30px; }
[data-theme="bistro"] .marque {
  font-family: var(--police-titre);
  font-size: 18px; font-weight: 600;
  letter-spacing: .005em;   /* le nom de l'enseigne se lit, il ne se compresse pas */
}
[data-theme="bistro"] .marque-jeton { width: 32px; height: 32px; border-radius: 2px; }

/* La navigation devient des mots soulignés, pas des pastilles. On ne touche
   pas à `display` : c'est lui qui masque la barre sur téléphone. */
[data-theme="bistro"] .nav-principale { gap: 26px; }
[data-theme="bistro"] .nav-principale a {
  padding: 6px 0; border-radius: 0; border-bottom: 1px solid transparent;
  font-size: 13.5px; letter-spacing: .01em; color: var(--encre-2);
}
[data-theme="bistro"] .nav-principale a:hover { background: transparent; color: var(--encre); border-bottom-color: var(--bordure-forte); }
[data-theme="bistro"] .nav-principale a.actif { color: var(--encre); border-bottom-color: var(--marque); }

[data-theme="bistro"] .jeton-lieu { background: transparent; border-color: var(--bordure); font-size: 12.5px; }
[data-theme="bistro"] .icone-bouton { border-radius: 2px; background: transparent; border-color: var(--bordure-forte); }
[data-theme="bistro"] .icone-bouton:hover { border-color: var(--encre); color: var(--encre); }
[data-theme="bistro"] .icone-bouton .compteur { border-radius: 2px; background: var(--marque); }
[data-theme="bistro"] .offcanvas { background: var(--fond); }
[data-theme="bistro"] .nav-mobile a { padding: 15px 2px; font-size: 16px; font-weight: 500; }

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

/* Deux régimes selon que l'exploitant a chargé des photos ou non. Sans image,
   le héros reste une couverture de carte : papier, encre, filets. */
[data-theme="bistro"] .heros {
  min-height: clamp(300px, 38vh, 440px);
  background: var(--fond); color: var(--encre);
  border-bottom: 1px solid var(--bordure);
}
[data-theme="bistro"] .heros-contenu { padding: 84px 0; max-width: 620px; }
[data-theme="bistro"] .heros h1 {
  font-size: clamp(31px, 4.6vw, 46px); font-weight: 600;
  letter-spacing: -.018em; line-height: 1.13;
}
[data-theme="bistro"] .heros h1 em { color: var(--marque); font-style: italic; }
[data-theme="bistro"] .heros p { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--encre-2); max-width: 46ch; }
[data-theme="bistro"] .heros-badge {
  padding: 6px 12px; border-radius: 2px;
  background: transparent; border-color: var(--bordure-forte); color: var(--encre-3);
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
}
[data-theme="bistro"] .heros-actions { margin-top: 34px; }

/* Sans photo, le voile n'a rien à voiler : il ne ferait que salir le papier. */
[data-theme="bistro"] .heros:not(:has(.heros-image, .heros-carrousel)) .heros-voile { display: none; }

/* Avec photo : voile chaud plutôt que bleu nuit, et texte blanc. */
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) { color: #fff; border-bottom-color: transparent; }
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) .heros-voile {
  background: linear-gradient(96deg, rgba(26, 20, 14, .86) 0%, rgba(26, 20, 14, .56) 56%, rgba(26, 20, 14, .22) 100%);
}
/* La marque éclaircie reste lisible sur le voile, qu'elle soit bleue ou ocre. */
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) h1 em { color: color-mix(in srgb, var(--marque) 42%, #fff); }
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) p { color: rgba(255, 255, 255, .84); }
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) .heros-badge { border-color: rgba(255, 255, 255, .42); color: #fff; }
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) .heros-actions .btn-clair { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
[data-theme="bistro"] .heros:has(.heros-image, .heros-carrousel) .heros-actions .btn-clair:hover { background: rgba(255, 255, 255, .14); }
[data-theme="bistro"] .heros-legende { border-radius: 2px; background: rgba(26, 20, 14, .6); }

/* Les atouts (colonnes séparées par un filet : voir le socle) se posent sous
   le héros, sans chevaucher la photo. */
[data-theme="bistro"] .atouts { padding: 26px 0; border-bottom: 1px solid var(--bordure); }
[data-theme="bistro"] .atout { padding: 2px 22px; }
[data-theme="bistro"] .atout:first-child { padding-left: 0; }
[data-theme="bistro"] .atout-icone { width: 26px; height: 26px; background: transparent; color: var(--marque); }
[data-theme="bistro"] .atout strong { font-size: 14px; font-weight: 600; }

/* --------------------------------------------- index de la carte, recherche */

[data-theme="bistro"] .onglets {
  width: 100%; margin-bottom: 36px; padding: 0; gap: 30px; justify-content: center;
  background: transparent; border-radius: 0; border-bottom: 1px solid var(--bordure);
}
[data-theme="bistro"] .onglets a {
  padding: 0 0 14px; margin-bottom: -1px;
  border-radius: 0; border-bottom: 2px solid transparent;
  font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
}
[data-theme="bistro"] .onglets a.actif { background: transparent; box-shadow: none; color: var(--encre); border-bottom-color: var(--marque); }
[data-theme="bistro"] .recherche .saisie { border-radius: 2px; }

/* ----------------------------------------------- grille et cartes de plats */

/* Le plat n'est plus une vignette mais une ligne de carte : petite photo à
   gauche, texte à droite, filet en bas. Deux colonnes de lignes se lisent
   comme un menu ouvert — et la description a enfin la place d'être lue. */
[data-theme="bistro"] .grille-plats { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0 56px; }
[data-theme="bistro"] .plat-carte {
  flex-direction: row; align-items: flex-start;
  padding: 24px 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--bordure); border-radius: 0;
  transition: none;
}
[data-theme="bistro"] .plat-carte:hover { box-shadow: none; transform: none; }
[data-theme="bistro"] .plat-carte:hover .plat-corps h3 a { color: var(--marque); }
[data-theme="bistro"] .plat-media {
  flex: none; width: 96px; aspect-ratio: 1;
  margin-right: 18px;   /* margin et non gap : le <form> du favori est un élément flexible vide */
  border-radius: 2px; overflow: hidden; background: #f1e9db;
}
[data-theme="bistro"] .plat-corps { padding: 0; }

/* Le filet de conduite après le nom du plat : le geste qui fait la carte. */
[data-theme="bistro"] .plat-corps h3 {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--police-titre);
  font-size: 16px; font-weight: 600; letter-spacing: -.005em;
}
[data-theme="bistro"] .plat-corps h3 a { min-width: 0; }
[data-theme="bistro"] .plat-corps h3::after {
  content: ""; flex: 1; min-width: 16px;
  border-bottom: 1px dotted var(--bordure-forte); transform: translateY(-4px);
}
[data-theme="bistro"] .plat-desc {
  margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--encre-2);
  -webkit-line-clamp: 3; min-height: 0;   /* trois lignes : la description fait vendre le plat */
}
[data-theme="bistro"] .plat-meta { margin-top: 10px; gap: 16px; color: var(--encre-4); }
[data-theme="bistro"] .plat-pied { margin-top: 14px; padding-top: 0; border-top: 0; }
[data-theme="bistro"] .plat-prix {
  font-family: var(--police-titre);
  font-size: 16px; font-weight: 600; letter-spacing: 0;
}
[data-theme="bistro"] .plat-prix small { color: var(--encre-3); font-weight: 500; }
[data-theme="bistro"] .ruban {
  top: 4px; left: 4px; padding: 2px 6px; border-radius: 2px;
  background: var(--surface); color: var(--marque-fonce); font-size: 9px; letter-spacing: .1em;
}
[data-theme="bistro"] .ruban-promo { background: var(--rouge); color: #fff; }
[data-theme="bistro"] .note-jeton { left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 2px; font-size: 10.5px; font-weight: 600; }
[data-theme="bistro"] .coeur { top: 0; right: 0; background: transparent; box-shadow: none; color: var(--encre-4); }
[data-theme="bistro"] :is(.pagination a, .pagination span) { border-radius: 2px; font-weight: 500; }

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

[data-theme="bistro"] .fiche { gap: 56px; }
[data-theme="bistro"] .fiche-media { border-radius: 3px; background: #f1e9db; }
[data-theme="bistro"] .fiche h1 { font-size: 34px; font-weight: 600; letter-spacing: -.015em; }
[data-theme="bistro"] .fiche-accroche { font-size: 15.5px; line-height: 1.7; color: var(--encre-2); }
[data-theme="bistro"] .fiche-prix {
  margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--bordure);
  font-family: var(--police-titre);
  font-size: 27px; font-weight: 600; letter-spacing: -.01em;
}
[data-theme="bistro"] .option-ligne { border-radius: 2px; }
[data-theme="bistro"] .option-ligne .prix-option { color: var(--encre-2); font-weight: 600; }

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

[data-theme="bistro"] .panier-ligne { padding: 20px 0; gap: 16px; }
[data-theme="bistro"] .panier-vignette { border-radius: 2px; }
[data-theme="bistro"] .panier-infos h4 { font-size: 15px; font-weight: 600; }
[data-theme="bistro"] .panier-options { font-size: 13px; color: var(--encre-3); }
[data-theme="bistro"] .panier-total-ligne { font-family: var(--police-titre); font-size: 15px; font-weight: 600; }
[data-theme="bistro"] .recap { top: 96px; }
[data-theme="bistro"] .recap-ligne { padding: 9px 0; font-size: 14px; }
[data-theme="bistro"] .recap-total {
  font-family: var(--police-titre); font-size: 20px; font-weight: 600;
  border-top-color: var(--encre);   /* le total se démarque par un filet plein, pas par du gras */
}
[data-theme="bistro"] .recap-total span:first-child {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--encre-3);
}
[data-theme="bistro"] .promo-forme .saisie { border-radius: 2px; }

/* Service et paiement : un liseré d'encre à gauche marque la sélection,
   sans halo coloré ni ombre portée. */
[data-theme="bistro"] :is(.choix-mode, .moyen-choix) { background: var(--surface); }
[data-theme="bistro"] :is(.choix-mode, .moyen-choix):has(input:checked) {
  border-color: var(--marque); box-shadow: inset 3px 0 0 var(--marque); background: var(--marque-clair);
}
[data-theme="bistro"] .moyen-choix-pastille { border-radius: 2px; }
[data-theme="bistro"] .parcours-etape.courante .parcours-point { box-shadow: 0 0 0 3px color-mix(in srgb, var(--marque) 18%, transparent); }
[data-theme="bistro"] .panier-flottant {
  border-radius: 2px; box-shadow: 0 6px 22px rgba(34, 29, 24, .22);
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

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

/* L'aplat de marque plein cadre du thème par défaut ferait tache ici : on garde
   le papier, un filet, et la marque uniquement sur le bouton. */
[data-theme="bistro"] .newsletter { padding: 60px 34px; background: var(--surface); border: 1px solid var(--bordure); color: var(--encre); }
[data-theme="bistro"] .newsletter h2 { font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
[data-theme="bistro"] .newsletter p { color: var(--encre-2); font-size: 15px; line-height: 1.7; }
[data-theme="bistro"] .newsletter small { color: var(--encre-4); }
[data-theme="bistro"] .newsletter-forme .saisie {
  background: var(--fond); border-color: var(--bordure-forte); color: var(--encre); border-radius: 2px;
}
[data-theme="bistro"] .newsletter-forme .saisie::placeholder { color: var(--encre-4); }
[data-theme="bistro"] .newsletter-forme .saisie:focus { border-color: var(--marque); box-shadow: 0 0 0 2px color-mix(in srgb, var(--marque) 20%, transparent); }
[data-theme="bistro"] .newsletter-forme .btn { background: var(--marque); color: #fff; }
[data-theme="bistro"] .newsletter-forme .btn:hover { background: var(--marque-fonce); }

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

[data-theme="bistro"] .pied { margin-top: 0; background: var(--surface); border-top-color: var(--bordure); }
[data-theme="bistro"] .pied-grille { padding: 60px 0 44px; gap: 44px; }
[data-theme="bistro"] .pied h4 { margin-bottom: 18px; color: var(--encre); }
[data-theme="bistro"] .pied ul { gap: 11px; }
[data-theme="bistro"] :is(.pied a, .pied li) { font-size: 14px; }
[data-theme="bistro"] .pied a:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="bistro"] .pied-intro { font-size: 14px; line-height: 1.7; max-width: 32ch; }
[data-theme="bistro"] .pied-social a { border-radius: 2px; background: transparent; border: 1px solid var(--bordure-forte); }
[data-theme="bistro"] .pied-social a:hover { background: var(--encre); border-color: var(--encre); color: var(--fond); }
[data-theme="bistro"] .pied-bas { padding: 22px 0; font-size: 12.5px; }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  [data-theme="bistro"] .grille-plats { grid-template-columns: 1fr; gap: 0; }
  [data-theme="bistro"] .fiche { gap: 30px; }
  [data-theme="bistro"] .recap { top: auto; }
}

@media (max-width: 780px) {
  [data-theme="bistro"] { font-size: 15px; }
  [data-theme="bistro"] .section { padding: 48px 0; }
  [data-theme="bistro"] .section-serree { padding: 32px 0; }
  [data-theme="bistro"] .entete-interieur { height: 64px; gap: 14px; }
  [data-theme="bistro"] .heros-contenu { padding: 56px 0; }
  [data-theme="bistro"] .heros p { margin-top: 18px; font-size: 15px; }
  [data-theme="bistro"] .heros-actions .btn { flex: 1; }   /* deux cibles pleine largeur, atteignables au pouce */

  /* Empilés, les atouts perdent leur filet vertical au profit d'un filet
     horizontal : même geste, tourné d'un quart de tour. */
  [data-theme="bistro"] .atouts { grid-template-columns: 1fr; padding: 8px 0 20px; }
  [data-theme="bistro"] .atout { padding: 14px 0; border-left: 0; border-top: 1px solid var(--bordure); }
  [data-theme="bistro"] .atout:first-child { border-top: 0; }

  [data-theme="bistro"] .onglets { justify-content: flex-start; gap: 22px; margin-bottom: 26px; }
  [data-theme="bistro"] .section-tete { padding-bottom: 16px; margin-bottom: 22px; }
  [data-theme="bistro"] .section-tete h2 { font-size: 23px; }
  [data-theme="bistro"] .newsletter { padding: 40px 22px; }
  [data-theme="bistro"] .newsletter h2 { font-size: 22px; }
  [data-theme="bistro"] .pied-grille { padding: 42px 0 30px; gap: 32px; }
  [data-theme="bistro"] .panier-flottant { left: 16px; right: 16px; justify-content: center; }
}

@media (max-width: 540px) {
  /* La photo rétrécit encore : sur un téléphone, ce sont le nom et le prix qui
     doivent tenir en premier. */
  [data-theme="bistro"] .plat-media { width: 76px; margin-right: 14px; }
  [data-theme="bistro"] .plat-carte { padding: 18px 0; }
  [data-theme="bistro"] .plat-corps h3 { font-size: 15px; }
  [data-theme="bistro"] .plat-corps h3::after { display: none; }   /* trop court pour se lire comme un filet */
  [data-theme="bistro"] .coeur { display: none; }                  /* le favori encombre une ligne étroite */
  [data-theme="bistro"] .fiche h1 { font-size: 26px; }
  [data-theme="bistro"] .panier-ligne { padding: 16px 0; }
}


/* ==========================================================================
   4. THÈME « EXPRESS »
   --------------------------------------------------------------------------
   Pour qui : fast-food, kiosque, snack, poulet grillé, pizzeria à emporter,
   dark kitchen — l'essentiel du chiffre passe par l'emporter et la livraison,
   le client commande debout ou en marchant.
   On commande en trois gestes : voir le prix, appuyer sur « Ajouter », payer.
   Densité forte, séparateurs nets, aucune ombre molle, coins modérés.

   Règle de couleur, tenue partout : --marque ne peint que les actions
   (ajouter, commander, payer). Les états de navigation — onglet courant, page
   courante, rubrique active — sont en encre. Sans cette discipline, l'œil ne
   sait plus quel élément se touche, et le thème casse dès qu'une enseigne
   arrive avec un rouge ou un ocre au lieu d'un bleu.
   ========================================================================== */

[data-theme="express"] {
  /* Hauteur de référence : l'en-tête et la barre de catégories sont collants,
     les décalages de sticky s'y accrochent au lieu d'être devinés. */
  --h-entete: 56px;

  /* Coins modérés : les pilules du socle deviennent des rectangles adoucis.
     Un bouton rectangulaire présente plus de surface tactile utile à largeur
     égale, et aligne les arêtes d'une grille dense. */
  --r-s: 6px;
  --r-m: 8px;
  --r-l: 10px;
  --r-xl: 12px;
  --r-pilule: 8px;

  --encre: #0b1119;
  --encre-2: #303a48;
  --encre-3: #626d7d;
  --encre-4: #949daa;
  --fond: #f2f4f7;
  --surface: #ffffff;
  --bordure: #e3e6ea;
  --bordure-forte: #c8ced7;

  /* Halo de mise au point dérivé de la marque : reste juste avec n'importe
     quelle teinte, contrairement à un rgba() bleu écrit en dur. */
  --voile-marque: color-mix(in srgb, var(--marque) 22%, transparent);

  --largeur: 1240px;

  background: var(--fond);
  font-size: 16px;   /* lisible à bout de bras, sur un comptoir ou une borne */
  line-height: 1.42;
  /* Chiffres tabulaires partout : les prix d'une colonne s'alignent, et un
     total qui change ne fait plus danser la ligne. */
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ typographie */

[data-theme="express"] :is(h1, h2, h3, h4) {
  font-family: var(--police-texte);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

/* Micro-libellés : petites capitales espacées. Elles balisent l'écran sans
   consommer de hauteur, ce qui est exactement ce qu'on cherche ici. */
[data-theme="express"] :is(.etiquette, .champ > label, .plat-meta,
                           .tableau th, .stat-tuile span, .puce) {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
[data-theme="express"] :is(.champ > label, .etiquette) { font-size: 11.5px; color: var(--encre-3); margin-bottom: 5px; }
[data-theme="express"] .aide { font-size: 12px; }

/* ---------------------------------------------------------------- en-tête */

[data-theme="express"] .entete {
  background: var(--surface);
  backdrop-filter: none;          /* le flou est un effet mou : on l'enlève */
  border-bottom: 1px solid var(--encre);
}
[data-theme="express"] .entete-interieur { height: var(--h-entete); gap: 14px; }
[data-theme="express"] .marque { font-size: 16px; letter-spacing: -.02em; }
[data-theme="express"] .marque-jeton {
  width: 32px; height: 32px; border-radius: var(--r-s);
  background: var(--encre);       /* l'encre porte l'enseigne, la marque les actions */
}
[data-theme="express"] .nav-principale { gap: 2px; }
[data-theme="express"] .nav-principale a {
  padding: 7px 11px; border-radius: var(--r-s);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
[data-theme="express"] .nav-principale a.actif { background: #eceff3; color: var(--encre); }
[data-theme="express"] .jeton-lieu { border-radius: var(--r-s); font-size: 12px; padding: 6px 10px; }
[data-theme="express"] .entete-actions { gap: 8px; }
[data-theme="express"] .icone-bouton {
  width: 40px; height: 40px; border-radius: var(--r-s);   /* cible tactile confortable */
  border-color: var(--bordure-forte); color: var(--encre);
}
[data-theme="express"] .icone-bouton:hover { border-color: var(--encre); }
/* Le compteur reste rond : c'est le seul point de marque de l'en-tête, il doit
   se lire comme une pastille d'alerte et non comme une étiquette de plus. */
[data-theme="express"] .icone-bouton .compteur { border-radius: 999px; font-size: 10.5px; }
[data-theme="express"] .nav-mobile a { font-size: 16px; font-weight: 700; padding: 14px 2px; }

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

/* Court par principe : sur un service d'emporter, la carte doit apparaître
   avant le premier défilement. */
[data-theme="express"] .heros {
  min-height: clamp(220px, 32vh, 330px);
  background: var(--encre);       /* neutre : aucune teinte de marque à accorder */
}
[data-theme="express"] .heros-voile {
  background: linear-gradient(90deg, rgba(11, 17, 25, .88), rgba(11, 17, 25, .45));
}
[data-theme="express"] .heros-contenu { padding: 34px 0; max-width: 620px; }
[data-theme="express"] .heros-badge {
  border-radius: var(--r-s); padding: 5px 10px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
[data-theme="express"] .heros h1 { font-size: clamp(27px, 6vw, 40px); letter-spacing: -.03em; }
[data-theme="express"] .heros h1 em { display: inline; font-style: normal; color: rgba(255, 255, 255, .58); }
[data-theme="express"] .heros p { margin-top: 10px; font-size: 15px; }
[data-theme="express"] .heros-actions { margin-top: 20px; gap: 8px; }
[data-theme="express"] .heros-puces button { border-radius: 2px; }
[data-theme="express"] .heros-legende { border-radius: var(--r-s); font-size: 12px; }

/* Bandeau d'atouts : collé sous le héros, colonnes séparées par des filets
   (voir le socle). Il informe (délai, paiement) sans voler la place de la carte. */
[data-theme="express"] .atouts {
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--bordure); border-top: 0;
  border-radius: 0 0 var(--r-m) var(--r-m); overflow: hidden;
}
[data-theme="express"] .atout { padding: 12px 16px; gap: 11px; }
[data-theme="express"] .atout-icone {
  width: 34px; height: 34px; border-radius: var(--r-s);
  background: #eef1f5; color: var(--encre-2);
}

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

[data-theme="express"] .section { padding: 26px 0 40px; }
[data-theme="express"] .section-serree { padding: 22px 0; }
[data-theme="express"] .section-tete { align-items: center; gap: 12px; margin-bottom: 14px; }
[data-theme="express"] .section-tete h2 { font-size: 20px; }
[data-theme="express"] .section-tete p { font-size: 13px; margin-top: 2px; }
[data-theme="express"] .outils-carte { gap: 8px; }
[data-theme="express"] .recherche .saisie { width: 230px; border-radius: var(--r-s); padding-left: 38px; }

/* Onglets de catégories, collants sous l'en-tête : on change de rayon sans
   jamais remonter. Fond opaque couleur page, sinon la grille défile dessous
   et devient illisible. */
[data-theme="express"] .onglets {
  position: sticky; top: var(--h-entete); z-index: 30;
  width: auto; max-width: none; margin: 0 0 14px; padding: 8px 0;
  background: var(--fond); border-radius: 0;
  border-bottom: 1px solid var(--bordure);
  gap: 6px; justify-content: flex-start;
}
[data-theme="express"] .onglets a {
  padding: 9px 14px; border-radius: var(--r-s);
  background: var(--surface); border: 1px solid var(--bordure);
  font-size: 13px; font-weight: 700; color: var(--encre-2);
}
[data-theme="express"] .onglets a.actif {
  background: var(--encre); border-color: var(--encre); color: #fff; box-shadow: none;
}

/* --------------------------------------------------- grille et carte plat */

[data-theme="express"] .grille-plats {
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
[data-theme="express"] .plat-carte {
  border-radius: var(--r-m);
  transition: border-color .12s;
}
[data-theme="express"] .plat-carte:hover { transform: none; box-shadow: none; border-color: var(--encre-4); }
[data-theme="express"] .plat-media { aspect-ratio: 5 / 4; background: #e9ecf1; }

/* Le formulaire du favori n'a pas de hauteur propre : on le sort du flux pour
   qu'il ne pousse rien, et le bouton reprend sa place normale à l'intérieur. */
[data-theme="express"] .plat-carte > form { position: absolute; top: 6px; right: 6px; z-index: 2; }
[data-theme="express"] .coeur {
  position: static; width: 30px; height: 30px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .94); border: 1px solid var(--bordure); box-shadow: none;
}
[data-theme="express"] .ruban {
  border-radius: var(--r-s); background: var(--encre); font-size: 10px; padding: 3px 7px;
}
[data-theme="express"] .ruban-promo { background: var(--rouge); }
[data-theme="express"] .note-jeton {
  border-radius: var(--r-s); border: 1px solid var(--bordure); box-shadow: none; font-size: 11px;
}

[data-theme="express"] .plat-corps { padding: 10px 11px 11px; }
[data-theme="express"] .plat-corps h3 { font-size: 14px; font-weight: 700; line-height: 1.25; }
[data-theme="express"] .plat-desc { font-size: 12px; margin-top: 4px; -webkit-line-clamp: 1; min-height: 0; }
[data-theme="express"] .plat-meta { margin-top: 8px; gap: 10px; font-size: 10.5px; }
[data-theme="express"] .plat-pied {
  margin-top: auto; padding-top: 10px; gap: 8px;
  border-top: 1px solid var(--bordure);
}
[data-theme="express"] .plat-prix { font-size: 17px; line-height: 1.1; }
[data-theme="express"] .plat-prix small { font-size: 11px; }
[data-theme="express"] .plat-prix del { font-size: 11px; }
/* Le bouton d'ajout est le seul aplat de marque de la grille : il se repère
   au premier coup d'œil, quelle que soit la couleur de l'enseigne. */
[data-theme="express"] .plat-pied .btn-sm {
  min-height: 36px; padding: 0 13px; border-radius: var(--r-s); font-size: 13px; font-weight: 700;
}
[data-theme="express"] .epuise { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

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

[data-theme="express"] .btn {
  min-height: 44px; padding: 0 18px;
  border-radius: var(--r-s); font-weight: 700; font-size: 14px;
}
[data-theme="express"] .btn-lg { min-height: 52px; padding: 0 22px; font-size: 15px; }
[data-theme="express"] .btn-sm { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
[data-theme="express"] .btn-primaire { background: var(--marque); border-color: var(--marque); }
[data-theme="express"] .btn-primaire:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); }
[data-theme="express"] .btn-clair { border-color: var(--bordure-forte); }
[data-theme="express"] .btn-clair:hover { background: #f5f6f8; border-color: var(--encre); }
[data-theme="express"] .btn-fantome:hover { background: #eceff3; }
[data-theme="express"] .puce { border-radius: var(--r-s); padding: 4px 8px; font-size: 10.5px; }

/* ------------------------------------------------------------ formulaires */

[data-theme="express"] :is(.saisie, select.saisie, textarea.saisie) {
  /* 16 px : en dessous, iOS zoome à la mise au point et sort l'utilisateur
     de sa mise en page. Un tunnel de commande ne peut pas se le permettre. */
  font-size: 16px;
  min-height: 46px; padding: 11px 13px;
  border-radius: var(--r-s); border-width: 1.5px;
}
[data-theme="express"] .saisie:focus { border-color: var(--marque); box-shadow: 0 0 0 3px var(--voile-marque); }
[data-theme="express"] .champ { margin-bottom: 13px; }
[data-theme="express"] .case input { width: 18px; height: 18px; }

[data-theme="express"] .quantite { border-radius: var(--r-s); border-width: 1.5px; }
[data-theme="express"] .quantite button { width: 40px; height: 42px; font-size: 19px; font-weight: 700; }
[data-theme="express"] .quantite input { width: 46px; font-size: 15px; font-weight: 700; }

[data-theme="express"] :is(.option-ligne, .choix-mode, .moyen-choix) { border-radius: var(--r-s); border-width: 1.5px; }
[data-theme="express"] :is(.option-ligne, .choix-mode, .moyen-choix):has(input:checked) {
  border-color: var(--marque); background: var(--marque-clair); box-shadow: none;
}
[data-theme="express"] .groupe-options { padding: 14px 0; }
[data-theme="express"] .alerte { border-radius: var(--r-s); border-left-width: 3px; font-size: 13.5px; }

/* -------------------------------------------------- fiche plat et panier */

[data-theme="express"] .fiche { grid-template-columns: 1.05fr 1fr; gap: 26px; }
[data-theme="express"] .fiche-media { border-radius: var(--r-m); aspect-ratio: 4 / 3; }
[data-theme="express"] .fiche h1 { font-size: 26px; }
[data-theme="express"] .fiche-accroche { font-size: 14px; }
[data-theme="express"] .fiche-prix { font-size: 26px; margin: 14px 0; }

[data-theme="express"] .carte { border-radius: var(--r-m); box-shadow: none; }
[data-theme="express"] .carte-tete { padding: 12px 16px; }
[data-theme="express"] .carte-tete h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
[data-theme="express"] .carte-corps { padding: 16px; }

[data-theme="express"] .deux-colonnes { grid-template-columns: 1fr 340px; gap: 16px; }
[data-theme="express"] .panier-ligne { gap: 12px; padding: 12px 0; }
[data-theme="express"] .panier-vignette { width: 64px; height: 64px; border-radius: var(--r-s); }
[data-theme="express"] .panier-infos h4 { font-size: 14px; }
[data-theme="express"] .panier-total-ligne { font-size: 16px; }
[data-theme="express"] .recap { top: calc(var(--h-entete) + 12px); }
[data-theme="express"] .recap-ligne { padding: 7px 0; font-size: 13.5px; }
/* Le total se détache par un trait franc : c'est le chiffre qu'on relit avant
   de payer, il ne doit pas se confondre avec les lignes du dessus. */
[data-theme="express"] .recap-total {
  margin-top: 8px; padding-top: 12px; border-top: 2px solid var(--encre); font-size: 20px;
}
[data-theme="express"] :is(.promo-actif, .promo-forme .saisie) { border-radius: var(--r-s); }

/* Rappel de panier : bloc net, jamais une bulle flottante à ombre portée. */
[data-theme="express"] .panier-flottant {
  left: auto; right: 18px; bottom: 18px;
  min-height: 48px; border-radius: var(--r-s);
  border: 1px solid var(--marque-fonce); box-shadow: none; font-weight: 800;
}

/* -------------------------------------- listes, pagination, espace client */

[data-theme="express"] :is(.pagination a, .pagination span) { min-width: 40px; height: 40px; border-radius: var(--r-s); }
[data-theme="express"] .pagination .actif { background: var(--encre); border-color: var(--encre); }
[data-theme="express"] .vide-etat { border-style: solid; border-radius: var(--r-m); padding: 40px 18px; }
[data-theme="express"] .tableau th { font-size: 10.5px; }
[data-theme="express"] .stat-tuile { border-radius: var(--r-s); padding: 14px; }
[data-theme="express"] .compte-nav a { border-radius: var(--r-s); font-weight: 600; }
[data-theme="express"] .compte-nav a.actif { background: var(--encre); color: #fff; }
[data-theme="express"] .auth-boite { margin: 34px auto; }

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

/* Panneau encre, bouton marque : l'inscription reste une action, le bloc
   n'est pas un aplat décoratif de la couleur du restaurant. */
[data-theme="express"] .newsletter {
  background: var(--encre); border-radius: var(--r-m);
  padding: 30px 24px; text-align: left;
}
[data-theme="express"] .newsletter h2 { font-size: 22px; margin: 0; max-width: 640px; }
[data-theme="express"] .newsletter p { margin: 8px 0 0; font-size: 14px; }
[data-theme="express"] .newsletter-forme { justify-content: flex-start; margin-top: 16px; }
[data-theme="express"] .newsletter-forme .saisie { width: 300px; border-radius: var(--r-s); }
[data-theme="express"] .newsletter-forme .btn { background: var(--marque); color: #fff; border-color: var(--marque); }
[data-theme="express"] .newsletter-forme .btn:hover { background: var(--marque-fonce); }
[data-theme="express"] .newsletter small { margin-top: 12px; }

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

[data-theme="express"] .pied { background: var(--encre); border-top: 0; margin-top: 34px; }
[data-theme="express"] .pied-grille { padding: 30px 0 22px; gap: 24px; }
[data-theme="express"] .pied h4 {
  color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px;
}
[data-theme="express"] :is(.pied a, .pied li) { color: rgba(255, 255, 255, .68); font-size: 13px; }
[data-theme="express"] .pied a:hover { color: #fff; }
[data-theme="express"] .pied .marque { color: #fff; }
[data-theme="express"] .pied .marque-jeton { background: #fff; color: var(--encre); }
[data-theme="express"] .pied-intro { color: rgba(255, 255, 255, .58); font-size: 13px; }
[data-theme="express"] .pied-social a { background: rgba(255, 255, 255, .12); color: #fff; border-radius: var(--r-s); }
[data-theme="express"] .pied-social a:hover { background: #fff; color: var(--encre); }
[data-theme="express"] .pied-contact .bi { color: rgba(255, 255, 255, .45); }
[data-theme="express"] .pied-bas {
  border-top-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); font-size: 12px;
}

/* --------------------------------------------------------------- réactif --
   Plus de 80 % des visites sont sur téléphone : chaque palier redit ce que
   la feuille de base réglait, puisque nos sélecteurs sont plus spécifiques. */

@media (max-width: 1000px) {
  [data-theme="express"] .deux-colonnes { grid-template-columns: 1fr; }
  [data-theme="express"] .recap { position: static; }
  [data-theme="express"] .fiche { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  /* L'en-tête passe au tiroir plus tôt qu'ailleurs : il porte le panier et la
     recherche, qui doivent rester au large. */
  [data-theme="express"] :is(.nav-principale, .jeton-lieu) { display: none; }
  [data-theme="express"] .burger { display: grid; }
}

@media (max-width: 640px) {
  [data-theme="express"] .conteneur { padding: 0 14px; }
  [data-theme="express"] .section { padding: 18px 0 32px; }
  [data-theme="express"] .heros { min-height: 200px; }
  [data-theme="express"] .heros-contenu { padding: 26px 0; }
  [data-theme="express"] .atouts { grid-template-columns: 1fr; }
  [data-theme="express"] .atout { border-left: 0; border-top: 1px solid var(--bordure); }
  [data-theme="express"] .atout:first-child { border-top: 0; }

  [data-theme="express"] .outils-carte { width: 100%; flex-wrap: wrap; }
  [data-theme="express"] .recherche { flex: 1 1 100%; }
  [data-theme="express"] .recherche .saisie { width: 100%; }

  /* La barre de catégories va d'un bord à l'autre : on rend la marge du
     conteneur puis on la reprend en remplissage, sinon le fond collant
     laisse deux lisières par lesquelles la grille transparaît. */
  [data-theme="express"] .onglets { margin-inline: -14px; padding: 8px 14px; }

  [data-theme="express"] .grille-plats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Sur deux colonnes étroites, seuls le nom, le prix et le bouton comptent. */
  [data-theme="express"] :is(.plat-desc, .plat-meta) { display: none; }
  [data-theme="express"] .plat-corps { padding: 9px 10px 10px; }
  [data-theme="express"] .plat-pied { padding-top: 9px; }
  [data-theme="express"] .newsletter-forme .saisie { width: 100%; }
  [data-theme="express"] .newsletter { padding: 24px 18px; }

  /* Le rappel de panier devient une barre d'action pleine largeur, calée sur
     la zone sûre des téléphones à encoche. */
  [data-theme="express"] .panier-flottant {
    left: 0; right: 0; bottom: 0; justify-content: center;
    min-height: 56px; border-radius: 0; border: 0; border-top: 1px solid var(--marque-fonce);
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
  }
  /* …et le pied de page réserve sa place, pour que la barre ne masque jamais
     la dernière ligne. */
  [data-theme="express"] .pied { padding-bottom: 62px; }
  [data-theme="express"] .pied-grille { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  /* Très petits écrans : la vignette passe à gauche et la carte devient une
     ligne de liste. Deux colonnes ici tronqueraient les noms de plats. */
  [data-theme="express"] .grille-plats { grid-template-columns: 1fr; gap: 8px; }
  [data-theme="express"] .plat-carte { display: grid; grid-template-columns: 96px 1fr; }
  [data-theme="express"] .plat-media { aspect-ratio: auto; height: 100%; }
  [data-theme="express"] .plat-desc { display: -webkit-box; }
  [data-theme="express"] .pied-grille { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5. THÈME « ÉLÉGANT »
   --------------------------------------------------------------------------
   Pour qui : table de ville, hôtel-restaurant, établissement gastronomique —
   une clientèle qui réserve autant qu'elle commande. À éviter si la carte
   compte cent références ou si les photos sont inégales : le thème ne cache rien.

   Le principe tient en un mot : enlever. Pas d'ombre portée, pas d'arrondi,
   pas d'aplat de couleur. Ce qui structure la page, ce sont des filets d'un
   pixel, des capitales espacées, et le blanc entre les blocs. La couleur de
   marque n'est jamais un fond : trait de 26 px sous un titre, soulignement
   d'onglet actif, trait de focus. Un ocre y tient aussi bien qu'un bleu,
   précisément parce qu'elle n'occupe jamais assez de surface pour entrer en
   conflit avec une photo de plat.
   ========================================================================== */

[data-theme="elegant"] {
  /* Gris chauds plutôt que gris bleutés : une assiette y paraît plus
     appétissante, et le blanc cassé fatigue moins l'œil que le blanc pur. */
  --encre: #1c1917; --encre-2: #44403c; --encre-3: #78716c; --encre-4: #a8a29e;
  --fond: #faf9f7; --surface: #ffffff; --bordure: #eae7e3; --bordure-forte: #d8d3cd;

  /* Statuts désaturés : ils doivent informer, pas crier. */
  --vert: #4c7a5c; --vert-clair: #f3f6f3;
  --ambre: #8a6a2f; --ambre-clair: #f8f4ec;
  --rouge: #9c3b32; --rouge-clair: #f9f1f0;

  /* Coins droits. La pilule disparaît : un bouton rectangulaire se lit comme
     une ligne de carton d'invitation, pas comme une application. */
  --r-s: 0; --r-m: 0; --r-l: 0; --r-xl: 1px; --r-pilule: 0;

  --largeur: 1120px;

  /* Jetons propres au thème. */
  --filet: 1px solid var(--bordure);
  --lent: .5s cubic-bezier(.22, .61, .36, 1);

  background: var(--fond); color: var(--encre-2);
  font-size: 15.5px; line-height: 1.75;
}

/* Les grands titres passent en Inter régulier : à 50 px, une graisse 400 est
   plus distinguée qu'une 800, qui ferait promotionnel. */
[data-theme="elegant"] :is(h1, h2, h3, h4) {
  font-family: var(--police-texte);
  font-weight: 400; line-height: 1.24; letter-spacing: -.012em; color: var(--encre);
}

/* Les titres de section ne sont pas des titres, ce sont des étiquettes :
   petites capitales très espacées, en Plus Jakarta Sans 600. */
[data-theme="elegant"] :is(.section-tete h2, .carte-tete h3, .pied h4, .groupe-tete strong) {
  font-family: var(--police-titre); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--encre);
}
/* Le seul endroit fixe où la marque se montre : un trait court sous l'étiquette. */
[data-theme="elegant"] .section-tete h2 { position: relative; padding-bottom: 14px; }
[data-theme="elegant"] .section-tete h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 1px; background: var(--marque);
}
[data-theme="elegant"] .section-tete { margin-bottom: 38px; align-items: flex-end; }
[data-theme="elegant"] .section-tete p { margin-top: 10px; font-size: 14px; color: var(--encre-3); }

/* Le rythme vertical signe le thème plus encore que la typographie. */
[data-theme="elegant"] .section { padding: 96px 0; }
[data-theme="elegant"] .section-serree { padding: 60px 0; }
[data-theme="elegant"] .conteneur { padding: 0 34px; }

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

[data-theme="elegant"] .btn {
  padding: 14px 30px; font-family: var(--police-titre);
  font-size: 11.5px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase;
  transition: background var(--lent), color var(--lent), border-color var(--lent);
}
[data-theme="elegant"] .btn:active { transform: none; } /* pas de rebond : le réflexe n'est pas l'élégance */
[data-theme="elegant"] .btn-lg { padding: 17px 40px; font-size: 12px; }
[data-theme="elegant"] .btn-sm { padding: 9px 18px; font-size: 10.5px; letter-spacing: .14em; }

/* Le bouton principal est encre, pas marque : la couleur de l'enseigne ne
   supporterait pas d'être répétée trente fois sur une page de carte. */
[data-theme="elegant"] .btn-primaire { background: var(--encre); color: #fff; }
[data-theme="elegant"] .btn-primaire:hover { background: #000; color: #fff; }
[data-theme="elegant"] :is(.btn-clair, .btn-fantome) { background: transparent; color: var(--encre); border-color: var(--bordure-forte); }
/* Le survol est le second lieu de la marque : elle paraît, puis s'efface. */
[data-theme="elegant"] :is(.btn-clair, .btn-fantome):hover { background: transparent; color: var(--marque); border-color: var(--marque); }
[data-theme="elegant"] .btn-sombre:hover { background: #000; }
[data-theme="elegant"] .btn-danger { border-color: var(--bordure); color: var(--rouge); }
[data-theme="elegant"] .btn-danger:hover { background: transparent; border-color: var(--rouge); }

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

[data-theme="elegant"] .puce {
  padding: 4px 11px; font-size: 10px; font-weight: 600; letter-spacing: .16em;
  background: transparent; border: 1px solid var(--bordure-forte); color: var(--encre-2);
}
[data-theme="elegant"] .puce-bleue { color: var(--marque); border-color: var(--marque); }
[data-theme="elegant"] .puce-verte { color: var(--vert); border-color: var(--vert); }
[data-theme="elegant"] .puce-ambre { color: var(--ambre); border-color: var(--ambre); }
[data-theme="elegant"] .puce-rouge { color: var(--rouge); border-color: var(--rouge); }
[data-theme="elegant"] .puce-grise { color: var(--encre-3); }

/* ---------------------------------------------------------- cartes, messages */

[data-theme="elegant"] .carte { border-color: var(--bordure); }
[data-theme="elegant"] .carte-corps { padding: 30px; }
[data-theme="elegant"] .carte-tete { padding: 24px 30px; }

/* Une alerte n'a plus de fond teinté : un filet vertical suffit à la situer. */
[data-theme="elegant"] .alerte {
  padding: 16px 20px; font-size: 13.5px;
  background: var(--surface); border-color: var(--bordure); color: var(--encre-2);
}
[data-theme="elegant"] .alerte-succes { border-left: 2px solid var(--vert); color: var(--encre-2); }
[data-theme="elegant"] .alerte-erreur { border-left: 2px solid var(--rouge); color: var(--encre-2); }
[data-theme="elegant"] .alerte-info { border-left: 2px solid var(--marque); color: var(--encre-2); }

/* -------------------------------------------------------------- formulaires */

/* Champs soulignés plutôt qu'encadrés : sur un tunnel de commande, quatre
   côtés de bordure par champ font une pile de rectangles. Un trait suffit. */
[data-theme="elegant"] :is(.saisie, select.saisie, textarea.saisie) {
  padding: 11px 2px; font-size: 14.5px; background: transparent;
  border: none; border-bottom: 1px solid var(--bordure-forte);
  transition: border-color var(--lent);
}
[data-theme="elegant"] .saisie:focus { border-bottom-color: var(--marque); box-shadow: none; }
[data-theme="elegant"] .saisie.en-erreur { border-bottom-color: var(--rouge); }
[data-theme="elegant"] select.saisie { padding-right: 26px; background-position: right 2px center; }
[data-theme="elegant"] :is(.champ > label, .etiquette) {
  margin-bottom: 9px; font-family: var(--police-titre);
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--encre-3);
}
[data-theme="elegant"] .champ { margin-bottom: 24px; }
[data-theme="elegant"] .grille-champs { gap: 0 26px; }

/* Le choix retenu se signale par un filet à gauche, jamais par un aplat. */
[data-theme="elegant"] :is(.choix-mode, .moyen-choix, .option-ligne) {
  padding: 16px 18px; background: transparent; transition: border-color var(--lent);
}
[data-theme="elegant"] :is(.choix-mode, .moyen-choix):has(input:checked) {
  background: transparent; box-shadow: none;
  border-color: var(--bordure-forte); border-left: 2px solid var(--marque);
}
[data-theme="elegant"] .option-ligne .prix-option { color: var(--encre-2); font-weight: 500; }
[data-theme="elegant"] .moyen-choix-pastille { border-radius: 0; text-shadow: none; }

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

[data-theme="elegant"] .entete { background: var(--fond); backdrop-filter: none; border-bottom: var(--filet); }
[data-theme="elegant"] .entete-interieur { height: 86px; gap: 34px; }

/* Le nom de l'enseigne se lit comme une plaque : capitales espacées, taille
   modeste. C'est la table qui doit impressionner, pas le logotype. */
[data-theme="elegant"] .marque {
  gap: 13px; font-family: var(--police-titre);
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
[data-theme="elegant"] .marque-jeton {
  width: 36px; height: 36px; border-radius: 0;
  background: transparent; color: var(--encre); border: var(--filet);
}

[data-theme="elegant"] .nav-principale { gap: 30px; }
[data-theme="elegant"] .nav-principale a {
  padding: 4px 0; border-radius: 0; color: var(--encre-3);
  font-size: 11.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color var(--lent), border-color var(--lent);
}
[data-theme="elegant"] .nav-principale a:hover { background: transparent; color: var(--encre); }
[data-theme="elegant"] .nav-principale a.actif { color: var(--encre); font-weight: 500; border-bottom-color: var(--marque); }

[data-theme="elegant"] .jeton-lieu {
  padding: 0 4px; background: transparent; border: none; color: var(--encre-3);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
}
[data-theme="elegant"] .icone-bouton {
  position: relative; /* le compteur du panier doit s'accrocher au bouton */
  width: 38px; height: 38px; border-radius: 0; background: transparent; border-color: var(--bordure);
  transition: border-color var(--lent), color var(--lent);
}
[data-theme="elegant"] .icone-bouton:hover { border-color: var(--encre); color: var(--encre); }
[data-theme="elegant"] .icone-bouton .compteur { background: var(--encre); border-radius: 0; }

[data-theme="elegant"] .offcanvas-header { padding: 22px 26px; }
[data-theme="elegant"] .nav-mobile a {
  padding: 18px 2px; font-family: var(--police-titre);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

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

/* Le dégradé de repli est neutre : sans photo, la page reste sobre au lieu de
   se teindre à la couleur de l'enseigne. */
[data-theme="elegant"] .heros { min-height: clamp(460px, 68vh, 660px); background: linear-gradient(160deg, #23211e, #14120f); }
/* Voile uniforme et non diagonal : l'oblique tire l'œil vers un angle, ce qui
   contredit le calme recherché. */
[data-theme="elegant"] .heros-voile { background: linear-gradient(rgba(20, 18, 15, .52), rgba(20, 18, 15, .62)); }
[data-theme="elegant"] .heros-contenu { padding: 128px 0; max-width: 620px; }
[data-theme="elegant"] .heros-badge {
  margin-bottom: 34px; padding: 7px 15px; border-radius: 0;
  background: transparent; border-color: rgba(255, 255, 255, .32);
  font-family: var(--police-titre); font-size: 10px; font-weight: 600; letter-spacing: .24em;
}
[data-theme="elegant"] .heros h1 {
  font-family: var(--police-texte);
  font-size: clamp(38px, 5vw, 58px); font-weight: 400; line-height: 1.14; letter-spacing: -.02em;
}
/* L'italique reste blanc cassé : mettre la couleur de marque en 58 px serait
   exactement la faute que ce thème existe pour éviter. */
[data-theme="elegant"] .heros h1 em { color: rgba(255, 255, 255, .58); font-style: italic; }
[data-theme="elegant"] .heros p { margin-top: 26px; font-size: 15.5px; line-height: 1.8; }
[data-theme="elegant"] .heros-actions { gap: 16px; margin-top: 44px; }
[data-theme="elegant"] .heros-actions .btn-primaire { background: #fff; color: var(--encre); }
[data-theme="elegant"] .heros-actions .btn-primaire:hover { background: rgba(255, 255, 255, .86); color: var(--encre); }
[data-theme="elegant"] .heros-actions .btn-clair { background: transparent; border-color: rgba(255, 255, 255, .42); }
[data-theme="elegant"] .heros-actions .btn-clair:hover { background: transparent; border-color: #fff; color: #fff; }
/* Plaque nette, sans flou : le flou d'arrière-plan est un effet, et ce thème
   n'en a aucun — mais le fond reste opaque, sinon la légende devient illisible. */
[data-theme="elegant"] .heros-legende {
  padding: 8px 16px; border-radius: 0; backdrop-filter: none; background: rgba(20, 18, 15, .55);
  font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
[data-theme="elegant"] .heros-puces button { width: 22px; height: 1px; border-radius: 0; }
[data-theme="elegant"] .heros-puces button.active { width: 22px; height: 2px; border-radius: 0; }

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

/* Trois arguments alignés sous le héros, séparés par des filets (voir le
   socle) : pas de cartes flottantes, pas de chevauchement sur la photo. */
[data-theme="elegant"] .atouts { padding: 46px 0; border-bottom: var(--filet); }
[data-theme="elegant"] .atout { padding: 4px 30px; gap: 16px; }
[data-theme="elegant"] .atout:first-child { padding-left: 0; }
[data-theme="elegant"] .atout-icone { width: auto; height: auto; border-radius: 0; background: transparent; color: var(--marque); }
[data-theme="elegant"] .atout strong { font-family: var(--police-titre); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
[data-theme="elegant"] .atout span { font-size: 13px; color: var(--encre-3); }

/* -------------------------------------------------- onglets de catégories */

/* Les onglets deviennent une ligne de titres soulignée : la pilule grise
   ferait objet d'interface au milieu d'une carte. */
[data-theme="elegant"] .onglets {
  width: 100%; margin: 0 0 46px; padding: 0 0 2px; gap: 30px;
  background: transparent; border-radius: 0; border-bottom: var(--filet);
}
[data-theme="elegant"] .onglets a {
  padding: 0 0 14px; margin-bottom: -2px; border-radius: 0;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color var(--lent), border-color var(--lent);
}
[data-theme="elegant"] .onglets a.actif { background: transparent; box-shadow: none; color: var(--encre); border-bottom-color: var(--marque); }
[data-theme="elegant"] .recherche .saisie { width: 210px; padding-left: 26px; }
[data-theme="elegant"] .recherche .bi { left: 2px; }

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

/* Peu de colonnes, de grandes photos, un rapport constant : c'est le plat
   qu'on regarde, pas la carte qui le contient. */
[data-theme="elegant"] .grille-plats { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 56px 34px; }
/* Plus de carte du tout : une photo, un filet, du texte. */
[data-theme="elegant"] .plat-carte {
  background: transparent; border: none; border-radius: 0;
  overflow: visible; transition: none;
}
[data-theme="elegant"] .plat-carte:hover { box-shadow: none; transform: none; }
[data-theme="elegant"] .plat-media { aspect-ratio: 4 / 5; background: #f0edea; overflow: hidden; }
/* Le seul mouvement du thème : la photo s'éclaircit lentement au survol. */
[data-theme="elegant"] .plat-media img { transition: opacity var(--lent); }
[data-theme="elegant"] .plat-carte:hover .plat-media img { opacity: .86; }

/* Les pastilles posées sur la photo deviennent des cartons de papier collés
   dans les angles : opaques (donc lisibles sur n'importe quelle image),
   carrés, sans couleur — sauf « Promo », seul mot que la marque colore. */
[data-theme="elegant"] :is(.ruban, .note-jeton, .coeur) {
  background: var(--surface); color: var(--encre); border: none; border-radius: 0; box-shadow: none;
}
[data-theme="elegant"] .ruban { top: 0; left: 0; padding: 7px 13px; font-size: 9.5px; font-weight: 600; letter-spacing: .18em; }
[data-theme="elegant"] .ruban-promo { color: var(--marque); }
[data-theme="elegant"] .note-jeton { left: 0; bottom: 0; padding: 6px 13px; font-size: 11px; font-weight: 500; letter-spacing: .06em; }
[data-theme="elegant"] .note-jeton .bi { color: var(--encre-3); }
[data-theme="elegant"] .coeur { top: 0; right: 0; width: 34px; height: 34px; color: var(--encre-3); transition: color var(--lent); }
[data-theme="elegant"] :is(.coeur.aime, .coeur:hover) { color: var(--marque); }

[data-theme="elegant"] .plat-corps { padding: 20px 0 0; }
[data-theme="elegant"] .plat-corps h3 { font-size: 17px; font-weight: 400; letter-spacing: -.005em; }
[data-theme="elegant"] .plat-desc { margin-top: 8px; font-size: 13.5px; line-height: 1.65; min-height: 44px; }
[data-theme="elegant"] .plat-meta { margin-top: 14px; font-size: 10px; font-weight: 500; letter-spacing: .16em; }
[data-theme="elegant"] .plat-pied { margin-top: 18px; padding-top: 16px; border-top: var(--filet); }
/* Un prix n'a pas besoin d'être gras pour être lu : il est seul sur sa ligne. */
[data-theme="elegant"] .plat-prix { font-size: 16px; font-weight: 500; letter-spacing: .01em; }
[data-theme="elegant"] .plat-prix small { margin-left: 4px; font-size: 11px; font-weight: 500; color: var(--encre-3); }
[data-theme="elegant"] .epuise { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
[data-theme="elegant"] .vide-etat { padding: 90px 24px; background: transparent; border: var(--filet); }

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

[data-theme="elegant"] .fiche { gap: 64px; }
[data-theme="elegant"] .fiche-media { aspect-ratio: 4 / 5; border-radius: 0; background: #f0edea; }
[data-theme="elegant"] .fiche h1 { margin-top: 18px; font-size: 38px; font-weight: 400; }
[data-theme="elegant"] .fiche-accroche { margin-top: 16px; font-size: 15.5px; line-height: 1.8; }
[data-theme="elegant"] .fiche-prix { margin: 28px 0; font-size: 26px; font-weight: 400; letter-spacing: 0; }
[data-theme="elegant"] .groupe-options { padding: 26px 0; }
[data-theme="elegant"] .quantite { border-radius: 0; border-color: var(--bordure-forte); }
[data-theme="elegant"] .quantite input { font-weight: 500; }
[data-theme="elegant"] .quantite button { transition: color var(--lent); }

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

[data-theme="elegant"] .deux-colonnes { grid-template-columns: 1fr 340px; gap: 40px; }
[data-theme="elegant"] .panier-ligne { padding: 24px 0; gap: 20px; }
/* La vignette garde le rapport 4/5 de la grille : le panier doit ressembler
   à la carte d'où viennent les plats. */
[data-theme="elegant"] .panier-vignette { width: 84px; height: 105px; border-radius: 0; background: #f0edea; }
[data-theme="elegant"] .panier-infos h4 { font-size: 16px; font-weight: 400; }
[data-theme="elegant"] .panier-total-ligne { font-size: 15px; font-weight: 500; }
[data-theme="elegant"] .recap-ligne { padding: 11px 0; font-size: 13.5px; }
[data-theme="elegant"] .recap-total { margin-top: 18px; padding-top: 20px; font-size: 20px; font-weight: 400; }
[data-theme="elegant"] .recap-total span:first-child {
  font-family: var(--police-titre); font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
[data-theme="elegant"] .promo-forme { margin-top: 22px; gap: 14px; }
[data-theme="elegant"] .promo-actif {
  padding: 12px 16px; font-weight: 400; color: var(--encre-2);
  background: transparent; border: var(--filet); border-left: 2px solid var(--vert);
}
[data-theme="elegant"] .parcours-point { box-shadow: none; }
[data-theme="elegant"] .parcours-etape.courante .parcours-point { box-shadow: none; border-color: var(--marque); color: var(--marque); }
[data-theme="elegant"] .parcours-texte strong { font-weight: 500; }
/* Le rappel de panier : une plaque sombre, sans halo coloré ni arrondi. */
[data-theme="elegant"] .panier-flottant {
  padding: 15px 26px; border-radius: 0; background: var(--encre); box-shadow: none;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
[data-theme="elegant"] .panier-flottant:hover { background: #000; }

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

/* Le bloc d'inscription perd son aplat de marque : encadré sur fond blanc, il
   se lit comme un carton, et la marque n'y tient qu'un trait de 30 px. */
[data-theme="elegant"] .newsletter {
  padding: 76px 34px; border-radius: 0;
  background: var(--surface); color: var(--encre); border: var(--filet);
}
[data-theme="elegant"] .newsletter h2 {
  position: relative; padding-top: 30px;
  font-size: clamp(24px, 3vw, 32px); font-weight: 400; letter-spacing: -.015em;
}
[data-theme="elegant"] .newsletter h2::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 1px; background: var(--marque);
}
[data-theme="elegant"] .newsletter p { margin-top: 20px; font-size: 15px; color: var(--encre-3); }
[data-theme="elegant"] .newsletter-forme { margin-top: 36px; gap: 16px; align-items: flex-end; }
[data-theme="elegant"] .newsletter-forme .saisie {
  width: 300px; border-radius: 0; text-align: center;
  background: transparent; border-bottom-color: var(--bordure-forte); color: var(--encre);
}
[data-theme="elegant"] .newsletter-forme .saisie::placeholder { color: var(--encre-4); }
[data-theme="elegant"] .newsletter-forme .saisie:focus { border-bottom-color: var(--marque); box-shadow: none; }
[data-theme="elegant"] .newsletter-forme .btn { background: var(--encre); color: #fff; }
[data-theme="elegant"] .newsletter small { margin-top: 26px; color: var(--encre-4); }

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

[data-theme="elegant"] .pied { background: var(--fond); margin-top: 0; }
[data-theme="elegant"] .pied-grille { padding: 76px 0 52px; gap: 46px; }
[data-theme="elegant"] .pied h4 { margin-bottom: 22px; }
[data-theme="elegant"] .pied ul { gap: 12px; }
[data-theme="elegant"] .pied a { transition: color var(--lent); }
[data-theme="elegant"] .pied-intro { margin-top: 22px; line-height: 1.8; }
[data-theme="elegant"] .pied-social a {
  width: 34px; height: 34px; border-radius: 0; background: transparent; border: var(--filet);
  transition: color var(--lent), border-color var(--lent);
}
[data-theme="elegant"] .pied-social a:hover { background: transparent; color: var(--marque); border-color: var(--marque); }
[data-theme="elegant"] .pied-bas { padding: 26px 0; font-size: 11.5px; letter-spacing: .04em; }

/* ----------------------------------------------- pagination, espace client */

[data-theme="elegant"] .pagination { margin-top: 56px; gap: 0; }
[data-theme="elegant"] :is(.pagination a, .pagination span) {
  min-width: 40px; font-size: 13px; font-weight: 500;
  background: transparent; border: none; border-bottom: 1px solid transparent; border-radius: 0;
}
[data-theme="elegant"] .pagination a:hover { color: var(--encre); border-bottom-color: var(--bordure-forte); }
[data-theme="elegant"] .pagination .actif { background: transparent; color: var(--encre); border-bottom-color: var(--marque); }
[data-theme="elegant"] .compte-nav a {
  padding: 12px 0; border-radius: 0; border-bottom: var(--filet);
  font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
[data-theme="elegant"] .compte-nav a:hover { background: transparent; color: var(--encre); }
[data-theme="elegant"] .compte-nav a.actif { background: transparent; color: var(--encre); border-bottom-color: var(--marque); }
[data-theme="elegant"] .stat-tuile { padding: 24px; border-color: var(--bordure); }
[data-theme="elegant"] .stat-tuile span { font-size: 10px; font-weight: 600; letter-spacing: .18em; }
[data-theme="elegant"] .stat-tuile strong { margin-top: 10px; font-size: 26px; font-weight: 400; }
[data-theme="elegant"] .tableau th { padding: 14px 16px; font-size: 10px; letter-spacing: .18em; }
[data-theme="elegant"] .tableau td { padding: 18px 16px; }
[data-theme="elegant"] .tableau .num { font-weight: 500; }
[data-theme="elegant"] .auth-boite { margin: 84px auto; }
[data-theme="elegant"] .auth-boite .carte-corps { padding: 44px; }
[data-theme="elegant"] .auth-boite h1 { font-size: 24px; font-weight: 400; text-align: center; }
[data-theme="elegant"] .auth-boite a { color: var(--marque); font-weight: 500; }

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

@media (max-width: 1000px) {
  [data-theme="elegant"] .deux-colonnes { grid-template-columns: 1fr; }
  [data-theme="elegant"] .fiche { gap: 34px; }
  /* Les atouts passent en pile : les filets verticaux deviennent horizontaux. */
  [data-theme="elegant"] .atouts { grid-template-columns: 1fr; padding: 30px 0; }
  [data-theme="elegant"] .atout { padding: 22px 0 0; border-left: none; border-top: var(--filet); }
  [data-theme="elegant"] .atout:first-child { padding-top: 0; border-top: none; }
}

/* Huit visites sur dix se font sur un téléphone : l'air se réduit, mais la
   règle ne change pas — une colonne, une photo par écran, le même rapport. */
@media (max-width: 780px) {
  [data-theme="elegant"] .conteneur { padding: 0 22px; }
  [data-theme="elegant"] .entete-interieur { height: 66px; }
  [data-theme="elegant"] .marque { font-size: 11.5px; letter-spacing: .2em; }
  [data-theme="elegant"] .heros { min-height: clamp(400px, 62vh, 520px); }
  [data-theme="elegant"] .heros-contenu { padding: 76px 0; }
  [data-theme="elegant"] .heros-badge { margin-bottom: 24px; }
  [data-theme="elegant"] .section { padding: 60px 0; }
  [data-theme="elegant"] .section-serree { padding: 40px 0; }
  [data-theme="elegant"] .section-tete { margin-bottom: 28px; }
  [data-theme="elegant"] .onglets { margin-bottom: 32px; gap: 22px; overflow-x: auto; }
  [data-theme="elegant"] .grille-plats { grid-template-columns: 1fr; gap: 46px; }
  [data-theme="elegant"] .plat-desc { min-height: 0; }
  [data-theme="elegant"] .carte-corps { padding: 22px; }
  [data-theme="elegant"] .carte-tete { padding: 20px 22px; }
  [data-theme="elegant"] .newsletter { padding: 48px 24px; }
  [data-theme="elegant"] :is(.newsletter-forme, .recherche) .saisie { width: 100%; }
  [data-theme="elegant"] .btn-lg { padding: 15px 28px; }
  [data-theme="elegant"] .panier-flottant { padding: 16px; }
  [data-theme="elegant"] .pied-grille { padding: 48px 0 34px; gap: 34px; }
}

@media (max-width: 540px) {
  /* La grille garde une seule colonne : réduire la photo ici reviendrait à
     annuler le parti pris du thème. */
  [data-theme="elegant"] .grille-plats { grid-template-columns: 1fr; gap: 40px; }
  [data-theme="elegant"] :is(.plat-media, .fiche-media) { aspect-ratio: 4 / 5; }
}


/* ==========================================================================
   Correctif — le héros reste clair
   ==========================================================================

   Chaque thème redonne une couleur d'encre à ses titres, et cette règle
   directe l'emporte sur le `color: #fff` que `.heros` transmet par héritage.
   Résultat : un titre presque noir sur un voile bleu nuit, illisible.

   Le héros est le seul endroit de la vitrine où le fond est sombre par
   construction — c'est un voile posé sur une photo. Le correctif est donc
   posé une fois pour les quatre thèmes plutôt que répété dans chacun, où il
   manquerait au cinquième. */

:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .heros :is(h1, h2, h3) {
  color: #fff;
}

/* Le texte d'accompagnement suit, sans passer au blanc pur : il se lit sous
   le titre, il ne se dispute pas avec lui. */
:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .heros p {
  color: rgba(255, 255, 255, .84);
}

/* Une photo de couverture absente laisse apparaître son texte de rechange en
   pleine page, par-dessus le titre. On le masque : le héros a déjà son
   dégradé de repli, et un nom de plat en transparence au milieu du bandeau se
   lit comme un défaut d'affichage. */
:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .heros-image img,
:is([data-theme="maquis"], [data-theme="bistro"],
    [data-theme="express"], [data-theme="elegant"], [data-theme="cote"]) .heros-carrousel img {
  color: transparent; font-size: 0;
}


/* ==========================================================================
   6. THÈME « CÔTE »
   --------------------------------------------------------------------------
   Pour qui : Les Délices de la Côte, Ouidah. Une table chaleureuse où l'on
   commande aussi depuis son téléphone : la structure du maquis convient —
   grandes photos, prix lisibles, gros boutons —, ses règles s'appliquent donc
   à ce thème (voir la section 2, `:is(… [data-theme="cote"])`).

   Ce qui change, c'est l'habit, relevé dans le logo : le rouge du ruban
   porte l'action, le marine de « de la Côte » porte la structure, l'or des
   couverts souligne, le crème des lettres sert de fond. La terre cuite du
   maquis disparaît. Le rose et le bleu du fond du logo restent dans le logo :
   en grands aplats, ils rivaliseraient avec les photos des plats.

   Placée après la section 2, à spécificité égale : ses règles l'emportent.
   ========================================================================== */

[data-theme="cote"] {
  /* Neutres tirés vers le marine plutôt que vers la terre. */
  --encre: #1a2036;
  --encre-2: #363f5c;
  --encre-3: #545d77;   /* 6,6:1 sur le fond crème : lisible au soleil */
  --encre-4: #7d859c;

  --fond: #fbf5f1;
  --surface: #fffdfb;
  --bordure: #eddcd2;
  --bordure-forte: #d2bcae;
  --sable: #f4e4dd;     /* le crème des lettres du logo */

  --or: #c78353;
  --or-clair: #f3c99a;  /* l'or, éclairci pour rester lisible sur le marine */
  --marine: var(--marque-fonce);

  --brique: color-mix(in srgb, var(--marque) 62%, #1a2036);
  --marque-clair: color-mix(in srgb, var(--marque) 10%, #fffaf7);
  --halo: color-mix(in srgb, var(--marque) 28%, transparent);

  --ombre-s: 0 2px 0 rgba(26, 32, 54, .07);
  --ombre-m: 0 4px 0 rgba(26, 32, 54, .09);
  --ombre-l: 0 8px 0 rgba(26, 32, 54, .12);
}

/* ----------------------------------------------------------- typographie */

/* Les titres en Playfair Display, chargée par la boutique pour ce seul thème
   (config/themes.php → `police`) : l'empattement donne la note de table que
   le logo annonce. Les prix et les boutons restent en sans-serif, plus nets
   en petite taille. */
[data-theme="cote"] :is(h1, h2, .marque) {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* --------------------------------------------------------------- en-tête */

[data-theme="cote"] .entete { border-bottom: 3px solid var(--or); }
[data-theme="cote"] .marque { color: var(--marine); }
[data-theme="cote"] .marque-jeton { box-shadow: 0 3px 0 var(--marine); }
[data-theme="cote"] .marque-jeton:has(img) { box-shadow: none; border-radius: 50%; overflow: hidden; }
[data-theme="cote"] .offcanvas-header { border-bottom: 3px solid var(--or); }
/* Le nom de la maison est long : la pastille de lieu cède sa place (l'adresse
   reste dans le pied de page et la page « À propos »), le menu se resserre. */
[data-theme="cote"] .jeton-lieu { display: none; }
[data-theme="cote"] .marque { font-size: 20px; }
[data-theme="cote"] .entete-interieur { gap: 14px; }
[data-theme="cote"] .nav-principale { gap: 2px; }
[data-theme="cote"] .nav-principale a { padding: 9px 12px; }
@media (max-width: 540px) {
  [data-theme="cote"] .marque { font-size: 16.5px; }
  [data-theme="cote"] .marque-jeton { width: 36px; height: 36px; }
  [data-theme="cote"] .icone-bouton { width: 40px; height: 40px; }
}

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

[data-theme="cote"] .heros {
  /* Sans photo : la nuit marine qui vire au rouge du ruban. */
  background: linear-gradient(150deg,
              var(--marine),
              color-mix(in srgb, var(--marque) 70%, var(--marine)));
  border-bottom: 3px solid var(--or);
}
[data-theme="cote"] .heros-voile {
  background: linear-gradient(95deg, rgba(20, 26, 48, .90) 0%, rgba(20, 26, 48, .66) 48%, rgba(20, 26, 48, .22) 100%);
}
[data-theme="cote"] .heros h1 em { color: var(--or-clair); }
[data-theme="cote"] .heros p { color: rgba(255, 248, 242, .9); }
[data-theme="cote"] .heros-legende { background: rgba(20, 26, 48, .72); }
[data-theme="cote"] .heros-puces button.active { background: var(--or-clair); }

[data-theme="cote"] .atout-icone { background: var(--marine); color: #fff; }
/* Sur le voile marine, le bouton clair garde un texte clair : l'encre sombre
   du maquis y devenait illisible. */
[data-theme="cote"] .heros-actions .btn-clair { color: #fff; border-color: rgba(255, 255, 255, .6); }
[data-theme="cote"] .heros-actions .btn-clair:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ------------------------------------------------- titres de section */

/* Un filet d'or sous chaque titre : le geste du couteau du logo. */
[data-theme="cote"] .section-tete h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--or);
}

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

[data-theme="cote"] .pied { background: var(--marine); border-top: 4px solid var(--or); }
[data-theme="cote"] .pied a:hover { color: var(--or-clair); }
[data-theme="cote"] .pied-contact .bi { color: var(--or-clair); }
[data-theme="cote"] :is(.pied a, .pied li) { color: rgba(251, 245, 241, .8); }
[data-theme="cote"] .pied-intro { color: rgba(251, 245, 241, .74); }
[data-theme="cote"] .pied-bas { color: rgba(251, 245, 241, .62); }

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

[data-theme="cote"] .btn-sombre { background: var(--marine); box-shadow: 0 4px 0 #0e1222; }
[data-theme="cote"] .btn-sombre:hover { background: color-mix(in srgb, var(--marine) 85%, #fff); }

