/* =========================================================
   La Bouillante — feuille de style unique
   ========================================================= */

/* ---------- Polices de la marque ---------- */
@font-face {
  font-family: 'J Audio Cassette';
  src: url('../fonts/J-Audio-Cassette.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
/* Titres : une seule fonte sur tout le site */
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; letter-spacing: .01em; }
h1 {
  font-weight: 700;
  font-size: clamp(1.95rem, 4.6vw, 3.6rem); text-transform: uppercase;
  line-height: 1.16; padding-top: .06em;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-transform: uppercase; line-height: 1.22; padding-top: .05em; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.32; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: .7rem 1.1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

/* Le logotype est un SVG dessiné sur un canevas carré de 1000 px, dont le
   logotype n'occupe que 874 × 387 px, centré. Servi tel quel, il tiendrait
   dans un carré minuscule.

   On taille donc l'image pour que le DESSIN sorte à la bonne hauteur, et on
   recadre avec un conteneur qui cache les marges vides du canevas. */
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-logotype {
  position: relative; display: block;
  width: 86px;    /* 2,26 × la hauteur ci-dessous */
  height: 38px;
  overflow: hidden;
}
.brand-logo {
  position: absolute; left: 50%; top: 50%;
  width: 100px;   /* 86 / 0,874 : on annule les marges du canevas */
  height: 100px;
  /* la règle générale img { max-width: 100% } rognerait l'image à la
     largeur du cadre et casserait le calcul. */
  max-width: none;
  transform: translate(-50%, -50%);
}

.site-nav { display: flex; align-items: center; gap: 1.9rem; font-size: .95rem; }
.site-nav > a:not(.btn) { position: relative; padding: .3rem 0; color: var(--cream-dim); transition: color .2s; }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--or)); transition: width .25s;
}
.site-nav > a:not(.btn):hover, .site-nav > a:not(.btn):focus-visible { color: var(--cream); }
.site-nav > a:not(.btn):hover::after, .site-nav > a:not(.btn):focus-visible::after { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 10px 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(135deg, var(--cta-debut), var(--cta-fin));
  color: var(--on-cta); font-weight: 700; font-size: .97rem;
  padding: .85rem 1.6rem; border: 0; border-radius: 100px; cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 10px 26px var(--cta-ombre);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 34px var(--or-34); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.btn-ghost {
  background: transparent; color: var(--cream); box-shadow: none;
  border: 1px solid var(--cream-28);
}
.btn-ghost:hover { background: var(--cream-07); box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .88rem; }
/* Le bouton de la fiche la plus forte : rouge dans le theme braise,
   bleu dans le theme bleu. Il se distingue du bouton principal en
   partant d'une couleur pleine, pas du blanc. */
.btn-hot {
  background: linear-gradient(135deg, var(--hot-debut), var(--hot-fin));
  color: var(--hot-texte);
  box-shadow: 0 10px 26px var(--hot-ombre);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro { color: var(--cream-dim); font-size: 1.06rem; }

.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(45% 45% at 78% 22%, var(--or-30), transparent 70%),
    radial-gradient(38% 38% at 12% 8%, var(--cr-28), transparent 70%);
  pointer-events: none;
}
/* logo de la marque : grand, en fond, discret — le texte reste lisible par-dessus */
.hero-logo-bg {
  position: absolute; z-index: 0;
  left: 46%; top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: min(830px, 88vw); height: auto;
  opacity: .1; pointer-events: none; user-select: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-copy { max-width: 40rem; }
.hero h1 em {
  /* PAS de display: inline-block ici. Une boite inline-block est atomique :
     le navigateur peut couper avant et apres elle, et le point qui la suit
     partait alors seul a la ligne. En inline normal, le point reste colle
     au mot, comme le veut la typographie. Le degrade en fond suit la
     lettre du texte, ligne par ligne. */
  font-style: normal;
  background: linear-gradient(120deg, var(--gold), var(--or) 55%, var(--cr-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--cream-dim); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.4rem; }

.hero-points {
  display: flex; gap: 2.2rem; list-style: none; padding: 1.4rem 0 0; margin: 0;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-points li { font-size: .9rem; color: var(--cream-dim); text-transform: uppercase; letter-spacing: .12em; }
.hero-points strong { display: block; font-family: var(--font-body); font-size: 1.9rem; color: var(--cream); letter-spacing: 0; }

.hero-art { position: relative; display: grid; place-items: center; }
/* ---------- Les deux mascottes superposées ----------
   Les deux images sont présentes dans la page ; seule l'opacité change.
   C'est ce qui rend la métamorphose visible : si on remplaçait le `src`,
   le navigateur afficherait un trou le temps de recharger le fichier. */
.mascot-frame { position: relative; width: min(100%, 395px); }
.mascot-frame img {
  width: 100%; height: auto; filter: drop-shadow(0 30px 60px var(--or-28));
}
/* La première mascotte reste dans le flux : c'est elle qui donne sa hauteur
   au cadre. La seconde est posée par-dessus. Les deux sont en opacité 0 ou 1,
   jamais en display:none — sinon le cadre s'effondrerait.

   Azrael bleu est plus petit que son frère rouge dans une boîte identique.
   Mesuré DANS les fichiers (dessin rapport canevas 1000) :
       azrael.svg   787 x 957
       azrael2.svg  738 x 942   → 6 % de large en moins
   On corrige a l'echelle plutot qu'en changeant la boite, pour que les
   deux restent calees au meme endroit pendant la metamorphose. */
.mascot-img { transition: opacity .95s ease; }
.mascot-img-azrael { position: absolute; inset: 0; transform: scale(1.06); }
.mascot-fallback {
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  padding: 3rem 2rem; border-radius: var(--radius); text-align: center;
  background: radial-gradient(60% 60% at 50% 40%, var(--or-22), transparent 70%), var(--ink-2);
  border: 1px solid var(--line);
}
.mascot-fallback span { font-family: var(--font-body); font-weight: 700; text-transform: uppercase; font-size: 1.3rem; }
.mascot-fallback .mascot-fallback-sub {
  font-family: var(--font-body); text-transform: none; font-size: .8rem; color: var(--cream-dim);
}
.mascot-frame.is-missing > img { display: none; }
.mascot-frame.is-missing .mascot-fallback { display: flex; }

/* Qui est visible dépend du thème posé sur <html> */
:root[data-theme="braise"] .mascot-img-azrael { opacity: 0; }
:root[data-theme="azrael"] .mascot-img-braise { opacity: 0; }
:root[data-theme="braise"] .maison-avatar-azrael { display: none; }
:root[data-theme="azrael"] .maison-avatar-braise { display: none; }

.maison-avatar {
  width: 88px; height: 88px; object-fit: contain; border-radius: 50%;
  margin-bottom: 1.2rem;
  background: radial-gradient(60% 60% at 50% 40%, var(--or-30), transparent 70%), var(--ink-3);
  border: 1px solid var(--or-35);
  padding: 8px;
}

.hero-sticker {
  position: absolute; background: var(--sticker-bg); border: 1px solid var(--line);
  border-radius: 14px; padding: .75rem 1.05rem; font-size: .85rem; line-height: 1.35;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .1rem;
  backdrop-filter: blur(6px) saturate(130%);
}
.hero-sticker strong { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; color: var(--gold); letter-spacing: .04em; }
/* Deux autocollants « Nouveauté », un par Azrael : chacun cite une sauce
   différente. La roue affiche le niveau reel de cette sauce, lu dans
   --niveau. Le CSS affiche celui du theme courant et masque l'autre.

   Le cadre est rehausse a -9 % : la mascotte occupe toute la colonne et
   le petit rectangle tombait sur son visage. */
/* Les deux autocollants sont a droite, comme la version rouge : a gauche,
   ils tombaient sur le visage d'Azrael bleu. */
.sticker-top { top: -9%; right: -2%; transform: rotate(4deg); }
.sticker-top-azrael { transform: rotate(-4deg); }

:root[data-theme="azrael"] .sticker-top:not(.sticker-top-azrael),
:root[data-theme="braise"] .sticker-top-azrael { display: none; }

/* La roue : niveau 2 sur 10 pour l'une, 6 sur 10 pour l'autre. */
.sticker-top .dial {
  width: 34px; height: 34px; border-radius: 50%;
  background: conic-gradient(
    var(--or) 0 calc(var(--niveau, 2) * 10%),
    var(--cream-18) calc(var(--niveau, 2) * 10%) 100%
  );
  margin-bottom: .4rem; position: relative;
}
.sticker-top .dial::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--sticker-bg);
}
.sticker-tx { display: block; }
.sticker-niveau {
  display: block; margin-top: .3rem;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream-dim);
}
/* Le bas-parleur : une phrase entière à la place d'une accroche.
   Il passe dans le flux, sous la mascotte : posé en absolu, il lui
   recouvrait 233 px de visage. */
.sticker-bottom {
  position: static;
  transform: rotate(-1.2deg);
  max-width: min(24rem, 90%);
  margin-top: 1.1rem;
  font-size: .82rem; line-height: 1.55;
  border-left: 3px solid var(--cta-fin);
}

.heat-strip { position: relative; z-index: 1; border-block: 1px solid var(--line); overflow: hidden; padding: .9rem 0; background: var(--bande-bg); }
.heat-strip-track {
  display: flex; justify-content: space-between; gap: 2rem; min-width: 640px;
  font-family: var(--font-body); letter-spacing: .22em; font-size: .82rem;
  color: var(--cream-dim); text-transform: uppercase;
  background: linear-gradient(90deg, var(--heat-1), var(--heat-3) 45%, var(--heat-5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Maison ---------- */
.maison { background: var(--ink-2); }
.maison-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.maison-text p { color: var(--cream-dim); }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; font-size: .97rem; }
.checklist li::before {
  content: "🔥"; position: absolute; left: 0; top: 0; font-size: .95rem;
}

.lien-inline {
  color: var(--gold); font-weight: 600;
  border-bottom: 1px solid var(--gold-45);
  transition: border-color .2s, color .2s;
}
.lien-inline:hover { color: var(--gold); border-color: currentColor; }
.maison-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.3rem; display: flex; flex-direction: column; gap: .35rem;
  transition: transform .2s, border-color .2s;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--or-50); }
.stat-card strong { font-family: var(--font-body); font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--gold); line-height: 1; }
.stat-card span { font-size: .88rem; color: var(--cream-dim); }

/* ---------- Trois gestes pour garder sa sauce ---------- */
/* Regarder, sentir, goûter, dans cet ordre : on jette rarement au
   deuxième doute. Chaque geste gagne une bouteille. */
.gestes {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: grid; gap: .7rem;
  grid-template-columns: repeat(3, 1fr);
}
.gestes li {
  display: grid; gap: .3rem; align-content: start;
  padding: .9rem .9rem 1rem; border-radius: var(--radius-s);
  background: linear-gradient(160deg, var(--or-12), rgba(0, 0, 0, 0)), var(--ink-2);
  border: 1px solid var(--line);
}
.geste-ico {
  width: 30px; height: 30px; margin-bottom: .25rem;
  fill: none; stroke: var(--gold); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.gestes strong {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.gestes span { font-size: .82rem; line-height: 1.5; color: var(--cream-dim); }
.note-geste { margin-top: 1rem; font-size: .9rem; }
.note-geste strong { color: var(--cream); }
.faq-item .note-geste { color: var(--cream-dim); }

@media (max-width: 620px) {
  .gestes { grid-template-columns: 1fr; }
  .gestes li { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
  .geste-ico { grid-row: span 2; }
}

/* ---------- Cartes produits ---------- */
.sauce-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem;
}
.card {
  --label: var(--heat-3);
  --liquid: #b3201f;
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--or-45); box-shadow: 0 26px 60px rgba(0, 0, 0, .5); }
.card[data-heat="1"] { --label: #e8c15a; --liquid: #e79b2c; }
.card[data-heat="2"] { --label: #e59a3d; --liquid: #d9551f; }
.card[data-heat="3"] { --label: #e4713c; --liquid: #c22f1c; }
.card[data-heat="4"] { --label: #cf3f52; --liquid: #a3163b; }
.card[data-heat="5"] { --label: #8b1030; --liquid: #6d0b23; }
.card[data-heat="6"] { --label: #b02a3f; --liquid: #8c1226; }
.card[data-heat="7"] { --label: #9a2334; --liquid: #7a0f22; }
.card[data-heat="8"] { --label: #8a1d2c; --liquid: #6b0c1c; }
.card[data-heat="9"] { --label: #7a1826; --liquid: #5e0a16; }
.card[data-heat="10"] { --label: #6b1420; --liquid: #520811; }
.card[data-heat="0"] { --label: #7d8352; --liquid: #8c1f2a; }

.card-featured { border-color: var(--or-45); }
.card-featured::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 40% at 50% 0%, var(--or-22), transparent 70%);
}

/* -----------------------------------------------------------------
   Les fiches « Azrael bleu » : à partir du niveau 6.
   -----------------------------------------------------------------
   Cette fiche garde sa couleur quelle que soit l'ambiance du site.
   C'est voulu : elle accueille l'autre Azrael, elle doit rester
   bleue même quand tout le reste est en braise. Les teintes sont donc
   écrites en dur ici, et non prises dans le thème.
   ----------------------------------------------------------------- */
.card.est-azrael {
  border-color: var(--az-bordure);
  background: linear-gradient(180deg, var(--az-fond-haut), var(--az-fond));
}
.card.est-azrael::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 0%, var(--az-halo), transparent 72%);
}
.card.est-azrael:hover { border-color: var(--az-bordure-vif); }
.card.est-azrael .card-bottle {
  background: radial-gradient(60% 55% at 50% 32%, var(--az-halo-doux), transparent 72%);
}
.card.est-azrael .bouteille-mascotte {
  width: 210px; height: auto; margin-top: -.6rem;
  filter: drop-shadow(0 16px 34px var(--az-ombre));
}
.card.est-azrael .card-tag { color: var(--az-txt); }
/* L'echelle de stock n'est PAS redefinie ici : « Stock : 3 btl » doit
   avoir exactement la meme apparence sur cette fiche que sur les six
   autres, sinon le signal perd sa valeur. */
.ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--gold); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: .35rem .75rem;
  border-radius: 100px;
}

.card-bottle {
  position: relative; display: grid; place-items: center; padding: 2rem 1rem 0;
  background:
    radial-gradient(60% 50% at 50% 30%, var(--reflet), transparent 70%);
}
.card-bottle svg { width: 165px; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); transition: transform .3s; }
/* la mascotte tient lieu de flacon sur la premiere fiche */
.card-bottle .bouteille-mascotte {
  width: 184px; height: auto; margin-top: -.4rem;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5));
  transition: transform .3s;
}
.card:hover .card-bottle svg,
.card:hover .card-bottle .bouteille-mascotte { transform: translateY(-6px) rotate(-1deg); }

.b-cap { fill: var(--flacon-bouchon); }
.b-neck { fill: var(--flacon-col); }
.b-body { fill: var(--cream-07); stroke: var(--cream-22); stroke-width: 2; }
.b-sauce { fill: var(--liquid); opacity: .92; }
.b-label { fill: var(--flacon-etiquette); }
.b-mark { fill: var(--label); }
.b-line { fill: var(--flacon-trait); }
.b-line-sm { fill: var(--flacon-trait-fin); }

.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 100px; color: var(--on-accent);
}
.badge-1 { background: var(--heat-1); }
.badge-2 { background: var(--heat-2); }
.badge-3 { background: var(--heat-3); }
.badge-4 { background: var(--heat-4); color: #fff; }
.badge-5 { background: var(--heat-5); color: #fff; }
.badge-kit { background: var(--olive); color: var(--cream); }

.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .15rem; }

/* titre + pastille de stock : la pastille se cale en haut a droite du bloc
   titre, quel que soit le nombre de lignes du nom. */
.card-titre { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; }
/* flex-basis: 0 est la cle : le retour a la ligne se decide sur la taille
   theorique des elements. Avec une base « contenu », un nom long suffit a
   pousser la pastille a la ligne du dessous. Une base nulle dit « occupe ce
   qui reste », et la pastille garde sa place en haut a droite. */
.card-titre h3 { flex: 1 1 0; min-width: 0; margin: 0 0 .15rem; }

.pastille {
  flex: none; display: inline-block; margin-top: .1rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: .18rem .5rem; border-radius: 100px; white-space: nowrap;
  border: 1px solid transparent;
}

/* ---- L'echelle du stock ---------------------------------------
   Blanc quand il reste du stock, puis trois bleus de plus en plus
   fonces, et blanc sur noir a la rupture.

   Les quatre etats sont des variables, mais ils sont volontairement
   identiques dans les deux themes : l'echelle mesure une quantite,
   pas une ambiance. Elle doit se lire pareil sur un fond chaud et
   sur un fond bleu.
   ---------------------------------------------------------------- */
.pastille.est-large  { color: var(--stock-haut-tx); background: var(--stock-haut-bg); border-color: var(--stock-haut-bd); }
.pastille.est-moyen  { color: var(--stock-moyen-tx); background: var(--stock-moyen-bg); border-color: var(--stock-moyen-bd); }
.pastille.est-faible { color: var(--stock-faible-tx); background: var(--stock-faible-bg); border-color: var(--stock-faible-bd); }
.pastille.est-epuise { color: #fff; background: #000; border-color: rgba(255, 255, 255, .45); }

/* la rupture, seule, passe sur sa propre ligne : la phrase est trop
   longue pour tenir a cote du titre. */
.pastille.est-epuise {
  flex: 0 0 100%; margin-top: .45rem; text-align: center;
}
.card-tag { color: var(--gold); font-size: .88rem; letter-spacing: .04em; margin-bottom: .9rem; }

/* ---------- Certification biologique, sous le niveau ---------- */
/* Les deux marques sont reservees : seuls les fichiers officiels de
   assets/img/certifs/ sont affiches. Ils sont empiles, pas côte à côte —
   le logo AB est presque carré, la feuille verte est large, les mettre
   sur une même ligne donnerait deux tailles sans raison. */
.card-certifs {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  margin: -.3rem 0 1rem; padding: 0;
}
.card-certifs img { height: 34px; width: auto; opacity: .9; transition: opacity .2s; }
.card-certifs img:hover { opacity: 1; }

.card-text { color: var(--cream-dim); font-size: .96rem; flex: 1; }

/* jauge : 10 crans, remplis selon le niveau de la fiche */
.meter { display: flex; gap: .22rem; margin-bottom: 1rem; }
.meter i {
  width: 14px; height: 7px; border-radius: 2px; display: block;
  background: var(--cream-16);
}
.card[data-heat="1"] .meter i:nth-child(-n+1),
.card[data-heat="2"] .meter i:nth-child(-n+2),
.card[data-heat="3"] .meter i:nth-child(-n+3),
.card[data-heat="4"] .meter i:nth-child(-n+4),
.card[data-heat="5"] .meter i:nth-child(-n+5),
.card[data-heat="6"] .meter i:nth-child(-n+6),
.card[data-heat="7"] .meter i:nth-child(-n+7),
.card[data-heat="8"] .meter i:nth-child(-n+8),
.card[data-heat="9"] .meter i:nth-child(-n+9),
.card[data-heat="10"] .meter i:nth-child(-n+10) { background: linear-gradient(90deg, var(--gold), var(--or)); }
.meter-kit i { background: linear-gradient(90deg, var(--gold), var(--cr)); }

.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.price { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.price s { color: var(--cream-dim); font-size: .9rem; font-family: var(--font-body); margin-left: .3rem; }

.sauce-note { margin-top: 2.5rem; color: var(--cream-dim); font-size: .92rem; text-align: center; }

/* ---------- Niveaux ---------- */
.niveaux { background: var(--ink-2); }
.scale { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
/* Deux niveaux : pastille + niveau + description, puis les puces sur une ligne
   à part. Sinon une ligne chargée en sauces écrase la description. */
.scale-item {
  position: relative; display: grid;
  grid-template-columns: 44px minmax(150px, 190px) 1fr;
  grid-template-areas:
    "pastille niveau texte"
    ".        puces  puces";
  gap: .7rem 1.2rem;
  align-items: center; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.6rem;
  transition: transform .2s, border-color .2s, background .2s;
}
.scale-item:hover { transform: translateX(6px); border-color: var(--or-45); }
.scale-item p { grid-area: texte; margin: 0; color: var(--cream-dim); font-size: .95rem; }
.scale-item-vide { opacity: .72; border-style: dashed; }

.scale-dot { grid-area: pastille; width: 34px; height: 34px; border-radius: 50%; }

.scale-niveau { grid-area: niveau; display: flex; flex-direction: column; gap: .1rem; }
.scale-niveau strong {
  font-family: var(--font-body); font-weight: 700; font-size: 1.25rem;
  color: var(--cream); letter-spacing: .04em; line-height: 1.1;
}
.scale-niveau span {
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700;
}

.scale-sauces {
  grid-area: puces; list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-start;
}
.scale-sauces a, .scale-sauces .vide span {
  display: inline-block; white-space: nowrap;
  font-size: .82rem; padding: .32rem .7rem; border-radius: 100px;
}
.scale-sauces a {
  background: var(--gold-14); color: var(--gold);
  border: 1px solid var(--gold-30); transition: background .2s, color .2s;
}
.scale-sauces a:hover { background: var(--gold); color: var(--ink); }
.scale-sauces .vide span { border: 1px dashed var(--line); color: var(--dim-65); font-style: italic; }

.scale-dot { width: 34px; height: 34px; border-radius: 50%; }
.d1 { background: var(--heat-1); }
.d2 { background: var(--heat-2); }
.d3 { background: var(--heat-3); }
.d4 { background: var(--heat-4); }
.d5 { background: var(--heat-5); }
.lvl-cta { margin-top: 2.5rem; text-align: center; }

/* ---------- Usages ---------- */
.usage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.usage {
  position: relative; padding: 2rem 1.6rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--or-12), rgba(0, 0, 0, 0)) , var(--ink-2);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.usage:hover { transform: translateY(-5px); border-color: var(--gold-45); }
.usage-num {
  position: absolute; top: .2rem; right: 1rem;
  font-family: var(--font-body); font-size: 3.4rem; color: var(--cream-08);
}
.usage p { color: var(--cream-dim); font-size: .95rem; margin: 0; }

/* ---------- Avis ---------- */
.avis { background: linear-gradient(180deg, transparent, var(--cr-16), transparent); }
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote-stars { color: var(--gold); letter-spacing: .3em; font-size: 1.2rem; margin-bottom: 1.2rem; }
.quote blockquote p {
  font-family: var(--font-body); font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  text-transform: uppercase; line-height: 1.35; margin-bottom: 1.2rem;
}
.quote footer { color: var(--cream-dim); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem;
  font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-body); font-size: 1.4rem; color: var(--gold);
  transition: transform .2s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--cream-dim); }

/* ---------- CTA ---------- */
.boutique { background: var(--ink-2); }
.boutique-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.4rem);
}
.boutique h2 { margin-bottom: .6rem; }
.boutique .section-intro { margin: 0; }
.newsletter label { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .18em; color: var(--cream-dim); margin-bottom: .7rem; }
.newsletter-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 220px; background: var(--ink); border: 1px solid var(--line); border-radius: 100px;
  padding: .85rem 1.2rem; color: var(--cream); font: inherit;
}
.newsletter input::placeholder { color: var(--dim-60); }
.form-msg { margin: .8rem 0 0; font-size: .9rem; color: var(--gold); min-height: 1.2em; }

/* ---------- Pied ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand img { width: 88px; height: 88px; object-fit: contain; margin-bottom: .8rem; }
.footer-brand-name {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.2rem; color: var(--cream); margin: 0 0 .5rem;
}
.footer-brand p, .footer-col p { color: var(--cream-dim); font-size: .93rem; }
.footer-col h3 { font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--cream-dim); font-size: .93rem; padding: .22rem 0; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--cream); padding-left: .35rem; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: 1.5rem 0;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--cream-dim);
}
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a:hover { color: var(--cream); }

/* ---------- Bouton panier (en-tête) ---------- */
.cart-button {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--cream); cursor: pointer;
  border: 1px solid var(--cream-28); border-radius: 100px;
  padding: .5rem 1.05rem; font: inherit; font-size: .95rem; font-weight: 700;
  transition: border-color .2s, background .2s;
}
.cart-button:hover { border-color: var(--gold); background: var(--gold-10); }
.cart-button svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
/* ---------- Bouton de thème ----------
   Il montre l'ambiance VERS LAQUELLE on va, pas celle qu'on quitte :
   sur un site qui change tout seul, c'est le seul repère fiable. */
.bascule-theme {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--or); cursor: pointer;
  border: 1px solid var(--cream-28); border-radius: 100px;
  width: 38px; height: 38px; padding: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.bascule-theme:hover { border-color: var(--or); background: var(--or-12); }
.bascule-theme:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bascule-theme-ico { width: 20px; height: 20px; fill: currentColor; display: none; }
.bascule-theme[data-cible="azrael"] .bascule-theme-azrael { display: block; }
.bascule-theme[data-cible="braise"] .bascule-theme-braise { display: block; }

.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 .3rem; margin-left: .1rem;
  background: linear-gradient(135deg, var(--cta-debut), var(--cta-fin));
  color: var(--on-cta); font-size: .78rem; font-weight: 700; border-radius: 100px;
}

/* ---------- Tiroir panier ---------- */
.panier-voile {
  position: fixed; inset: 0; z-index: 70;
  background: var(--panel-bg); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .28s ease;
}
.panier-voile.est-visible { opacity: 1; }

.panier {
  position: fixed; top: 0; right: 0; z-index: 71;
  width: min(420px, 100%); height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--ink-2); border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .6);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22, .7, .25, 1);
}
.panier.est-ouvert { transform: translateX(0); }

.panier-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); flex: none;
}
.panier-head h2 { margin: 0; font-size: 1.3rem; }
.panier-close {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  color: var(--cream); cursor: pointer; transition: border-color .2s, background .2s;
}
.panier-close:hover { border-color: var(--gold); background: var(--gold-10); }
.panier-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.panier-body { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.5rem; }

.panier-lignes { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.panier-ligne {
  display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem;
  padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--ink-3);
}
.panier-ligne-nom { margin: 0; font-weight: 700; font-size: .98rem; }
.panier-ligne-niveau {
  display: inline-block; margin-left: .35rem; padding: .1rem .45rem;
  border-radius: 100px; background: var(--or-18); color: var(--gold);
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.panier-ligne-prix { margin: 0; color: var(--gold); font-weight: 700; font-size: .95rem; text-align: right; }
.panier-ligne-actions {
  grid-column: 1 / -1; display: flex; align-items: center; gap: .5rem; margin-top: .5rem;
}
.panier-qte {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--cream); font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.panier-qte:hover { border-color: var(--gold); color: var(--gold); }
/* stock atteint : le « + » devient visiblement inerte */
.panier-qte:disabled,
.panier-qte:disabled:hover {
  color: var(--dim-30); border-color: var(--cream-08);
  cursor: not-allowed;
}
.panier-qte-val { min-width: 24px; text-align: center; font-weight: 700; }
.panier-retirer {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--cream-dim); font: inherit; font-size: .82rem;
  border-bottom: 1px solid transparent; padding: 0;
}
.panier-retirer:hover { color: var(--cr-light); border-bottom-color: currentColor; }

.panier-vide { text-align: center; color: var(--cream-dim); margin: 3rem 0; }
.panier-vide span { font-size: .88rem; color: var(--dim-75); }

.panier-foot {
  flex: none; padding: 1.2rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line); background: var(--ink-3);
}
.panier-recap { margin: 0 0 .5rem; font-size: .85rem; color: var(--cream-dim); }
.panier-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--cream-dim);
}
.panier-total strong { font-family: var(--font-body); font-size: 1.5rem; color: var(--cream); letter-spacing: 0; text-transform: none; }
.panier-cta { width: 100%; }
.panier-cta.est-desactive { opacity: .45; box-shadow: none; pointer-events: none; }
.panier-vider { width: 100%; margin-top: .6rem; }
.panier-note { margin: .9rem 0 0; font-size: .8rem; color: var(--cream-dim); }
.panier-alerte {
  margin: .8rem 0 0; padding: .55rem .8rem; font-size: .8rem;
  color: var(--on-accent); background: var(--gold); border-radius: 8px; font-weight: 600;
}
.panier-note-dest {
  margin: .6rem 0 0; font-size: .74rem; color: var(--dim-70); text-align: center;
}

/* ---------- Effets de braise ---------- */
/* Le canvas est au-dessus de tout, y compris du tiroir panier, pour que les
   etincelles restent visibles sur le bouton « Passer ma commande ».
   Il ne capte jamais le pointeur. */
#ember-canvas {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
}

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .maison-grid, .boutique-inner { grid-template-columns: 1fr; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .mascot-frame { width: min(78%, 340px); }
  .hero-logo-bg { width: min(560px, 100vw); opacity: .07; top: 46%; left: 50%; }
  .sticker-top { right: 0; }
  .sticker-bottom { left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--overlay-bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .cart-button { padding: .6rem .9rem; }
  .panier { width: 100%; }
  .scale-item {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "pastille niveau"
      ".        texte"
      ".        puces";
  }
  .scale-sauces { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .heat-strip-track { min-width: 0; font-size: .68rem; letter-spacing: .12em; gap: 1rem; }

  /* les autocollants passent sous la mascotte au lieu de la recouvrir */
  .hero-art { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
  .mascot-frame { width: min(72%, 260px); }
  .hero-sticker {
    position: static; transform: none; flex-direction: row; align-items: center;
    gap: .55rem; padding: .5rem .9rem; font-size: .8rem; border-radius: 100px;
  }
  .hero-sticker strong { font-size: .9rem; }
  .sticker-top .dial { width: 18px; height: 18px; margin: 0; }
  .sticker-top .dial::after { inset: 4px; }
  /* le parleur est un paragraphe : la forme pilule du reste des
     autocollants l'etouffe et le coupe en deux. */
  .sticker-bottom {
    max-width: 100%; border-radius: 14px; text-align: left;
    font-size: .8rem; line-height: 1.5; margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
