/* Valeurs par défaut (thème « Ivoire ») ; themes.js les remplace selon le thème choisi. */
:root {
  --bg: #f7f6f2;
  --bg-img: none;
  --panel: #ffffff;
  --panel-2: #efeee9;
  --solid: #ffffff;
  --ring: #ffffff;
  --text: #16151f;
  --muted: #6b6a7b;
  --line: #e7e4dd;
  --c1: #4f46e5;
  --c2: #e0a43a;
  --c3: #7c6cf0;
  --c4: #14b88a;
  --c5: #0ea5e9;
  --p1: #4f46e5;
  --p2: #7c6cf0;
  --on: #ffffff;
  --grad: linear-gradient(100deg, #4f46e5, #7c6cf0 45%, #0ea5e9);
  --glow: rgba(22, 21, 40, 0.08);
  --stage-bg: linear-gradient(135deg, #1e1b4b, #312e81 55%, #0c4a6e);
  --ink: #16151f;
  --nav-bg: rgba(255, 255, 255, .72);
  --win: #ffffff;
  --win-2: #f6f6f8;
  --win-line: #ebebf0;
  --win-bar: #e1e1e8;
  --star: #e0a43a;
  --b1: #e2e0fa;
  --b2: #f1e6d0;
  --b3: #d9ecf8;
  --radius: 26px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-img);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[id] { scroll-margin-top: 90px; }
h1, h2, h3, h4 { letter-spacing: -.03em; font-family: "Plus Jakarta Sans", "Inter", sans-serif; line-height: 1.05; margin: 0; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s ease-in-out infinite alternate; }
@keyframes shimmer { to { background-position: 100% 0; } }
:focus-visible { outline: 3px solid var(--c3); outline-offset: 3px; }

/* transition circulaire entre thèmes */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- décor ---------- */
#sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { background: var(--b1); top: -18vmax; left: -12vmax; }
.blobs span:nth-child(2) { background: var(--b2); top: 30vh; right: -20vmax; animation-delay: -7s; }
.blobs span:nth-child(3) { background: var(--b3); bottom: -25vmax; left: 20vw; animation-delay: -14s; }
[data-kind="luxe"] .blobs span { opacity: .3; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 40;
  margin: 12px auto 0; width: min(1100px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 18px;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px var(--glow);
  animation: drop .9s var(--spring) both;
}
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px "Plus Jakarta Sans", sans-serif; }
.logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--p1), var(--p2)); box-shadow: 0 6px 14px var(--glow); transition: transform .5s var(--spring); }
.logo svg { width: 20px; fill: var(--on); }
.logo.sm { width: 26px; height: 26px; border-radius: 8px; }
.logo.sm svg { width: 15px; }
.brand:hover .logo { transform: rotate(144deg) scale(1.1); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 600; color: var(--muted); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.links a:hover, .links a[aria-current] { background: var(--panel-2); color: var(--text); }
.nav-right { position: relative; display: flex; align-items: center; gap: 10px; }

/* sélecteur de thème (nav) */
.theme-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--spring); }
.theme-btn:hover { transform: rotate(-20deg) scale(1.08); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(350px, calc(100vw - 32px));
  padding: 16px; border-radius: 22px; background: var(--solid); border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top right; pointer-events: none;
  transition: opacity .2s, transform .35s var(--spring);
}
.theme-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.theme-pop h4 { margin: 4px 4px 12px; font-size: 15px; }

/* pastilles de thème (popover + section) */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.chip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 13px "Inter", sans-serif; cursor: pointer; transition: transform .35s var(--spring), border-color .2s, box-shadow .3s; }
.chip:hover { transform: translateY(-3px) scale(1.04); }
.chip[aria-pressed="true"] { border-color: var(--p1); box-shadow: 0 0 0 2px var(--p1); }
.sw { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); transition: transform .5s var(--spring); flex: none; }
.chip:hover .sw { transform: rotate(120deg); }
.sw i { position: absolute; inset: 0; }
.sw i:nth-child(2) { clip-path: polygon(50% 50%, 100% 0, 100% 100%); }
.sw i:nth-child(3) { clip-path: polygon(50% 50%, 100% 100%, 0 100%, 0 50%); }

.themes-sec .chips { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 48px; }
.themes-sec .chip { padding: 0; overflow: hidden; gap: 0; border-radius: 20px; font-size: 15px; background: var(--panel); }
.themes-sec .chip .prev { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.themes-sec .chip .prev .sw { width: 52px; height: 52px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .75), 0 8px 18px rgba(0, 0, 0, .18); }
.themes-sec .chip .lbl { width: 100%; padding: 10px 14px 12px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.themes-sec .chip .lbl small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 17px "Inter", sans-serif; color: var(--on); text-decoration: none;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  box-shadow: 0 0 0 3px var(--ring), 0 12px 26px var(--glow);
  transition: transform .35s var(--spring), box-shadow .3s;
  overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--out); }
.btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 3px var(--ring), 0 18px 34px color-mix(in srgb, var(--p1) 35%, transparent); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 8px 20px var(--glow); }
.btn.wide { width: 100%; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 70px 16px 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c4); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c4) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.title { font-size: clamp(48px, 10vw, 112px); font-weight: 800; letter-spacing: -.04em; }
.title .line { display: block; }
.title .line.grad { background: none; animation: none; color: var(--c3); }
.title .char { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg) scale(.6); animation: pop .8s var(--spring) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); transition: transform .4s var(--spring); }
.title .grad .char { background: var(--grad); background-size: 900% 100%; background-position: calc(var(--i) * 9%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.title .char:hover { transform: translateY(-12px) rotate(-6deg) scale(1.12); transition-duration: .2s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.lead { max-width: 620px; margin: 24px auto 0; font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); }
.lead strong { color: var(--text); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* ---------- démo ---------- */
.stage-wrap { margin: 64px auto 0; width: min(1000px, 100%); perspective: 1600px; }
.stage {
  position: relative; padding: clamp(14px, 4vw, 48px);
  border-radius: calc(var(--radius) + 8px);
  background: var(--stage-bg);
  box-shadow: 0 40px 80px var(--glow), 0 30px 60px rgba(0, 0, 0, .12);
  transform: rotateX(var(--rx, 14deg)) scale(var(--sc, .94));
  transition: transform .2s linear;
}
.window { border-radius: 16px; overflow: hidden; background: var(--win); box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.titlebar { position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--win-2); border-bottom: 1px solid var(--win-line); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6b6b; }
.titlebar i:nth-child(2) { background: #ffc145; }
.titlebar i:nth-child(3) { background: #3ed47a; }
.rec { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 800 11px "Inter", sans-serif; color: #e5484d; letter-spacing: .06em; }
.rec b { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(2, start) infinite; }
.rec em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--muted); }
@keyframes blink { to { visibility: hidden; } }
.viewport { position: relative; aspect-ratio: 880 / 520; overflow: hidden; background: var(--win); }
.screen { position: absolute; left: 0; top: 0; width: 880px; height: 520px; transform-origin: 0 0; display: flex; background: var(--win); will-change: transform; }

.side { width: 76px; background: var(--win-2); border-right: 1px solid var(--win-line); display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 22px; }
.s-logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--p1), var(--p2)); margin-bottom: 10px; }
.s-item { width: 34px; height: 10px; border-radius: 6px; background: var(--win-bar); }
.s-item.on { background: var(--c3); }
.content { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; gap: 16px; align-items: center; }
.search { flex: 1; height: 40px; border-radius: 12px; background: var(--win-2); display: flex; align-items: center; padding: 0 14px; }
.search span { width: 40%; height: 9px; border-radius: 5px; background: var(--win-bar); }
.fake-btn { height: 40px; padding: 0 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--p1), var(--p2)); color: var(--on); font: 700 15px "Inter", sans-serif; transition: transform .25s var(--spring), filter .2s; }
.fake-btn.press, .card.press, .item.press { transform: scale(.93); filter: brightness(1.08); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; height: 130px; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--spring), box-shadow .3s; }
.card.c1 { background: color-mix(in srgb, var(--c1) 14%, var(--win)); }
.card.c2 { background: color-mix(in srgb, var(--c2) 16%, var(--win)); }
.card.c3 { background: color-mix(in srgb, var(--c4) 14%, var(--win)); }
.card.sel { box-shadow: 0 0 0 3px var(--p1), 0 14px 30px var(--glow); }
.bar { display: block; height: 10px; border-radius: 6px; background: var(--win-bar); }
.card .bar { background: color-mix(in srgb, var(--text) 14%, transparent); }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; }
.spark { position: absolute; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--c1) 0 70%, color-mix(in srgb, var(--c1) 25%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); }
.chart { margin-top: auto; display: flex; align-items: flex-end; gap: 7px; height: 48px; }
.chart i { flex: 1; border-radius: 5px; background: var(--c3); opacity: .8; transform-origin: bottom; animation: bars 2.4s ease-in-out infinite alternate; }
.chart i:nth-child(1) { height: 40%; } .chart i:nth-child(2) { height: 75%; animation-delay: -.6s; } .chart i:nth-child(3) { height: 55%; animation-delay: -1.2s; } .chart i:nth-child(4) { height: 90%; animation-delay: -.3s; } .chart i:nth-child(5) { height: 65%; animation-delay: -1.8s; }
@keyframes bars { to { transform: scaleY(.6); } }
.toggle { margin-top: auto; width: 54px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--text) 18%, transparent); position: relative; transition: background .3s; }
.toggle i { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .45s var(--spring); }
.toggle.on { background: var(--c4); }
.toggle.on i { transform: translateX(24px); }
.list { display: flex; flex-direction: column; gap: 12px; }
.item { position: relative; display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--win-2); transition: transform .25s var(--spring), background .3s; }
.item .bar { flex: 0 0 auto; }
.av { width: 26px; height: 26px; border-radius: 50%; }
.a1 { background: var(--c2); } .a2 { background: var(--c5); } .a3 { background: var(--c4); }
.check { margin-left: auto; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--win-bar); transition: all .35s var(--spring); }
.item.done { background: color-mix(in srgb, var(--c4) 16%, var(--win)); }
.item.done .check { background: var(--c4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--c4); transform: rotate(-8deg) scale(1.15); }

.cursor { position: absolute; left: 0; top: 0; width: 30px; height: 30px; pointer-events: none; z-index: 5; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); transform-origin: 5px 3px; }
.cursor path { fill: #16151f; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.ripple { position: absolute; left: 0; top: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 4px solid var(--p1); opacity: 0; pointer-events: none; z-index: 4; }
.ripple.go { animation: ripple .6s var(--out); }
@keyframes ripple { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.3); } }

.keys { position: absolute; left: 50%; bottom: clamp(-22px, -2vw, -14px); transform: translateX(-50%); display: flex; gap: 6px; pointer-events: none; }
.keys kbd { font: 700 15px "Inter", sans-serif; padding: 8px 13px; border-radius: 11px; background: rgba(15, 14, 22, .88); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.2); animation: pop .4s var(--spring) both; }
.keys.out kbd { animation: fade .4s ease forwards; }
@keyframes fade { to { opacity: 0; transform: translateY(8px); } }
.bubble { position: absolute; top: clamp(-20px, -2vw, -12px); right: clamp(10px, 4vw, 40px); padding: 8px 14px; border-radius: 14px; background: var(--solid); color: var(--text); border: 1px solid var(--line); font: 700 14px "Inter", sans-serif; box-shadow: 0 10px 24px var(--glow); opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .45s, transform .45s var(--spring); }
.bubble.show { opacity: 1; transform: none; }

/* ---------- marquee ---------- */
.marquee { margin: 70px 0 20px; padding: 18px 0; background: var(--ink); color: #fff; transform: rotate(-2deg) scale(1.04); overflow: hidden; }
.track { display: flex; gap: 28px; width: max-content; font: 700 clamp(20px, 3vw, 28px) "Plus Jakarta Sans", sans-serif; white-space: nowrap; animation: marquee 30s linear infinite; }
.track span:nth-child(4n+2) { color: var(--c2); }
.track span:nth-child(4n) { color: var(--c5); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 40px; }
.h2 { font-size: clamp(36px, 6vw, 64px); text-align: center; }
.sub { text-align: center; color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 580px; margin: 18px auto 0; }
.sub.left, .guide .h2 { text-align: left; margin-left: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-top: 56px; }
.feat { position: relative; padding: 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 34px var(--glow); transform-style: preserve-3d; transition: transform .5s var(--out), box-shadow .3s; overflow: hidden; }
.feat::before { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--c); opacity: .08; transition: transform .6s var(--spring); }
.feat:hover::before { transform: scale(1.8); }
.feat:hover { box-shadow: 0 24px 50px var(--glow); }
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); margin-bottom: 18px; transform: translateZ(30px); transition: transform .5s var(--spring); }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat:hover .ico { transform: translateZ(30px) rotate(-10deg) scale(1.15); animation: wiggle .6s ease .1s; }
@keyframes wiggle { 25% { rotate: 8deg; } 50% { rotate: -6deg; } 75% { rotate: 4deg; } }
.feat h3 { font-size: 24px; margin-bottom: 8px; transform: translateZ(20px); }
.feat p { margin: 0; color: var(--muted); }
.more { text-align: center; margin-top: 40px; }

/* guide */
.guide { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--c4); color: #fff; font-weight: 800; flex: none; }
.doc { background: var(--solid); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 60px var(--glow); overflow: hidden; transform: rotate(2deg); transition: transform .6s var(--spring); }
.doc-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 22px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--panel-2); min-height: 60px; opacity: 0; transform: translateX(30px) scale(.95); transition: opacity .5s, transform .6s var(--spring), background .3s; }
.steps li.in { opacity: 1; transform: none; }
.steps li.typing { background: color-mix(in srgb, var(--p1) 12%, transparent); }
.num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--p1), var(--p2)); color: var(--on); font: 700 16px "Plus Jakarta Sans", sans-serif; }
.txt { padding-top: 4px; font-weight: 600; }
.steps li.typing .txt::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--p1); animation: blink .8s steps(2, start) infinite; }

/* stats */
.stats { width: min(1100px, calc(100% - 32px)); margin: 90px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 28px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font: 800 clamp(40px, 6vw, 60px) "Plus Jakarta Sans", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 600; }

/* gratuit */
.compare { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin: 56px auto 0; max-width: 860px; align-items: center; }
.plan { position: relative; padding: 34px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.plan h3 { font-size: 28px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-weight: 600; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li::before { content: "✓"; color: var(--c4); font-weight: 900; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "✕"; color: var(--muted); opacity: .6; }
.meh { opacity: .8; transform: rotate(-2deg); filter: grayscale(.4); }
.star { padding: 40px 34px 34px; background: linear-gradient(var(--solid), var(--solid)) padding-box, var(--grad) border-box; border: 3px solid transparent; box-shadow: 0 30px 70px color-mix(in srgb, var(--p1) 25%, transparent); }
.star ul { margin-bottom: 30px; }
.badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); padding: 7px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateX(-50%) translateY(-5px); } }
.price { margin: 12px 0 0; display: flex; align-items: baseline; gap: 10px; }
.price b { font: 800 60px/1 "Plus Jakarta Sans", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price span { color: var(--muted); font-weight: 600; }

/* final */
.final { text-align: center; padding: 120px 16px 80px; }
.big-star { width: 150px; height: 150px; margin: 40px auto 0; cursor: pointer; animation: spin 14s linear infinite; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--star) 50%, transparent)); transition: scale .3s var(--spring); }
.big-star svg { width: 100%; fill: var(--star); }
.big-star:hover { scale: 1.15; }
.big-star:active { scale: .9; }
@keyframes spin { to { rotate: 360deg; } }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 40px; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 18px; }

/* ---------- page Journal ---------- */
.page-hero { text-align: center; padding: 80px 16px 10px; }
.page-hero .title { font-size: clamp(44px, 8vw, 88px); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-top: 30px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.tabs a { padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.tabs a:hover { background: var(--panel-2); color: var(--text); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px "Inter", sans-serif; cursor: pointer; transition: transform .3s var(--spring), background .2s, color .2s; }
.filter:hover { transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter em { font-style: normal; font-variant-numeric: tabular-nums; opacity: .6; }
.searchbox { flex: 1; min-width: 220px; max-width: 340px; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.searchbox svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 15px "Inter", sans-serif; }

.progress { margin-top: 26px; padding: 20px 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 10px; }
.progress-top { display: flex; justify-content: space-between; font-weight: 700; gap: 12px; flex-wrap: wrap; }
.progress-top span { color: var(--muted); font-weight: 600; }
.meter { height: 12px; border-radius: 99px; background: var(--panel-2); overflow: hidden; display: flex; }
.meter i { height: 100%; width: 0; transition: width 1.4s var(--out); }
.meter .m-ok { background: var(--c4); }
.meter .m-wip { background: var(--c2); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--k); }

.fgroups { display: grid; gap: 22px; margin-top: 26px; }
.fgroup { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 34px var(--glow); }
.fgroup h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.fgroup h3 small { font: 600 13px "Inter", sans-serif; color: var(--muted); letter-spacing: 0; }
.fgroup ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 22px; }
.fgroup li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 12px; animation: pop .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 18ms); transition: background .2s; }
.fgroup li:hover { background: var(--panel-2); }
.fgroup li b { font-weight: 600; }
.fgroup li p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tag { flex: none; margin-top: 3px; padding: 2px 9px; border-radius: 99px; font: 700 11px/1.6 "Inter", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.tag.ok { background: color-mix(in srgb, var(--c4) 18%, transparent); color: color-mix(in srgb, var(--c4) 70%, var(--text)); }
.tag.wip { background: color-mix(in srgb, var(--c2) 22%, transparent); color: color-mix(in srgb, var(--c2) 55%, var(--text)); }
.tag.todo { background: color-mix(in srgb, var(--c3) 15%, transparent); color: color-mix(in srgb, var(--c3) 70%, var(--text)); }
.tag.later { background: var(--panel-2); color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-weight: 600; }

.timeline { position: relative; margin: 50px auto 0; max-width: 820px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.release { position: relative; margin-bottom: 26px; padding: 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 14px 34px var(--glow); }
.release::before { content: ""; position: absolute; left: -31px; top: 28px; width: 17px; height: 17px; border-radius: 50%; background: var(--solid); border: 4px solid var(--p1); }
.release.latest::before { background: var(--p1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--p1) 60%, transparent); animation: ring 2s infinite; }
@keyframes ring { 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.rel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.rel-head h3 { font-size: 22px; }
.rel-head time, .rel-head code { color: var(--muted); font-weight: 600; font-size: 14px; }
.rel-head code { font-family: ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 8px; border-radius: 8px; background: var(--panel-2); }
.rel-head .new { padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, var(--p1), var(--p2)); color: var(--on); font-weight: 700; font-size: 12px; }
.release ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.release li { margin: 5px 0; }
.release li::marker { color: var(--p1); }
.release li strong { color: var(--text); font-weight: 600; }

/* reveal au défilement */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s var(--out), transform .9s var(--spring); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.meh.reveal.in { transform: rotate(-2deg); }
.doc.reveal.in { transform: rotate(2deg); }
.doc.reveal.in:hover, .doc:hover { transform: rotate(0) scale(1.02); }
.hero .reveal { transition-delay: calc(var(--d, 0s) + .6s); }

/* ---------- familles de thèmes ---------- */
/* Sticker : contours épais et ombres franches */
[data-kind="sticker"] { --radius: 18px; }
[data-kind="sticker"] :is(.feat, .plan, .stat, .doc, .pill, .nav, .chip, .theme-pop, .bubble, .theme-btn, .fgroup, .release, .progress, .tabs, .searchbox, .filter) { border: 2px solid var(--text); box-shadow: 4px 4px 0 var(--text); }
[data-kind="sticker"] .btn, [data-kind="sticker"] .btn-ghost { border: 2px solid var(--text); box-shadow: 3px 3px 0 var(--text); }
[data-kind="sticker"] .btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--text); }
[data-kind="sticker"] .stage { border: 2px solid var(--text); box-shadow: 8px 8px 0 var(--text); }
[data-kind="sticker"] .window { border: 2px solid var(--text); box-shadow: none; }
[data-kind="sticker"] .feat:hover { box-shadow: 7px 7px 0 var(--text); }
[data-kind="sticker"] .marquee { border-block: 2px solid var(--text); background: var(--c2); color: var(--text); }
[data-kind="sticker"] .track span:nth-child(4n+2), [data-kind="sticker"] .track span:nth-child(4n) { color: var(--c1); }
[data-kind="sticker"] .chip[aria-pressed="true"] { background: var(--c2); }
[data-kind="sticker"] .release::before { border-color: var(--text); }

/* Arcade : néons */
[data-kind="arcade"] .grad, [data-kind="arcade"] .title .grad .char, [data-kind="arcade"] .stat b, [data-kind="arcade"] .price b { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c3) 75%, transparent)); }
[data-kind="arcade"] :is(.feat, .chip, .fgroup, .release):hover { box-shadow: 0 0 0 2px var(--c3), 0 0 30px color-mix(in srgb, var(--c3) 60%, transparent); }
[data-kind="arcade"] .btn { box-shadow: 0 0 0 2px #fff, 0 0 26px color-mix(in srgb, var(--c1) 70%, transparent); }
[data-kind="arcade"] .stage { box-shadow: 0 0 60px color-mix(in srgb, var(--c3) 55%, transparent); }
[data-kind="arcade"] .marquee { box-shadow: 0 0 30px color-mix(in srgb, var(--c1) 40%, transparent); }

/* Luxe : verre dépoli sur dégradé */
[data-kind="luxe"] :is(.feat, .plan, .stat, .pill, .chip, .fgroup, .release, .progress, .tabs, .searchbox, .filter) { backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); }
[data-kind="luxe"] :is(.feat, .plan, .stat, .fgroup, .release) { box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .links { display: none; }
  .nav-right { margin-left: auto; }
  .guide { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .meh, .meh.reveal.in { transform: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding-top: 48px; }
  .feat, .fgroup { padding: 22px; }
  .cta .btn { width: 100%; }
  .keys kbd { font-size: 12px; padding: 6px 9px; }
  .nav .btn-small { display: none; }
  .themes-sec .chips { grid-template-columns: repeat(2, 1fr); }
  .fgroup ul { grid-template-columns: 1fr; }
  .searchbox { max-width: none; }
}

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