/* =========================================================================
   MAESTRO — La Gourmand'ice · direction « GRANDE MAISON » — humeur LUXE
   Système de design AUTONOME (aucun token réutilisé de A / du studio-kit).
   Personnalité : crème dominante + espace blanc généreux, bordeaux profond
   statement, accent OR/CHAMPAGNE discret (filets, sceaux, soulignés). Serif
   Playfair en manchette, Inter Tight en lecture. Animations LENTES et chics
   (reveals doux, courbe sereine). Préfixe .mx-* pour éviter toute collision.
   ========================================================================= */

/* ------------------------------- TOKENS -------------------------------- */
:root {
  /* Couleurs communes au logo (seul point commun avec A) */
  --corail:        #E8848C;
  --magenta:       #E5398A;
  --creme:         #FBF3E4;

  /* Palette LUXE propre à MAESTRO — crème noble + bordeaux profond + or */
  --papier:        #FCF8F1;   /* fond principal, crème très clair lumineux */
  --papier-2:      #F4ECDD;   /* fond alterné, crème chaud */
  --blanc:         #FFFFFF;   /* cartes */
  --bordeaux:      #3F0C1D;   /* bandeaux statement — bordeaux profond noble */
  --bordeaux-2:    #5C1430;   /* dégradé bordeaux */
  --encre:         #281A1E;   /* texte principal */
  --encre-doux:    #6E5B62;   /* texte secondaire */

  /* OR / CHAMPAGNE — l'accent luxe.
     --or            = or DÉCORATIF (filets, traits, sceau) — jamais pour du texte sur crème.
     --or-texte      = or assombri RÉSERVÉ AUX LIBELLÉS TEXTE sur fond clair (≥4,5:1 sur
                       papier, papier-2 ET blanc — vérifié WCAG AA). */
  --or:            #B68A3E;   /* or chaud décoratif (filets/traits/sceau) */
  --or-texte:      #876527;   /* or texte AA sur crème (5,06 papier · 4,56 papier-2 · 5,36 blanc) */
  --or-clair:      #D9B873;   /* champagne clair (sur bordeaux, dégradés) */
  --or-rose:       #C2A062;   /* métal doux (sceau rotatif, filets sombres) */
  --or-souligne:   rgba(182,138,62,.5);

  --filet:         #E7DAC4;   /* filets 1px sur crème */
  --filet-or:      rgba(182,138,62,.28); /* filet doré subtil */
  --filet-sombre:  rgba(217,184,115,.26); /* filets dorés sur bordeaux */

  /* Le magenta/bordeaux porte l'accent éditorial ; l'or l'élève */
  --accent:        #9E1252;            /* bordeaux-magenta profond, AA sur crème */
  --accent-fort:   #7E0E41;

  /* Typo */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rythme (échelle 4px) — LUXE = plus d'air */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px; --s-10: 152px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 72px);

  --radius: 3px;   /* rectangles NETS, rayon minime */
  --radius-img: 6px;

  /* Courbe sereine (luxe) : décélération longue et douce, jamais punchy */
  --ease: cubic-bezier(.16, .68, .26, 1);
  --ease-soft: cubic-bezier(.33, 0, .12, 1);

  --shadow-card: 0 1px 0 var(--filet-or), 0 26px 56px -34px rgba(40,26,30,.42);
  --shadow-soft: 0 18px 50px -30px rgba(40,26,30,.3);
}

/* ------------------------------- RESET --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }

.mx-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mx-skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--bordeaux); color: var(--creme); padding: 10px 16px;
  border-radius: var(--radius); transition: top .2s var(--ease);
}
.mx-skip:focus { top: 16px; }

/* ----------------------------- LAYOUT ---------------------------------- */
.mx-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mx-section { padding-block: clamp(var(--s-8), 9vw, var(--s-10)); }
.mx-section--tight { padding-block: clamp(var(--s-7), 6vw, var(--s-8)); }
.mx-section--paper2 { background: var(--papier-2); }

/* Filet de section (séparateur fin éditorial) */
.mx-rule { height: 1px; background: var(--filet); border: 0; }

/* Surtitre éditorial LUXE : petites capitales espacées + trait OR */
.mx-kicker {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--or-texte);
}
/* Le TRAIT reste en or décoratif clair ; seul le TEXTE est assombri (AA). */
.mx-kicker::before {
  content: ""; width: 32px; height: 1.5px; background: var(--or); display: inline-block;
}
.mx-kicker--center { justify-content: center; }
.mx-kicker--center::before { width: 32px; }
.mx-kicker--invert { color: var(--or-clair); }
.mx-kicker--invert::before { background: var(--or-clair); }

/* En-tête de section */
.mx-head { max-width: 56ch; }
.mx-head--center { margin-inline: auto; text-align: center; }
.mx-head__title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-top: var(--s-4); }
.mx-head__lead { margin-top: var(--s-4); color: var(--encre-doux); font-size: 1.08rem; max-width: 60ch; }
.mx-head--center .mx-head__lead { margin-inline: auto; }

/* ----------------------------- BOUTONS --------------------------------- */
.mx-btn {
  --btn-bg: var(--bordeaux); --btn-fg: var(--creme); --btn-bd: var(--bordeaux);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  font-family: var(--sans); font-weight: 600; font-size: .94rem; letter-spacing: .03em;
  padding: 15px 30px; border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  min-height: 50px;
}
.mx-btn:hover { transform: translateY(-2px); background: #2E0816; border-color: #2E0816; box-shadow: 0 14px 30px -16px rgba(63,12,29,.6); }
.mx-btn:active { transform: translateY(0); }

/* Ghost : visible sur TOUTE surface (clair ET bordeaux) — au repos ET au survol */
.mx-btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--encre); --btn-bd: var(--encre);
}
.mx-btn--ghost:hover { background: var(--encre); color: var(--papier); border-color: var(--encre); }

/* Sur fond bordeaux : on bascule les ghost en crème (jamais invisible) */
.mx-on-dark .mx-btn { --btn-bg: var(--creme); --btn-fg: var(--bordeaux); --btn-bd: var(--creme); }
.mx-on-dark .mx-btn:hover { background: #fff; border-color: #fff; color: var(--bordeaux); }
.mx-on-dark .mx-btn--ghost { --btn-bg: transparent; --btn-fg: var(--creme); --btn-bd: rgba(251,243,228,.6); }
.mx-on-dark .mx-btn--ghost:hover { background: var(--creme); color: var(--bordeaux); border-color: var(--creme); }

.mx-textlink {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; color: var(--accent); text-decoration: none;
  border-bottom: 1.5px solid transparent; transition: border-color .18s var(--ease), gap .18s var(--ease);
}
.mx-textlink:hover { border-color: var(--accent); gap: var(--s-3); }
.mx-textlink svg { transition: transform .18s var(--ease); }
.mx-textlink:hover svg { transform: translateX(3px); }

/* ----------------------------- HEADER ---------------------------------- */
.mx-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--papier) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--filet);
}
.mx-header__bar {
  display: flex; align-items: center; gap: clamp(var(--s-3), 1.6vw, var(--s-5));
  min-height: 74px; /* navbar 1 ligne, hauteur fixe */
  flex-wrap: nowrap; /* jamais de retour à la ligne : on bascule en burger avant */
}
.mx-brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; flex: 0 0 auto; }
.mx-brand img { width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto; }
.mx-brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; white-space: nowrap; }

.mx-nav { display: flex; gap: clamp(var(--s-3), 1.5vw, var(--s-5)); margin-inline: auto; flex-wrap: nowrap; }
.mx-nav__link {
  position: relative; text-decoration: none; font-weight: 500; font-size: .96rem;
  color: var(--encre); padding: 6px 0; white-space: nowrap;
}
.mx-nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .25s var(--ease);
}
.mx-nav__link:hover::after, .mx-nav__link[aria-current="page"]::after { right: 0; }

.mx-lang { display: inline-flex; border: 1px solid var(--filet); border-radius: var(--radius); overflow: hidden; flex: 0 0 auto; }
.mx-lang__btn {
  border: 0; background: transparent; padding: 8px 12px; font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; color: var(--encre-doux); transition: background .18s, color .18s;
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.mx-lang__btn[aria-pressed="true"] { background: var(--bordeaux); color: var(--creme); }
.mx-lang__btn:hover[aria-pressed="false"] { background: var(--papier-2); color: var(--encre); }

.mx-header .mx-btn { flex: 0 0 auto; padding: 11px 20px; min-height: 44px; }

.mx-burger {
  display: none; border: 1px solid var(--filet); background: var(--blanc);
  border-radius: var(--radius); padding: 9px; color: var(--encre); flex: 0 0 auto;
}

/* Drawer mobile */
.mx-drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--papier);
  padding: var(--gutter); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s var(--ease); visibility: hidden;
}
.mx-drawer.is-open { transform: none; visibility: visible; }
.mx-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.mx-drawer__close { border: 1px solid var(--filet); background: var(--blanc); border-radius: var(--radius); padding: 9px; }
.mx-drawer__nav { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-7); }
.mx-drawer__nav a {
  font-family: var(--serif); font-size: 1.7rem; text-decoration: none; color: var(--encre);
  padding: var(--s-3) 0; border-bottom: 1px solid var(--filet);
}
.mx-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s-4); padding-top: var(--s-6); }

/* ------------------------------ HERO ----------------------------------- *
   Split éditorial : manchette serif (gauche) + grande photo macro (droite).
   PAS de mot géant — la force vient de la composition magazine.            */
.mx-hero { background: var(--papier); border-bottom: 1px solid var(--filet); }
.mx-hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(var(--s-6), 5vw, var(--s-9));
  align-items: center; padding-block: clamp(var(--s-7), 7vw, var(--s-9));
}
.mx-hero__eyebrow { margin-bottom: var(--s-5); }
.mx-hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em;
}
.mx-hero__title em { font-style: italic; color: var(--accent); }
.mx-hero__lead { margin-top: var(--s-5); font-size: 1.14rem; color: var(--encre-doux); max-width: 46ch; }
.mx-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
/* Pastille de preuve : carte luxe au liseré or, organisée en 2 groupes.
   Mobile = 2 lignes propres empilées ; ≥620px = une ligne + séparateur or. */
.mx-hero__meta {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2);
  margin-top: var(--s-6); padding: var(--s-3) var(--s-4); max-width: 100%;
  border: 1px solid var(--filet-or); border-radius: var(--radius);
  background: var(--blanc); box-shadow: 0 1px 0 var(--filet-or);
  font-size: .92rem; color: var(--encre-doux);
}
.mx-hero__meta b { color: var(--encre); font-weight: 700; }
/* Mobile : le groupe distinction peut passer l'année sous le badge (le libellé
   « Finaliste mondial · Gelato World Masters » est long) — jamais de débordement. */
.mx-hero__proof-group { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.mx-hero__proof-rating { flex-wrap: nowrap; }
.mx-hero__badge {
  font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--bordeaux); border: 1px solid var(--filet-or); border-radius: 999px; padding: 3px 11px;
}
.mx-hero__proof-year { font-weight: 700; color: var(--or-texte); letter-spacing: .1em; }
.mx-hero__proof-score { color: var(--encre); font-weight: 700; }
.mx-hero__proof-count { color: var(--encre-doux); }
.mx-hero__proof-div { display: none; }
.mx-stars { color: #F0A93B; letter-spacing: 1px; }
.mx-stars-half { background: linear-gradient(90deg, #F0A93B 50%, var(--filet) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 620px) {
  .mx-hero__meta { flex-direction: row; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-5); width: max-content; }
  .mx-hero__proof-group { flex-wrap: nowrap; }
  .mx-hero__proof-div { display: block; align-self: stretch; width: 1px; min-height: 1.4em; background: var(--or); opacity: .5; }
}

.mx-hero__media { position: relative; }
.mx-hero__photo {
  border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-card); position: relative;
}
.mx-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Cartouche signature sur la photo (rigueur magazine + liseré or) */
.mx-hero__tag {
  position: absolute; left: var(--s-5); bottom: var(--s-5); z-index: 3;
  background: var(--bordeaux); color: var(--creme); padding: 11px 18px;
  border-radius: var(--radius); border: 1px solid var(--filet-sombre);
  font-family: var(--serif); font-style: italic; font-size: 1rem;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.55);
}
.mx-hero__photo::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-img);
  border: 1px solid var(--filet-or); pointer-events: none;
}
.mx-ord { font-feature-settings: "sups"; vertical-align: super; font-size: .62em; }

/* --------------------- BANDEAU STATEMENT (bordeaux) -------------------- */
.mx-statement {
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-2));
  color: var(--creme); text-align: center;
}
.mx-statement__phrase {
  font-family: var(--serif); font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.15;
  max-width: 24ch; margin-inline: auto;
}
.mx-statement__phrase em { font-style: italic; color: var(--or-clair); }
.mx-statement__sub { margin-top: var(--s-5); color: rgba(251,243,228,.74); font-size: 1.02rem; letter-spacing: .01em; }
.mx-statement__phrase { position: relative; }

/* ------------------------ BANDE DE DISTINCTIONS ------------------------
   Bande de preuve : 2 groupes vérifiables (distinction + avis Google),
   séparés par un filet or. Mobile = empilé ; ≥720px = ligne + séparateur. */
.mx-proofbar {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-5);
  padding: var(--s-6) var(--s-6);
  background: var(--papier); border: 1px solid var(--filet-or); border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--filet-or);
}
.mx-proofbar__item { display: flex; align-items: center; gap: var(--s-4); text-align: left; }
.mx-proofbar__seal {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--or-texte); border: 1px solid var(--filet-or); border-radius: 999px;
}
.mx-proofbar__seal svg { width: 26px; height: 26px; }
.mx-proofbar__num {
  flex: none; font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 4.5vw, 3.1rem);
  color: var(--bordeaux); line-height: 1;
}
.mx-proofbar__num-max { font-size: .42em; color: var(--or-texte); font-weight: 700; }
.mx-proofbar__lead { font-family: var(--serif); font-size: 1.2rem; color: var(--encre); line-height: 1.2; }
.mx-proofbar__lead .mx-stars { font-size: 1.05rem; }
.mx-proofbar__sub { margin-top: 2px; font-size: .9rem; color: var(--encre-doux); }
.mx-proofbar__div { width: 56px; height: 1px; background: var(--or); opacity: .5; }
@media (min-width: 720px) {
  .mx-proofbar { flex-direction: row; justify-content: center; gap: clamp(var(--s-6), 4vw, var(--s-8)); padding: var(--s-6) var(--s-7); }
  .mx-proofbar__div { width: 1px; height: auto; align-self: stretch; min-height: 3em; }
}

/* ============ SIGNATURE ⭐ : LA CARTE DES PARFUMS INTERACTIVE ===========
   Liste éditoriale (gauche) + boule témoin macro qui change au survol/focus
   (droite) + fiche ingrédient. Crossfade opacity (compositor-only).         */
.mx-tasting { background: var(--papier-2); }
.mx-tasting__grid {
  display: grid; grid-template-columns: 1fr .9fr; gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start; margin-top: var(--s-7);
}

/* Colonne liste — comme une carte de chef */
.mx-menu { border-top: 1px solid var(--filet); }
.mx-menu__item {
  width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid var(--filet);
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: var(--s-4);
  padding: var(--s-5) var(--s-3); transition: background .18s var(--ease), padding-left .18s var(--ease);
}
.mx-menu__item:hover, .mx-menu__item[aria-current="true"] {
  background: var(--blanc); padding-left: var(--s-5);
}
.mx-menu__item[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.mx-menu__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.mx-menu__item[aria-current="true"] .mx-menu__name { color: var(--accent-fort); }
.mx-menu__origin {
  justify-self: end; font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--encre-doux);
  white-space: nowrap;
}
.mx-menu__note { grid-column: 1 / -1; margin-top: var(--s-2); color: var(--encre-doux); font-size: .98rem; max-width: 52ch; }

/* Colonne témoin (sticky desktop) */
.mx-witness { position: sticky; top: 100px; }
.mx-witness__stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-img); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--filet-or); display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(255,255,255,.95), transparent 60%),
    linear-gradient(170deg, var(--papier) 0%, var(--papier-2) 100%);
}
.mx-witness__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1;
  transform: translate(-50%, -48%);
  background: radial-gradient(circle, var(--filet-or), transparent 66%);
}
/* Boules témoin empilées : crossfade lent (luxe), compositor-only. */
.mx-witness__scoop {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 58%; aspect-ratio: 1.2/1;
  transform: translate(-50%, -50%) scale(.96);
  opacity: 0; transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
  filter: drop-shadow(0 12px 22px rgba(40,26,30,.16));
}
.mx-witness__scoop svg { width: 100%; height: 100%; overflow: visible; }
.mx-witness__scoop.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); z-index: 2; }
.mx-witness__seal {
  position: absolute; right: var(--s-4); top: var(--s-4); width: 78px; height: 78px;
}
.mx-witness__card {
  margin-top: var(--s-5); background: var(--blanc); border: 1px solid var(--filet);
  border-radius: var(--radius); padding: var(--s-5);
}
.mx-witness__from { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.mx-witness__name { font-family: var(--serif); font-size: 1.6rem; margin-top: var(--s-2); }
.mx-witness__desc { margin-top: var(--s-3); color: var(--encre-doux); font-size: .98rem; }

/* Sceau rotatif (or rosé, lent, coupé en reduced-motion) */
.mx-seal { display: inline-block; }
.mx-seal__spin { transform-origin: 50% 50%; animation: mx-rotate 44s linear infinite; }
.mx-seal text { font-family: var(--sans); font-size: 8.5px; font-weight: 700; letter-spacing: .2em; fill: var(--or); }
.mx-seal__center { fill: var(--bordeaux); }
@keyframes mx-rotate { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mx-seal__spin { animation: none; } }

/* ----------------------- INGRÉDIENTS (récit) --------------------------- */
.mx-ingredients { display: grid; gap: var(--s-7); margin-top: var(--s-7); }
.mx-ingredient {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(var(--s-5), 4vw, var(--s-7)); align-items: center;
}
.mx-ingredient:nth-child(even) { grid-template-columns: 1.1fr .9fr; }
.mx-ingredient:nth-child(even) .mx-ingredient__media { order: 2; }
.mx-ingredient__media { border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-card); }
.mx-ingredient__media img { width: 100%; height: 100%; object-fit: cover; }
/* Scène boule (remplace les photos de bac) : socle crème + halo doré, boule centrée. */
.mx-ingredient__scene {
  display: grid; place-items: center; position: relative; border: 1px solid var(--filet-or);
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(255,255,255,.92), transparent 60%),
    linear-gradient(170deg, var(--papier) 0%, var(--papier-2) 100%);
}
.mx-ingredient__scene::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 1;
  transform: translate(-50%, -48%); background: radial-gradient(circle, var(--filet-or), transparent 66%);
}
.mx-ingredient__scene .mx-flavor__scoop {
  position: relative; z-index: 2; width: 46%; aspect-ratio: 1.2/1;
  filter: drop-shadow(0 11px 20px rgba(40,26,30,.15)); transition: transform .6s var(--ease);
}
.mx-ingredient:hover .mx-ingredient__scene .mx-flavor__scoop { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.mx-ingredient__from { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.mx-ingredient__name { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: var(--s-2); }
/* Lettrine éditoriale sur le 1er paragraphe */
.mx-ingredient__text { margin-top: var(--s-4); color: var(--encre-doux); }
.mx-ingredient__text--drop::first-letter {
  font-family: var(--serif); font-weight: 800; font-size: 3.4em; line-height: .8;
  float: left; padding: 6px 10px 0 0; color: var(--accent);
}

/* ---------------------- FEATURE (gâteaux) zig-zag ---------------------- */
.mx-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-6), 5vw, var(--s-8)); align-items: center; }
.mx-feature > * { min-width: 0; }
.mx-feature__media { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-4); }
.mx-feature__media > * { min-width: 0; }
.mx-feature__media figure { margin: 0; min-width: 0; }
.mx-feature__media .mx-photo { border-radius: var(--radius-img); overflow: hidden; box-shadow: var(--shadow-card); }
.mx-feature__media .mx-photo img { width: 100%; height: 100%; object-fit: cover; }
.mx-feature__media .mx-photo--tall { aspect-ratio: 3/4; }
.mx-feature__media .mx-photo--short { aspect-ratio: 3/4; margin-top: var(--s-7); }
.mx-feature__media figcaption { margin-top: var(--s-2); font-size: .8rem; color: var(--encre-doux); letter-spacing: .04em; }
.mx-pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.mx-pill {
  border: 1px solid var(--filet); background: var(--blanc); border-radius: 999px;
  padding: 7px 14px; font-size: .85rem; font-weight: 500; color: var(--encre-doux);
}
.mx-feature__cta { margin-top: var(--s-6); }

/* ----------------------- PARCOURS (timeline) --------------------------- */
.mx-timeline { max-width: 52rem; margin: var(--s-7) auto 0; }
.mx-timeline--flush { margin-top: 0; }
.mx-tl-row {
  display: grid; grid-template-columns: 132px 1fr; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--filet); align-items: baseline;
}
.mx-tl-row:first-child { border-top: 1px solid var(--filet); }
.mx-tl__year { font-family: var(--serif); font-weight: 800; font-size: 1.9rem; color: var(--bordeaux); }
.mx-tl__txt { color: var(--encre); }
.mx-tl__txt span { display: block; color: var(--encre-doux); margin-top: var(--s-1); font-size: .96rem; }

/* ------------------------------ AVIS ----------------------------------- */
.mx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.mx-review {
  background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--radius);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3);
}
.mx-review__stars { color: var(--corail); letter-spacing: .1em; }
.mx-review__text { font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.45; flex: 1; }
.mx-review__who { font-size: .86rem; color: var(--encre-doux); font-weight: 600; }

/* ------------------------ BOUTIQUES (cartes) --------------------------- */
.mx-shops { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-7); }
.mx-shop {
  background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--radius);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3);
}
.mx-shop__name { font-size: 1.7rem; }
.mx-shop__row { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--encre); font-size: .96rem; }
.mx-shop__row svg { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.mx-shop__row a { color: var(--encre); font-weight: 600; text-decoration: none; }
.mx-shop__row a:hover { color: var(--accent); }
.mx-shop__actions { display: flex; gap: var(--s-3); margin-top: auto; padding-top: var(--s-4); }
.mx-shop__actions .mx-btn { padding: 10px 18px; min-height: 42px; font-size: .88rem; }

/* ------------------------------ CTA final ------------------------------ */
.mx-cta {
  background: linear-gradient(135deg, var(--bordeaux), var(--bordeaux-2));
  color: var(--creme); text-align: center;
}
.mx-cta__title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.mx-cta__title em { font-style: italic; color: var(--or-clair); }
.mx-cta__lead { margin: var(--s-5) auto 0; color: rgba(251,243,228,.8); max-width: 52ch; }
.mx-cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-6); }

/* ------------------------------ FOOTER --------------------------------- */
.mx-footer { background: #1F1418; color: rgba(251,243,228,.82); padding-block: var(--s-8) var(--s-6); }
.mx-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); }
.mx-footer__brand { display: inline-flex; align-items: center; gap: var(--s-3); }
.mx-footer__brand img { width: 40px; height: 40px; border-radius: 50%; }
.mx-footer__brand-name { font-family: var(--serif); font-size: 1.3rem; color: var(--creme); }
.mx-footer__tag { margin-top: var(--s-4); font-size: .92rem; max-width: 36ch; color: rgba(251,243,228,.62); }
.mx-footer h4 { font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-rose); margin-bottom: var(--s-4); }
.mx-footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.mx-footer a { color: rgba(251,243,228,.82); text-decoration: none; font-size: .94rem; }
.mx-footer a:hover { color: var(--creme); text-decoration: underline; }
.mx-footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center;
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--filet-sombre); font-size: .86rem;
}
.mx-footer__social { display: flex; gap: var(--s-3); }
.mx-footer__social a { display: inline-flex; padding: 8px; border: 1px solid var(--filet-sombre); border-radius: var(--radius); color: rgba(251,243,228,.82); }
.mx-footer__social a:hover { color: var(--bordeaux); background: var(--creme); border-color: var(--creme); }

/* ------------------- PAGE HERO (pages internes) ------------------------ */
.mx-pagehero { background: var(--papier); border-bottom: 1px solid var(--filet); padding-block: clamp(var(--s-7), 6vw, var(--s-9)); }
.mx-crumb { font-size: .82rem; color: var(--encre-doux); display: flex; gap: var(--s-2); align-items: center; }
.mx-crumb a { color: var(--accent); text-decoration: none; }
.mx-crumb a:hover { text-decoration: underline; }
.mx-pagehero__inner { max-width: 60ch; }
.mx-pagehero__inner.is-center { margin-inline: auto; text-align: center; }
.mx-pagehero__inner.is-center .mx-crumb { justify-content: center; }
.mx-pagehero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: var(--s-4); }
.mx-pagehero__lead { margin-top: var(--s-5); color: var(--encre-doux); font-size: 1.1rem; }

/* --------------------- PARFUMS : filtres + cartes ---------------------- */
/* Mobile-first : stack vertical pleine largeur, tous strictement identiques
   (jamais de quinconce ni de 2 lignes). Rangée centrée à partir de 620px. */
.mx-tabs { display: flex; flex-direction: column; align-items: stretch; gap: var(--s-2); margin-bottom: var(--s-7); }
.mx-tab {
  width: 100%; text-align: center; white-space: nowrap;
  border: 1px solid var(--filet); background: var(--blanc); border-radius: 999px;
  padding: 11px 18px; font-weight: 600; font-size: .9rem; color: var(--encre-doux); transition: all .18s var(--ease);
}
.mx-tab[aria-pressed="true"] { background: var(--bordeaux); color: var(--creme); border-color: var(--bordeaux); }
.mx-tab:hover[aria-pressed="false"] { border-color: var(--accent); color: var(--accent); }
@media (min-width: 620px) {
  .mx-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .mx-tab { width: auto; padding: 9px 18px; }
}

.mx-flavors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.mx-flavor {
  display: flex; flex-direction: column; text-align: left; background: var(--blanc);
  border: 1px solid var(--filet); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); height: 100%;
}
.mx-flavor:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--filet-or); }

/* SCÈNE BOULE (remplace la photo de goût) : socle crème + halo doré discret,
   la boule vectorisée est le visuel principal, recolorée par parfum. */
.mx-flavor__scene {
  position: relative; aspect-ratio: 16/12; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 18%, rgba(255,255,255,.9), transparent 60%),
    linear-gradient(170deg, var(--papier) 0%, var(--papier-2) 100%);
  border-bottom: 1px solid var(--filet); overflow: hidden;
}
.mx-flavor__scene::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64%; aspect-ratio: 1;
  transform: translate(-50%, -46%);
  background: radial-gradient(circle, var(--filet-or), transparent 68%); opacity: .7;
}
.mx-flavor__scoop {
  position: relative; z-index: 2; width: 56%; height: auto; aspect-ratio: 1.2/1;
  filter: drop-shadow(0 10px 18px rgba(40,26,30,.14));
  transition: transform .55s var(--ease);
}
.mx-flavor:hover .mx-flavor__scoop { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.mx-flavor__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.mx-flavor__season { font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--or-texte); }
/* Hauteur réservée pour le nom : un parfum long (« Pistache, ricotta & orange »,
   « Caramel beurre salé ») n'envoie plus le tag du bas en quinconce. */
.mx-flavor__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; display: flex; align-items: center; min-height: 2.4em; }
.mx-flavor__origin { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mx-flavor__note { color: var(--encre-doux); font-size: .94rem; flex: 1; }
.mx-flavor__more { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: .9rem; color: var(--accent); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--filet); }
.mx-flavor__more svg { transition: transform .35s var(--ease); }
.mx-flavor:hover .mx-flavor__more svg { transform: translateX(4px); }
.mx-flavor[hidden] { display: none; }

/* État vide gracieux du filtre (filet de sécurité — ne s'affiche que si 0 carte visible). */
.mx-flavors__empty {
  grid-column: 1 / -1; text-align: center; padding: var(--s-7) var(--s-4);
  color: var(--encre-doux); font-family: var(--serif); font-style: italic; font-size: 1.2rem;
}

/* --- Principes (page Maison) : remplace les styles inline sur .mx-review --- */
.mx-principle__num { color: var(--corail); letter-spacing: .1em; font-weight: 700; }
.mx-principle__title { margin: 0; }
.mx-principle__text { font-style: normal; font-size: 1rem; font-family: var(--sans); }

/* --- Signature OR des fondateurs (page Maison) : nom manuscrit + filet doré --- */
.mx-signature { margin: var(--s-6) auto 0; text-align: center; }
.mx-signature__name { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--accent-fort); }
.mx-signature__role { margin-top: var(--s-2); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--or-texte); }
.mx-signature .mx-goldrule { margin-top: var(--s-3); }

/* --- Verbatim éditorial (citation centrée fondateurs) --- */
.mx-verbatim {
  max-width: 48rem; margin: var(--s-7) auto 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--encre);
}

/* --- Utilitaires d'espacement éditorial (remplacent les style="margin…" inline) --- */
.mx-mt-4 { margin-top: var(--s-4); }
.mx-mt-5 { margin-top: var(--s-5); }
.mx-mb-7 { margin-bottom: var(--s-7); }
.mx-note--center { margin: var(--s-6) auto 0; text-align: center; max-width: 62ch; }
.mx-tellink { color: var(--accent); font-weight: 600; }

/* Fiche parfum (modale) */
.mx-dialog { position: fixed; inset: 0; z-index: 160; display: none; align-items: center; justify-content: center; padding: var(--gutter); }
.mx-dialog.is-open { display: flex; }
.mx-dialog__backdrop { position: absolute; inset: 0; background: rgba(31,20,24,.6); }
.mx-dialog__panel {
  position: relative; background: var(--blanc); border-radius: var(--radius-img); overflow: hidden;
  max-width: 560px; width: 100%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  display: grid; grid-template-rows: auto auto;
}
.mx-dialog__media {
  position: relative; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 16%, rgba(255,255,255,.92), transparent 62%),
    linear-gradient(170deg, var(--papier) 0%, var(--papier-2) 100%);
  border-bottom: 1px solid var(--filet);
}
.mx-dialog__media::before {
  content: ""; position: absolute; left: 50%; top: 48%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--filet-or), transparent 68%);
}
.mx-dialog__scoop {
  position: relative; z-index: 2; width: 200px; height: auto; aspect-ratio: 1.2/1;
  filter: drop-shadow(0 11px 20px rgba(40,26,30,.16));
}
.mx-dialog__close { position: absolute; right: var(--s-3); top: var(--s-3); background: var(--blanc); border-radius: 50%; padding: 8px; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.mx-dialog__body { padding: var(--s-6); }
.mx-dialog__eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mx-dialog__title { font-size: 1.9rem; margin-top: var(--s-2); }
.mx-dialog__text { margin-top: var(--s-3); color: var(--encre-doux); }
.mx-dialog__from { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--filet); font-size: .92rem; color: var(--encre-doux); }

/* ----------------------- FORMULAIRES (gâteaux/contact) ----------------- */
.mx-formcard { background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--radius-img); padding: clamp(var(--s-5), 4vw, var(--s-7)); max-width: 820px; margin-inline: auto; }
.mx-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.mx-field { display: flex; flex-direction: column; gap: var(--s-2); }
.mx-field--full { grid-column: 1 / -1; }
.mx-label { font-size: .86rem; font-weight: 600; }
.mx-req { color: var(--accent); }
.mx-control {
  font: inherit; font-size: .98rem; padding: 12px 14px; border: 1px solid var(--filet);
  border-radius: var(--radius); background: var(--papier); color: var(--encre); width: 100%;
  transition: border-color .18s, box-shadow .18s; min-height: 48px;
}
.mx-control:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,24,110,.14); }
textarea.mx-control { min-height: 120px; resize: vertical; }
.mx-error { font-size: .82rem; color: var(--accent-fort); display: none; }
.mx-field.is-invalid .mx-control { border-color: var(--accent-fort); }
.mx-field.is-invalid .mx-error { display: block; }
/* Champ invalide : liseré + halo cohérents avec l'attribut aria-invalid posé par le JS. */
.mx-control[aria-invalid="true"] { border-color: var(--accent-fort); box-shadow: 0 0 0 3px rgba(126,14,65,.12); }
.mx-form-foot { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-top: var(--s-6); }
.mx-note { font-size: .84rem; color: var(--encre-doux); max-width: 46ch; }

.mx-success { display: none; text-align: center; padding: var(--s-6) 0; }
.mx-success.is-on { display: block; }
.mx-success__icon { display: inline-flex; padding: 14px; border-radius: 50%; background: var(--papier-2); color: var(--bordeaux); margin-bottom: var(--s-4); }
.mx-success__title { font-size: 1.7rem; }
.mx-success__text { margin-top: var(--s-3); color: var(--encre-doux); }
.mx-recap { margin-top: var(--s-5); text-align: left; max-width: 460px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-4); }
.mx-recap dt { font-weight: 700; font-size: .86rem; }
.mx-recap dd { font-size: .92rem; color: var(--encre-doux); }

/* ---------------------- CONTACT / BOUTIQUES layout --------------------- */
.mx-contact { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(var(--s-6), 4vw, var(--s-7)); align-items: start; }
.mx-contact .mx-formcard { margin: 0; max-width: none; }
.mx-aside { display: flex; flex-direction: column; gap: var(--s-4); }
.mx-shopmap { border-radius: var(--radius-img); overflow: hidden; border: 1px solid var(--filet); aspect-ratio: 16/10; }
.mx-shopmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.mx-shopdetail { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-5); align-items: stretch; background: var(--blanc); border: 1px solid var(--filet); border-radius: var(--radius-img); overflow: hidden; }
.mx-shopdetail + .mx-shopdetail { margin-top: var(--s-5); }
/* min-width:0 : un item de grille ne doit jamais déborder sous la largeur de son
   contenu (iframe map = largeur intrinsèque) → corrige le débordement mobile. */
.mx-shopdetail > * { min-width: 0; }
.mx-shopdetail .mx-shopmap { border: 0; border-radius: 0; aspect-ratio: auto; min-height: 280px; min-width: 0; }
.mx-shopmap, .mx-shopmap iframe { max-width: 100%; }
.mx-shopdetail__card { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.mx-rating { font-size: .9rem; color: var(--encre-doux); }
.mx-hours { width: 100%; font-size: .92rem; border-collapse: collapse; }
.mx-hours th { text-align: left; font-weight: 600; padding: 2px 0; }
.mx-hours td { text-align: right; color: var(--encre-doux); }
.mx-note-soft { color: var(--encre-doux); font-style: italic; font-size: .9rem; }

/* ------------------------------- LEGAL --------------------------------- */
.mx-legal { display: grid; grid-template-columns: 220px 1fr; gap: var(--s-8); align-items: start; }
.mx-toc { position: sticky; top: 100px; border-left: 2px solid var(--filet); padding-left: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.mx-toc h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-doux); margin-bottom: var(--s-2); }
.mx-toc a { color: var(--encre); text-decoration: none; font-size: .92rem; }
.mx-toc a:hover { color: var(--accent); }
.mx-legal-body > section { margin-bottom: var(--s-7); }
.mx-legal-body h2 { font-size: 1.7rem; margin-bottom: var(--s-4); }
.mx-legal-body h3 { font-family: var(--sans); font-size: 1.05rem; margin: var(--s-5) 0 var(--s-2); }
.mx-legal-body p { margin-bottom: var(--s-3); color: var(--encre); }
.mx-legal-body ul { margin: 0 0 var(--s-3) var(--s-5); color: var(--encre-doux); }
.mx-legal-body dl { display: grid; grid-template-columns: auto 1fr; gap: var(--s-2) var(--s-5); margin: var(--s-3) 0; }
.mx-legal-body dt { font-weight: 700; }
.mx-legal-body dd { color: var(--encre-doux); }
.mx-legal-meta { font-size: .86rem; color: var(--encre-doux); font-style: italic; }
.mx-allergens { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.mx-allergen { display: inline-flex; align-items: center; gap: var(--s-2); background: var(--papier-2); border: 1px solid var(--filet); border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.mx-allergen::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* --------------------------- REVEAL (scroll) --------------------------- */
.mx-reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft); }
.mx-reveal.is-in { opacity: 1; transform: none; }
html.no-js .mx-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mx-reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================ RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .mx-hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .mx-hero__media { order: -1; max-width: 460px; }
  .mx-tasting__grid { grid-template-columns: 1fr; }
  .mx-witness { position: static; max-width: 460px; }
  .mx-feature { grid-template-columns: 1fr; }
  .mx-flavors { grid-template-columns: repeat(2, 1fr); }
  .mx-reviews { grid-template-columns: 1fr; }
  .mx-legal { grid-template-columns: 1fr; }
  .mx-toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 2px solid var(--filet); padding: var(--s-4) 0 0; gap: var(--s-4); }
}

/* Plage intermédiaire (1080→1024) : on resserre les libellés pour garantir
   « tout visible, aucun chevauchement » avant la bascule burger. */
@media (max-width: 1180px) {
  .mx-nav__link { font-size: .9rem; }
  .mx-header .mx-btn { padding: 11px 16px; font-size: .9rem; }
}

@media (max-width: 1080px) {
  .mx-nav, .mx-header .mx-btn, .mx-header .mx-lang { display: none; }
  .mx-burger { display: inline-flex; }
  .mx-brand__name { font-size: 1.12rem; }
  .mx-nav { margin-inline: 0; }
}

@media (max-width: 768px) {
  .mx-statement__phrase { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .mx-ingredient, .mx-ingredient:nth-child(even) { grid-template-columns: 1fr; }
  .mx-ingredient:nth-child(even) .mx-ingredient__media { order: 0; }
  .mx-shops, .mx-form-grid, .mx-contact, .mx-shopdetail { grid-template-columns: 1fr; }
  .mx-feature__media { grid-template-columns: 1fr 1fr; }
  .mx-footer__grid { grid-template-columns: 1fr 1fr; }
  .mx-footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .mx-flavors { grid-template-columns: 1fr; }
  .mx-tl-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .mx-feature__media { grid-template-columns: 1fr; }
  .mx-feature__media .mx-photo--short { margin-top: 0; }
  .mx-footer__grid { grid-template-columns: 1fr; }
  .mx-hero__title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .mx-menu__item { grid-template-columns: auto 1fr; } /* boule + nom restent alignés */
  .mx-menu__origin { justify-self: start; grid-column: 2; }
  .mx-form-foot, .mx-footer__bottom { flex-direction: column; align-items: flex-start; }
  /* En 1 colonne, la carte parfum ne doit pas avoir une scène trop haute. */
  .mx-flavor__scene { aspect-ratio: 16/9; }
  .mx-flavor__scoop { width: 44%; }
  /* Boutons en pleine largeur (cible tactile claire, alignement net). */
  .mx-form-foot .mx-btn,
  .mx-cta__actions .mx-btn,
  .mx-hero__actions .mx-btn { width: 100%; }
  .mx-cta__actions, .mx-hero__actions { width: 100%; }
}

/* ----------- 400px et moins (390 / 360 / 320) : finitions tactiles -------- */
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .mx-hero__meta { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .mx-hero__title { font-size: clamp(2rem, 11vw, 2.6rem); }
  .mx-pagehero__title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .mx-shop__actions { flex-direction: column; }
  .mx-shop__actions .mx-btn { width: 100%; }
  /* Boule témoin (index) un peu plus grande sur petit écran pour rester lisible. */
  .mx-witness__scoop, .mx-witness__stage::before { width: 66%; }
  .mx-dialog { padding: var(--s-4); }
  .mx-dialog__scoop { width: 150px; }
}

/* 320px strict : on garantit que rien ne se chevauche ni ne déborde. */
@media (max-width: 340px) {
  .mx-hero__title { font-size: clamp(1.8rem, 11vw, 2.2rem); }
  .mx-brand__name { font-size: 1rem; }
}


/* =========================================================================
   BOULE VECTORISÉE — marqueurs de parfum (jamais de rond plat)
   Le sprite #gi-scoop est recoloré par parfum via le trio --scoop-*.
   Une vraie boule de glace réaliste et brillante remplace tout disque plat.
   ========================================================================= */

/* Trios de parfums (chair / ombre teintée / haute lumière teintée). */
.f-pistache     { --scoop-fill:#A7C36A; --scoop-shade:#76953F; --scoop-hl:#CBDF98 }
.f-noisette     { --scoop-fill:#B98A5E; --scoop-shade:#8A5F38; --scoop-hl:#DBB78C }
.f-chocolat     { --scoop-fill:#6B4327; --scoop-shade:#3F2615; --scoop-hl:#9C6E45; --scoop-spec:#E8CBA6 }
.f-vanille      { --scoop-fill:#F4E3B0; --scoop-shade:#D9C081; --scoop-hl:#FFF7DC; --scoop-spec:#FFFDF4 }
.f-caramel      { --scoop-fill:#C68A3E; --scoop-shade:#8F5C20; --scoop-hl:#E8BE7C }
.f-fraise       { --scoop-fill:#E66A7C; --scoop-shade:#B23F54; --scoop-hl:#F6A6B2 }
.f-stracciatella{ --scoop-fill:#F3EBDC; --scoop-shade:#D6C9AE; --scoop-hl:#FFFCF4; --scoop-spec:#FFFFFF; --scoop-line:#CDBE9E }
.f-tiramisu     { --scoop-fill:#C9A878; --scoop-shade:#9A744A; --scoop-hl:#E6CFA6 }
.f-coco         { --scoop-fill:#F4EEE6; --scoop-shade:#D6CCBE; --scoop-hl:#FFFDF8; --scoop-spec:#FFFFFF; --scoop-line:#D8CDBD }
.f-ricotta      { --scoop-fill:#B7C77E; --scoop-shade:#86974F; --scoop-hl:#D8E3A8 } /* pistache-ricotta-orange */

/* Réservoir sprite : toujours masqué (aria-hidden dans le HTML). */
.mx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Pastille boule : carrée, boule centrée, brillante. JAMAIS un aplat. */
.mx-scoop {
  display: inline-block; width: 2.6em; height: 2.6em; flex: 0 0 auto;
  overflow: visible; vertical-align: middle;
  filter: drop-shadow(0 3px 6px rgba(42,28,32,.12));
}
.mx-scoop use, .mx-scoop svg { overflow: visible; }

/* Marqueur dans la carte (signature) : devant le nom du parfum. */
.mx-menu__item { grid-template-columns: auto 1fr auto; }
.mx-menu__scoop { width: 2.9em; height: 2.9em; align-self: center; transition: transform .25s var(--ease); }
.mx-menu__item:hover .mx-menu__scoop,
.mx-menu__item[aria-current="true"] .mx-menu__scoop { transform: translateY(-3px) rotate(-4deg); }
.mx-menu__note { grid-column: 1 / -1; }

/* Marqueur boule en tête de pill (résumé parfums / options). */
.mx-pill--scoop { display: inline-flex; align-items: center; gap: var(--s-2); padding-left: 8px; }
.mx-pill--scoop .mx-scoop { width: 1.7em; height: 1.7em; filter: drop-shadow(0 2px 4px rgba(42,28,32,.14)); }

/* Frise de parfums (marquee) — bande signature animée, pause au survol. */
.mx-flavorstrip { overflow: hidden; border-block: 1px solid var(--filet); background: var(--papier); }
.mx-flavorstrip__track {
  display: flex; gap: var(--s-7); align-items: center; width: max-content;
  padding-block: var(--s-5); will-change: transform;
  animation: mx-marquee 38s linear infinite;
}
.mx-flavorstrip:hover .mx-flavorstrip__track { animation-play-state: paused; }
.mx-flavorstrip__item { display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap; }
.mx-flavorstrip__item .mx-scoop { width: 2.4em; height: 2.4em; }
.mx-flavorstrip__name { font-family: var(--serif); font-size: 1.15rem; }
.mx-flavorstrip__sep { color: var(--or-rose); font-size: 1.3rem; }
@keyframes mx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mx-flavorstrip__track { animation: none; flex-wrap: wrap; justify-content: center; } }
html.no-js .mx-flavorstrip__track { animation-duration: 60s; }

/* =========================================================================
   ANIMATIONS — chorégraphie premium (transform/opacity, reduced-motion safe)
   ========================================================================= */

/* Variantes de reveal directionnelles (luxe = glisse ample et lente). */
.mx-reveal--left  { transform: translateX(-30px); }
.mx-reveal--right { transform: translateX(30px); }
.mx-reveal--zoom  { transform: scale(.95); }
.mx-reveal--left.is-in, .mx-reveal--right.is-in, .mx-reveal--zoom.is-in { transform: none; }
/* Mobile : glisse VERTICALE — un translateX pré-animation ne doit jamais
   pousser hors écran (placé APRÈS la base pour gagner la cascade). */
@media (max-width: 768px) {
  .mx-reveal--left, .mx-reveal--right { transform: translateY(24px); }
  .mx-reveal--left.is-in, .mx-reveal--right.is-in { transform: none; }
}

/* Stagger : enfants d'un conteneur révélés en cascade lente et posée. */
.mx-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
.mx-stagger.is-in > * { opacity: 1; transform: none; }
.mx-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.mx-stagger.is-in > *:nth-child(2) { transition-delay: 120ms; }
.mx-stagger.is-in > *:nth-child(3) { transition-delay: 240ms; }
.mx-stagger.is-in > *:nth-child(4) { transition-delay: 360ms; }
.mx-stagger.is-in > *:nth-child(5) { transition-delay: 480ms; }
.mx-stagger.is-in > *:nth-child(6) { transition-delay: 600ms; }
.mx-stagger.is-in > *:nth-child(7) { transition-delay: 360ms; }
.mx-stagger.is-in > *:nth-child(8) { transition-delay: 480ms; }
.mx-stagger.is-in > *:nth-child(9) { transition-delay: 600ms; }
.mx-stagger.is-in > *:nth-child(n+10) { transition-delay: 700ms; }
/* Sans JS ou en reduced-motion : contenu jamais masqué (parfums toujours visibles). */
html.no-js .mx-stagger > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mx-stagger > * { opacity: 1; transform: none; transition: none; } }

/* Carte qui se retourne légèrement au reveal (3D doux). */
.mx-flip { opacity: 0; transform: perspective(900px) rotateX(8deg) translateY(22px); transform-origin: top center;
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mx-flip.is-in { opacity: 1; transform: none; }

/* Note Google qui « compte » visuellement (scale d'entrée). */
.mx-proofbar.is-in .mx-proofbar__num { animation: mx-pop .6s var(--ease) both; animation-delay: .12s; }
@keyframes mx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* Timeline : trait vertical qui se trace + lignes qui glissent. */
.mx-timeline { position: relative; }

/* Signature : boules qui « tombent » dans le cornet témoin (carte des parfums).
   On garde la grande boule témoin en PHOTO ; cette pile est une touche déco. */
.mx-stack { position: relative; width: 120px; margin-inline: auto; }
.mx-stack .mx-stack__cone  { display: block; width: 120px; height: 150px; }
.mx-stack .mx-stack__scoop { position: absolute; left: 0; width: 120px; height: 100px; overflow: visible; }
.mx-stack__scoop.s1 { top: -30px } .mx-stack__scoop.s2 { top: -64px } .mx-stack__scoop.s3 { top: -98px }
.mx-stack.is-in .mx-stack__scoop { opacity: 0; transform: translateY(-26px) scale(.7);
  animation: mx-drop .55s cubic-bezier(.34,1.4,.5,1) forwards; }
.mx-stack.is-in .s1 { animation-delay: .15s } .mx-stack.is-in .s2 { animation-delay: .5s } .mx-stack.is-in .s3 { animation-delay: .85s }
@keyframes mx-drop { to { opacity: 1; transform: translateY(0) scale(1); } }
html.no-js .mx-stack__scoop { opacity: 1; transform: none; animation: none; }

/* Micro-interaction génériques au survol. */
.mx-review { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mx-review:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.mx-shop { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mx-shop:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.mx-shopdetail { transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.mx-shopdetail:hover { box-shadow: 0 24px 50px -32px rgba(42,28,32,.5); transform: translateY(-2px); }
.mx-pill { transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.mx-pill:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.mx-tl-row { transition: padding-left .25s var(--ease); }
.mx-tl-row:hover { padding-left: var(--s-3); }

/* CTA spécial : balayage lumineux au survol sur les boutons pleins. */
.mx-btn { position: relative; overflow: hidden; }
.mx-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(217,184,115,.4) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-soft);
}
.mx-btn:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) { .mx-btn::after { display: none; } }

/* Lettrines, photos : léger zoom au survol des cadres. */
.mx-ingredient__media img, .mx-feature__media .mx-photo img, .mx-hero__photo img {
  transition: transform .5s var(--ease);
}
.mx-ingredient:hover .mx-ingredient__media img,
.mx-feature__media figure:hover .mx-photo img,
.mx-hero__photo:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .mx-reveal--left, .mx-reveal--right, .mx-reveal--zoom,
  .mx-stagger > *, .mx-flip { opacity: 1; transform: none; transition: none; }
  .mx-proofbar.is-in .mx-proofbar__num { animation: none; }
  .mx-stack.is-in .mx-stack__scoop { opacity: 1; transform: none; animation: none; }
  .mx-ingredient__media img, .mx-feature__media .mx-photo img, .mx-hero__photo img { transition: none; }
}
html.no-js .mx-stagger > *, html.no-js .mx-flip { opacity: 1; transform: none; }

/* =========================================================================
   PASSE WOW B — grading photo homogène · signature OR · héros photo
   ========================================================================= */

/* --- GRADING « shooting de marque » : un même traitement chaud, légèrement
   désaturé, sur TOUTES les vraies photos → cohérence colorimétrique 7 pages
   (pas un patchwork de banque d'images). Voile chaud crème en multiply +
   liseré or commun. Appliqué à .mx-graded (wrapper de chaque photo réelle). */
.mx-graded { position: relative; overflow: hidden; border-radius: var(--radius-img); }
.mx-graded > img, .mx-graded > picture { display: block; width: 100%; height: 100%; }
.mx-graded > picture > img, .mx-graded > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.9) contrast(1.02) brightness(1.01) sepia(.08);
}
.mx-graded::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 30% 12%, rgba(255,247,235,.18), transparent 58%),
    linear-gradient(180deg, rgba(63,12,29,.05), rgba(63,12,29,.14));
  mix-blend-mode: multiply;
}
.mx-graded::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: var(--radius-img); border: 1px solid var(--filet-or);
}

/* --- FILET OR QUI SE TRACE AU SCROLL : trait horizontal doré sous les
   surtitres / en séparateur éditorial. Largeur animée (transform scaleX). --- */
.mx-goldrule {
  height: 1.5px; width: min(280px, 60%); transform-origin: left center;
  background: linear-gradient(90deg, var(--or), var(--or-clair) 70%, transparent);
  transform: scaleX(0); transition: transform .8s var(--ease-soft);
}
.mx-goldrule--center { margin-inline: auto; transform-origin: center; }
.mx-goldrule.is-in, .mx-reveal.is-in .mx-goldrule, .is-in > .mx-goldrule { transform: scaleX(1); }
.mx-head.is-in .mx-goldrule, .mx-pagehero__inner .mx-goldrule.is-in { transform: scaleX(1); }
html.no-js .mx-goldrule { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .mx-goldrule { transform: scaleX(1); transition: none; } }

/* --- SCEAU DE CIRE sur les fiches produit (cartes parfum / feature gâteaux) :
   pastille bordeaux frappée d'un G or, comme un cachet de maison. --- */
.mx-wax {
  position: absolute; z-index: 3; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--bordeaux-2), var(--bordeaux) 70%);
  box-shadow: 0 6px 16px -6px rgba(63,12,29,.7), inset 0 0 0 1px var(--filet-sombre), inset 0 2px 5px rgba(255,255,255,.12);
  border: 1.5px solid var(--or-rose);
}
.mx-wax::before { content: "G"; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 1.5rem; color: var(--or-clair); line-height: 1; }
.mx-flavor__scene .mx-wax { right: var(--s-3); top: var(--s-3); width: 42px; height: 42px; }
.mx-flavor__scene .mx-wax::before { font-size: 1.2rem; }

/* --- HÉROS PHOTO des pages internes (tue les héros text-only répétés) :
   demi-cadre photo à droite du titre, grading commun, scrim AA sur mobile. --- */
.mx-pagehero--media .mx-pagehero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}
.mx-pagehero--media .mx-pagehero__inner { max-width: 52ch; }
.mx-pagehero__media { aspect-ratio: 5 / 4; box-shadow: var(--shadow-card); }
.mx-pagehero__media > img { transition: transform .6s var(--ease); }
.mx-pagehero--media:hover .mx-pagehero__media > img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .mx-pagehero__media > img { transition: none; } }

@media (max-width: 768px) {
  .mx-pagehero--media .mx-pagehero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .mx-pagehero--media .mx-pagehero__media { order: -1; max-width: 520px; margin-inline: auto; }
}
