/* ════════════════════════════════════════════════════════════════════════
   edena — EXPÉRIENCE MOBILE (récit vertical portrait, complémentaire du PC)
   Direction hybride : moments immersifs sombres (hero, respirations, terrain)
   entre des sections de lecture claires. Aucune parallaxe. Réutilise les
   variables d'edena (css/base.css : --orange, --rose, --creme, --bg, --font…).
═════════════════════════════════════════════════════════════════════════ */

/* Jetons mobiles au niveau :root → utilisables hors #m-shell (panneaux légaux). */
:root {
  --m-ink: #2a0915; --m-ink-2: #6c4654; --m-paper: #faf7f1; --m-paper-2: #f1ece3;
  --m-line: #e6ded3; --m-line-2: #d2c6ba; --m-dark: #0e0508;
  --m-orange: #fe3600; --m-rose: #d4a8ce; --m-peche: #f5b8a3;
  --m-r: 16px; --m-r-s: 10px; --m-pill: 999px;
  --m-ease: cubic-bezier(.22,.61,.36,1);
  --m-col: min(640px, 100%); --m-pad: clamp(20px, 6vw, 40px);
}

/* Caché par défaut (desktop). Affiché sous le point de rupture mobile. */
#m-shell { display: none; }

@media (max-width: 768px), (max-width: 932px) and (orientation: landscape) {

  /* On masque tout l'univers PC (js/mobile.js retire aussi #vp du DOM). */
  #vp, #loader,
  a.skip-link[href="#scene-accueil"], #scene-announce,
  #parallax-toggle, #sound-toggle, #xp-toggle,
  .scene-nav, #scene-counter, .legal-tabs-close { display: none !important; }

  html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--m-paper);
    -webkit-text-size-adjust: 100%;
  }

  #m-shell { display: block; }
}

/* ── Jeton & socle ─────────────────────────────────────────────────────── */
#m-shell {
  --m-ink:    #2a0915;   /* prune — texte sur clair */
  --m-ink-2:  #6c4654;   /* secondaire opaque (AA) */
  --m-paper:  #faf7f1;   /* crème — lecture */
  --m-paper-2:#f1ece3;
  --m-line:   #e6ded3;
  --m-line-2: #d2c6ba;
  --m-dark:   #0e0508;   /* fond sombre */
  --m-orange: #fe3600;
  --m-rose:   #d4a8ce;
  --m-peche:  #f5b8a3;
  --m-r: 16px; --m-r-s: 10px; --m-pill: 999px;
  --m-ease: cubic-bezier(.22,.61,.36,1);
  --m-col: min(640px, 100%);
  --m-pad: clamp(20px, 6vw, 40px);

  font-family: var(--font);
  background: var(--m-paper);
  color: var(--m-ink);
  font-size: clamp(16px, 4.1vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#m-shell *, #m-shell *::before, #m-shell *::after { box-sizing: border-box; }
#m-shell h1, #m-shell h2, #m-shell h3 { line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
#m-shell p { margin: 0; }
#m-shell img { display: block; max-width: 100%; }
#m-shell a { color: inherit; }
#m-shell :focus-visible { outline: 2px solid var(--m-orange); outline-offset: 3px; border-radius: 3px; }

/* colonne de lecture centrée */
#m-shell .m-head, #m-shell .m-acc, #m-shell .m-sub, #m-shell .m-concepts,
#m-shell .m-people, #m-shell .m-tiers, #m-shell .m-cta, #m-shell .m-fineprint,
#m-shell .m-quotes { max-width: var(--m-col); margin-left: auto; margin-right: auto; }

/* ── Révélations au défilement ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--m-ease), transform .7s var(--m-ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Barre de progression (haut) ───────────────────────────────────────── */
.m-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; background: rgba(42,9,21,.08); }
.m-prog-fill { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: linear-gradient(90deg, var(--m-rose), var(--m-orange)); }

/* ── Skip link ─────────────────────────────────────────────────────────── */
.m-skip { position: fixed; left: 12px; top: -60px; z-index: 80; background: var(--m-dark); color: #fff; padding: 10px 16px; border-radius: var(--m-r-s); font-weight: 700; text-decoration: none; transition: top .15s; }
.m-skip:focus { top: 12px; }

/* ── Outils flottants (son, sommaire) ──────────────────────────────────── */
.m-tools { position: fixed; top: 12px; right: 12px; z-index: 70; display: flex; gap: 8px; }
.m-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  font-family: var(--font); color: var(--m-ink);
  background: var(--m-rose); border: none;
  border-radius: 50%; cursor: pointer; box-shadow: 0 4px 14px rgba(42,9,21,.22);
}
.m-tool .m-tool-ic { font-size: 18px; line-height: 1; }
.m-tool[aria-pressed="true"] { background: var(--m-orange); border-color: var(--m-orange); }
.m-tool-toc[aria-expanded="true"] { background: var(--m-orange); border-color: var(--m-orange); }

/* ── Sommaire (panneau crème glissant, sobre et élégant) ───────────────── */
.m-toc { position: fixed; inset: 0; z-index: 90; display: flex; background: rgba(14,5,8,.4);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.m-toc[hidden] { display: none; }
.m-toc:not([hidden]) { animation: m-toc-fade .3s ease; }
.m-toc-panel { margin-left: auto; width: min(83%, 360px); height: 100%; background: var(--m-paper);
  display: flex; flex-direction: column; box-shadow: -22px 0 64px rgba(14,5,8,.24); }
.m-toc:not([hidden]) .m-toc-panel { animation: m-toc-slide .4s var(--m-ease); }
@keyframes m-toc-fade { from { opacity: 0; } }
@keyframes m-toc-slide { from { transform: translateX(101%); } }
.m-toc-head { display: flex; align-items: center; justify-content: space-between; padding: 30px 26px 16px; }
.m-toc-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--m-ink-2); }
.m-toc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-rose); }
.m-toc-x { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--m-line); background: none; border-radius: 50%; font-size: 14px; color: var(--m-ink-2); cursor: pointer; transition: border-color .15s, color .15s; }
.m-toc-x:hover { color: var(--m-ink); border-color: var(--m-line-2); }
.m-toc-list { display: flex; flex-direction: column; padding: 6px 0 calc(env(safe-area-inset-bottom,0px) + 28px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-toc-link { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 16px 26px; min-height: 56px; text-decoration: none; color: var(--m-ink); border-top: 1px solid var(--m-line); transition: color .15s; }
.m-toc-link:first-child { border-top: none; }
.m-toc-link .m-toc-n { font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--m-line-2); min-width: 18px; font-variant-numeric: tabular-nums; }
.m-toc-link .m-toc-t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.m-toc-link:hover .m-toc-t { color: var(--m-ink-2); }
.m-toc-link[aria-current="true"] .m-toc-n, .m-toc-link[aria-current="true"] .m-toc-t { color: var(--m-orange); }
.m-toc-link[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 22px; background: var(--m-orange); border-radius: 0 2px 2px 0; }
@media (prefers-reduced-motion: reduce) { .m-toc:not([hidden]), .m-toc:not([hidden]) .m-toc-panel { animation: none; } }

/* ── 1 · HERO (même format portrait que les bannières : image → dégradé → titre) ── */
.m-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--m-paper); color: var(--m-ink); }
.m-hero-bg { position: relative; flex: none; height: clamp(400px, 64svh, 640px); z-index: 0; }
.m-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
/* l'origami reste vif ; fond dans le crème vers le bas, sous lequel vient le titre */
.m-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,247,241,0) 44%, rgba(250,247,241,.5) 66%, rgba(250,247,241,.92) 84%, var(--m-paper) 100%); }
.m-hero-in { position: relative; z-index: 1; flex: 0 0 auto; padding: 0 var(--m-pad); margin-top: clamp(-80px, -9vh, -56px); }
.m-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--m-ink-2); margin-bottom: 12px; }
.m-hero-title { font-size: clamp(60px, 21vw, 116px); line-height: .9; letter-spacing: -0.04em; color: var(--m-orange); }
.m-hero-tag { font-size: clamp(21px, 5.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; color: var(--m-ink); }
.m-hero-quote { margin: 22px 0 0; padding-left: 16px; border-left: 2px solid var(--m-orange);
  font-size: clamp(15px, 4vw, 18px); font-style: italic; color: var(--m-ink-2); line-height: 1.5; }
.m-scroll { position: relative; z-index: 1; flex: 0 0 auto; align-self: center; margin: 4.5vh 0 4vh;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--m-ink); text-decoration: none; opacity: .9; }
.m-scroll-ar { width: 11px; height: 11px; border-right: 2px solid var(--m-orange); border-bottom: 2px solid var(--m-orange);
  transform: rotate(45deg); animation: m-nudge 1.8s ease-in-out infinite; }
@keyframes m-nudge { 0%,100% { transform: rotate(45deg) translate(-2px,-2px); opacity: .5; } 50% { transform: rotate(45deg) translate(2px,2px); opacity: 1; } }

/* ── Chapitres ─────────────────────────────────────────────────────────── */
.m-chap { padding: clamp(48px, 11vh, 88px) var(--m-pad) clamp(28px, 5vh, 44px); position: relative; }
.m-read { color: var(--m-ink); }  /* fond = crème du body → aucun trait sous la bannière */
.m-head { margin-bottom: 30px; }
.m-num { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--m-rose); margin-bottom: 8px; }
.m-head h2 { font-size: clamp(33px, 9vw, 52px); letter-spacing: -0.025em; }
.m-lede { font-size: clamp(17px, 4.4vw, 20px); color: var(--m-ink-2); line-height: 1.55; margin-top: 16px; }
.m-sub { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--m-ink-2);
  margin: 40px auto 16px; padding-top: 20px; border-top: 1px solid var(--m-line); }
.m-fineprint { max-width: var(--m-col); margin: 18px auto 0; font-size: 12.5px; letter-spacing: .02em; color: var(--m-ink-2); }

/* ── Data-viz : chiffres-clés + étapes (synthétiser un contenu dense) ──── */
.m-stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px auto 28px; padding: 0; max-width: var(--m-col); }
.m-stats li { display: flex; flex-direction: column; gap: 7px; padding: 16px 16px 18px; border: 1px solid var(--m-line); border-radius: var(--m-r); background: #fff; }
.m-stat-n { font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--m-orange); line-height: 1; }
.m-stat-n small { font-size: 0.4em; font-weight: 700; color: var(--m-ink-2); margin-left: 3px; letter-spacing: 0; }
.m-stat-l { font-size: 12.5px; color: var(--m-ink-2); line-height: 1.4; }

.m-steps { list-style: none; margin: 14px auto 0; padding: 0; max-width: var(--m-col); }
.m-steps li { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.m-steps li:last-child { padding-bottom: 0; }
.m-step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--m-orange); color: #fff; font-size: 14px; font-weight: 800; line-height: 30px; text-align: center; position: relative; z-index: 1; }
.m-steps li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: -2px; width: 2px; transform: translateX(-50%); background: var(--m-line); }
.m-step-tx { padding-top: 3px; }
.m-step-tx b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--m-ink); }
.m-step-tx span { font-size: 13px; color: var(--m-ink-2); }

/* immersif sombre (terrain) */
.m-immersive { color: #fff; background: var(--m-dark); overflow: hidden; }
.m-imm-bg { position: absolute; inset: 0; z-index: 0; }
.m-imm-bg img { width: 100%; height: 100%; object-fit: cover; }
.m-imm-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,5,8,.78), rgba(14,5,8,.92)); }
.m-imm-in { position: relative; z-index: 1; }
.m-immersive .m-lede { color: rgba(255,255,255,.8); }
.m-immersive .m-num { color: var(--m-peche); }

/* ── Bannière origami en tête de chapitre (format portrait, immersif) ──── */
.m-banner { position: relative; width: 100%; height: clamp(320px, 56vh, 560px); overflow: hidden; background: var(--m-paper-2); }
.m-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; }
/* fond léger vers le crème en bas → enchaîne avec la section de lecture */
.m-banner::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(250,247,241,0) 44%, rgba(250,247,241,.5) 66%, rgba(250,247,241,.92) 84%, var(--m-paper) 100%); }
/* le titre du chapitre remonte DANS le dégradé de l'origami (comme le hero) */
.m-read + .m-banner { margin-top: 0; }
.m-banner + .m-read { position: relative; z-index: 1; margin-top: clamp(-72px, -8vh, -52px); padding-top: 0; }

/* ── Respirations (origami plein écran, lumineux + une ligne) ──────────── */
.m-respir { position: relative; min-height: 58svh; display: flex; align-items: flex-end; justify-content: center;
  padding: 8vh var(--m-pad) 7vh; overflow: hidden; background: var(--m-paper-2); }
.m-respir img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* l'origami reste vif ; léger voile bas-seulement pour la lisibilité de la ligne */
.m-respir::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(14,5,8,0) 42%, rgba(14,5,8,.12) 70%, rgba(14,5,8,.34) 100%); }
.m-respir-line { position: relative; z-index: 2; max-width: 18ch; text-align: center; color: #fff;
  font-size: clamp(24px, 7vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; text-shadow: 0 1px 16px rgba(0,0,0,.5); }

/* ── Accordéons (angles) ───────────────────────────────────────────────── */
.m-acc { display: flex; flex-direction: column; gap: 10px; }
.m-acc-item { border: 1px solid var(--m-line); border-radius: var(--m-r); background: #fff; overflow: hidden; }
.m-acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 18px; min-height: 60px;
  background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font); color: var(--m-ink); }
.m-acc-n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--m-orange); flex: none; }
.m-acc-t { flex: 1; font-size: clamp(17px, 4.6vw, 20px); font-weight: 800; letter-spacing: -0.01em; }
.m-acc-ic { flex: none; width: 14px; height: 14px; position: relative; }
.m-acc-ic::before, .m-acc-ic::after { content: ""; position: absolute; background: var(--m-orange); border-radius: 2px; transition: transform .25s var(--m-ease); }
.m-acc-ic::before { left: 0; right: 0; top: 6px; height: 2px; }
.m-acc-ic::after  { top: 0; bottom: 0; left: 6px; width: 2px; }
.m-acc-item[aria-expanded="true"] .m-acc-ic::after { transform: scaleY(0); }
.m-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--m-ease); }
.m-acc-item[aria-expanded="true"] .m-acc-panel { grid-template-rows: 1fr; }
.m-acc-panel > div { overflow: hidden; }
.m-acc-body { padding: 0 18px 20px; font-size: clamp(15px, 4vw, 17px); color: var(--m-ink-2); line-height: 1.6; }
.m-acc-chart { margin-top: 14px; background: var(--m-paper-2); border: 1px solid var(--m-line); border-radius: var(--m-r-s); padding: 12px; }
.m-acc-chart svg { width: 100%; height: auto; }

/* variante sombre (terrain) */
.m-acc-dark .m-acc-item { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.m-acc-dark .m-acc-head { color: #fff; }
.m-acc-dark .m-acc-body { color: rgba(255,255,255,.78); }
.m-acc-dark .m-acc-n, .m-acc-dark .m-acc-ic::before, .m-acc-dark .m-acc-ic::after { color: var(--m-peche); background: var(--m-peche); }
.m-acc-dark .m-acc-n { background: none; }

/* manifeste — citations */
.m-quotes { margin: 6px 0 28px; display: flex; flex-direction: column; gap: 20px; }
/* hiérarchie : ouverture forte · corps allégé · clôture appuyée */
.m-quote { font-size: clamp(16.5px, 4.4vw, 19px); font-weight: 450; line-height: 1.52; letter-spacing: -0.005em; color: var(--m-ink-2);
  padding-left: 18px; border-left: 2px solid var(--m-line-2); }
.m-quote:first-child { font-size: clamp(22px, 6vw, 30px); font-weight: 800; line-height: 1.24; letter-spacing: -0.02em; color: var(--m-ink); border-left-color: var(--m-orange); }
.m-quote:last-child { font-weight: 700; color: var(--m-ink); border-left-color: var(--m-orange); }

/* ── Trames — galerie horizontale (scroll-snap) ────────────────────────── */
.m-trames { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 4px calc(-1 * var(--m-pad)) 0; padding: 4px var(--m-pad) 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-trames::-webkit-scrollbar { display: none; }
.m-trame { scroll-snap-align: center; flex: 0 0 82%; max-width: 360px; border-radius: var(--m-r); overflow: hidden;
  background: #fff; border: 1px solid var(--m-line); }
.m-trame-img { aspect-ratio: 4/3; width: 100%; background: #fff; padding: 8px; }
.m-trame-img img { width: 100%; height: 100%; object-fit: contain; }
.m-trame-cap { display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: #fff; }
.m-trame-dot { width: 13px; height: 13px; border-radius: 50%; flex: none; }
.m-trame-name { font-size: 16px; font-weight: 800; color: var(--m-ink); }
.m-trame-leg { margin-left: auto; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--m-ink-2); }

/* ── Ressources / fondateurs — wallet de cartes ────────────────────────── */
/* pile façon portefeuille : cartes qui se chevauchent, couverture visible,
   une seule dépliée à la fois (couverture entière + texte). */
.m-wallet { max-width: var(--m-col); margin: 0 auto; padding-top: 4px; }
.m-wc { position: relative; background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden;
  box-shadow: 0 10px 22px rgba(42,9,21,.09); transition: margin .34s var(--m-ease), box-shadow .34s var(--m-ease); }
.m-wc + .m-wc { margin-top: -42px; }                                  /* chevauchement marqué = pile wallet compacte */
.m-wc[aria-expanded="true"] + .m-wc { margin-top: 12px; }             /* la carte qui suit la dépliée : dégagée */
.m-wc[aria-expanded="true"] { margin-top: 12px; z-index: 3; box-shadow: 0 20px 42px rgba(42,9,21,.22); }
.m-wc:first-child { margin-top: 0; }
/* en-tête aligné en haut → le titre + l'auteur restent lisibles dans la bande visible même très chevauchés */
.m-wc-head { width: 100%; display: flex; align-items: flex-start; gap: 13px; padding: 13px 16px; min-height: 56px;
  background: none; border: none; cursor: pointer; text-align: left; font-family: var(--font); position: relative; }
.m-wc-ic { margin-top: 3px; }
.m-wc-thumb { flex: none; width: 50px; height: 70px; border-radius: 6px; overflow: hidden; background: var(--m-paper-2);
  box-shadow: 0 3px 9px rgba(0,0,0,.20); }
.m-wc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-wc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-wc-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--m-ink); line-height: 1.18; }
.m-wc-meta { font-size: 12.5px; font-weight: 700; color: var(--m-orange); }
.m-wc-ic { flex: none; width: 14px; height: 14px; position: relative; }
.m-wc-ic::before, .m-wc-ic::after { content: ""; position: absolute; background: var(--m-orange); border-radius: 2px; transition: transform .25s var(--m-ease); }
.m-wc-ic::before { left: 0; right: 0; top: 6px; height: 2px; }
.m-wc-ic::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.m-wc[aria-expanded="true"] .m-wc-ic::after { transform: scaleY(0); }
.m-wc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--m-ease); }
.m-wc[aria-expanded="true"] .m-wc-panel { grid-template-rows: 1fr; }
.m-wc-panel-in { overflow: hidden; }
.m-wc-body { padding: 4px 18px 18px; font-size: 14.5px; color: var(--m-ink-2); line-height: 1.55; }
/* couvertures harmonisées dans la gamme edena (duotone chaud) — corpus + imaginaires */
.m-wallet-mono .m-wc-thumb img { filter: grayscale(1) sepia(.5) saturate(1.7) hue-rotate(-12deg) brightness(.97) contrast(1.04); }

/* concepts clés — glossaire compact en 2 colonnes (CSS columns, dense → peu de hauteur) */
.m-concepts { column-count: 2; column-gap: 10px; max-width: var(--m-col); margin: 14px auto 0; padding: 0; list-style: none; }
.m-concept { -webkit-column-break-inside: avoid; break-inside: avoid; margin: 0 0 10px;
  background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-r-s); padding: 11px 12px 12px; }
.m-concept-n { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--m-rose); font-variant-numeric: tabular-nums; }
.m-concept-t { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.01em; color: var(--m-ink); line-height: 1.15; margin: 3px 0 4px; }
.m-concept-d { display: block; font-size: 11.5px; color: var(--m-ink-2); line-height: 1.42; }

/* ── Wallet horizontal — défilement tactile + auto-défilement en boucle (corpus · imaginaires) ──
   Conteneur à défilement natif (swipe au doigt) ; 3 jeux identiques + recentrage JS = boucle infinie ;
   l'auto-défilement (mobile.js) se met en pause au toucher ET pendant le scroll de la page. */
.m-hwallet { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x;
  scrollbar-width: none; margin: 6px calc(-1 * var(--m-pad)) 0; padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.m-hwallet::-webkit-scrollbar { display: none; }
.m-hwallet-track { display: flex; width: max-content; }
.m-hw { flex: 0 0 auto; width: 150px; margin-right: 14px; display: flex; flex-direction: column; }
.m-hw-cover { display: block; width: 150px; height: 210px; border-radius: var(--m-r-s); overflow: hidden; background: var(--m-paper-2);
  box-shadow: 0 8px 20px rgba(42,9,21,.16); }
.m-hw-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-hw-cap { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.m-hw-title { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--m-ink); line-height: 1.2; }
.m-hw-meta { font-size: 11.5px; font-weight: 700; color: var(--m-orange); }
.m-hw-body { margin-top: 4px; font-size: 11.5px; color: var(--m-ink-2); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* uniformisation chromatique des couvertures sur la palette edena — duotone prune → pêche (SVG #m-duotone) */
.m-hwallet-mono .m-hw-cover img { filter: url(#m-duotone); }

/* ── Adhésion (tiers + étapes) ─────────────────────────────────────────── */
.m-tiers { display: grid; gap: 12px; }
.m-tier { padding: 18px 18px 20px; border: 1px solid var(--m-line); border-radius: var(--m-r); background: #fff; }
.m-tier-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--m-ink-2); }
.m-tier-name { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 3px 0 6px; }
.m-tier-price { font-size: 26px; font-weight: 800; color: var(--m-orange); line-height: 1; }
.m-tier-price small { font-size: 14px; color: var(--m-ink-2); font-weight: 600; }
.m-tier-tags { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--m-line); display: grid; gap: 6px; }
.m-tier-tags li { position: relative; padding-left: 14px; font-size: 13.5px; color: var(--m-ink-2); line-height: 1.4; }
.m-tier-tags li::before { content: "—"; position: absolute; left: 0; color: var(--m-rose); }
.m-tier-fisc { margin-top: 8px; font-size: 13px; color: var(--m-ink); background: rgba(254,54,0,.07); border: 1px solid rgba(254,54,0,.2); border-radius: var(--m-r-s); padding: 9px 12px; }

/* rejoindre — « pourquoi adhérer » */
.m-join-why { max-width: var(--m-col); margin: 4px auto 0; display: flex; flex-direction: column; gap: 14px; }
.m-join-p { font-size: 14.5px; line-height: 1.6; color: var(--m-ink-2); }
.m-join-lead { font-size: clamp(16px, 4.3vw, 18px); line-height: 1.5; font-weight: 500; color: var(--m-ink);
  padding-left: 16px; border-left: 2px solid var(--m-orange); }

/* CTA */
.m-cta { display: grid; gap: 11px; margin-top: 26px; }
.m-cta-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  font-size: 16px; font-weight: 700; text-decoration: none; border-radius: var(--m-pill); border: 1.5px solid var(--m-ink); color: var(--m-ink); }
.m-cta-primary { background: var(--m-orange); border-color: var(--m-orange); color: #fff; }
.m-cta-ghost { border-color: var(--m-line-2); color: var(--m-ink-2); }

/* ── Pied (fond PRUNE ; origami fondu dans la prune ; texte rose/blanc/orange) ─ */
.m-foot { position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--m-ink); color: #fff; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 44px); }
.m-foot-bg { position: relative; flex: none; height: clamp(320px, 56vh, 560px); z-index: 0; }
.m-foot-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.m-foot-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(42,9,21,0) 44%, rgba(42,9,21,.5) 66%, rgba(42,9,21,.92) 84%, var(--m-ink) 100%); }
.m-foot-in { position: relative; z-index: 1; max-width: var(--m-col); margin: clamp(-72px, -8vh, -52px) auto 0; padding: 0 var(--m-pad); }
.m-foot-mark { font-size: clamp(26px, 7.5vw, 36px); font-weight: 800; letter-spacing: -0.03em; color: var(--m-orange); line-height: 1; margin-bottom: 16px; }
.m-foot-invite { font-size: clamp(24px, 7vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; color: #fff; margin: 0 0 16px; }
.m-foot-sub { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 32ch; margin: 0 0 28px; }
.m-foot-cta { display: flex; width: fit-content; align-items: center; gap: 10px; min-height: 58px; padding: 0 32px; margin: 12px 0 10px; font-size: 17px; font-weight: 700; color: #fff; background: var(--m-orange); border-radius: var(--m-pill); text-decoration: none; box-shadow: 0 8px 24px rgba(254,54,0,.28); }
.m-foot-cta span { transition: transform .18s var(--m-ease); }
.m-foot-cta:hover span { transform: translateX(4px); }
#m-shell a.m-foot-mail { display: block; margin: 14px 0 20px; font-size: clamp(18px, 5.2vw, 22px); font-weight: 700; letter-spacing: 0; color: var(--m-rose); text-decoration: underline; text-underline-offset: 4px; word-break: break-word; }
.m-foot-meta { font-size: 13.5px; line-height: 1.6; margin-bottom: 20px; color: rgba(255,255,255,.66); }
.m-foot-legal { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-bottom: 22px; }
.m-foot-legal button { background: none; border: none; padding: 4px 0; min-height: 32px; font-family: var(--font); font-size: 14px; color: rgba(255,255,255,.78); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.m-foot-legal button:hover { color: #fff; }
.m-install { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; margin-bottom: 22px;
  font-size: 15px; font-weight: 700; color: var(--m-dark); background: var(--m-peche); border: none; border-radius: var(--m-pill); cursor: pointer; }
.m-install[hidden] { display: none; }
.m-foot-copy { font-size: 12px; letter-spacing: .04em; color: rgba(255,255,255,.5); }
/* revenir en haut */
.m-foot-top { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 13px; margin: 22px 0 2px;
  font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--m-rose);
  background: none; border: 1.5px solid rgba(212,168,206,.45); border-radius: var(--m-pill); cursor: pointer;
  transition: border-color .15s, color .15s; }
.m-foot-top:hover { color: #fff; border-color: var(--m-rose); }
.m-foot-top-ic { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--m-rose); color: var(--m-ink); font-size: 15px; font-weight: 800; line-height: 1; }

/* ── Panneaux légaux — overlay mobile autonome (réutilise le contenu existant) ── */
@media (max-width: 768px), (max-width: 932px) and (orientation: landscape) {
  .legal-panel { display: none; }
  .legal-panel.m-legal-open {
    display: block !important; position: fixed !important; inset: 0 !important;
    transform: none !important; opacity: 1 !important; visibility: visible !important;
    pointer-events: auto !important; z-index: 95 !important; overflow-y: auto !important;
    background: var(--m-paper) !important; color: var(--m-ink); -webkit-overflow-scrolling: touch;
  }
  /* neutralise le dégradé/flou desktop (::before) qui voilerait le contenu */
  .legal-panel.m-legal-open::before, .legal-panel.m-legal-open::after { display: none !important; content: none !important; }
  /* onglets / barre de progression desktop : sans objet en overlay mobile */
  .legal-panel.m-legal-open .legal-tabs,
  .legal-panel.m-legal-open .legal-progress-bar { display: none !important; }
  .legal-panel.m-legal-open .legal-panel-content,
  .legal-panel.m-legal-open .legal-content { opacity: 1 !important; visibility: visible !important; }
  .legal-panel.m-legal-open .legal-panel-content {
    transform: none !important; position: static !important;
    width: auto !important; height: auto !important; max-width: none !important; inset: auto !important;
    background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .legal-panel.m-legal-open .legal-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px var(--m-pad); background: var(--m-paper); z-index: 1; }
  .legal-panel.m-legal-open .legal-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--m-ink); background: var(--m-paper-2); border: none; border-radius: 50%; cursor: pointer; }
  .legal-panel.m-legal-open .legal-content {
    position: static !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    width: 100% !important; height: auto !important; max-width: var(--m-col); margin: 0 auto; overflow: visible !important;
    padding: 0 var(--m-pad) calc(env(safe-area-inset-bottom, 0px) + 64px);
  }
  /* tout le texte légal foncé (du blanc hérité du desktop resterait invisible sur crème) */
  .legal-panel.m-legal-open .legal-content,
  .legal-panel.m-legal-open .legal-content * { color: var(--m-ink-2) !important; }
  .legal-panel.m-legal-open .legal-h1 { font-size: clamp(28px, 8vw, 40px); margin: 0 0 18px; color: var(--m-ink) !important; text-shadow: none !important; }
  .legal-panel.m-legal-open .legal-h2 { font-size: 16px; margin: 24px 0 6px; color: var(--m-orange) !important; }
  .legal-panel.m-legal-open .legal-content p,
  .legal-panel.m-legal-open .legal-content li { font-size: 15px; line-height: 1.6; }
  .legal-panel.m-legal-open .legal-content strong,
  .legal-panel.m-legal-open .legal-content b { color: var(--m-ink) !important; }
  .legal-panel.m-legal-open .legal-content a { color: var(--m-ink) !important; text-decoration: underline; }
}

/* ── Mouvement réduit ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .m-scroll-ar { animation: none; }
  .m-acc-panel { transition: none; }
  #m-shell { scroll-behavior: auto; }
}
