/* ==========================================================
   le Raphiné · Le QG
   ========================================================== */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #030604;
  --bg-rgb: 3,6,4;
  --panel-rgb: 14,26,19;
  --green-rgb: 61,255,140;
  --line-rgb: 110,255,170;
  --text-2: #c4d3cb;
  --on-green: #031a0c;
  --rain-bg: 3,6,4;
  --rain-a: #c9ffe0;
  --rain-b: rgba(61,255,140,.85);
  --bg-2: #060c08;
  --panel: rgba(var(--panel-rgb),.55);
  --panel-solid: #0b1510;
  --line: rgba(var(--line-rgb),.12);
  --line-strong: rgba(var(--line-rgb),.28);
  --green: #3dff8c;
  --green-2: #00d66b;
  --green-dim: #1d6b44;
  --green-glow: rgba(var(--green-rgb),.35);
  --text: #e8f2ec;
  --muted: #92a49a;
  --faint: #7a8c81;
  --yellow: #ffd84d;
  --violet: #8b5cf6;
  --danger: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--green); color: #021; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* grain + scanlines on the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .05;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.6) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.hl { color: #050505; background: var(--yellow); padding: 0 .14em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.green { color: var(--green); }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); box-shadow: 0 0 12px var(--green); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------------- Intro ---------------- */
.intro { position: fixed; inset: 0; z-index: 200; background: #010201; display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro pre { font-family: var(--mono); color: var(--green); font-size: clamp(13px, 2.6vw, 16px); line-height: 1.9; margin: 0; padding: 24px; min-width: min(520px, 90vw); text-shadow: 0 0 10px var(--green-glow); white-space: pre-wrap; }
.intro .skip { position: absolute; bottom: 24px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .1em; }

/* ---------------- Header ---------------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(var(--bg-rgb),.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--mono); font-weight: 600; font-size: 17px; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.logo b { color: var(--green); font-weight: 600; }
.logo .caret { width: 9px; height: 18px; background: var(--green); margin-left: 4px; animation: blink 1.1s steps(2) infinite; box-shadow: 0 0 10px var(--green-glow); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.link { font-size: 14.5px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.kbd-hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; transition: border-color .2s, color .2s; }
.kbd-hint:hover { color: var(--text); border-color: var(--line-strong); }
kbd { font-family: var(--mono); font-size: 11px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--text); }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: rgba(var(--bg-rgb),.97); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; padding: 90px 28px 40px; gap: 6px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: clamp(30px, 9vw, 44px); font-weight: 650; letter-spacing: -.03em; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.mobile-menu a small { font-family: var(--mono); font-size: 12px; color: var(--green); letter-spacing: .1em; }
.mobile-menu .socials { margin-top: 28px; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; transition: transform .2s var(--ease), box-shadow .3s, background .2s, color .2s, border-color .2s; white-space: nowrap; position: relative; overflow: hidden; }
.btn-primary { background: var(--green); color: var(--on-green); box-shadow: 0 0 0 1px rgba(var(--green-rgb),.4), 0 8px 30px -8px var(--green-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--green), 0 12px 40px -6px rgba(var(--green-rgb),.55); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); }
.btn-primary:hover::after { transition: transform .8s var(--ease); transform: translateX(120%); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------- Hero ---------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 36px) 0 70px; overflow: hidden; isolation: isolate; }
.rain { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .55; }
.hero .rain { opacity: .55; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(var(--bg-rgb),.86) 0%, rgba(var(--bg-rgb),.72) 30%, rgba(var(--bg-rgb),.3) 52%, rgba(var(--bg-rgb),0) 72%),
  radial-gradient(60% 55% at 72% 45%, rgba(var(--green-rgb),.08), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, rgba(139,92,246,.10), transparent 70%),
  linear-gradient(180deg, rgba(var(--bg-rgb),.2) 0%, rgba(var(--bg-rgb),.55) 55%, var(--bg) 100%); }
.hero .glow-cursor { position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(var(--green-rgb),.13), transparent 65%); transform: translate(-50%, -50%); left: var(--mx, 70%); top: var(--my, 40%); transition: opacity .4s; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .94; letter-spacing: -.045em; font-weight: 750; margin: 20px 0 22px; }
.hero h1 .line { display: block; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 560px; margin: 0 0 30px; }
.hero .sub strong { color: var(--text); font-weight: 600; }

/* email terminal form */
.subscribe { width: 100%; max-width: 560px; }
.term { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(var(--panel-rgb),.75); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); transition: border-color .25s, box-shadow .25s; }
.term:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(var(--green-rgb),.12), 0 0 40px -10px var(--green-glow); }
.term .prompt { font-family: var(--mono); color: var(--green); font-size: 14px; flex: none; }
.term input { flex: 1; min-width: 0; height: 46px; background: transparent; border: 0; outline: 0; font-family: var(--mono); font-size: 15px; color: var(--text); caret-color: var(--green); }
.term input::placeholder { color: var(--faint); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 12px 4px 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); margin-top: 1px; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.consent input:checked { background: var(--green); border-color: var(--green); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--on-green); border-bottom: 2px solid var(--on-green); transform: rotate(-45deg) translate(1px, -1px); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.form-msg { font-family: var(--mono); font-size: 13px; margin: 10px 4px 0; min-height: 1.4em; color: var(--muted); }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--green); }
.subscribe.success .term, .subscribe.success .consent { display: none; }
.success-box { display: none; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--green); background: rgba(var(--green-rgb),.06); font-family: var(--mono); font-size: 14px; color: var(--green); line-height: 1.7; }
.subscribe.success .success-box { display: block; animation: rise .5s var(--ease); }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.proof .dots { display: flex; }
.proof .dots span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; background: linear-gradient(135deg, var(--green-2), #0a3); display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: #021; font-weight: 700; }
.proof .dots span:first-child { margin-left: 0; }
.proof .dots span:nth-child(2) { background: linear-gradient(135deg, var(--yellow), #e8a400); }
.proof .dots span:nth-child(3) { background: linear-gradient(135deg, var(--violet), #5b21b6); color: #fff; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.portrait { position: absolute; inset: 0; display: grid; place-items: end center; }
.portrait .ring { position: absolute; left: 8%; right: 8%; top: 6%; bottom: 0; border-radius: 50% 50% 28px 28px / 42% 42% 28px 28px; background:
  radial-gradient(70% 60% at 50% 35%, rgba(var(--green-rgb),.22), transparent 70%),
  linear-gradient(180deg, rgba(10,28,18,.9), rgba(3,8,5,.2)); border: 1px solid var(--line-strong); overflow: hidden; }
.portrait .ring::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(var(--green-rgb),.07) 0 1px, transparent 1px 4px); }
.portrait .ring::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(var(--green-rgb),.14), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { to { top: 110%; } }
.portrait img { position: relative; width: 92%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)) drop-shadow(0 0 1px rgba(var(--green-rgb),.6)); transform: translateZ(0); -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.portrait .glitch { position: absolute; bottom: 0; width: 92%; height: auto; opacity: 0; mix-blend-mode: screen; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
.hero-visual:hover .glitch, .hero-visual.glitching .glitch { animation: glitch .9s steps(2) 1; }
.glitch.g1 { filter: drop-shadow(0 0 0 #0f8) hue-rotate(80deg) saturate(3); }
.glitch.g2 { filter: hue-rotate(-60deg) saturate(3); }
@keyframes glitch {
  0% { opacity: .8; transform: translate(-6px, 0); clip-path: inset(10% 0 70% 0); }
  20% { opacity: .8; transform: translate(6px, 0); clip-path: inset(50% 0 20% 0); }
  40% { opacity: .7; transform: translate(-3px, 0); clip-path: inset(30% 0 50% 0); }
  60% { opacity: .7; transform: translate(4px, 0); clip-path: inset(70% 0 5% 0); }
  80% { opacity: .5; transform: translate(-2px, 0); clip-path: inset(15% 0 60% 0); }
  100% { opacity: 0; transform: none; clip-path: inset(0); }
}
.chip-float { position: absolute; z-index: 3; font-family: var(--mono); font-size: 13px; padding: 9px 14px; border-radius: 12px; background: rgba(var(--panel-rgb),.82); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); color: var(--text); white-space: nowrap; box-shadow: 0 16px 40px -16px rgba(0,0,0,.8); animation: floaty 7s ease-in-out infinite; }
.chip-float b { color: var(--green); font-weight: 600; }
.chip-float.c1 { top: 16%; left: -4%; }
.chip-float.c2 { top: 44%; right: -6%; animation-delay: -2.3s; }
.chip-float.c3 { bottom: 16%; left: 2%; animation-delay: -4.1s; }
.chip-float .tag { color: var(--on-green); background: var(--yellow); border-radius: 5px; padding: 1px 6px; margin-right: 6px; font-size: 11px; font-weight: 700; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* keyword finder */
.finder { margin-top: 28px; max-width: 560px; }
.finder label { display: block; font-size: 14.5px; color: var(--muted); margin-bottom: 9px; } .finder label b { color: var(--text); font-weight: 600; }
.finder form { display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 6px 0 16px; border-radius: 16px; border: 1px solid rgba(255,216,77,.45); background: rgba(255,216,77,.04); transition: border-color .2s, box-shadow .2s; }
.finder form:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,216,77,.12); }
.finder svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
.finder input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--mono); font-size: 16px; text-transform: uppercase; color: var(--yellow); letter-spacing: .05em; }
.finder input::placeholder { color: rgba(255,216,77,.45); text-transform: none; letter-spacing: 0; }
.finder button { height: 46px; padding: 0 18px; border-radius: 11px; background: var(--yellow); color: #120f00; font-weight: 650; font-size: 15px; flex: none; }
.finder button:hover { filter: brightness(1.08); }
.hero-or { margin: 18px 0 10px; font-size: 14px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); max-width: 640px; }
.stats div { background: rgba(var(--panel-rgb),.8); padding: 16px 20px; }
.stats b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--green), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------------- Marquee ---------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: "◆"; color: var(--green-dim); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; font-weight: 720; margin: 14px 0 0; }
.section-head p { color: var(--muted); max-width: 440px; margin: 0; }
h2, h3 { text-wrap: balance; }

/* index tools */
.toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; padding: 12px; margin-inline: -12px; border-radius: 22px; transition: box-shadow .3s; background: rgba(var(--bg-rgb),.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.toolbar.stuck { box-shadow: 0 0 0 1px var(--line); }
.search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(var(--panel-rgb),.7); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(var(--green-rgb),.1); }
.search svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; height: 100%; }
.search input::placeholder { color: var(--faint); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; background: rgba(255,255,255,.015); }
.pill:hover { color: var(--text); border-color: var(--line-strong); }
.pill[aria-pressed="true"] { background: var(--green); color: var(--on-green); border-color: var(--green); font-weight: 600; }
.pill .n { font-family: var(--mono); font-size: 11.5px; opacity: .7; }
.result-count { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: border-color .3s, transform .35s var(--ease), box-shadow .35s; will-change: transform; isolation: isolate; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--x, 50%) var(--y, 0%), rgba(var(--green-rgb),.13), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--green-rgb),.08); }
.card:hover::before { opacity: 1; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.card .num { color: var(--green); }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.badge.new { background: var(--yellow); color: #1a1400; }
.badge.lock { border: 1px solid rgba(255,216,77,.4); color: var(--yellow); }
.badge.lock svg { width: 11px; height: 11px; }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 22px 0 10px; }
.card p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tagx { font-size: 12px; padding: 4px 9px; border-radius: 7px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #b9c8bf; }
.card .go { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--green); transition: transform .3s var(--ease), background .3s, color .3s; }
.card:hover .go { transform: rotate(-45deg); background: var(--green); color: var(--on-green); }
.card .go svg { width: 16px; height: 16px; }
.card .meta { padding-right: 48px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty b { display: block; font-size: 22px; color: var(--text); margin-bottom: 8px; }

/* ---------------- Newsletter block ---------------- */
.matrice { overflow: hidden; }
.matrice-box { position: relative; border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(80% 120% at 100% 0%, rgba(var(--green-rgb),.16), transparent 60%), linear-gradient(180deg, #071209, #040805); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; overflow: hidden; isolation: isolate; }
.matrice-box canvas { position: absolute; inset: 0; z-index: -1; opacity: .22; width: 100%; height: 100%; }
.matrice-box h2 { font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.045em; margin: 14px 0 18px; font-weight: 750; }
.matrice-box > div > p { color: var(--text-2); margin: 0 0 26px; font-size: 18px; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(var(--bg-rgb),.6); border: 1px solid var(--line); }
.benefits li i { font-style: normal; font-family: var(--mono); color: var(--green); font-size: 12px; margin-top: 3px; flex: none; }
.benefits li b { display: block; font-weight: 600; font-size: 15.5px; }
.benefits li span { color: var(--muted); font-size: 14px; }

/* ---------------- Shop ---------------- */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 18px; display: flex; flex-direction: column; gap: 16px; transition: border-color .3s, transform .35s var(--ease); }
.product:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; display: grid; place-items: center; perspective: 900px; background: radial-gradient(60% 80% at 50% 30%, rgba(var(--green-rgb),.22), transparent 70%), #050b07; }
.cover.jaune { background: radial-gradient(60% 80% at 50% 30%, rgba(255,216,77,.22), transparent 70%), #0b0a04; }
.cover.violet { background: radial-gradient(60% 80% at 50% 30%, rgba(139,92,246,.28), transparent 70%), #08060c; }
.book { width: 46%; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; background: linear-gradient(120deg, #0d1f15, #061009); border: 1px solid rgba(var(--green-rgb),.4); box-shadow: -10px 16px 40px rgba(0,0,0,.6), inset 6px 0 0 rgba(255,255,255,.04); transform: rotateY(-18deg) rotateX(6deg); transition: transform .6s var(--ease); padding: 12% 10%; display: flex; flex-direction: column; justify-content: space-between; }
.product:hover .book { transform: rotateY(-6deg) rotateX(2deg) translateY(-4px); }
.book small { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--green); text-transform: uppercase; }
.book b { font-size: clamp(13px, 1.5vw, 17px); line-height: 1.05; letter-spacing: -.02em; }
.cover.jaune .book { border-color: rgba(255,216,77,.5); } .cover.jaune .book small { color: var(--yellow); }
.cover.violet .book { border-color: rgba(139,92,246,.6); } .cover.violet .book small { color: #b79cff; }
.product h3 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.product .st { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.product p { color: var(--muted); font-size: 14.5px; margin: 0; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.price { font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.price small { font-family: var(--mono); font-size: 11px; color: var(--faint); font-weight: 400; letter-spacing: .06em; margin-left: 6px; }
.status { position: absolute; top: 28px; right: 28px; z-index: 2; }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 30%, rgba(var(--green-rgb),.16), transparent 70%), #050b07; overflow: hidden; display: grid; place-items: end center; }
.about-photo img { height: 96%; width: auto; object-fit: contain; }
.about-photo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(var(--green-rgb),.05) 0 1px, transparent 1px 4px); }
.about h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin: 14px 0 22px; }
.about p { color: var(--text-2); font-size: 17.5px; max-width: 620px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.social { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 14.5px; transition: border-color .2s, color .2s, transform .2s; }
.social:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: 14px; max-width: 340px; }
.footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer ul a:hover { color: var(--green); }
.footer .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.footer-big { font-size: clamp(34px, 8.6vw, 124px); font-weight: 800; letter-spacing: -.06em; line-height: .8; margin: 48px 0 0; color: transparent; -webkit-text-stroke: 1px rgba(var(--green-rgb),.22); user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-bg { position: absolute; inset: 0; background: rgba(1,3,2,.78); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(520px, 100%); border-radius: 26px; border: 1px solid var(--line-strong); background: radial-gradient(90% 70% at 50% 0%, rgba(var(--green-rgb),.16), transparent 60%), #050b07; padding: 34px 28px 26px; transform: translateY(20px) scale(.98); transition: transform .4s var(--ease); box-shadow: 0 40px 120px -20px rgba(0,0,0,.9); max-height: calc(100svh - 32px); overflow: auto; }
.modal.open .modal-card { transform: none; }
.modal-card h3 { font-size: clamp(28px, 6vw, 38px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 12px; }
.modal-card p { color: var(--text-2); margin: 0 0 22px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-close svg { width: 16px; height: 16px; }
.modal .term { border-radius: 16px; flex-wrap: wrap; padding: 6px; }
.modal .term .prompt { padding-left: 12px; }
.modal .term input { min-width: 180px; }
.modal .term .btn { width: 100%; }

/* ---------------- Command palette ---------------- */
.palette { position: fixed; inset: 0; z-index: 160; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.palette.open { display: flex; }
.palette .modal-bg { animation: fade .2s; }
.palette-box { position: relative; width: min(640px, 100%); border-radius: 20px; border: 1px solid var(--line-strong); background: var(--panel-solid); box-shadow: 0 40px 120px -20px rgba(0,0,0,.95); overflow: hidden; animation: rise .25s var(--ease); }
.palette-box .search { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.palette-list { max-height: 52vh; overflow: auto; padding: 8px; }
.palette-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--muted); }
.palette-item b { color: var(--text); font-weight: 550; display: block; font-size: 15px; }
.palette-item small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.palette-item .k { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--yellow); border: 1px solid rgba(255,216,77,.3); padding: 2px 7px; border-radius: 6px; flex: none; }
.palette-item.active, .palette-item:hover { background: rgba(var(--green-rgb),.08); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------------- Mobile sticky CTA ---------------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(var(--panel-rgb),.92); border: 1px solid var(--line-strong); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); transform: translateY(140%); transition: transform .45s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta span { font-size: 14px; line-height: 1.25; }
.sticky-cta span b { color: var(--green); }

/* ---------------- Toast ---------------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 170; transform: translate(-50%, 30px); opacity: 0; font-family: var(--mono); font-size: 13.5px; padding: 12px 18px; border-radius: 12px; background: var(--green); color: var(--on-green); font-weight: 600; transition: all .35s var(--ease); pointer-events: none; box-shadow: 0 12px 40px -8px var(--green-glow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* burst glyphs */
.burst { position: fixed; z-index: 180; pointer-events: none; font-family: var(--mono); font-size: 13px; color: var(--green); text-shadow: 0 0 8px var(--green-glow); animation: burst .9s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--bx), var(--by)); opacity: 0; } }

/* ==========================================================
   PAGE RESSOURCE
   ========================================================== */
.page { padding: calc(var(--header-h) + 40px) 0 80px; position: relative; }
.page-bg { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.page-bg canvas { width: 100%; height: 100%; opacity: .28; }
.crumbs { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.crumbs a:hover { color: var(--green); }
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.res-head h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: .98; letter-spacing: -.045em; font-weight: 740; margin: 16px 0 18px; }
.res-head .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); margin: 0 0 24px; max-width: 760px; }
.res-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.res-meta .tagx { font-size: 13px; padding: 6px 11px; }
.res-meta .tagx.kw { color: var(--yellow); border-color: rgba(255,216,77,.3); font-family: var(--mono); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 16px 16px 52px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); font-size: 14.5px; line-height: 1.4; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 15px; font-family: var(--mono); font-size: 13px; color: var(--green); }

.block { margin: 0 0 18px; }
.block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.block-title h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; font-weight: 650; }
.code-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-solid); overflow: hidden; transition: border-color .3s; }
.code-card:hover { border-color: var(--line-strong); }
.code-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px 18px; flex-wrap: wrap; }
.code-head .t { flex: 1; min-width: 160px; }
.code-head .t b { display: block; font-size: 16px; font-weight: 620; letter-spacing: -.01em; }
.code-head .t span { color: var(--muted); font-size: 14px; }
.code-head .no { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--green); }
.code-actions { display: flex; gap: 8px; }
.copy-btn, .open-btn { height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); color: var(--text); transition: all .2s; white-space: nowrap; }
.copy-btn:hover, .open-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.done { background: var(--green); color: var(--on-green); border-color: var(--green); }
.copy-btn svg, .open-btn svg { width: 15px; height: 15px; }
.code-body { position: relative; margin: 0; padding: 16px 18px 18px; border-top: 1px solid var(--line); background: #020503; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: #d9f5e4; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.code-body.term-style::before { content: "$ "; color: var(--green); }
.code-body.short { font-size: 17px; color: var(--yellow); letter-spacing: .02em; }
.code-body.long { max-height: 210px; overflow: hidden; }
.code-body.long.expanded { max-height: none; }
.code-body.long:not(.expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(transparent, #020503); }
.expand { display: block; width: 100%; padding: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--green); border-top: 1px solid var(--line); background: #020503; text-transform: uppercase; }
.links { display: grid; gap: 10px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.link-card:hover { border-color: var(--green); transform: translateX(4px); background: rgba(var(--green-rgb),.04); }
.link-card .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(var(--green-rgb),.08); border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); flex: none; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.link-card .tx { flex: 1; min-width: 0; }
.link-card .tx b { display: block; font-weight: 600; font-size: 15.5px; }
.link-card .tx span { color: var(--muted); font-size: 14px; display: block; }
.link-card .tx em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--faint); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.link-card .ar { color: var(--muted); flex: none; transition: color .2s, transform .25s; }
.link-card:hover .ar { color: var(--green); transform: translate(2px, -2px); }
.link-card .ar svg { width: 18px; height: 18px; }
.big-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-radius: 20px; border: 1px solid var(--green); background: radial-gradient(80% 140% at 0% 0%, rgba(var(--green-rgb),.16), transparent 60%), var(--panel-solid); transition: transform .3s var(--ease), box-shadow .3s; }
.big-link:hover { transform: translateY(-3px); box-shadow: 0 20px 60px -20px var(--green-glow); }
.big-link b { font-size: 20px; letter-spacing: -.02em; display: block; }
.big-link span { color: var(--muted); font-size: 14.5px; }
.big-link .circle { width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.big-link:hover .circle { transform: rotate(-45deg); }
.big-link .circle svg { width: 22px; height: 22px; }
.note { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text-2); font-size: 14.5px; }
.note.attention { border-color: rgba(255,216,77,.3); background: rgba(255,216,77,.04); }
.note i { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--green); flex: none; padding-top: 2px; }
.note.attention i { color: var(--yellow); }
.text-block { color: var(--text-2); font-size: 16.5px; }

/* gate */
.gated { position: relative; }
.gated.locked { min-height: 560px; }
.ghost-lines { display: none; }
.gated.locked .ghost-lines { display: grid; gap: 12px; margin-top: 12px; }
.ghost-lines span { height: 86px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(var(--green-rgb),.05), rgba(255,255,255,.02)); }
.gated.locked .gate-content { filter: blur(7px) saturate(.6); pointer-events: none; user-select: none; max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%); mask-image: linear-gradient(180deg, #000 40%, transparent 95%); }
.gate-card { display: none; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); width: min(520px, calc(100% - 8px)); z-index: 5; border-radius: 24px; border: 1px solid var(--yellow); background: radial-gradient(90% 70% at 50% 0%, rgba(255,216,77,.12), transparent 60%), rgba(5, 11, 7, .96); padding: 28px 24px 22px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.95); text-align: left; }
.gated.locked .gate-card { display: block; }
.gate-card .lock-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: #1a1400; display: grid; place-items: center; margin-bottom: 16px; }
.gate-card .lock-ic svg { width: 22px; height: 22px; }
.gate-card h3 { font-size: 26px; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 8px; }
.gate-card p { color: var(--text-2); margin: 0 0 18px; font-size: 15px; }
.gate-card .term { border-radius: 16px; flex-wrap: wrap; padding: 6px; }
.gate-card .term .prompt { padding-left: 12px; }
.gate-card .term input { min-width: 160px; }
.gate-card .term .btn { width: 100%; }
.unlocked-flash { animation: unlock 1.2s var(--ease); }
@keyframes unlock { 0% { filter: blur(7px) brightness(2); } 100% { filter: none; } }

/* aside */
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.aside-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.aside-card h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; font-weight: 500; }
.aside-card .big { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.aside-card p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share button, .share a { height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: 13px; display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, color .2s; }
.share button:hover, .share a:hover { border-color: var(--green); color: var(--green); }
.share svg { width: 15px; height: 15px; }
.aside .term { border-radius: 14px; flex-wrap: wrap; padding: 5px; }
.aside .term .prompt { padding-left: 10px; }
.aside .term input { height: 42px; font-size: 14px; min-width: 120px; }
.aside .term .btn { width: 100%; height: 42px; }

.next { margin-top: 70px; }
.notfound { text-align: center; padding: 40px 0 20px; }
.notfound .code404 { font-family: var(--mono); color: var(--green); font-size: 14px; letter-spacing: .2em; }
.notfound h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -.045em; line-height: .95; margin: 14px 0 16px; }
.notfound p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* legal */
.legal { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.04em; line-height: 1; margin: 14px 0 30px; }
.legal h2 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--text-2); }
.legal .todo { color: var(--yellow); font-family: var(--mono); font-size: .92em; }


/* ---------------- Comment ça marche ---------------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.how-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.04em; margin: 14px 0 30px; font-weight: 720; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.how-steps li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.how-steps i { font-style: normal; font-family: var(--mono); color: var(--green); font-size: 13px; padding-top: 3px; }
.how-steps b { display: block; font-size: 18px; font-weight: 620; letter-spacing: -.01em; }
.how-steps span { color: var(--muted); font-size: 15px; }
.demo { border-radius: 22px; border: 1px solid var(--line-strong); background: #040805; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(var(--green-rgb),.25), 0 30px 80px -30px rgba(0,0,0,.9); }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #060c08; }
.demo-bar span { width: 10px; height: 10px; border-radius: 50%; background: #1d2a22; }
.demo-bar span:first-child { background: #ff5f57; opacity: .7; } .demo-bar span:nth-child(2) { background: #febc2e; opacity: .7; } .demo-bar span:nth-child(3) { background: #28c840; opacity: .7; }
.demo-bar em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 10px; }
.demo-body { padding: 24px; min-height: 330px; }
.demo-line { font-family: var(--mono); font-size: 18px; color: var(--yellow); letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.demo-caret { width: 10px; height: 20px; background: var(--green); animation: blink 1s steps(2) infinite; }
.demo-card { margin-top: 22px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--panel-solid); padding: 18px; opacity: 0; transform: translateY(14px) scale(.98); transition: all .6s var(--ease); }
.demo-card.show { opacity: 1; transform: none; }
.demo-card small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--green); }
.demo-card > b { display: block; font-size: 19px; letter-spacing: -.02em; margin: 8px 0 14px; line-height: 1.2; }
.demo-code { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: #020503; border: 1px solid var(--line); margin-top: 8px; }
.demo-code code { font-family: var(--mono); color: var(--yellow); font-size: 14px; }
.demo-copy { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line-strong); transition: all .25s; }
.demo-copy.on { background: var(--green); color: var(--on-green); border-color: var(--green); }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } .demo-body { min-height: 230px; padding: 18px; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .res-layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav .link, .nav .kbd-hint { display: none; }
  .burger { display: block; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 18px); }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { order: -1; max-width: 330px; justify-self: center; margin-bottom: -40px; aspect-ratio: 1 / .92; }
  .chip-float { font-size: 11.5px; padding: 7px 11px; }
  .chip-float.c1 { left: -2%; top: 20%; } .chip-float.c2 { right: -2%; } .chip-float.c3 { left: 0; bottom: 22%; }
  .matrice-box, .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; aspect-ratio: 1 / 1.05; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
  .sticky-cta { display: flex; }
  .toolbar { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; margin-inline: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-visual { margin-bottom: -6px; }
  .hero .kicker { font-size: 11px; letter-spacing: .08em; }
  .stats b { font-size: clamp(17px, 5.2vw, 21px); white-space: nowrap; }
  .stats span { font-size: 10.5px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 12px 14px 12px 48px; }
  .steps li::before { top: 12px; }
  .gated.locked { min-height: 620px; }
  .grid, .shop-grid { grid-template-columns: 1fr; }
  .aside { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .stats { margin-top: 40px; }
  .stats div { padding: 14px 14px; }
  .term { padding-left: 14px; }
  .hero .subscribe .term { border-radius: 18px; flex-wrap: wrap; padding: 6px; }
  .hero .subscribe .term .prompt { padding-left: 10px; }
  .hero .subscribe .term .btn { width: 100%; }
  .section-head { margin-bottom: 28px; }
  .code-head .code-actions { width: 100%; }
  .code-head .code-actions > * { flex: 1; justify-content: center; }
  .big-link { padding: 20px; }
  .header .btn-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (hover: none) { .card .go { transform: none !important; } }
/* animations réduites : seulement si contenu/config.js demande animations: "respecter" et que l'appareil le demande */
html.motion-reduite *, html.motion-reduite *::before, html.motion-reduite *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html.motion-reduite .reveal { opacity: 1; transform: none; }

.more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.sticky-cta.hide-near { transform: translateY(140%) !important; }
.mobile-menu .socials a.social { font-size: 14.5px; font-weight: 500; letter-spacing: 0; padding: 0 16px; border: 1px solid var(--line); display: inline-flex; justify-content: flex-start; align-items: center; }
.code-head .t .no { display: block; margin-bottom: 2px; }
.code-head .t > span:not(.no) { display: block; }

/* boutons "ouvrir dans" secondaires (ChatGPT, Gemini) */
.code-actions { flex-wrap: wrap; justify-content: flex-end; }
.open-btn.alt { padding: 0 11px; color: var(--muted); border-color: var(--line); font-weight: 500; }
.open-btn.alt svg { opacity: .6; }
button.open-btn { background: none; cursor: pointer; font-family: inherit; }

/* ==========================================================
   LE TEST
   ========================================================== */
.quiz-page { min-height: 100svh; }
.quiz { max-width: 820px; margin: 0 auto; transition: opacity .18s, transform .18s, filter .18s; }
.quiz.out { opacity: 0; transform: translateY(8px); filter: blur(4px); }
.quiz.in { opacity: 0; transform: translateY(-6px); }
.quiz-intro { text-align: center; padding: 6vh 0 2vh; }
.quiz-title { font-size: clamp(40px, 7.4vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 740; margin: 18px 0 18px; }
.quiz-lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18.5px); max-width: 560px; margin: 0 auto 36px; }
.quiz-last { color: var(--faint); font-size: 14px; margin-top: 26px; } .quiz-last b { color: var(--text); }
.pills-choice { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.pill-btn { display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px 14px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.pill-btn i { width: 44px; height: 22px; border-radius: 999px; position: relative; flex: none; }
.pill-btn i::after { content: ""; position: absolute; inset: 3px 50% 3px 5px; border-radius: 999px; background: rgba(255,255,255,.35); filter: blur(1px); }
.pill-btn.red i { background: linear-gradient(90deg, #ff3b3b, #b30d1a); box-shadow: 0 0 24px rgba(255,59,59,.55); }
.pill-btn.blue i { background: linear-gradient(90deg, #4d8dff, #1739b3); box-shadow: 0 0 24px rgba(77,141,255,.45); }
.pill-btn b { display: block; font-size: 16px; } .pill-btn small { color: var(--muted); font-size: 13px; }
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn.red:hover { border-color: #ff5a5a; box-shadow: 0 10px 40px -12px rgba(255,59,59,.6); }
.pill-btn.blue:hover { border-color: #6a9cff; }
.pill-btn.red i { animation: pillPulse 2.4s ease-in-out infinite; }
@keyframes pillPulse { 50% { box-shadow: 0 0 36px rgba(255,59,59,.85); } }

.quiz-q { padding-top: 3vh; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.quiz-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; }
.quiz-back svg { width: 16px; height: 16px; } .quiz-back:hover { color: var(--text); }
.quiz-back[hidden] { display: inline-flex; visibility: hidden; }
.quiz-n { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--green); }
.quiz-bar { height: 4px; border-radius: 4px; background: var(--line); margin: 12px 0 34px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--green); box-shadow: 0 0 14px var(--green); transition: width .5s var(--ease); }
.quiz-question { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 0 0 28px; }
.quiz-options { display: grid; gap: 12px; }
.quiz-opt { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 17px; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.quiz-opt kbd { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--green); border: 1px solid var(--line-strong); background: rgba(var(--green-rgb),.06); }
.quiz-opt span { flex: 1; }
.quiz-opt svg { width: 18px; height: 18px; color: var(--faint); transition: transform .2s, color .2s; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--line-strong); background: rgba(var(--green-rgb),.05); transform: translateX(4px); outline: none; }
.quiz-opt:hover svg, .quiz-opt:focus-visible svg { color: var(--green); transform: translateX(3px); }
.quiz-opt.picked { border-color: var(--green); background: rgba(var(--green-rgb),.1); }
.quiz-opt.picked kbd { background: var(--green); color: var(--on-green); }
.quiz-hint { color: var(--faint); font-size: 13px; margin-top: 18px; }
@media (hover: none) { .quiz-hint { display: none; } }

.quiz-analyse { min-height: 50vh; display: grid; place-items: center; }
.quiz-analyse pre { font-family: var(--mono); color: var(--green); font-size: clamp(15px, 2vw, 19px); line-height: 1.9; margin: 0; white-space: pre-wrap; text-shadow: 0 0 14px var(--green-glow); }

.quiz-result { display: grid; gap: 26px; padding-top: 2vh; }
.result-hero { text-align: center; }
.result-name { font-size: clamp(48px, 9vw, 112px); line-height: .95; letter-spacing: -.05em; font-weight: 760; margin: 14px 0 18px; color: var(--green); text-shadow: 0 0 40px var(--green-glow); }
.result-level { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.result-level i { width: 52px; height: 8px; border-radius: 8px; background: var(--line); }
.result-level i.on { background: var(--green); box-shadow: 0 0 12px var(--green); animation: lvlIn .5s var(--ease) both; animation-delay: var(--d); }
@keyframes lvlIn { from { transform: scaleX(0); } }
.result-hook { font-size: clamp(20px, 2.4vw, 26px); font-weight: 620; letter-spacing: -.02em; margin: 0 auto 12px; max-width: 640px; }
.result-text { color: var(--muted); max-width: 620px; margin: 0 auto 20px; }
.result-forces { list-style: none; padding: 0; margin: 0 auto 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.result-forces li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }
.result-forces svg { width: 15px; height: 15px; color: var(--green); }
.result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.result-actions svg { width: 16px; height: 16px; }

.result-plan { position: relative; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); padding: clamp(20px, 3vw, 34px); overflow: hidden; }
.result-plan h2, .result-guide h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 12px; }
.plan-step { font-size: 17.5px; margin: 0 0 26px; max-width: 640px; }
.plan-sub { font-size: 15px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 14px; }
.plan-grid { grid-template-columns: repeat(3, 1fr); }
.plan-grid .card { min-height: 200px; }
.result-plan.locked { min-height: 520px; }
.result-plan.locked .plan-inner { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; transition: filter .7s, opacity .7s; }
.result-plan.unlocking .plan-inner { filter: none; opacity: 1; }
.result-plan.unlocking .plan-lock { opacity: 0; transform: scale(.97); }
.plan-lock { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: linear-gradient(180deg, rgba(var(--bg-rgb),.15), rgba(var(--bg-rgb),.75)); transition: opacity .6s, transform .6s; }
.plan-lock-card { width: min(520px, 100%); border-radius: var(--radius); border: 1px solid var(--green); background: rgba(var(--panel-rgb),.94); padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -20px var(--green-glow); }
.plan-lock-card h3 { font-size: 24px; letter-spacing: -.02em; margin: 10px 0 8px; }
.plan-lock-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.result-guide { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.result-guide .st { color: var(--muted); margin: -4px 0 8px; }
.result-guide p { color: var(--muted); margin: 0 0 16px; }
.result-guide .row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.result-guide:hover .book { transform: rotateY(-6deg) rotateX(2deg) translateY(-4px); }

/* encart du test sur l'accueil */
.test-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; border-radius: var(--radius); border: 1px solid var(--line-strong); background: radial-gradient(80% 120% at 100% 0%, rgba(255,59,59,.10), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(77,141,255,.08), transparent 60%), var(--panel); padding: clamp(22px, 4vw, 44px); }
.test-teaser h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1; letter-spacing: -.04em; margin: 14px 0 12px; }
.test-teaser p { color: var(--muted); margin: 0 0 22px; max-width: 480px; }
.test-teaser .pills-choice { justify-content: flex-start; }
.test-profiles { display: grid; gap: 10px; }
.test-profiles div { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--bg-rgb),.5); }
.test-profiles i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--green); width: 30px; }
.test-profiles b { font-weight: 600; } .test-profiles span { color: var(--muted); font-size: 14px; margin-left: auto; }
.test-profiles .me { border-color: var(--green); }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
  .result-guide { grid-template-columns: 1fr; }
  .result-guide .cover { max-width: 360px; }
  .test-teaser { grid-template-columns: 1fr; }
  .result-plan.locked { min-height: 600px; }
}
@media (max-width: 640px) {
  .pill-btn { width: 100%; }
  .pills-choice .btn { width: 100%; }
  .quiz-opt { font-size: 16px; min-height: 60px; padding: 12px 14px; gap: 12px; }
  .quiz-question { margin-bottom: 22px; }
  .result-level i { width: 40px; }
  .plan-lock { place-items: end center; }
}
html.motion-reduite .pill-btn.red i { animation: none; }
.copy-btn svg, .open-btn svg { flex: none; }
.result-name { white-space: nowrap; }
@media (max-width: 380px) { .result-name { white-space: normal; } }
.plan-lock { grid-template-columns: minmax(0, 1fr); }
.plan-lock-card { min-width: 0; justify-self: center; }
body[data-page="test"] .sticky-cta { display: none !important; }
@media (max-width: 640px) {
  .plan-lock { place-items: center; }
  .result-plan.locked { min-height: 540px; }
  .plan-lock-card { padding: 20px 16px; }
  .plan-lock-card .subscribe .term { border-radius: 18px; flex-wrap: wrap; padding: 6px; }
  .plan-lock-card .subscribe .term .prompt { padding-left: 10px; }
  .plan-lock-card .subscribe .term .btn { width: 100%; }
  .plan-lock-card .subscribe .term input { min-width: 0; flex: 1; }
}
.hero .sub + .finder { margin-top: 0; }
.hero-grid > * { min-width: 0; }
@media (min-width: 901px) { .hero .stats { margin-top: 34px; } }

/* ==========================================================
   SEO : en bref, FAQ, signature, pages thèmes
   ========================================================== */
.card .top .badges { display: flex; gap: 6px; }
.brief { border-left: 3px solid var(--green); background: rgba(var(--green-rgb),.045); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 28px; max-width: 820px; }
.brief-k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.brief p { margin: 8px 0 0; color: var(--text-2); font-size: 16px; }
.brief .who { color: var(--muted); font-size: 15px; } .brief .who b { color: var(--text); font-weight: 600; }
.faq { margin-top: 44px; }
.faq h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 0 0 16px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.byline { margin-top: 26px; color: var(--faint); font-size: 13.5px; font-family: var(--mono); letter-spacing: .02em; }
.byline a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.theme-head { max-width: 860px; margin-bottom: 36px; }
.theme-head h1 { font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 740; margin: 16px 0 18px; }
.theme-head p { color: var(--text-2); font-size: clamp(16.5px, 1.5vw, 19px); margin: 0 0 12px; }
.theme-cta { margin: 46px 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); background: radial-gradient(70% 120% at 100% 0%, rgba(var(--green-rgb),.08), transparent 60%), var(--panel); }
.theme-cta h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; margin: 10px 0 8px; line-height: 1.05; }
.theme-cta p { color: var(--muted); margin: 0; }
.theme-more, .theme-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 30px; }
.theme-more span, .theme-links span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 6px; }
.theme-more a, .theme-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); transition: all .2s; }
.theme-more a:hover, .theme-links a:hover { border-color: var(--green); color: var(--green); }
@media (max-width: 900px) { .theme-cta { grid-template-columns: 1fr; } }

/* accueil : ordre email puis mot-clé, réseaux, titre */
.hero .subscribe + .finder { margin-top: 26px; }
.finder { max-width: 560px; }
.finder form { height: 52px; }
.finder button { height: 40px; }
.hero h1 .line + .line { margin-top: .17em; }
.hero h1 .hl { padding: .02em .14em .04em; }
.hero-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hero-socials > span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.hero-socials .social { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--bg-rgb),.5); font-size: 14px; color: var(--text); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.hero-socials .social svg { width: 16px; height: 16px; }
.hero-socials .social:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
@media (max-width: 900px) {
  .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.1) 0%, rgba(var(--bg-rgb),.7) 38%, var(--bg) 100%); }
}

/* ==========================================================
   AVIS + animations de la boutique
   ========================================================== */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.reviews:empty { display: none; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review .stars { display: flex; gap: 3px; }
.review .stars i { width: 16px; height: 16px; color: var(--line-strong); } .review .stars i.on { color: var(--yellow); }
.review .stars svg { width: 100%; height: 100%; display: block; }
.review blockquote { margin: 0; font-size: 15.5px; color: var(--text-2); }
.review figcaption { color: var(--muted); font-size: 14px; margin-top: auto; } .review figcaption b { color: var(--text); }
.review-form { margin-top: 26px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; max-width: 760px; }
.review-form h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.review-form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.review-form input:not([type=checkbox]), .review-form select, .review-form textarea { font: inherit; font-size: 15.5px; color: var(--text); background: rgba(var(--bg-rgb),.6); border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; outline: 0; transition: border-color .2s; }
.review-form textarea { resize: vertical; min-height: 110px; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { border-color: var(--green); }
.review-form .rf-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.review-form .consent { display: flex; gap: 10px; align-items: flex-start; }
.review-form .btn { justify-self: start; }
.rf-note { color: var(--faint); font-size: 13px; margin: 0; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } .review-form .rf-row { grid-template-columns: 1fr 1fr; } .review-form .rf-row label:first-child { grid-column: 1 / -1; } }

/* couvertures vivantes */
.cover { isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent 0 70%, rgba(var(--green-rgb),.16) 80%, transparent 90%); animation: coverSpin 9s linear infinite; }
.cover.jaune::before { background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,216,77,.16) 80%, transparent 90%); }
.cover.violet::before { background: conic-gradient(from 0deg, transparent 0 70%, rgba(139,92,246,.22) 80%, transparent 90%); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0s; pointer-events: none; }
.product:hover .cover::after { transform: translateX(120%); transition: transform 1s var(--ease); }
.book { animation: bookFloat 6s ease-in-out infinite; position: relative; overflow: hidden; }
.product:nth-child(2) .book { animation-delay: -2s; } .product:nth-child(3) .book { animation-delay: -4s; }
.book::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(180deg, transparent, rgba(var(--green-rgb),.12), transparent); animation: scan 5s linear infinite; }
.product:hover .book { animation-play-state: paused; }
@keyframes coverSpin { to { transform: rotate(360deg); } }
@keyframes bookFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.product { transform-style: preserve-3d; will-change: transform; }
.product .price { transition: color .3s; } .product:hover .price { color: var(--green); }
html.motion-reduite .cover::before, html.motion-reduite .book, html.motion-reduite .book::after { animation: none; }
.theme-cta > * { min-width: 0; }
@media (max-width: 640px) {
  .theme-cta .subscribe .term { border-radius: 18px; flex-wrap: wrap; padding: 6px; }
  .theme-cta .subscribe .term .prompt { padding-left: 10px; }
  .theme-cta .subscribe .term .btn { width: 100%; }
  .theme-cta .subscribe .term input { min-width: 0; flex: 1; }
}
.hero-socials .social em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--green); margin-left: 2px; }

/* barre du QG : mot-clé de la vidéo */
.kw-search { display: grid; gap: 8px; }
.kw-label { font-size: 15px; color: var(--muted); } .kw-label b { color: var(--text); font-weight: 600; }
.search.kw { height: 58px; padding: 0 6px 0 18px; border-color: rgba(255,216,77,.5); background: rgba(255,216,77,.045); }
.search.kw:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,216,77,.12); }
.search.kw svg { color: var(--yellow); }
.search.kw input { font-family: var(--mono); color: var(--yellow); letter-spacing: .03em; }
.search.kw input::placeholder { font-family: var(--font); color: rgba(255,216,77,.5); letter-spacing: 0; }
.search.kw button { height: 46px; padding: 0 18px; border-radius: 11px; background: var(--yellow); color: #120f00; font-weight: 650; font-size: 15px; flex: none; }
.search.kw button:hover { filter: brightness(1.08); }
.kw-hit:empty { display: none; }
.kw-hit a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(var(--green-rgb),.1); border: 1px solid var(--green); color: var(--text); font-size: 14px; animation: rise .35s var(--ease); }
.kw-hit a b { color: var(--green); font-family: var(--mono); } .kw-hit svg { width: 15px; height: 15px; color: var(--green); }
.toolbar.stuck .kw-label { display: none; }
@media (max-width: 640px) { .search.kw button { padding: 0 14px; } .kw-label { font-size: 14px; } }

/* produit : corps + pack */
.product .pbody { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.product .price s { font-size: 15px; color: var(--faint); font-weight: 500; margin-left: 8px; }
.product.pack { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 26px; align-items: center; border-color: var(--line-strong); background: radial-gradient(70% 120% at 0% 50%, rgba(var(--green-rgb),.08), transparent 60%), var(--panel); }
.cover.pack { background: radial-gradient(70% 90% at 50% 40%, rgba(var(--green-rgb),.16), transparent 70%), #050b07; }
.cover.pack .books { position: relative; width: 70%; height: 80%; display: grid; place-items: center; }
.cover.pack .mini { position: absolute; width: 42%; aspect-ratio: 3 / 4; }
.cover.pack .mini .book { width: 100%; height: 100%; padding: 12% 10%; }
.cover.pack .mini:nth-child(1) { transform: translateX(-62%) rotate(-8deg); }
.cover.pack .mini:nth-child(2) { z-index: 2; transform: translateY(-6%); }
.cover.pack .mini:nth-child(3) { transform: translateX(62%) rotate(8deg); }
.cover.pack .mini.jaune .book { border-color: rgba(255,216,77,.5); } .cover.pack .mini.jaune .book small { color: var(--yellow); }
.cover.pack .mini.violet .book { border-color: rgba(139,92,246,.6); } .cover.pack .mini.violet .book small { color: #b79cff; }
.product.pack:hover .mini:nth-child(1) { transform: translateX(-75%) rotate(-12deg); }
.product.pack:hover .mini:nth-child(3) { transform: translateX(75%) rotate(12deg); }
.cover.pack .mini { transition: transform .5s var(--ease); }
@media (max-width: 900px) { .product.pack { grid-template-columns: 1fr; } }
.toolbar > * { min-width: 0; } .kw-search, .kw-search > * { min-width: 0; } .search.kw input { width: 100%; }


/* ==========================================================
   MODE JOUR
   ========================================================== */
:root[data-theme="jour"] {
  color-scheme: light;
  --bg: #f4f7f5; --bg-rgb: 244,247,245;
  --bg-2: #eaf0ec;
  --panel-rgb: 255,255,255;
  --panel: rgba(255,255,255,.78);
  --panel-solid: #ffffff;
  --line-rgb: 8,90,45;
  --line: rgba(8,90,45,.13);
  --line-strong: rgba(8,90,45,.26);
  --green: #087a41; --green-rgb: 8,122,65; --green-2: #06683a; --green-dim: #b9dcc8;
  --green-glow: rgba(8,122,65,.22);
  --text: #0c1a12; --text-2: #2c3d33; --muted: #3a4c42; --faint: #56685d;
  --on-green: #ffffff;
  --violet: #6d3fe0; --danger: #c62828;
  --rain-bg: 244,247,245; --rain-a: #087a41; --rain-b: rgba(8,122,65,.55);
}
:root[data-theme="jour"] body { background: var(--bg); }
:root[data-theme="jour"] .hero .rain { opacity: .42; }
:root[data-theme="jour"] .page-bg canvas { opacity: .3; }
:root[data-theme="jour"] .matrice-box canvas { opacity: .12; }
/* les blocs de code, les couvertures et la démo restent "terminal" (sombres) */
:root[data-theme="jour"] .code-body, :root[data-theme="jour"] .expand, :root[data-theme="jour"] .demo-code { color-scheme: dark; }
:root[data-theme="jour"] .code-card .code-head { background: #fff; }
:root[data-theme="jour"] .demo { --line: rgba(110,255,170,.12); color: #e8f2ec; }
:root[data-theme="jour"] .demo .demo-card b { color: #e8f2ec; }
:root[data-theme="jour"] .cover, :root[data-theme="jour"] .cover.pack { --line: rgba(110,255,170,.12); }
:root[data-theme="jour"] .book b { color: #e8f2ec; }
:root[data-theme="jour"] .book small { color: #3dff8c; }
:root[data-theme="jour"] .cover.jaune .book small { color: #ffd84d; }
:root[data-theme="jour"] .cover.violet .book small, :root[data-theme="jour"] .cover.pack .mini.violet .book small { color: #b79cff; }
:root[data-theme="jour"] .book { border-color: rgba(61,255,140,.4); }
:root[data-theme="jour"] .cover::before { background: conic-gradient(from 0deg, transparent 0 70%, rgba(61,255,140,.16) 80%, transparent 90%); }
:root[data-theme="jour"] .cover { background: radial-gradient(60% 80% at 50% 30%, rgba(61,255,140,.22), transparent 70%), #050b07; }
:root[data-theme="jour"] .cover.jaune { background: radial-gradient(60% 80% at 50% 30%, rgba(255,216,77,.22), transparent 70%), #0b0a04; }
:root[data-theme="jour"] .cover.violet { background: radial-gradient(60% 80% at 50% 30%, rgba(139,92,246,.28), transparent 70%), #08060c; }
:root[data-theme="jour"] .cover.pack { background: radial-gradient(70% 90% at 50% 40%, rgba(61,255,140,.16), transparent 70%), #050b07; }
:root[data-theme="jour"] .card, :root[data-theme="jour"] .product, :root[data-theme="jour"] .aside-card, :root[data-theme="jour"] .faq details, :root[data-theme="jour"] .review, :root[data-theme="jour"] .quiz-opt { box-shadow: 0 1px 2px rgba(10,40,25,.05), 0 8px 24px -16px rgba(10,40,25,.18); }
:root[data-theme="jour"] .badge.new { color: #1a1400; }
:root[data-theme="jour"] .tagx.kw, :root[data-theme="jour"] .search.kw input { color: #7a5c00; }
:root[data-theme="jour"] .search.kw { background: rgba(255,216,77,.16); border-color: rgba(176,130,0,.55); }
:root[data-theme="jour"] .search.kw svg { color: #8a6700; }
:root[data-theme="jour"] .search.kw input::placeholder { color: rgba(122,92,0,.6); }
:root[data-theme="jour"] .chip-float { box-shadow: 0 10px 30px -12px rgba(10,40,25,.3); }
:root[data-theme="jour"] .portrait img { filter: drop-shadow(0 30px 50px rgba(10,40,25,.25)); }
:root[data-theme="jour"] .footer-big { -webkit-text-stroke-color: rgba(8,90,45,.18); }
:root[data-theme="jour"] .modal-bg, :root[data-theme="jour"] .palette .modal-bg { background: rgba(20,35,27,.45); }
:root[data-theme="jour"] .pill-btn.blue small, :root[data-theme="jour"] .pill-btn.red small { color: var(--muted); }

/* bouton jour / nuit */
.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); background: transparent; cursor: pointer; transition: border-color .2s, color .2s, transform .3s var(--ease); flex: none; }
.theme-btn:hover { border-color: var(--green); color: var(--green); transform: rotate(-18deg); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .sun { display: none; } :root[data-theme="jour"] .theme-btn .sun { display: block; } :root[data-theme="jour"] .theme-btn .moon { display: none; }
html.theme-anim, html.theme-anim * { transition: background-color .35s ease, color .35s ease, border-color .35s ease !important; }
/* zones qui restent sombres en mode jour : on leur redonne les couleurs de nuit */
:root[data-theme="jour"] .demo, :root[data-theme="jour"] .cover, :root[data-theme="jour"] .code-body, :root[data-theme="jour"] .expand, :root[data-theme="jour"] .demo-code {
  --text: #e8f2ec; --text-2: #c4d3cb; --muted: #92a49a; --faint: #7a8c81;
  --green: #3dff8c; --green-rgb: 61,255,140; --line-rgb: 110,255,170; --panel-rgb: 14,26,19;
  --line: rgba(110,255,170,.12); --line-strong: rgba(110,255,170,.28); --on-green: #031a0c;
}
:root[data-theme="jour"] .demo { color: var(--text); }
[data-theme-toggle] .sun { display: none; } :root[data-theme="jour"] [data-theme-toggle] .sun { display: inline-block; } :root[data-theme="jour"] [data-theme-toggle] .moon { display: none; }
.mobile-menu [data-theme-toggle] svg { width: 18px; height: 18px; }
:root[data-theme="jour"] .gate-card { background: radial-gradient(90% 70% at 50% 0%, rgba(255,216,77,.22), transparent 60%), rgba(255,255,255,.97); border-color: #d4a800; box-shadow: 0 30px 80px -24px rgba(10,40,25,.35); }
:root[data-theme="jour"] .modal-card { background: radial-gradient(90% 70% at 50% 0%, rgba(var(--green-rgb),.1), transparent 60%), #ffffff; box-shadow: 0 30px 90px -20px rgba(10,40,25,.4); }
:root[data-theme="jour"] .matrice-box { background: radial-gradient(80% 120% at 100% 0%, rgba(var(--green-rgb),.1), transparent 60%), linear-gradient(180deg, #ffffff, #eef5f0); }
:root[data-theme="jour"] .about-photo { background: radial-gradient(70% 60% at 50% 30%, rgba(var(--green-rgb),.14), transparent 70%), #e6efe9; }
:root[data-theme="jour"] .plan-lock-card { background: rgba(255,255,255,.97); box-shadow: 0 30px 80px -24px rgba(10,40,25,.35); }
:root[data-theme="jour"] .plan-lock { background: linear-gradient(180deg, rgba(244,247,245,.15), rgba(244,247,245,.75)); }
:root[data-theme="jour"] .sticky-cta { box-shadow: 0 10px 40px -10px rgba(10,40,25,.35); }
:root[data-theme="jour"] .demo, :root[data-theme="jour"] .cover { --panel: rgba(14,26,19,.55); --panel-solid: #0b1510; }
:root[data-theme="jour"] .badge.lock { color: #7a5c00; border-color: rgba(176,130,0,.5); background: rgba(255,216,77,.18); }

/* mode jour : portrait, newsletter, encarts */
:root[data-theme="jour"] .portrait .ring { background: linear-gradient(180deg, rgba(8,122,65,.16), rgba(8,122,65,.03)); }
:root[data-theme="jour"] .benefits li { background: #ffffff; box-shadow: 0 1px 2px rgba(10,40,25,.05), 0 10px 26px -18px rgba(10,40,25,.25); }
:root[data-theme="jour"] .benefits li i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(8,122,65,.1); margin-top: 0; }
:root[data-theme="jour"] .matrice-box { border-color: rgba(8,90,45,.2); box-shadow: 0 30px 80px -40px rgba(10,40,25,.35); }
:root[data-theme="jour"] .test-teaser { background: radial-gradient(80% 120% at 100% 0%, rgba(255,59,59,.07), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(77,141,255,.07), transparent 60%), #ffffff; box-shadow: 0 30px 80px -44px rgba(10,40,25,.35); }
:root[data-theme="jour"] .test-profiles div { background: #f4f7f5; }
:root[data-theme="jour"] .theme-cta, :root[data-theme="jour"] .review-form, :root[data-theme="jour"] .result-plan, :root[data-theme="jour"] .result-guide, :root[data-theme="jour"] .brief { box-shadow: 0 20px 60px -40px rgba(10,40,25,.35); }
:root[data-theme="jour"] .stats div { background: #ffffff; }
:root[data-theme="jour"] .stats { background: var(--line); box-shadow: 0 20px 50px -36px rgba(10,40,25,.35); }
:root[data-theme="jour"] .portrait .glitch { mix-blend-mode: multiply; }
.benefits li i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--green-rgb),.1); margin-top: 0; }
.benefits li { align-items: center; transition: border-color .25s, transform .25s var(--ease); }
.benefits li:hover { border-color: var(--line-strong); transform: translateX(4px); }
:root[data-theme="jour"] .hero .rain { opacity: .75; }
:root[data-theme="jour"] .hero::before { background: linear-gradient(90deg, rgba(var(--bg-rgb),.9) 0%, rgba(var(--bg-rgb),.75) 30%, rgba(var(--bg-rgb),.25) 52%, rgba(var(--bg-rgb),0) 72%), linear-gradient(180deg, rgba(var(--bg-rgb),0) 0%, rgba(var(--bg-rgb),.35) 60%, var(--bg) 100%); }
@media (max-width: 900px) { :root[data-theme="jour"] .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),0) 0%, rgba(var(--bg-rgb),.75) 40%, var(--bg) 100%); } }
:root[data-theme="jour"] .palette-item .k, :root[data-theme="jour"] .note.attention i, :root[data-theme="jour"] .legal .todo { color: #7a5c00; border-color: rgba(176,130,0,.45); }
:root[data-theme="jour"] .review .stars i.on { color: #e0a800; }
:root[data-theme="jour"] .note.attention { border-color: rgba(176,130,0,.4); background: rgba(255,216,77,.12); }

/* Easter egg : claquement de doigts sur le bouton jour / nuit (accueil) */
.portrait img.pose { position: absolute; bottom: 0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.portrait > img:not(.glitch):not(.pose) { transition: opacity .12s; }
.hero-visual.pret .portrait > img:not(.glitch):not(.pose) { opacity: 0; }
.hero-visual.pret .glitch { display: none; }
.hero-visual.pret:not(.claque) .pose-pret { opacity: 1; animation: pose-in .32s steps(4) 1; }
.hero-visual.claque .pose-claque { opacity: 1; animation: pose-snap .45s var(--ease) 1; }
@keyframes pose-in { 0% { transform: translate(-7px, 0) skewX(-4deg); opacity: .4; } 40% { transform: translate(5px, -2px); } 70% { transform: translate(-2px, 1px); } 100% { transform: none; opacity: 1; } }
@keyframes pose-snap { 0% { transform: translate(3px, 0) scale(1.012); } 30% { transform: translate(-3px, 1px); } 60% { transform: translate(1px, 0); } 100% { transform: none; } }
.snap-fx { position: fixed; inset: 0; z-index: 170; pointer-events: none; background: radial-gradient(circle at var(--fx) var(--fy), rgba(var(--green-rgb), .55), rgba(var(--green-rgb), .12) 22%, transparent 55%); animation: snap-flash .7s ease-out forwards; }
.snap-fx i { position: absolute; left: var(--fx); top: var(--fy); width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid var(--green); box-shadow: 0 0 18px var(--green-glow); animation: snap-ring .7s var(--ease) forwards; }
.snap-fx i + i { animation-delay: .09s; border-width: 1px; }
@keyframes snap-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
@keyframes snap-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(11); opacity: 0; } }

/* visiteur déjà inscrit : les ressources s'affichent ouvertes dès le premier affichage, sans flash du verrou */
html.cle .gated.locked { min-height: 0; }
html.cle .gated.locked .gate-content { filter: none; pointer-events: auto; user-select: auto; max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
html.cle .gated.locked .gate-card, html.cle .gated.locked .ghost-lines { display: none; }
.section-head h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.04em; font-weight: 720; margin: 14px 0 0; }
/* mobile : la boîte Matrice ne doit jamais dépasser l'écran (une colonne qui peut rétrécir) */
@media (max-width: 900px) { .matrice-box, .about-grid { grid-template-columns: minmax(0, 1fr); } .matrice-box > *, .about-grid > * { min-width: 0; } }
/* mobile : zones tactiles plus confortables (doigt = environ 40 px) */
@media (hover: none), (max-width: 900px) {
  .footer ul { gap: 2px; }
  .footer ul a { display: inline-block; padding: 9px 0; }
  .crumbs a { padding: 10px 0; }
  .logo { padding: 8px 0; }
  .consent input { width: 22px; height: 22px; border-radius: 6px; margin-top: -2px; }
  .consent input:checked::after { width: 11px; height: 6px; }
}
.sticky-cta .btn { flex: none; }
/* lisibilité des petites étiquettes en mode jour */
:root[data-theme="jour"] .tagx { color: var(--text-2); background: rgba(8,90,45,.04); }
/* titres avec surlignage jaune : un peu d'air entre les lignes */
.modal-card h3, .test-teaser h2 { line-height: 1.12; }
/* mobile : formulaire de la Matrice sur deux lignes comme celui du haut, mot-clé trouvé lisible, pas de raccourcis clavier */
@media (max-width: 640px) {
  .matrice .subscribe .term { border-radius: 18px; flex-wrap: wrap; padding: 6px; }
  .matrice .subscribe .term .prompt { padding-left: 10px; }
  .matrice .subscribe .term .btn { width: 100%; }
  .kw-hit a { display: block; border-radius: 14px; line-height: 1.45; }
  .kw-hit a svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }
}
@media (hover: none) { .palette-foot { display: none; } }
