/* =====================================================================
   Décolle — Espace : fonds shader par page + hero d'accueil
   Chargé après fx.css. Le fond shader (#space-bg) et les surcouches au
   curseur (#shooting-stars, #bg-aura) sont posés par space-bg.js selon
   l'attribut <body data-bg="clouds|milkyway|nebula">.
   ===================================================================== */

/* ------------------------------------------------------------------ */
/* 1. Fond shader global + lisibilité                                 */
/* ------------------------------------------------------------------ */
html { background: #06060f; }
body { background: transparent; }

#space-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none; display: block;
  opacity: .92;
}
/* voile sombre fixe : profondeur + contraste du texte par-dessus le shader */
.space-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 0%, rgba(6,6,15,.35) 60%, rgba(6,6,15,.72) 100%);
}

/* Les sections claires restent opaques (lisibles) ; les sombres laissent
   passer le shader via un voile translucide. */
.section { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--space { background: rgba(9,9,20,.66); }
.hero { background: transparent; }
.page-hero { background: rgba(9,9,20,.55); }
.footer { background: rgba(7,7,16,.82); }

/* ------------------------------------------------------------------ */
/* 2. Surcouches au curseur (posées par space-bg.js)                  */
/* ------------------------------------------------------------------ */
/* étoiles filantes (accueil) — canvas plein écran au-dessus du voile */
#shooting-stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; display: block;
}
/* halo doux qui suit le curseur (nébuleuse) */
#bg-aura {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border-radius: 50%;
  z-index: -1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(190,170,255,.55), rgba(120,90,255,.18) 45%, transparent 70%);
  will-change: transform;
}

/* ------------------------------------------------------------------ */
/* 2b. Hero d'accueil (titre posé sur le fond cosmique)               */
/* ------------------------------------------------------------------ */
.home-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center; text-align: center;
  padding: clamp(40px, 8vw, 90px) 0 clamp(70px, 10vw, 120px);
  color: #fff; overflow: hidden; background: transparent;
}
.home-hero__inner { position: relative; z-index: 2; max-width: 880px; padding: 0 24px; }
.home-hero .eyebrow { background: rgba(124,92,255,.2); color: #d7ccff; }
.home-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.03em;
  margin-bottom: 22px; text-shadow: 0 6px 44px rgba(0,0,0,.55);
}
.home-hero h1 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home-hero p {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: #dfe2ff;
  max-width: 620px; margin: 0 auto 32px; text-shadow: 0 2px 22px rgba(0,0,0,.55);
}
.home-hero .btn-row { justify-content: center; }
.home-hero .hero__badges { justify-content: center; margin-top: 28px; }

/* indice de scroll */
.home-hero__cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px; z-index: 2;
  font-family: var(--font-head); font-size: .74rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
}
.home-hero__cue svg { width: 22px; height: 22px; animation: cueBob 1.6s ease-in-out infinite; }
@keyframes cueBob { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(7px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .home-hero__cue svg { animation: none; }
}

/* ------------------------------------------------------------------ */
/* 2c. Transition au scroll : console futuriste + robot IA            */
/* ------------------------------------------------------------------ */
.scroll-reveal { position: relative; height: 185vh; }
.scroll-reveal__stage {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  display: grid; align-content: center; justify-items: center; gap: 10px;
  padding: 0 20px; perspective: 1200px;
}
.scroll-reveal__head { text-align: center; color: #fff; max-width: 640px; will-change: transform; }
.scroll-reveal__head .eyebrow { background: rgba(124,92,255,.2); color: #d7ccff; }
.scroll-reveal__head h2 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.scroll-reveal__head h2 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* le "device" qui se redresse au scroll (rotateX 22°→0 piloté par JS) */
.console { width: min(980px, 94vw); will-change: transform; }
.console__bezel {
  position: relative; border-radius: 22px; padding: 16px;
  background: linear-gradient(160deg, rgba(46,48,82,.92), rgba(12,12,24,.94));
  border: 1px solid rgba(150,160,255,.28);
  box-shadow: 0 50px 100px -36px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1);
}
.console__bezel::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #7c5cff, transparent);
}
.console__cam { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.console__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: clamp(12px, 2.4vw, 20px);
  background:
    radial-gradient(120% 90% at 50% 118%, rgba(124,92,255,.30), transparent 62%),
    radial-gradient(90% 70% at 50% -15%, rgba(34,211,238,.16), transparent 55%),
    #06070f;
}

/* grille de sol en perspective */
.hud__grid {
  position: absolute; left: -20%; right: -20%; bottom: 0; height: 70%;
  background-image:
    linear-gradient(rgba(124,168,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,168,255,.16) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(420px) rotateX(60deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(transparent, #000 60%);
  mask-image: linear-gradient(transparent, #000 60%);
  animation: gridFlow 6s linear infinite;
}
@keyframes gridFlow { to { background-position: 0 44px, 0 44px; } }

/* balayage horizontal */
.hud__scan { position: absolute; left: 0; right: 0; top: 0; height: 26%;
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.16), transparent);
  animation: hudScan 5s linear infinite; }
@keyframes hudScan { 0% { transform: translateY(-110%); } 100% { transform: translateY(440%); } }

/* planète holographique + anneaux + satellite */
.holo { position: absolute; left: 7%; bottom: 12%; width: 42%; max-width: 250px; aspect-ratio: 1; }
.holo__ring { position: absolute; left: 50%; top: 50%; width: 116%; height: 116%; border-radius: 50%;
  border: 1px solid rgba(34,211,238,.45); transform: translate(-50%,-50%) rotateX(74deg); }
.holo__ring.r2 { width: 140%; height: 140%; border-color: rgba(124,92,255,.4); transform: translate(-50%,-50%) rotateX(74deg) rotate(40deg); }
.holo__planet { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 30%, #b3a6ff, #6147e6 46%, #241a52 82%);
  box-shadow: 0 0 46px rgba(124,92,255,.55), inset -10px -14px 32px rgba(0,0,0,.55), inset 10px 12px 26px rgba(190,180,255,.22); }
.holo__planet::after { content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.14) 0 6px, transparent 6px 16px);
  opacity: .5; animation: holoBands 14s linear infinite; }
@keyframes holoBands { to { transform: translateX(28%); } }
.holo__orbit { position: absolute; inset: 4%; animation: holoSpin 7s linear infinite; }
.holo__sat { position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #bfeaff; box-shadow: 0 0 12px #bfeaff; }
@keyframes holoSpin { to { transform: rotate(360deg); } }

/* HUD : étiquette + télémétrie + coins */
.hud__tag { position: absolute; top: 12px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: #bfeaff; }
.hud__tag i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: hudBlink 1.4s infinite; }
@keyframes hudBlink { 50% { opacity: .25; } }
.hud__panel { position: absolute; right: 14px; top: 16px; width: min(38%, 230px); display: grid; gap: 10px; }
.hud__row { display: grid; gap: 5px; }
.hud__row span { font-family: var(--font-head); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-space-muted); }
.hud__bar { height: 7px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; }
.hud__bar i { display: block; height: 100%; width: var(--w); border-radius: 100px; background: linear-gradient(90deg, #7c5cff, #22d3ee); animation: hudPulse 3s ease-in-out infinite alternate; }
@keyframes hudPulse { from { filter: brightness(.75); } to { filter: brightness(1.25); } }
.hud__corner { position: absolute; width: 16px; height: 16px; border: 2px solid rgba(124,168,255,.55); }
.hud__corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.hud__corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.hud__corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.hud__corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* robot 3D (Spline) dans la carte IA — lazy, avec repli */
.ai-robot { position: relative; height: 340px; margin: 6px 0 22px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 18%, rgba(124,92,255,.20), transparent 62%); }
.ai-robot__viewer { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.ai-robot__viewer::part(logo) { display: none !important; }
.ai-robot__loader { position: absolute; inset: 0; display: grid; grid-auto-flow: column; gap: 7px; place-content: center; }
.ai-robot__loader span { width: 9px; height: 9px; border-radius: 50%; background: #8b7bff; animation: aiBlink 1s infinite alternate; }
.ai-robot__loader span:nth-child(2) { animation-delay: .15s; }
.ai-robot__loader span:nth-child(3) { animation-delay: .3s; }
@keyframes aiBlink { to { opacity: .2; transform: translateY(-5px); } }
.ai-robot__fallback { position: absolute; inset: 0; display: none; place-items: center; }
.ai-robot__fallback svg { width: 130px; height: 130px; }
.ai-robot.is-on .ai-robot__loader { display: none; }
.ai-robot.is-failed .ai-robot__loader { display: none; }
.ai-robot.is-failed .ai-robot__viewer { display: none; }
.ai-robot.is-failed .ai-robot__fallback { display: grid; }

@media (max-width: 760px) {
  .scroll-reveal { height: 150vh; }
  .hud__panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hud__grid, .hud__scan, .holo__planet::after, .holo__orbit, .hud__bar i, .hud__tag i { animation: none; }
}

/* ------------------------------------------------------------------ */
/* 3. Bandeau de preuves / chiffres ("télémétrie")                    */
/* ------------------------------------------------------------------ */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--space-line); border: 1px solid var(--space-line); border-radius: var(--radius); overflow: hidden; }
.proof__cell { background: rgba(10,10,22,.6); padding: 26px 22px; text-align: center; }
.proof__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.proof__label { color: var(--on-space-muted); font-size: .9rem; margin-top: 10px; }

/* barres de données animées */
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 64px; gap: 16px; align-items: center; }
.bar-row .bl { font-weight: 600; font-size: .96rem; }
.bar-track { height: 12px; border-radius: 100px; background: var(--paper-3); overflow: hidden; }
.section--space .bar-track { background: rgba(255,255,255,.08); }
.bar-fill { height: 100%; width: 0; border-radius: 100px; background: var(--grad-brand); transition: width 1.4s var(--ease); }
.bar-row .bv { font-family: var(--font-head); font-weight: 700; text-align: right; color: var(--violet); }
.section--space .bar-row .bv { color: #bda9ff; }

/* citations / preuves */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--space-card); border: 1px solid var(--space-line); border-radius: var(--radius); padding: 26px; }
.quote p { color: var(--on-space); font-size: 1.02rem; line-height: 1.5; }
.quote__src { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--on-space-muted); font-size: .9rem; }
.quote__dot { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }

@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 120px 1fr 54px; gap: 10px; }
}

/* ------------------------------------------------------------------ */
/* 4. Tableau de bord à l'intérieur de la console                     */
/* ------------------------------------------------------------------ */
.dash__planet { position: absolute; right: 7%; bottom: -12%; width: 38%; max-width: 220px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(150,140,255,.5), rgba(70,55,180,.32) 48%, transparent 72%);
  filter: blur(2px); opacity: .5; pointer-events: none; }
.dash__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash__title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: clamp(.6rem,1.5vw,.74rem); letter-spacing: .1em; text-transform: uppercase; color: #cfe0ff; }
.dash__title i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: hudBlink 1.4s infinite; }
.dash__live { font-family: var(--font-head); font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: #ff9a9a; }
.dash__body { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(10px,2.5vw,22px); align-content: center; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(140,160,255,.18); border-radius: 12px; padding: 9px 6px; text-align: center; }
.kpi b { display: block; font-family: var(--font-head); font-size: clamp(.85rem,2.4vw,1.35rem); line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi span { display: block; margin-top: 3px; font-size: clamp(.5rem,1.2vw,.6rem); letter-spacing: .06em; text-transform: uppercase; color: var(--on-space-muted); }
.dash__bars { display: grid; gap: clamp(7px,1.6vw,11px); align-content: center; }
.dash__bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; }
.dash__bar span { font-size: clamp(.56rem,1.3vw,.66rem); letter-spacing: .05em; text-transform: uppercase; color: #c7cdf2; }
.dash__bar em { font-style: normal; font-family: var(--font-head); font-size: clamp(.58rem,1.3vw,.68rem); color: #bda9ff; }
.dash__bar b { grid-column: 1 / -1; height: 6px; border-radius: 100px; background: rgba(255,255,255,.08); overflow: hidden; }
.dash__bar b i { display: block; height: 100%; width: var(--w); border-radius: 100px; background: linear-gradient(90deg, #7c5cff, #22d3ee); animation: hudPulse 3s ease-in-out infinite alternate; }
.dash__foot { position: relative; z-index: 1; text-align: center; font-family: var(--font-head); font-size: clamp(.62rem,1.5vw,.74rem); letter-spacing: .03em; color: #aab0d8; }
.dash__foot b { color: #fff; }
@media (max-width: 620px) {
  .dash__body { grid-template-columns: 1fr; }
  .dash__bars { display: none; }
}

/* ------------------------------------------------------------------ */
/* 5. Vague de points (fond du footer, toutes pages)                  */
/* ------------------------------------------------------------------ */
.footer { position: relative; overflow: hidden; }
#dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .6; }
.footer > .container { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ */
/* 6. Timeline orbitale (présentation interactive de données)         */
/* ------------------------------------------------------------------ */
.orbital { position: relative; }
.orbital__stage { position: relative; width: 100%; max-width: 640px; height: 600px; margin-inline: auto; }
.orbital__hub { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%,-50%); border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center; z-index: 20; box-shadow: 0 0 42px rgba(124,92,255,.6); }
.orbital__hub::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255,255,255,.85); }
.orbital__halo { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.25); animation: orbPing 3s ease-out infinite; }
.orbital__halo.h2 { animation-delay: 1.2s; }
@keyframes orbPing { 0% { transform: translate(-50%,-50%) scale(1); opacity: .7; } 100% { transform: translate(-50%,-50%) scale(3.4); opacity: 0; } }
.orbital__ring { position: absolute; left: 50%; top: 50%; width: min(420px,86%); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.orbital__node { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; padding: 0; background: none; cursor: pointer; transition: opacity .3s; }
.orbital__node:focus-visible { outline: none; }
.orbital__node:focus-visible .orbital__dot { box-shadow: 0 0 0 4px rgba(124,92,255,.5); }
.orbital__dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  background: rgba(10,10,24,.82); border: 2px solid rgba(255,255,255,.4); transition: transform .35s, background .35s, border-color .35s, box-shadow .35s; }
.orbital__node:hover .orbital__dot { border-color: #fff; }
.orbital__node.is-open .orbital__dot { background: #fff; transform: scale(1.25); border-color: #fff; box-shadow: 0 0 26px rgba(180,170,255,.7); }
.orbital__label { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); font-family: var(--font-head); font-size: .8rem; color: #e7e9ff; white-space: nowrap; text-shadow: 0 2px 10px #000; pointer-events: none; }
.orbital__card { position: absolute; top: 78px; left: 50%; width: 248px; transform: translateX(-50%) translateY(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40;
  background: rgba(8,8,18,.94); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 16px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); text-align: left; }
.orbital__node.is-open .orbital__card { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.orbital__card-h { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 6px; }
.orbital__card p { font-size: .86rem; line-height: 1.45; color: var(--on-space-muted); }
.orbital__energy { margin-top: 12px; }
.orbital__energy span { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #bda9ff; }
.orbital__energy b { display: block; height: 6px; margin-top: 5px; border-radius: 100px; background: rgba(255,255,255,.1); overflow: hidden; }
.orbital__energy i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, #7c5cff, #22d3ee); }
.orbital__stat { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; color: #cfe0ff; }
@media (max-width: 600px) {
  .orbital__stage { height: 480px; }
  .orbital__card { width: 210px; }
}

/* ------------------------------------------------------------------ */
/* 7. Carrousel d'étapes animé (Guide → 6 étapes)                     */
/* ------------------------------------------------------------------ */
.steps.is-enhanced { display: none; }
.fcar { max-width: 880px; margin-inline: auto; display: grid; gap: 22px; }
.fcar__card { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--space-line);
  background: linear-gradient(160deg, rgba(22,23,46,.92), rgba(12,12,24,.94)); box-shadow: var(--shadow-lg); }
.fcar__inner { display: grid; grid-template-columns: 200px 1fr; gap: 26px; padding: clamp(22px,4vw,40px); align-items: center; }
.fcar__panel { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(124,92,255,.3), transparent 60%), #0a0a18; border: 1px solid rgba(140,160,255,.2); }
.fcar__panel::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,168,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(124,168,255,.14) 1px, transparent 1px);
  background-size: 26px 26px; -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(120% 90% at 50% 50%, #000, transparent 75%); }
.fcar__num { position: relative; font-family: var(--font-head); font-weight: 700; font-size: clamp(3.4rem,9vw,5.2rem); line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fcar__num span { display: block; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; color: #b9acff; -webkit-text-fill-color: #b9acff; }
.fcar__ring { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(124,168,255,.35); animation: holoSpin 14s linear infinite; }
.fcar__ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.fcar__body { color: var(--on-space); min-height: 168px; }
.fcar__eyebrow { font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b9acff; }
.fcar__title { font-size: clamp(1.3rem,2.6vw,1.9rem); color: #fff; margin: 8px 0 12px; }
.fcar__desc { color: var(--on-space-muted); }
.fcar__tip { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(124,92,255,.12); border: 1px solid rgba(124,92,255,.25); font-size: .92rem; color: #e7e4ff; }
.fcar__anim { animation: fcarIn .5s var(--ease) both; }
@keyframes fcarIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.fcar__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fcar__pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 100px; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); transition: background .25s, color .25s, border-color .25s; }
.fcar__pill:hover { color: var(--ink); border-color: var(--violet); }
.fcar__pill.is-active { background: var(--grad-brand); color: #fff; border-color: transparent; }
.fcar__pill.is-done { color: var(--ink); }
.fcar__pill i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper-3); color: var(--ink-2); font-size: .8rem; font-style: normal; }
.fcar__pill.is-active i { background: rgba(255,255,255,.3); color: #fff; }
.fcar__pill.is-done i { background: var(--mint); color: #04210f; }
.fcar__pill span { display: none; }
@media (min-width: 620px) { .fcar__pill span { display: inline; } }
@media (max-width: 620px) {
  .fcar__inner { grid-template-columns: 1fr; }
  .fcar__panel { max-width: 150px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fcar__ring, .fcar__anim { animation: none; }
}

/* ------------------------------------------------------------------ */
/* 8. "Mon espace" : icône nav, boutons favoris, tableau de bord      */
/* ------------------------------------------------------------------ */
/* icône compte dans la nav (+ pastille de compteur) */
.nav__account { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; transition: background .2s, color .2s, border-color .2s; }
.nav__account:hover { background: var(--paper-2); color: var(--violet); border-color: var(--violet); }
.nav__account.active { background: rgba(124,92,255,.12); color: var(--violet); border-color: transparent; }
.nav__account svg { width: 20px; height: 20px; }
.nav__account span { display: none; }
.nav__account[data-count]::after { content: attr(data-count); position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 100px; background: var(--coral); color: #fff; font-size: .62rem; font-weight: 700;
  font-family: var(--font-head); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper); }
@media (max-width: 980px) {
  .nav__account { width: auto; height: auto; border-radius: 100px; justify-content: flex-start; gap: 10px; padding: 13px 16px; margin-left: 0; }
  .nav__account span { display: inline; font-family: var(--font-head); font-weight: 600; }
  .nav__account[data-count]::after { position: static; box-shadow: none; margin-left: auto; }
}

/* bouton "Enregistrer" (étoile) sur les articles & outils */
.fav-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); font-family: var(--font-head); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s var(--ease); }
.fav-toggle svg { width: 17px; height: 17px; }
.fav-toggle:hover { border-color: var(--violet); color: var(--violet-d); }
.fav-toggle.is-on { background: rgba(124,92,255,.12); border-color: var(--violet); color: var(--violet-d); }
.fav-toggle.is-on svg { fill: var(--violet); }
.fav-toggle--corner { position: absolute; top: 12px; right: 12px; padding: 8px; border-radius: 50%; z-index: 3; box-shadow: var(--shadow-sm); }
.fav-toggle--corner span { display: none; }
.tool { position: relative; }

/* tableau de bord (compte.html) */
.account__head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.account__badge { width: 72px; height: 72px; border-radius: 22px; background: var(--grad-brand); display: grid; place-items: center; font-size: 2.1rem; flex: none; box-shadow: 0 18px 40px -16px rgba(80,70,230,.7); }
.account__head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.account__head p { color: var(--muted); }
.account__head p b { color: var(--violet-d); }
/* bandeau statut d'accès (gratuit / Pro) */
.account__status { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 26px; border: 1px solid var(--line); }
.account__status.is-pro { background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(34,211,238,.08)); border-color: rgba(124,92,255,.3); }
.account__status.is-free { background: var(--paper-2); }
.account__status-i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex: none; background: var(--grad-brand); }
.account__status.is-free .account__status-i { background: var(--paper-3); }
.account__status-t { flex: 1; min-width: 0; }
.account__status-t b { display: block; font-family: var(--font-head); color: var(--ink); }
.account__status-t span { color: var(--muted); font-size: .88rem; }
.account__status .btn { flex: none; }
@media (max-width: 560px) { .account__status { flex-wrap: wrap; } .account__status .btn { width: 100%; } }
.account__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.acard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.acard--wide { grid-column: 1 / -1; }
.acard h3 { font-size: 1.15rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.acard__n { font-size: .8rem; font-weight: 600; color: var(--violet-d); background: rgba(124,92,255,.12); border-radius: 100px; padding: 2px 10px; }
.acard__empty { color: var(--muted); text-align: center; padding: 14px 0; }
.acard__more { color: var(--muted); font-size: .85rem; margin-top: 10px; text-align: center; }

/* parcours : anneau + checklist */
.parcours { display: flex; gap: 26px; align-items: center; }
.parcours__ring { width: 128px; height: 128px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--violet) calc(var(--p, 0) * 1%), var(--paper-3) 0); }
.parcours__ring b { width: 92px; height: 92px; border-radius: 50%; background: var(--paper); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--violet-d); }
.checks { display: grid; gap: 9px; flex: 1; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .96rem; color: var(--ink-2); }
.check.is-manual { cursor: pointer; }
.check.is-manual:hover .check__box { border-color: var(--violet); }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; transition: .2s; }
.check.is-done .check__box { background: var(--grad-brand); border-color: transparent; }
.check__box svg { width: 13px; height: 13px; color: #fff; }
.check.is-done .check__lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.check__go { font-size: .82rem; font-weight: 600; color: var(--violet-d); text-decoration: none; white-space: nowrap; }

/* lancements */
.run-best { display: flex; flex-direction: column; gap: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.run-best span { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.run-best b { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.runs { display: grid; gap: 8px; }
.run { display: flex; align-items: center; gap: 12px; }
.run__grade { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; }
.run__grade.g-s { background: linear-gradient(135deg,#7c5cff,#22d3ee); }
.run__grade.g-a { background: linear-gradient(135deg,#2f6bff,#22b8ee); }
.run__grade.g-b { background: linear-gradient(135deg,#34d399,#22b8ee); }
.run__grade.g-c { background: linear-gradient(135deg,#ff8f5d,#ffc857); color: #3a2400; }
.run__grade.g-d { background: linear-gradient(135deg,#6b6b82,#9aa0c0); }
.run__meta { display: flex; flex-direction: column; line-height: 1.25; }
.run__meta b { font-family: var(--font-head); }
.run__meta small { color: var(--muted); font-size: .82rem; }

/* favoris */
.favs { display: grid; gap: 8px; }
.fav-item { display: flex; align-items: center; gap: 8px; }
.fav-item__link { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); transition: background .2s, border-color .2s; }
.fav-item__link:hover { background: #fff; border-color: var(--violet); }
.fav-item__ico { font-size: 1.1rem; }
.fav-item__x { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); font-size: 1.2rem; line-height: 1; flex: none; transition: .2s; }
.fav-item__x:hover { background: rgba(255,107,93,.12); border-color: var(--coral); color: var(--coral); }

.account__foot { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.account__foot p { color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  .account__grid { grid-template-columns: 1fr; }
  .parcours { flex-direction: column; align-items: stretch; }
  .parcours__ring { margin-inline: auto; }
}

/* ------------------------------------------------------------------ */
/* 9. Grille de prix (page Offres)                                    */
/* ------------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 46px auto 0; align-items: stretch; max-width: 760px; }
.price-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow-sm); position: relative; }
.price-card.is-featured { border-color: var(--violet); box-shadow: 0 30px 70px -30px rgba(124,92,255,.55); }
.price-card__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: .76rem; letter-spacing: .04em; color: #fff; background: var(--grad-brand); padding: 6px 14px; border-radius: 100px; box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.price-card h3 { font-size: 1.25rem; }
.price-card__price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; margin: 10px 0 6px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-card__price small { font-size: .85rem; color: var(--muted); font-weight: 500; -webkit-text-fill-color: var(--muted); }
.price-card__desc { color: var(--muted); margin-bottom: 20px; font-size: .96rem; }
.price-card__upgrade { margin-top: 12px; font-size: .84rem; line-height: 1.5; color: var(--muted); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); border-radius: 12px; padding: 9px 13px; }
.price-card__upgrade b { color: #0a9d63; }
.price-card ul { display: grid; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: .95rem; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }
.price-card.is-featured { transform: scale(1.035); z-index: 1; }
.price-card__save { align-self: flex-start; font-family: var(--font-head); font-size: .76rem; font-weight: 600; color: #0a9d63; background: rgba(52,211,153,.14); border-radius: 100px; padding: 4px 12px; margin-bottom: 12px; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .price-card.is-featured { transform: none; } }

/* échelle de valeur (3 étapes) */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.ladder__step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.ladder__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--grad-brand); margin-bottom: 14px; }
.ladder__step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ladder__step p { color: var(--muted); font-size: .96rem; }
.ladder__price { display: inline-block; margin-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--violet-d); }
@media (max-width: 780px) { .ladder { grid-template-columns: 1fr; } }

/* tableau comparatif */
.compare__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 44px; }
.compare { width: 100%; border-collapse: collapse; min-width: 580px; }
.compare th, .compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .94rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--font-head); background: var(--paper-2); }
.compare thead th.hl { background: rgba(124,92,255,.1); color: var(--violet-d); }
.compare tbody tr:last-child td { border-bottom: 0; font-weight: 600; }
.compare .y { color: #0a9d63; font-weight: 700; }
.compare .n { color: #c8cbe0; }

/* value stack */
.value-stack { max-width: 640px; margin: 44px auto 0; background: linear-gradient(160deg, var(--space-2), var(--space)); color: var(--on-space); border: 1px solid var(--space-line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); }
.value-stack h3 { color: #fff; margin-bottom: 16px; }
.value-stack__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--space-line); color: var(--on-space-muted); }
.value-stack__row b { color: #fff; font-family: var(--font-head); font-weight: 600; }
.value-stack__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--space-line); }
.value-stack__total span { font-family: var(--font-head); font-size: 1.05rem; color: #fff; }
.value-stack__total b { font-family: var(--font-head); font-size: 1.9rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-stack__foot { max-width: 640px; margin: 16px auto 0; text-align: center; font-size: .89rem; line-height: 1.6; color: var(--muted); }
.value-stack__foot b { color: var(--ink); }
.section--space .value-stack__foot { color: var(--on-space-muted); }
.section--space .value-stack__foot b { color: #fff; }
@media (max-width: 560px) {
  .value-stack__row { flex-direction: column; gap: 2px; }
  .value-stack__row b { font-size: .92rem; }
}

/* badges de confiance */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; margin-top: 30px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.trust svg { width: 18px; height: 18px; color: var(--mint); flex: none; }

/* ------------------------------------------------------------------ */
/* 11. Section + maquette (showcase produit)                          */
/* ------------------------------------------------------------------ */
.mockup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.mockup-grid.rev .mockup-text { order: 2; }
.mockup-text .eyebrow { margin-bottom: 14px; }
.mockup-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1.1; margin-bottom: 16px; }
.mockup-text h2 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mockup-text > p { color: var(--on-space-muted); font-size: 1.05rem; margin-bottom: 16px; }
.mockup-text .chk { display: grid; gap: 11px; margin: 4px 0 24px; }
.mockup-text .chk li { display: flex; gap: 11px; align-items: flex-start; color: var(--on-space); font-size: .98rem; }
.mockup-text .chk svg { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 1px; }
.mockup { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 472 / 638; }
.mockup__main { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 100px -30px rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mockup__bg { position: absolute; z-index: 1; width: 86%; aspect-ratio: 472 / 500; border-radius: 26px; overflow: hidden;
  filter: blur(1.5px); opacity: .8; top: 6%; left: -16%; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.mockup-grid.rev .mockup__bg { left: auto; right: -16%; top: auto; bottom: 6%; }
.mockup__main img, .mockup__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) {
  .mockup-grid { grid-template-columns: 1fr; gap: 30px; }
  .mockup-grid.rev .mockup-text { order: 0; }
  .mockup { max-width: 330px; }
  .mockup__bg { display: none; }
}

/* ------------------------------------------------------------------ */
/* 12. Showcase « Features » (liste auto-défilante + image)           */
/* ------------------------------------------------------------------ */
.features { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.features__list { display: grid; gap: 12px; }
.feat { display: flex; gap: 16px; padding: 16px 18px; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s; }
.feat:hover { background: var(--paper-2); }
.feat.is-active { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.feat__ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: rgba(124,92,255,.1); color: var(--violet); transition: background .3s, color .3s; }
.feat.is-active .feat__ico { background: var(--grad-brand); color: #fff; }
.feat__ico svg { width: 22px; height: 22px; }
.feat__body { flex: 1; min-width: 0; }
.feat__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feat__body p { color: var(--muted); font-size: .92rem; }
.feat__bar { height: 4px; background: var(--paper-3); border-radius: 100px; margin-top: 14px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.feat.is-active .feat__bar { opacity: 1; }
.feat__bar i { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: 100px; }
.features__media { position: relative; width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 472 / 638; }
.features__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; transform: scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.features__media img.is-shown { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; gap: 26px; }
  .features__media { order: -1; max-width: 300px; }
}

/* ------------------------------------------------------------------ */
/* 13. Thème "cosmos" — galaxie Spline en fond de TOUTE la page (Pack) */
/* ------------------------------------------------------------------ */
/* Fond galaxie fixe, derrière tout le contenu (occupe la place de #space-bg) */
.cosmos-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(130% 92% at 72% 6%, #2a1d5e 0%, #0c0a1e 52%, #06060f 100%); }
.cosmos-bg .gv { position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  opacity: 0; transition: opacity 1.2s var(--ease); }
.cosmos-bg.is-on .gv { opacity: 1; }
/* voile global : profondeur + lisibilité du texte sur toute la hauteur */
.cosmos-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% 0%, transparent 0%, rgba(6,6,15,.34) 55%, rgba(6,6,15,.66) 100%),
    linear-gradient(90deg, rgba(6,6,15,.5), transparent 24%, transparent 76%, rgba(6,6,15,.5)); }

/* la galaxie traverse toutes les sections (sinon fond blanc opaque) */
body.theme-cosmos { background: transparent; }
.theme-cosmos .section,
.theme-cosmos .section--paper,
.theme-cosmos .section--paper2 { background: transparent; }

/* ---- Hero (au-dessus de la galaxie globale) ---- */
.galaxy-hero { position: relative; min-height: 84vh; min-height: 84svh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.galaxy-hero__inner { position: relative; z-index: 2; max-width: 820px; padding: clamp(90px,14vh,150px) 0 40px; pointer-events: none; }
.galaxy-hero__inner .post-cats { margin-bottom: 16px; }
.galaxy-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.04; letter-spacing: -.02em; margin-bottom: 16px; text-shadow: 0 8px 44px rgba(0,0,0,.6); }
.galaxy-hero h1 .hl { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.galaxy-hero p { color: #d9dcff; font-size: clamp(1.05rem,1.8vw,1.25rem); max-width: 560px; text-shadow: 0 2px 22px rgba(0,0,0,.55); }
.galaxy-hero .post-meta { color: var(--on-space-muted); margin-top: 18px; }
.galaxy-hero .post-meta b { color: #fff; }

/* ---- En-têtes de section sur fond sombre ---- */
.theme-cosmos .eyebrow { color: #bda9ff; }
.theme-cosmos .section-title { color: #fff; }
.theme-cosmos .lead { color: var(--on-space-muted); }

/* ---- Galerie "aperçu" : cartes en verre, texte clair ---- */
.theme-cosmos .feat__body h3 { color: #fff; }
.theme-cosmos .feat__body p { color: var(--on-space-muted); }
.theme-cosmos .feat:not(.is-active) .feat__ico { background: rgba(255,255,255,.07); color: #cdbcff; }
.theme-cosmos .feat:hover { background: rgba(255,255,255,.05); }
.theme-cosmos .feat.is-active { background: rgba(255,255,255,.07); border-color: rgba(124,92,255,.55); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.theme-cosmos .feat__bar { background: rgba(255,255,255,.15); }
.theme-cosmos .features__media img { border-color: rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ---- Article : sommaire + prose en clair ---- */
.theme-cosmos .toc__title { color: var(--on-space-muted); }
.theme-cosmos .toc__list { border-left-color: rgba(255,255,255,.16); }
.theme-cosmos .toc__list a { color: var(--on-space-muted); }
.theme-cosmos .toc__list a:hover { color: #fff; }
.theme-cosmos .toc__list a.is-active { color: #fff; border-left-color: var(--violet); }
.theme-cosmos .prose p, .theme-cosmos .prose li { color: #c7cbe6; }
.theme-cosmos .prose h2, .theme-cosmos .prose h3, .theme-cosmos .prose h4 { color: #fff; }
.theme-cosmos .prose h2 .num { color: #9a86ff; -webkit-text-fill-color: #9a86ff; }
.theme-cosmos .prose strong { color: #fff; }
.theme-cosmos .prose em { color: #d9dcff; }
.theme-cosmos .prose a { color: #bda9ff; text-decoration-color: rgba(189,169,255,.45); }
.theme-cosmos .prose a:hover { text-decoration-color: #bda9ff; }
.theme-cosmos .prose li::marker { color: #9a86ff; }
.theme-cosmos .prose blockquote { background: rgba(124,92,255,.12); border-left-color: var(--violet); color: #e7e3ff; }
.theme-cosmos .prose hr { background: rgba(255,255,255,.14); }
.theme-cosmos .prose code { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #cdbcff; }

/* ---- Blocs copiables en verre sombre ---- */
.theme-cosmos .copyblock { background: rgba(10,10,22,.5); border-color: rgba(255,255,255,.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.theme-cosmos .copyblock__obj { color: #fff; }
.theme-cosmos .copyblock__btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #cdbcff; }
.theme-cosmos .copyblock__btn:hover { border-color: var(--violet); color: #fff; }
.theme-cosmos .copyblock__body { color: #c2c6e2; }

/* ---- Notes en verre violet ---- */
.theme-cosmos .note { background: rgba(124,92,255,.14); border-color: rgba(124,92,255,.3); }
.theme-cosmos .note p { color: #e7e3ff; }
.theme-cosmos .note strong, .theme-cosmos .note b { color: #fff; }

@media (prefers-reduced-motion: reduce) { .cosmos-bg .gv { transition: none; } }

/* ------------------------------------------------------------------ */
/* 14. Onglets du Pack (sections cliquables au lieu d'un long scroll) */
/* ------------------------------------------------------------------ */
.pack-tabs { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 44px; align-items: start; max-width: 1080px; margin-inline: auto; }
.pack-tabs__nav { position: sticky; top: calc(var(--nav-h) + 22px); display: flex; flex-direction: column; gap: 7px; }
.pack-tab { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--on-space-muted);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 15px 16px; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s; }
.pack-tab:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.pack-tab:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pack-tab.is-active { background: rgba(124,92,255,.16); border-color: rgba(124,92,255,.5); color: #fff;
  box-shadow: inset 3px 0 0 var(--violet), 0 12px 32px rgba(0,0,0,.35); }
.pack-tab__n { flex: none; font-size: .82rem; font-weight: 700; color: #8b78ff; min-width: 20px; }
.pack-tab.is-active .pack-tab__n { color: #bda9ff; }

.pack-panel { animation: none; }
.pack-panel[hidden] { display: none; }
.pack-panel.is-active { animation: packFade .4s var(--ease); }
.pack-panel > *:first-child { margin-top: 0; }
@keyframes packFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .pack-tabs { grid-template-columns: 1fr; gap: 22px; }
  .pack-tabs__nav { position: static; top: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    gap: 8px; padding-bottom: 8px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pack-tabs__nav::-webkit-scrollbar { display: none; }
  .pack-tab { width: auto; flex: 0 0 auto; white-space: nowrap; font-size: .92rem; padding: 11px 14px; }
  .pack-tab:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .pack-panel.is-active { animation: none; } }
