/* =====================================================================
   TRANSITIONS DE NAVIGATION · Maity (24/11/2026)
   Tout est actif seulement quand <html> a la classe .mp-on (posée par navigation.js).
   Pour désactiver : ?transitions=off dans l'URL, ou supprimer le bloc « TRANSITIONS » dans index.html.
   ===================================================================== */
:root{
  --mp-radius: 32px;      /* coins du haut de la section qui arrive */
  --mp-dark:  #1a1c12;    /* fond des sections sombres */
  --mp-deep:  #0f0f0f;    /* second ton sombre, en alternance avec --mp-dark */
  --mp-light: #f5edb0;    /* fond des sections claires : jaune cassé (jaune Maity adouci de crème) */
  --mp-yellow:#f2e632;    /* fond de la section finale */
  --mp-pad-top: 96px;     /* espace en haut de chaque section empilée */
}

html.mp-on.lenis, html.mp-on.lenis body{height:auto}
html.mp-on .lenis-smooth{scroll-behavior:auto!important}

/* ---------- sections empilées ---------- */
html.mp-on #contenu > section.mp-panel{position:relative;isolation:isolate}
html.mp-on #contenu > section.mp-panel.mp-stick{position:sticky}
html.mp-on #contenu > section.mp-panel:not(.hero2){padding-top:var(--mp-pad-top)!important}
html.mp-on .mp-bg{position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;z-index:-1;pointer-events:none;
  background:var(--mp-dark)}
html.mp-on .mp-cover > .mp-bg{border-radius:var(--mp-radius) var(--mp-radius) 0 0}
html.mp-on .mp-deep > .mp-bg{background:var(--mp-deep)}
/* liseré clair en haut des sections sombres : rend le bord arrondi lisible entre deux fonds sombres */
html.mp-on .mp-cover:not(.mp-light):not(.mp-yellow) > .mp-bg{box-shadow:inset 0 1px 0 rgba(255,251,246,.10), 0 -24px 60px rgba(0,0,0,.35)}
html.mp-on .mp-light > .mp-bg{background:var(--mp-light)}
html.mp-on .mp-yellow > .mp-bg{background:var(--mp-yellow)}
html.mp-on .mp-shade{position:absolute;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;z-index:50;pointer-events:none;background:#000;opacity:0}

/* ---------- thème clair local (le reste du site est sombre) ---------- */
html.mp-on .mp-light, html.mp-on .mp-yellow{
  --bg:#f5edb0; --surface:#ede4a0; --surface2:#e6dc95; --hover:#e2d890;
  --line:#d3c983; --line-soft:#e2d993; --strong:#a69d5c;
  --text:#1a1c12; --soft:#2c2e22; --muted:#5f604f; --faint:#83826f;
  color:var(--text); color-scheme:light;
}
html.mp-on .mp-yellow{--muted:#3d3f2c;--faint:#55573f}
html.mp-on .mp-light .btn:not(.primary){background:rgba(26,28,18,.04);border-color:rgba(26,28,18,.22);color:var(--text)}
html.mp-on .mp-light .seg button.on{color:var(--bg)}
html.mp-on .mp-light .seg-tag{background:rgba(26,28,18,.08)}
/* îlots sombres posés sur une section claire : on leur rend les couleurs sombres */
html.mp-on :is(.mp-light,.mp-yellow) :is(.dk,.fx,.price-card,.ext,.cta-end,.faq,.ext-mock){
  --bg:#0F0F0F; --surface:#212318; --surface2:#272A1D; --hover:#2F3224;
  --line:#3B3E2E; --line-soft:#2F3224; --strong:#5C5F49;
  --text:#FFFBF6; --soft:#ECE8DC; --muted:#BDBAAC; --faint:#93917F;
  color:var(--text); color-scheme:dark;
}
html.mp-on :is(.mp-light,.mp-yellow) :is(.fx,.price-card,.cta-end){box-shadow:0 30px 70px rgba(26,28,18,.18)}

/* ---------- titre du hero lettre par lettre ---------- */
html.mp-on #h-hero .mp-w{display:inline-block;white-space:nowrap}
html.mp-on #h-hero .mp-ch{display:inline-block}
html.mp-on #h-hero .mp-kw{color:var(--mp-yellow)}
html.mp-on #h-hero .mp-ic{display:inline-block;width:.6em;height:.6em;margin:0 .12em 0 .02em;vertical-align:.04em;color:var(--mp-yellow)}
html.mp-on #h-hero .mp-ic svg{width:100%;height:100%;display:block;animation:mp-spin 6s linear infinite}

/* ---------- texte courbe qui tourne ---------- */
html.mp-on .mp-orbit{position:absolute;right:4%;bottom:-36px;width:132px;height:132px;pointer-events:none;color:var(--muted);z-index:3}
html.mp-on .mp-orbit svg{width:100%;height:100%;animation:mp-spin 18s linear infinite}
html.mp-on .mp-orbit text{font:600 12.5px var(--body);letter-spacing:.2em;text-transform:uppercase;fill:currentColor}
@keyframes mp-spin{to{transform:rotate(360deg)}}

@media (max-width:760px){
  :root{--mp-radius:22px;--mp-pad-top:64px}
  html.mp-on .mp-orbit{width:96px;height:96px;bottom:-20px}
}
@media (prefers-reduced-motion:reduce){
  html.mp-on .mp-ic svg, html.mp-on .mp-orbit svg{animation:none}
}
