/* ==========================================================================
   Doxa Nostrum — landing publique (doxanos-app.com)
   Sobriété institutionnelle : fond crème, cartes bleu nuit, texte anthracite,
   accents laiton très discrets. Traits ultra-fins, ombres douces, angles
   arrondis, micro-animations. Aucune couleur saturée en aplat large.
   ========================================================================== */

:root {
  /* Fonds clairs — crème et papier chaud. */
  --cream: #f8f6f0;
  --paper: #fffdf8;

  /* Bleus de nuit — cartes, héros, pied de page. */
  --navy: #1d3557;
  --navy-soft: #24425f;
  --navy-deep: #142440;
  --navy-ink: #0e1b30;

  /* Accent secondaire : laiton. Filets, majuscules, détails de la mascotte. */
  --brass: #b08d57;
  --brass-lift: #c9a874;
  --brass-soft: #efe7d8;

  /* Textes. */
  --ink: #16203a;
  --muted: #6b7385;
  --on-navy: #ffffff;
  --on-navy-muted: #b6c2d4;

  /* Filets — ultra-fins. */
  --line: #e6e1d6;
  --line-strong: #d3ccbe;
  --line-navy: rgba(255, 255, 255, .13);

  /* Positions de vote — bleu, ambre, ardoise. La charte du mobile et de
     l'espace membre, à l'identique.

     Le vert et la brique disaient « bon » et « mauvais » d'un camp à l'autre,
     et se confondaient pour les huit pour cent d'hommes qui distinguent mal
     les deux. Bleu et ambre s'écartent à la teinte comme à la clarté, et
     deutan comme protan les tiennent — le couple vert/rouge est le cas
     d'échec canonique. L'ardoise ne juge rien.

     Trois rôles, un par valeur : `--c-…` remplit, `--…` écrit, `--…-soft`
     sert de fond. */
  --for: #2563eb;
  --for-soft: #e7effe;
  --against: #b45309;
  --against-soft: #fdeee1;
  --abstain: #4b5563;
  --abstain-soft: #eceef1;

  --c-for: #3b82f6;
  --c-against: #f97316;
  --c-abstain: #64748b;

  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(20, 36, 64, .04), 0 12px 28px -18px rgba(20, 36, 64, .3);
  --shadow-md: 0 4px 14px rgba(20, 36, 64, .05), 0 26px 50px -26px rgba(20, 36, 64, .38);
  --shadow-lg: 0 8px 24px rgba(20, 36, 64, .07), 0 50px 90px -40px rgba(20, 36, 64, .45);

  --font-display: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- Socle --- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 18px; background: var(--paper); border-radius: 10px; box-shadow: var(--shadow-md); transform: translateY(-160%); transition: transform .2s var(--ease); font-weight: 600; }
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, 100% - 44px); margin-inline: auto; }
.container.narrow { max-width: 840px; }

/* Filet de section en majuscules laiton. */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--brass); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.4; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

.lead { color: var(--muted); font-size: 17px; }

/* Apparition au défilement — enrichissement, jamais un prérequis d'affichage. */
.reveal { opacity: 0; transform: translateY(18px); }
.js .reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* ------------------------------------------------------------- Boutons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em;
  color: var(--on-navy); background: var(--navy); border: 1px solid var(--navy);
  border-radius: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 36, 64, .18), 0 14px 26px -14px rgba(20, 36, 64, .6);
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(20, 36, 64, .2), 0 20px 34px -14px rgba(20, 36, 64, .55); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-brass { color: var(--navy-ink); background: var(--brass); border-color: var(--brass); }
.btn-brass:hover { background: var(--brass-lift); border-color: var(--brass-lift); }

/* ------------------------------------------------------------ Mascotte --- */

.owl { width: 100%; height: auto; color: var(--navy); overflow: visible; }
img.owl { display: block; object-fit: contain; border-radius: 50%; }
img.owl.is-live { animation: owl-mark-pulse 1.8s var(--ease) infinite; }
@keyframes owl-mark-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.owl .owl-ring { transform-box: fill-box; transform-origin: center; }
.owl .owl-pupil { transform-box: fill-box; transform-origin: center; }
.owl .owl-lid { opacity: 0; }

/* Repos : l'anneau de sagesse respire. Le clignement est piloté par app.js. */
.js .owl .owl-ring { animation: owl-breathe 5.5s var(--ease) infinite; }
@keyframes owl-breathe { 0%, 100% { transform: scale(1); opacity: .14; } 50% { transform: scale(1.035); opacity: .26; } }

/* Écoute : la pupille suit l'énergie vocale, l'anneau s'éclaire. */
.owl.is-live .owl-pupil { transform: scale(calc(.62 + .55 * var(--owl-energy, .3))); }
.owl.is-live .owl-ring { opacity: calc(.16 + .4 * var(--owl-energy, .3)); animation: none; transform: scale(calc(1 + .05 * var(--owl-energy, .3))); }
.owl.is-live .owl-beak { transform: translateY(calc(1px * var(--owl-energy, 0))) scaleY(calc(1 + .12 * var(--owl-energy, 0))); transform-box: fill-box; transform-origin: top center; }
.owl.is-blinking .owl-iris, .owl.is-blinking .owl-pupil { opacity: 0; }
.owl.is-blinking .owl-lid { opacity: 1; }
.owl .owl-iris, .owl .owl-pupil, .owl .owl-lid { transition: opacity .09s linear; }
.owl.is-live .owl-pupil, .owl.is-live .owl-ring, .owl.is-live .owl-beak { transition: transform .09s linear, opacity .09s linear; }

/* -------------------------------------------------------------- Entête --- */

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease); }
.site-header.is-scrolled { background: rgba(248, 246, 240, .82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.035em; }
.brand .owl { width: 38px; flex: none; }
.brand span { line-height: 1; }
.brand em { font-style: normal; font-weight: 600; color: var(--navy-soft); }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 14.5px; font-weight: 600; }
.main-nav > a:not(.btn) { position: relative; color: var(--ink); opacity: .78; transition: opacity .2s var(--ease); }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; inset: auto 0 -6px; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > a:not(.btn):hover { opacity: 1; }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 1.5px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }

/* --------------------------------------------------------------- Héros --- */

.hero { position: relative; padding: 144px 0 72px; overflow: hidden; }
.hero-aura { position: absolute; z-index: 0; width: 780px; height: 780px; right: -180px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 53, 87, .1), transparent 62%); pointer-events: none; }
.hero-rings { position: absolute; z-index: 0; inset: -60px auto auto 52%; width: 900px; height: 900px; pointer-events: none; opacity: .5; }
.hero-rings circle { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 56px; }

.badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 8px 15px 8px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--navy-soft); }
.badge b { font-weight: 700; color: var(--ink); }

.hero h1 { max-width: 15ch; font-size: clamp(38px, 4.3vw, 56px); }
.hero h1 .accent { display: block; color: var(--navy-soft); }
.hero h1 .accent-brass { display: block; color: var(--brass); }
.hero-lead { max-width: 540px; margin: 26px 0 34px; color: var(--muted); font-size: 17.5px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.is-centered { justify-content: center; }
.reassure { display: flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.member-cue { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.member-cue a { font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; transition: color .2s var(--ease); }
.member-cue a:hover { color: var(--brass); }

/* ----------------------------------------------- Héros — maquette 3D ----- */

.hero-stage { position: relative; display: grid; place-items: center; min-height: 620px; perspective: 1500px; }
.phone {
  position: relative; z-index: 2; width: 322px; padding: 10px;
  background: linear-gradient(160deg, #2a3f5f, var(--navy-ink));
  border-radius: 46px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotateY(-15deg) rotateX(6deg) rotateZ(.8deg);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.hero-stage:hover .phone { transform: rotateY(-9deg) rotateX(3deg) rotateZ(.4deg); }
.phone::after { content: ""; position: absolute; z-index: -1; inset: auto 12% -34px; height: 60px; background: rgba(20, 36, 64, .3); filter: blur(30px); border-radius: 50%; }
.phone-screen { position: relative; overflow: hidden; padding: 14px 15px 18px; background: var(--cream); border-radius: 37px; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 2px 10px 8px; font-size: 10px; font-weight: 700; letter-spacing: -.01em; }
.phone-status i { display: block; width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 3px; opacity: .8; font-style: normal; }

.app-bar { display: flex; align-items: center; gap: 9px; padding: 2px 2px 12px; }
.app-bar .owl { width: 30px; flex: none; }
.app-bar div { flex: 1; line-height: 1.25; }
.app-bar small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.app-bar strong { font-family: var(--font-display); font-size: 13px; letter-spacing: -.02em; }
.app-bar .pts { padding: 4px 9px; background: var(--brass-soft); border-radius: 999px; color: var(--brass); font-size: 10px; font-weight: 700; }

.day-card { padding: 18px; color: var(--on-navy); background: linear-gradient(158deg, var(--navy-soft), var(--navy)); border-radius: var(--radius-md); box-shadow: 0 18px 34px -20px rgba(20, 36, 64, .9); }
.day-card .topic { display: inline-block; padding: 4px 9px; background: rgba(176, 141, 87, .2); border-radius: 999px; color: var(--brass-lift); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.day-card h2 { margin: 11px 0 12px; font-size: 17.5px; line-height: 1.24; font-weight: 700; letter-spacing: -.025em; }
.day-card .brief { margin: 0 0 14px; padding: 10px 11px; background: rgba(255, 255, 255, .07); border-left: 1px solid var(--brass); border-radius: 0 8px 8px 0; color: var(--on-navy-muted); font-size: 10.5px; line-height: 1.5; }
.votes { display: grid; gap: 6px; }
.votes button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 11px; text-align: left; color: var(--on-navy); background: rgba(255, 255, 255, .06); border: 1px solid var(--line-navy); border-radius: 10px; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.votes button:hover { background: rgba(255, 255, 255, .12); transform: translateX(2px); }
.votes button.is-picked { background: rgba(176, 141, 87, .18); border-color: var(--brass); }
.votes button b { flex: 1; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; }
.votes button i { width: 12px; height: 12px; flex: none; border: 1px solid var(--line-navy); border-radius: 50%; font-style: normal; }
.votes button.is-picked i { border: 3.5px solid var(--brass); }
.votes .key { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; font-size: 9px; font-weight: 700; }
.key-for { background: var(--for-soft); color: var(--for); }
.key-against { background: var(--against-soft); color: var(--against); }
.key-abstain { background: var(--abstain-soft); color: var(--abstain); }
.vote-hint { margin: 10px 0 0; color: var(--on-navy-muted); font-size: 9.5px; text-align: center; }

.mini-player { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 11px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.mini-player .owl { width: 32px; flex: none; }
.mini-player div { flex: 1; min-width: 0; }
.mini-player small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }

/* Onde sonore : barres pilotées par --a (0 → 1), animation CSS au repos. */
.wave { display: flex; align-items: center; gap: 2px; height: 22px; }
.wave span { flex: 1; min-width: 2px; height: calc(14% + 86% * var(--a, .25)); background: currentColor; border-radius: 2px; opacity: .55; }
.wave.is-live span { transition: height .09s linear; opacity: 1; }
.wave span { transform-origin: center; }
.js .wave:not(.is-live) span { animation: wave-idle 1.7s var(--ease) infinite; animation-delay: calc(var(--i, 0) * -70ms); }
@keyframes wave-idle { 0%, 100% { transform: scaleY(.42); } 50% { transform: scaleY(1); } }

.float-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.float-note b { display: block; font-family: var(--font-display); font-size: 13px; letter-spacing: -.02em; }
.float-note small { color: var(--muted); font-size: 11px; }
.float-note .glyph { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brass-soft); color: var(--brass); font-size: 15px; }
.float-note.top { right: -4px; top: 12%; }
.float-note.bottom { left: -34px; bottom: 13%; }
.js .float-note { animation: drift 6s var(--ease) infinite; }
.js .float-note.bottom { animation-delay: -3s; }
@keyframes drift { 50% { transform: translateY(-9px); } }

/* ------------------------------------------------------------ Sections --- */

.section { padding: 108px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 50px); }
.section-head .lead { margin-top: 20px; }

/* ------------------------------------------------- Section 2 — piliers --- */

.pillars { background: var(--paper); border-block: 1px solid var(--line); }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; display: flex; flex-direction: column; padding: 34px 30px 30px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.pillar:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.pillar .glyph { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 15px; font-size: 22px; }
.pillar .num { position: absolute; top: 30px; right: 30px; font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--line-strong); }
.pillar h3 { margin-bottom: 12px; font-size: 23px; }
.pillar p { margin-bottom: 24px; color: var(--muted); font-size: 15px; }
.pillar .tag { margin-bottom: 10px; color: var(--brass); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pillar-demo { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.pillar-demo .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar-demo .chips span { padding: 6px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pillar-demo .chips .on { color: var(--navy); border-color: var(--navy-soft); background: var(--cream); }
.pillar-clock { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.pillar-clock b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; color: var(--navy); }
.pillar-clock small { color: var(--muted); font-size: 12px; font-weight: 600; }
.pillar-meter { height: 5px; margin-top: 12px; background: var(--line); border-radius: 4px; overflow: hidden; }
.pillar-meter i { display: block; height: 100%; width: 64%; background: var(--brass); border-radius: 4px; }

/* ------------------------------------------------ Section 3 — showroom --- */

.showroom-frame { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.showroom-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.showroom-bar .dots { display: flex; gap: 6px; }
.showroom-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.showroom-bar .url { flex: 1; padding: 7px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 500; }
.showroom-bar .url b { color: var(--ink); font-weight: 600; }
.showroom-bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--brass); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.showroom-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.js .showroom-bar .live i { animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.showroom-q { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 26px; margin-bottom: 24px; }
.showroom-q .topic { display: inline-block; margin-bottom: 12px; padding: 5px 11px; background: var(--brass-soft); border-radius: 999px; color: var(--brass); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; }
.showroom-q h3 { font-size: clamp(21px, 2.4vw, 29px); }
.showroom-q .meta { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-bottom: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.stat { min-width: 0; padding: 18px 20px; background: var(--paper); }
.stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.stat b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat .delta { color: var(--muted); font-size: 11.5px; font-weight: 600; }

.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card-viz { min-width: 0; padding: 22px 24px 20px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-md); }
.card-viz.is-wide { grid-column: 1 / -1; }
.card-viz h4 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.card-viz .sub { margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* Légende — canal d'identité constant, jamais la couleur seule. */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-for { background: var(--c-for); }
.sw-against { background: var(--c-against); }
.sw-abstain { background: var(--c-abstain); }

.chart-frame { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.chart { width: 100%; max-width: 520px; min-width: 400px; height: auto; }
.chart text { font-family: var(--font); font-size: 12px; font-weight: 500; fill: var(--muted); }
.chart .val { font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart .cat { font-size: 13px; font-weight: 600; fill: var(--ink); }
.chart .inl { font-size: 12px; font-weight: 700; fill: #fff; }
.chart path[fill] { transition: opacity .18s var(--ease); }
.chart:hover path[fill] { opacity: .55; }
.chart path[fill]:hover { opacity: 1; }

.bars { display: grid; gap: 16px; margin-bottom: 4px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; }
.bar-label { font-size: 13.5px; font-weight: 600; text-align: right; }
.bar-track { display: flex; height: 30px; }
.seg { display: grid; place-items: center; flex: 0 0 auto; margin-right: 2px; border-radius: 2px; }
.seg:first-child { border-radius: 5px 2px 2px 5px; }
.seg:last-child { margin-right: 0; border-radius: 2px 5px 5px 2px; }
.seg b { color: #fff; font-size: 12.5px; font-weight: 700; }
.sg-for { background: var(--c-for); }
.sg-against { background: var(--c-against); }
.sg-abstain { background: var(--c-abstain); }

.table-toggle { margin-top: 14px; }
.table-toggle > summary { display: inline-flex; align-items: center; gap: 7px; color: var(--navy-soft); font-size: 12.5px; font-weight: 600; cursor: pointer; list-style: none; }
.table-toggle > summary::-webkit-details-marker { display: none; }
.table-toggle > summary::before { content: "▸"; transition: transform .2s var(--ease); }
.table-toggle[open] > summary::before { transform: rotate(90deg); }
.table-toggle table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.table-toggle th, .table-toggle td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.table-toggle th:first-child, .table-toggle td:first-child { text-align: left; font-weight: 600; }
.table-toggle thead th { color: var(--muted); font-weight: 600; font-size: 12px; }

/* Lecteur d'argument vocal. */
.player { display: flex; flex-direction: column; padding: 26px 26px 22px; color: var(--on-navy); background: linear-gradient(158deg, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.player-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.player-head .avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); border: 1px solid var(--line-navy); font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.player-head div { flex: 1; min-width: 0; line-height: 1.3; }
.player-head b { font-family: var(--font-display); font-size: 14.5px; letter-spacing: -.02em; }
.player-head small { display: block; color: var(--on-navy-muted); font-size: 11.5px; }
.stance { padding: 5px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; }
/* La pastille du camp sur la carte de lecture, posée sur le bleu de nuit :
   la teinte de remplissage y servirait de fond, pas de texte. */
.stance-for { background: rgba(59, 130, 246, .25); color: #a8c8fc; }

.player-owl { display: grid; place-items: center; margin-bottom: 18px; }
.player-owl .owl { width: 106px; color: rgba(255, 255, 255, .92); }
.player .wave { height: 52px; margin-bottom: 20px; color: var(--brass-lift); gap: 2px; }

/* Sous-titrage karaoké — le mot courant s'éclaire, le reste reste lisible. */
.karaoke { min-height: 104px; margin-bottom: 20px; font-size: 16.5px; line-height: 1.62; color: rgba(255, 255, 255, .6); }
.karaoke .w { transition: color .18s var(--ease); }
.karaoke .w.is-said { color: rgba(255, 255, 255, .92); }
.karaoke .w.is-now { color: var(--brass-lift); font-weight: 600; }

.player-controls { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line-navy); }
.play-btn { display: grid; place-items: center; width: 48px; height: 48px; flex: none; padding: 0; color: var(--navy-ink); background: var(--brass); border: 0; border-radius: 50%; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease); }
.play-btn:hover { background: var(--brass-lift); transform: scale(1.06); }
.play-btn svg { width: 17px; height: 17px; }
.play-btn .ic-pause { display: none; }
.play-btn[aria-pressed="true"] .ic-play { display: none; }
.play-btn[aria-pressed="true"] .ic-pause { display: block; }
.track { flex: 1; height: 4px; background: rgba(255, 255, 255, .16); border-radius: 3px; overflow: hidden; }
.track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--brass); border-radius: 3px; }
.time { color: var(--on-navy-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.reactions { display: flex; gap: 8px; margin-top: 16px; }
.reactions button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; color: var(--on-navy); background: rgba(255, 255, 255, .07); border: 1px solid var(--line-navy); border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.reactions button:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.reactions button.is-on { background: rgba(176, 141, 87, .22); border-color: var(--brass); color: var(--brass-lift); }
.reactions .count { opacity: .65; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------- Section 4 — domaines --- */

.domains { background: var(--navy); color: var(--on-navy); }
.domains .section-head h2, .domains .badge { color: inherit; }
.domains .lead { color: var(--on-navy-muted); }
.domain-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.domain { display: flex; flex-direction: column; min-height: 208px; padding: 26px 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-navy); border-radius: var(--radius-md); transition: background .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.domain:hover { background: rgba(255, 255, 255, .1); border-color: var(--brass); transform: translateY(-5px); }
.domain .glyph { font-size: 26px; margin-bottom: 18px; }
.domain h3 { font-size: 18px; margin-bottom: 9px; }
.domain p { flex: 1; color: var(--on-navy-muted); font-size: 13.5px; line-height: 1.5; }
.domain .count { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-navy); color: var(--brass-lift); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }

/* --------------------------------------------- Section 5 — rappel & pied --- */

.footer-cta { padding: 100px 0; background: var(--paper); border-bottom: 1px solid var(--line); text-align: center; }
.footer-cta .owl { width: 82px; margin: 0 auto 26px; }
.footer-cta h2 { font-size: clamp(32px, 4.4vw, 52px); }
.footer-cta .lead { max-width: 560px; margin: 20px auto 32px; }
.footer-cta .reassure { justify-content: center; }
.legal-note { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.legal-note a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { padding: 72px 0 26px; color: var(--on-navy-muted); background: var(--navy-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 52px; }
.footer-brand { color: var(--on-navy); }
.footer-grid > div:first-child p { max-width: 320px; margin-top: 18px; font-size: 13.5px; line-height: 1.6; }
.footer-grid h2 { margin-bottom: 18px; color: var(--on-navy); font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.footer-col { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; }
.footer-col a { transition: color .2s var(--ease); width: fit-content; }
.footer-col a:hover { color: var(--on-navy); }
.socials { display: flex; gap: 9px; margin-top: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-navy); border-radius: 12px; color: var(--on-navy-muted); transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.socials a:hover { color: var(--brass-lift); border-color: var(--brass); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-navy); font-size: 12px; }

/* ------------------------------------------------------ Pages légales --- */

.legal-body .site-header { background: rgba(248, 246, 240, .9); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.legal-page { padding: 140px 0 84px; }
.legal-page h1 { margin-bottom: 12px; font-size: clamp(32px, 4.6vw, 50px); }
.legal-meta { margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 600; }
.legal-intro { font-size: 17px; color: var(--ink); }
.legal-switch { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0 40px; }
.legal-switch a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.legal-switch a[aria-current="page"], .legal-switch a:hover { color: var(--on-navy); background: var(--navy); border-color: var(--navy); }
.legal-page section { margin-bottom: 30px; }
.legal-page h2 { margin-bottom: 10px; font-size: 20px; }
.legal-page p { margin-bottom: 10px; color: var(--muted); }
.legal-page section a, .legal-intro a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ Adaptatif --- */

@media (max-width: 1080px) {
  .main-nav { gap: 22px; }
  .hero-grid { gap: 36px; }
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-6.5px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px; background: var(--cream); font-size: 20px; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s var(--ease); }
  .main-nav.is-open { transform: none; visibility: visible; }

  .hero { padding-top: 128px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-lead { font-size: 16.5px; }
  .hero-stage { min-height: 620px; margin-top: 20px; }
  .hero-rings { display: none; }

  .section { padding: 84px 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .viz-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .showroom-q { grid-template-columns: 1fr; align-items: start; }
  .showroom-q .meta { text-align: left; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav-wrap { min-height: 66px; }
  .hero { padding: 116px 0 64px; }
  .badge { font-size: 12px; padding: 7px 13px 7px 10px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .hero-stage { min-height: 560px; transform: scale(.88); margin: -18px -20px -46px; }
  .float-note { display: none; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .showroom-frame { padding: 16px; border-radius: var(--radius-md); }
  .showroom-bar .url { display: none; }
  .stat-row { grid-template-columns: 1fr; }
  .card-viz { padding: 18px 16px 16px; }
  .chart { min-width: 380px; }
  .bar-row { grid-template-columns: 74px 1fr; gap: 10px; }
  .bar-label { font-size: 12.5px; }
  .bar-track { height: 26px; }
  .seg b { font-size: 11.5px; }
  .player { padding: 22px 18px 18px; }
  .karaoke { font-size: 15.5px; }
  .reactions { flex-wrap: wrap; }
  .domain-grid { grid-template-columns: 1fr 1fr; }
  .domain { min-height: 0; padding: 22px 18px; }
  .footer-cta { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .domain-grid { grid-template-columns: 1fr; }
}

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