/* =========================================================
   produrise
   Formes : cartes 16px, champs 12px, boutons et puces en pilule.
   Couleur : neutres chauds + un seul accent (citron).
   ========================================================= */
:root {
  --font: 'Geist', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
}
:root,
[data-theme='dark'] {
  --bg: #0c0c0b;
  --bg-2: #121211;
  --surface: #171716;
  --surface-2: #1e1e1c;
  --line: rgba(241, 240, 236, 0.09);
  --line-2: rgba(241, 240, 236, 0.18);
  --text: #f1f0ec;
  --muted: #a3a29b;
  --faint: #75746d;
  --accent: #ff5c9a;
  --accent-ink: #11140a;
  --accent-text: #ff5c9a;
  --danger: #ff6b57;
  --good: #3ddc84;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme='light'] {
  --bg: #f4f4f2;
  --bg-2: #ebebe8;
  --surface: #fcfcfb;
  --surface-2: #f0f0ed;
  --line: rgba(18, 18, 17, 0.09);
  --line-2: rgba(18, 18, 17, 0.2);
  --text: #121211;
  --muted: #5d5c57;
  --faint: #7d7c76;
  --accent: #ff5c9a;
  --accent-ink: #11140a;
  --accent-text: #c0145a;
  --danger: #c8321e;
  --good: #128a4a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 24px 50px -28px rgba(40, 40, 30, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* rien ne déborde sur les côtés : sur iPhone, un seul élément trop large faisait glisser toute la page */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.5s var(--ease), color 0.3s;
}
img, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; margin: 0; letter-spacing: -0.035em; line-height: 1; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; letter-spacing: -0.01em; }
.accent-text { color: var(--accent-text); }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 16px; }
.container { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
[hidden] { display: none !important; }

/* ---------- Couches fixes ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme='light'] .grain { opacity: 0.06; mix-blend-mode: multiply; }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 95; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* rideau de transition entre pages */
.curtain { position: fixed; inset: 0; z-index: 200; background: var(--accent); display: grid; place-items: center; pointer-events: none; transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1); will-change: transform; }
.curtain.out { transform: translateY(-100%); }
.at-home .curtain { display: none; }
html:not(.at-home) .prerender, html:not(.at-home) .prerender-hero { display: none; }
.prerender { padding-block: 40px 80px; max-width: 880px; }
.prerender h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 36px 0 12px; }
.prerender h3 { font-size: 17px; margin: 20px 0 6px; }
.prerender p, .prerender li { color: var(--muted); line-height: 1.6; }
.prerender a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* changement de page : le contenu arrive en fondu court, sans rideau */
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
#app.view-in { animation: view-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
@media (prefers-reduced-motion: reduce) { #app.view-in { animation: none; } }
.curtain-mark { width: 54px; height: 54px; background: var(--accent-ink); clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%); }

/* ---------- Curseur ---------- */
/* pointeur système conservé partout (précis au pixel, sans latence) ; seules les étiquettes « Voir » / « Glisser » le remplacent */
.has-cursor canvas, .has-cursor .is-drag-zone { cursor: grab; }
.has-cursor canvas:active, .has-cursor .is-drag-zone:active { cursor: grabbing; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: min(var(--max), 100% - 24px);
  height: 56px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: translate 0.6s var(--ease), background-color 0.3s;
}
.nav.is-hidden { translate: -50% -140%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 17px; transition: rotate 0.6s var(--ease); }
.brand:hover .brand-mark { rotate: 45deg; }
.nav-links { display: flex; justify-content: safe center; align-items: center; gap: 2px; min-width: 0; flex-wrap: nowrap; overflow: hidden; padding: 8px 6px; margin: -6px 0; }
.nav-links > .nav-fit-hide { display: none !important; }
.nav-links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 2px; min-width: 0; }
/* en dessous de 1240 px, les intitulés secondaires passent dans le menu « Tout » */
/* les liens secondaires passent dans le menu « Tout » quand la place manque : voir fitNav dans main.js */
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; color: var(--muted); font-size: 19px; transition: color 0.2s, background-color 0.2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn .count { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 10px/16px var(--mono); text-align: center; }
[data-theme='dark'] .i-light, [data-theme='light'] .i-dark { display: none; }
.burger { display: none; }
.burger span { position: absolute; left: 12px; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.burger span:first-child { transform: translateY(-3px); }
.burger span:last-child { transform: translateY(3px); }
.nav.open .burger span:first-child { transform: rotate(45deg); }
.nav.open .burger span:last-child { transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  --h: 48px;
  position: relative;
  height: var(--h);
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn i { font-size: 18px; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--text); }
/* remplissage qui part de l'endroit où le curseur entre */
.btn-accent::before, .btn-solid::before {
  content: '';
  position: absolute;
  left: var(--fx, 50%);
  top: var(--fy, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  translate: -50% -50%;
  background: var(--text);
  z-index: -1;
  transition: width 0.55s var(--ease), height 0.55s var(--ease);
}
.btn-solid::before { background: var(--accent); }
.btn-accent:hover { color: var(--bg); }
.btn-solid:hover { color: var(--accent-ink); }
.btn-accent:hover::before, .btn-solid:hover::before { width: 260%; height: 260%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.link-under { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.link-under:hover { background-size: 100% 1px; }

/* ---------- Structure ---------- */
main { position: relative; z-index: 1; min-height: 100dvh; outline: none; }
.page { padding: calc(var(--nav-h) + 56px) 0 96px; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.h-xl { font-size: clamp(46px, 6.1vw, 104px); letter-spacing: -0.055em; line-height: 0.92; }
.h-lg { font-size: clamp(38px, 5.6vw, 84px); letter-spacing: -0.045em; line-height: 0.95; }
.h-md { font-size: clamp(28px, 3.4vw, 48px); line-height: 1; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--muted); white-space: nowrap; }
.tag i { font-size: 14px; }
.tag-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.page-head { display: grid; gap: 20px; margin-bottom: 48px; max-width: 900px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- Accueil : héros ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
}
.hero-copy { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: start; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .w > span { display: inline-block; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stage { position: relative; height: min(80vh, 780px); height: min(80svh, 780px); margin-right: calc(var(--gutter) * -1); }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }

/* ---------- Bandeau ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.03em; color: var(--muted); white-space: nowrap; transition: color 0.2s; }
.ticker-item:hover { color: var(--text); }
.ticker-item .mono { font-size: 13px; color: var(--accent-text); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Galerie horizontale épinglée ---------- */
.pan { position: relative; overflow: hidden; }
.pan-track { display: flex; align-items: stretch; gap: 24px; padding: 64px var(--gutter) 24px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.pan-track::-webkit-scrollbar { display: none; }
.pan-intro, .pan-card { scroll-snap-align: start; }
.pan-nav { display: flex; gap: 10px; justify-content: flex-end; padding: 0 var(--gutter) 48px; }
@media (max-width: 720px) { .pan-nav { display: none; } }
.pan-intro { flex: none; width: min(460px, 80vw); display: grid; gap: 20px; padding-right: 48px; }
.pan-card { flex: none; width: clamp(300px, 34vw, 520px); display: grid; gap: 16px; }
.pan-card .cover { aspect-ratio: 4 / 3; border-radius: var(--r); }
.pan-card h3 { font-size: clamp(26px, 2.4vw, 36px); }
.pan-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pan-card p { color: var(--muted); }
.pan-num { font-family: var(--mono); font-size: 13px; color: var(--faint); }

/* ---------- Couvertures ---------- */
.cover { position: relative; overflow: hidden; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.6s; }
.cover img.loading { opacity: 0; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35)); pointer-events: none; }
.cover .mark { position: absolute; left: 14px; bottom: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.cover .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: clamp(60px, 10vw, 140px); color: rgba(255, 255, 255, 0.3); }
a:hover .cover img, .pcard:hover .cover img { transform: scale(1.05); }

/* ---------- Histoire épinglée ---------- */
.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.story-pin { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; display: grid; gap: 36px; padding-top: 8vh; }
.story-steps { display: grid; gap: 24px; }
.story-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; opacity: 0.3; transition: opacity 0.5s var(--ease); }
.story-step.on { opacity: 1; }
.story-step .n { font-family: var(--mono); font-size: 13px; padding-top: 7px; color: var(--accent-text); }
.story-step h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 8px; }
.story-step p { color: var(--muted); max-width: 42ch; }
.story-panels { display: grid; gap: 5vh; padding: 4vh 0 6vh; }
.story-panel { min-height: 62vh; border-radius: var(--r); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); position: relative; overflow: hidden; }
.story-panel.p1 { background: var(--surface); border: 1px solid var(--line); }
.story-panel.p2 { background: var(--accent); color: var(--accent-ink); }
.story-panel.p3 { background: var(--text); color: var(--bg); }
.demo-field { width: min(440px, 100%); display: grid; gap: 14px; }
.demo-field .input { background: var(--bg); }
.demo-vote { display: grid; justify-items: center; gap: 24px; text-align: center; }
.demo-vote .big { font-family: var(--display); font-size: clamp(88px, 13vw, 200px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; font-feature-settings: 'tnum'; }
.demo-vote button { height: 64px; padding: 0 30px; border-radius: 999px; background: var(--accent-ink); color: var(--accent); font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; gap: 10px; transition: transform 0.3s var(--ease); }
.demo-vote button:active { transform: scale(0.96); }
.demo-chart { width: 100%; display: grid; gap: 24px; }
.demo-chart .kpi-row { display: flex; gap: 40px; flex-wrap: wrap; }
.demo-chart .kpi-row strong { display: block; font-family: var(--display); font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; }
.demo-chart .kpi-row span { font-size: 13px; opacity: 0.6; }
.demo-chart .canvas-box { height: 240px; }

/* ---------- Mosaïque ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(230px, auto); gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.tile h3 { font-size: clamp(24px, 2.2vw, 32px); }
.tile p { color: var(--muted); max-width: 40ch; }
.t-launch { grid-column: span 7; grid-row: span 2; background: var(--surface); border: 1px solid var(--line); }
.t-count { grid-column: span 5; background: var(--accent); color: var(--accent-ink); }
.t-count p { color: inherit; opacity: 0.75; }
.t-count .big { font-family: var(--display); font-size: clamp(64px, 8vw, 120px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.85; }
.t-photo { grid-column: span 5; padding: 0; min-height: 260px; color: #fff; }
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.t-photo:hover img { transform: scale(1.05); }
.t-photo .over { position: relative; z-index: 1; margin-top: auto; padding: 28px; display: grid; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); }
.t-photo .over p { color: rgba(255, 255, 255, 0.82); }
.t-badge { grid-column: span 6; background: var(--surface-2); }
.t-cats { grid-column: span 6; background: var(--surface); border: 1px solid var(--line); }
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-cloud a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.cat-cloud a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.cat-cloud a span { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 6px; }
.cat-cloud a:hover span { color: inherit; opacity: 0.6; }
.launch-list { display: grid; gap: 2px; }
.launch-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 10px; margin: 0 -10px; border-radius: var(--r-sm); transition: background-color 0.2s; }
.launch-row:hover { background: var(--surface-2); }
.launch-row .cover { width: 56px; height: 56px; border-radius: 10px; }
.launch-row .cover::after { display: none; }
.launch-row b { display: block; font-weight: 600; }
.launch-row small { color: var(--muted); font-size: 13px; }
.countdown { font-family: var(--mono); font-size: 14px; font-feature-settings: 'tnum'; white-space: nowrap; }

/* ---------- Témoignages ---------- */
.voices { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.voice { padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; align-content: space-between; }
.voice blockquote { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.voice.main { background: var(--surface-2); }
.voice.main blockquote { font-size: clamp(28px, 3.2vw, 46px); }
.voice footer { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.voice footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.voice footer small { display: block; color: var(--muted); }
.voices-side { display: grid; gap: 14px; }

/* ---------- Appel final ---------- */
.final { position: relative; border-radius: calc(var(--r) * 1.5); background: var(--accent); color: var(--accent-ink); padding: clamp(40px, 7vw, 96px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; overflow: hidden; }
.final h2 { font-size: clamp(44px, 7.4vw, 120px); letter-spacing: -0.055em; line-height: 0.9; }
.final .btn-solid { background: var(--accent-ink); color: var(--accent); }
.final .btn-solid::before { background: #fff; }
.final .btn-solid:hover { color: var(--accent-ink); }

/* ---------- Cartes projet ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 20px; }
.pcard { position: relative; display: grid; gap: 16px; align-content: start; outline: none; }
.pcard .cover { aspect-ratio: 4 / 3; border-radius: var(--r); }
.pcard .cover .boost { position: absolute; top: 12px; left: 12px; z-index: 1; }
.pcard-body { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: start; }
.pcard h3 { font-size: 22px; letter-spacing: -0.03em; line-height: 1.15; }
.pcard .tagline { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.45; }
.pcard .meta { grid-column: 1 / -1; display: flex; gap: 14px; margin-top: 4px; font-size: 13px; color: var(--faint); }
.pcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.pcard:focus-visible .cover { outline: 2px solid var(--accent); outline-offset: 3px; }
.save { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; font-size: 17px; color: #fff; background: rgba(12, 12, 11, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s var(--ease), background-color 0.2s; }
.pcard:hover .save, .save.on, .save:focus-visible { opacity: 1; transform: none; }
.save.on { background: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .save { opacity: 1; transform: none; } }
.vote {
  grid-row: 1 / 3;
  grid-column: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 60px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  font: 500 14px/1 var(--mono);
  gap: 4px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.vote i { font-size: 16px; }
.vote:hover { border-color: var(--text); }
.vote.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.vote.bump, .vote-lg.bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 35% { transform: translateY(-5px) scale(1.06); } }

/* ---------- Explorer ---------- */
.toolbar { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
.search:focus-within { border-color: var(--text); }
.search i { font-size: 20px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.select { height: 54px; padding: 0 44px 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a29b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center / 16px; appearance: none; cursor: pointer; }
.select option, .select optgroup { background: var(--surface); color: var(--text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 40px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); scroll-snap-align: start; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .mono { font-size: 12px; margin-left: 4px; opacity: 0.6; }
.empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 96px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty i { font-size: 40px; color: var(--faint); }
.empty h3 { color: var(--text); font-size: 28px; }
.skel { border-radius: var(--r); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: skel 1.4s infinite linear; }
.skel-card { display: grid; gap: 14px; }
.skel-card .a { aspect-ratio: 4 / 3; }
.skel-card .b { height: 22px; width: 60%; border-radius: 8px; }
.skel-card .c { height: 16px; width: 85%; border-radius: 8px; }
@keyframes skel { to { background-position: -300% 0; } }

/* ---------- Page projet ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 28px; transition: color 0.2s; }
.back:hover { color: var(--text); }
.p-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 48px; }
.p-hero .cover { aspect-ratio: 16 / 10; border-radius: var(--r); }
.p-title { display: grid; gap: 20px; align-content: end; }
.p-title .crumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.p-title h1 { font-size: clamp(44px, 6vw, 96px); letter-spacing: -0.055em; line-height: 0.92; }
.p-title .by { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.p-title .by a { color: var(--text); }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vote-lg.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.p-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.p-desc { font-size: 19px; line-height: 1.6; max-width: 62ch; }
.p-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.p-stats div { background: var(--surface); padding: 20px; }
.p-stats strong { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.04em; }
.p-stats span { font-size: 13px; color: var(--muted); }
.p-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 32px); }
.tile3d { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tile3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.tile3d .label { position: absolute; left: 16px; top: 14px; }
.comments { display: grid; gap: 24px; margin-top: 64px; }
.c-form { display: grid; gap: 12px; padding: 20px; }
.c-form .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.c-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.c-item .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 15px; }
.c-item header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.c-item header small { color: var(--faint); font-size: 13px; }
.c-item .tag { height: 22px; font-size: 12px; padding: 0 8px; }
.notify-box { padding: 24px; display: grid; gap: 16px; }
.cd-big { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-big div { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px 6px; text-align: center; }
.cd-big strong { display: block; font: 500 30px/1 var(--mono); font-feature-settings: 'tnum'; }
.cd-big span { font-size: 12px; color: var(--muted); }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 8px; }
.field > label, .field > .flabel { font-size: 14px; font-weight: 600; }
.field .help { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.input, .textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.field .error { display: none; color: var(--danger); font-size: 13px; }
.field.err .input, .field.err .textarea, .field.err .drop { border-color: var(--danger); }
.field.err .error { display: block; }

.submit-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.steps-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 32px; }
.steps-bar div { display: grid; gap: 10px; font-size: 13px; color: var(--faint); transition: color 0.3s; }
.steps-bar i { display: block; height: 3px; border-radius: 3px; background: var(--line-2); position: relative; overflow: hidden; }
.steps-bar i::after { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.steps-bar .done { color: var(--text); }
.steps-bar .done i::after { transform: scaleX(1); }
.fstep { display: none; gap: 24px; }
.fstep.on { display: grid; animation: stepIn 0.6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } }
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { position: relative; width: 40px; height: 40px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line) inset; transition: transform 0.3s var(--ease), box-shadow 0.2s; }
.swatch:hover { transform: scale(1.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.swatch.custom { display: grid; place-items: center; border: 1px dashed var(--line-2); box-shadow: none; color: var(--muted); }
.swatch.custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop { position: relative; display: grid; place-items: center; gap: 6px; min-height: 180px; padding: 20px; border-radius: var(--r); border: 1.5px dashed var(--line-2); text-align: center; color: var(--muted); overflow: hidden; transition: border-color 0.2s, background-color 0.2s; }
.drop i { font-size: 30px; color: var(--text); }
.drop.over { border-color: var(--text); background: var(--surface-2); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .rm { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--bg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line-2); transition: background-color 0.3s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); transition: transform 0.4s var(--ease); }
.switch[aria-checked='true'] { background: var(--accent); }
.switch[aria-checked='true']::after { transform: translateX(20px); background: var(--accent-ink); }
.tags-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 52px; padding: 7px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); }
.tags-input:focus-within { border-color: var(--text); }
.tags-input input { flex: 1; min-width: 120px; height: 36px; border: 0; background: none; outline: none; }
.tags-input input::placeholder { color: var(--faint); }
.tag-x { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; }
.tag-x button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.tag-x button:hover { background: var(--line-2); color: var(--text); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.preview { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 16px; }
.preview .pcard { pointer-events: none; }
.recap { display: grid; border-top: 1px solid var(--line); }
.recap div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.recap span { color: var(--muted); }
.recap b { font-weight: 500; overflow-wrap: anywhere; }

/* ---------- À venir ---------- */
.upcoming { display: grid; gap: 14px; }
.up-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 14px; }
.up-row .cover { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.up-row h3 { font-size: clamp(26px, 2.6vw, 38px); margin-bottom: 8px; }
.up-row .side-col { display: grid; gap: 12px; justify-items: end; text-align: right; padding-right: 8px; }
.up-row .countdown { font-size: clamp(20px, 2vw, 28px); }

/* ---------- Booster ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 20px; position: relative; transition: transform 0.5s var(--ease), border-color 0.3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.featured { background: var(--text); color: var(--bg); border-color: var(--text); }
.plan.featured .muted, .plan.featured li { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.plan.featured .tag { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }
.plan h3 { font-size: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--display); font-size: clamp(48px, 5vw, 68px); font-weight: 650; letter-spacing: -0.05em; line-height: 1; }
.price small { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan.featured .price small { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.plan li i { color: var(--accent-text); font-size: 18px; margin-top: 2px; }
.plan.featured li i { color: var(--accent); }
[data-theme='light'] .plan.featured li i { color: var(--accent); }
.plan .btn { margin-top: auto; }
.plan.featured .btn-line { border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.calc { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; margin-top: 14px; }
.calc .card { padding: clamp(22px, 3vw, 36px); }
.range { display: grid; gap: 12px; margin-bottom: 28px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.range-head b { font: 500 22px/1 var(--mono); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--text) var(--p, 50%), var(--line-2) var(--p, 50%)); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: grab; transition: transform 0.2s var(--ease); }
input[type='range']::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type='range']::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.reach strong { display: block; font-family: var(--display); font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.04em; }
.reach span { font-size: 13px; color: var(--muted); }
.chart-box { position: relative; height: 260px; }
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.3s; white-space: nowrap; }
.seg button.on { color: var(--bg); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--text); transition: left 0.5s var(--ease), width 0.5s var(--ease); }
.save-tag { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; }

/* ---------- Statistiques ---------- */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.side { position: sticky; top: calc(var(--nav-h) + 32px); max-height: calc(100dvh - 120px); overflow: auto; padding: 10px; }
.side .label { padding: 12px 10px 8px; display: block; }
.side-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px 10px; border-radius: var(--r-sm); text-align: left; transition: background-color 0.2s; }
.side-item .cover { width: 36px; height: 36px; border-radius: 9px; }
.side-item .cover::after { display: none; }
.side-item b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item small { color: var(--muted); font-size: 12px; }
.side-item:hover { background: var(--surface-2); }
.side-item.on { background: var(--text); color: var(--bg); }
.side-item.on small { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.dash-main { display: grid; gap: 14px; min-width: 0; }
.dash-head { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 16px; }
.dash-head .cover { width: 96px; height: 72px; border-radius: 10px; }
.dash-head .cover::after { display: none; }
.dash-head h2 { font-size: 30px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.kpi { background: var(--surface); padding: 22px; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi strong { display: block; font-family: var(--display); font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.04em; margin: 6px 0; }
.delta { font: 500 12px/1 var(--mono); }
.delta.up { color: var(--accent-text); }
.delta.down { color: var(--danger); }
.panel { padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h3 { font-size: 20px; letter-spacing: -0.02em; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.funnel { display: grid; gap: 18px; }
.funnel-row header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.funnel-row b { font-family: var(--mono); font-weight: 500; }
.funnel-bar { height: 8px; }
.funnel-bar i { display: block; height: 100%; border-radius: 8px; background: var(--text); width: 0; transition: width 1.4s var(--ease); }
.funnel-row:first-child .funnel-bar i { background: var(--accent); }
.code { position: relative; font: 13px/1.6 var(--mono); padding: 16px 100px 16px 16px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); word-break: break-all; color: var(--muted); }
.code button { position: absolute; top: 9px; right: 9px; }
.utm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.utm-grid .select, .utm-grid .input { height: 46px; border-radius: var(--r-sm); }
.badge-preview { display: grid; place-items: center; padding: 28px; border-radius: var(--r-sm); background: var(--bg-2); margin-bottom: 12px; }
.widget-preview { display: grid; place-items: center; padding: 20px; border-radius: var(--r-sm); background: var(--bg-2); margin-bottom: 12px; }

/* ---------- Classement ---------- */
.podium-stage { position: relative; height: clamp(380px, 50vw, 580px); margin: -24px 0 32px; }
.podium-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.podium-names { display: grid; grid-template-columns: 1fr 1.1fr 1fr; text-align: center; margin-top: -8px; margin-bottom: 48px; }
.podium-names a { display: grid; gap: 4px; padding: 0 8px; }
.podium-names b { font-family: var(--display); font-size: clamp(18px, 2vw, 28px); letter-spacing: -0.03em; }
.podium-names span { font: 500 13px/1.4 var(--mono); color: var(--muted); }
.board { display: grid; }
.board-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 110px 110px 120px; gap: 16px; align-items: center; padding: 16px 12px; border-top: 1px solid var(--line); border-radius: var(--r-sm); transition: background-color 0.2s; }
.board-row:hover { background: var(--surface); }
.board-row .pos { font: 500 15px/1 var(--mono); color: var(--faint); }
.board-row .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.board-row .who .av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 700; }
.board-row .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .who small { color: var(--muted); font-size: 13px; }
.board-row .num { text-align: right; font: 500 15px/1.3 var(--mono); }
.board-row .num small { display: block; font-family: var(--font); font-size: 12px; color: var(--faint); }
.board-row .pts { color: var(--accent-text); }

/* ---------- Créateur ---------- */
.creator-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 56px; }
.creator-head .av { width: clamp(88px, 10vw, 140px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; color: #fff; }
.creator-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; }
.creator-stats strong { display: block; font: 500 26px/1.1 var(--mono); }
.creator-stats span { font-size: 13px; color: var(--muted); }

/* ---------- Tarifs ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.compare th, .compare td { padding: 16px; text-align: center; }
.compare tbody tr:nth-child(odd) td { background: var(--surface); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare tbody td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.compare tbody td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.compare thead th { font-family: var(--display); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.compare i { font-size: 20px; color: var(--accent-text); }
.compare .no { color: var(--faint); }
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: 18px; font-weight: 500; }
.faq-item button i { font-size: 20px; transition: transform 0.5s var(--ease); flex: none; }
.faq-item.open button i { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p { padding-bottom: 24px; color: var(--muted); max-width: 60ch; }

/* ---------- Pied de page ---------- */
.footer { position: relative; z-index: 1; padding: clamp(64px, 10vw, 120px) var(--gutter) 28px; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
.footer-big { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-claim { font-family: var(--display); font-size: clamp(48px, 8vw, 120px); font-weight: 650; letter-spacing: -0.055em; line-height: 0.88; }
.footer-claim span { color: var(--accent-text); }
.newsletter { display: grid; gap: 14px; }
.newsletter label { font-size: 16px; color: var(--muted); max-width: 36ch; }
.nl-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.nl-row input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; background: none; outline: none; }
.nl-row input::placeholder { color: var(--faint); }
.nl-row .btn { --h: 44px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; padding: 40px 0; }
.footer-cols div { display: grid; gap: 10px; align-content: start; }
.footer-cols div a { color: var(--muted); font-size: 15px; width: fit-content; transition: color 0.2s; }
.footer-cols div a:hover { color: var(--text); }
.footer-bottom { font-size: 13px; color: var(--faint); }

/* ---------- Modale & palette ---------- */
.modal, .cmdk { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open, .cmdk.open { visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.35s; }
.open .modal-backdrop { opacity: 1; }
.modal-panel { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: calc(var(--r) * 1.25); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.open .modal-panel, .open .cmdk-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); }
.cmdk { place-items: start center; padding-top: 14dvh; }
.cmdk-panel { position: relative; width: min(600px, 100%); border-radius: calc(var(--r) * 1.25); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: scale(0.97); transition: opacity 0.25s, transform 0.4s var(--ease); }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.cmdk-input i { font-size: 20px; color: var(--muted); }
.cmdk-input input { flex: 1; height: 60px; border: 0; background: none; outline: none; font-size: 17px; }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 52dvh; overflow: auto; }
.cmdk-list .group { padding: 12px 12px 6px; }
.cmdk-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; }
.cmdk-item .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); font-size: 17px; }
.cmdk-item .cover { width: 34px; height: 34px; border-radius: 9px; }
.cmdk-item .cover::after { display: none; }
.cmdk-item small { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.cmdk-item.sel { background: var(--surface-2); }
.success { padding: clamp(28px, 5vw, 44px); display: grid; gap: 18px; }
.success .cover { aspect-ratio: 16 / 9; border-radius: var(--r); }
.success h2 { font-size: clamp(30px, 4vw, 44px); }

/* ---------- Toasts & éclats ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; translate: -50% 0; z-index: 180; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn 0.5s var(--ease); }
.toast i { font-size: 18px; color: var(--accent); }
[data-theme='light'] .toast i { color: #8fb300; }
.toast.error i { color: var(--danger); }
.toast.out { animation: toastOut 0.35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(0.96); } }
#burst { position: fixed; inset: 0; width: 100vw; height: 100dvh; pointer-events: none; z-index: 170; }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(32px); }
.split-line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split-line > span { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.5s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 20px; font-family: var(--display); letter-spacing: -0.02em; color: var(--text); }
  .nav-actions { justify-self: end; }
  .burger { display: grid; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 16px); gap: 8px; }
  .hero-stage { order: -1; height: 44vh; height: 44svh; margin: 0 calc(var(--gutter) * -1); }
  .story { grid-template-columns: 1fr; }
  .story-pin { position: relative; top: 0; padding-top: 0; }
  .story-step { opacity: 1; }
  .story-panels { gap: 16px; padding: 0; }
  .story-panel { min-height: 380px; }
  .t-launch, .t-count, .t-photo, .t-badge, .t-cats { grid-column: span 12; grid-row: auto; }
  .voices { grid-template-columns: 1fr; }
  .p-hero, .p-body, .submit-layout, .calc, .dash, .two, .faq { grid-template-columns: 1fr; }
  .p-side, .preview, .side { position: static; max-height: none; }
  .side { display: flex; gap: 6px; overflow-x: auto; }
  .side .label { display: none; }
  .side-item { width: auto; flex: none; }
  .plans { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-big { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-actions .btn, #cmdBtn { display: none; }
  .toolbar { grid-template-columns: 1fr; }
  .pan-track { height: auto; flex-direction: column; align-items: stretch; width: auto; padding: 64px var(--gutter); gap: 48px; }
  .pan-card, .pan-intro { width: 100%; }
  .up-row { grid-template-columns: 1fr; gap: 16px; }
  .up-row .side-col { justify-items: start; text-align: left; }
  .board-row { grid-template-columns: 36px minmax(0, 1fr) 90px; }
  .board-row .hide-sm { display: none; }
  .reach, .utm-grid { grid-template-columns: 1fr 1fr; }
  .dash-head { grid-template-columns: 64px 1fr; }
  .dash-head .cover { width: 64px; height: 48px; }
  .dash-head .p-actions { grid-column: 1 / -1; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols .brand { grid-column: 1 / -1; }
  .recap div { grid-template-columns: 1fr; gap: 2px; }
  .creator-head { grid-template-columns: 1fr; }
  .c-form .row { grid-template-columns: 1fr; }
  .cd-big strong { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); backdrop-filter: none; }
}

/* ---------- Informations légales ---------- */
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--faint); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }
.legal .page-head { margin-bottom: 36px; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 4px; }
.legal-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; border: 1px solid transparent; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.legal-nav a:hover { color: var(--text); background: var(--surface); }
.legal-nav a.on { color: var(--text); background: var(--surface); border-color: var(--line); }
.legal-nav a.on i { color: var(--accent); }
.legal-body { padding: clamp(24px, 4vw, 48px); line-height: 1.7; max-width: 820px; font-variant-ligatures: no-common-ligatures; }
.legal-body h2 { font-family: var(--display, inherit); font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.legal-body h3 { font-size: 17px; margin: 30px 0 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal-body h2 + h3 { border-top: 0; padding-top: 0; margin-top: 22px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body strong { color: var(--text); }
.legal-body ul { display: grid; gap: 8px; padding-left: 20px; margin: 10px 0; list-style: disc; }
.legal-body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: currentColor; }
.legal-body .btn { text-decoration: none; }
.legal-body code { font-family: var(--mono); font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.legal-cta { margin-top: 22px; }
.legal-date { margin-top: 36px; font-family: var(--mono); font-size: 12px; color: var(--faint) !important; text-transform: uppercase; letter-spacing: 0.06em; }
.legal-consent { font-size: 13px; color: var(--muted); line-height: 1.55; }
.legal-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .legal-nav a { flex: none; padding: 9px 14px; border-color: var(--line); }
}
a.voice { color: inherit; transition: transform 0.35s var(--ease, ease), border-color 0.25s; }
a.voice:hover { transform: translateY(-3px); border-color: var(--line-2); }
.voice-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 20px; }
.voice footer small { font-size: 14px; line-height: 1.5; }

/* ---------- Pied de page ---------- */
.footer-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 4px; }
.footer-claim { font-size: clamp(40px, 6.4vw, 96px); max-width: 14ch; text-wrap: balance; }

/* ---------- Débuts : vitrine vide ---------- */
.grid.fy-empty { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.first-slot { position: relative; display: grid; gap: 10px; align-content: start; min-height: 230px; padding: 26px; border-radius: var(--r); border: 1px dashed var(--line-2); background: linear-gradient(160deg, var(--surface), transparent 70%); overflow: hidden; transition: border-color 0.3s, transform 0.5s var(--ease), background-color 0.3s; }
.first-slot > i { font-size: 30px; color: var(--accent-text); margin-top: 18px; }
.first-slot b { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.first-slot small { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 30ch; }
.first-slot .mono { position: absolute; top: 22px; right: 24px; font-size: 12px; color: var(--faint); }
.first-go { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--text); color: var(--bg); transform: translate(6px, 6px) scale(0.85); opacity: 0; transition: transform 0.45s var(--ease), opacity 0.3s; }
.first-slot:hover { border-color: var(--accent); border-style: solid; transform: translateY(-4px); }
.first-slot:hover .first-go { transform: none; opacity: 1; }
.launch-empty { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--bg); border: 1px dashed var(--line-2); }
.launch-empty > i { font-size: 26px; color: var(--accent-text); }
.launch-empty b { display: block; margin-bottom: 4px; }
.launch-empty small { color: var(--muted); line-height: 1.5; }
.demo-chart { position: relative; }
.demo-tag { position: absolute; bottom: 14px; right: 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.7); }
.launch-empty-block { animation: leb-in 0.9s var(--ease) both; grid-column: 1 / -1; display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(56px, 9vw, 110px) 20px; border-radius: calc(var(--r) * 1.4); border: 1px solid var(--line); background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--surface); }
.launch-empty-block h3 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.035em; text-wrap: balance; }
.launch-empty-block p { color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.launch-empty-block .btn { margin-top: 8px; }
.leb-orb { position: relative; width: 74px; height: 74px; margin-bottom: 6px; }
.leb-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); animation: leb 3.2s var(--ease) infinite; }
.leb-orb span:nth-child(2) { animation-delay: 1.05s; }
.leb-orb span:nth-child(3) { animation-delay: 2.1s; }
.leb-orb::after { content: ''; position: absolute; inset: 25px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
@keyframes leb-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes leb { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .leb-orb span { animation: none; opacity: 0.4; } }
@media (max-width: 860px) { .fy-empty { grid-template-columns: 1fr; } .first-slot { min-height: 0; } .first-go { opacity: 1; transform: none; } }

/* ---------- Reflet qui suit la souris sur les cartes ---------- */
.has-cursor .pcard-media, .has-cursor .card, .has-cursor .feat-card, .has-cursor .pillar, .has-cursor .first-slot { --mx: 50%; --my: 50%; }
.has-cursor .card { background-image: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%); }
.has-cursor .pcard-media::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); pointer-events: none; opacity: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.16), transparent 55%); transition: opacity 0.35s; z-index: 2; }
.has-cursor .pcard:hover .pcard-media::after { opacity: 1; }

/* ---------- Page introuvable ---------- */
.notfound { min-height: 70dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; }
.notfound .nf-code { font-family: var(--display); font-size: clamp(110px, 22vw, 260px); font-weight: 700; letter-spacing: -0.07em; line-height: 0.8; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 15%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); max-width: 44ch; }
.notfound .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.req-empty { display: grid; gap: 10px; padding: 28px; border-radius: var(--r); border: 1px dashed var(--line-2); background: linear-gradient(160deg, var(--surface), transparent 75%); }
.req-empty > i { font-size: 28px; color: var(--accent-text); }
.req-empty b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.req-empty p { color: var(--muted); font-size: 15px; }

/* ---------- Inscription : contrôle en direct ---------- */
.live-wrap { position: relative; }
.live-wrap .input { width: 100%; padding-right: 48px; transition: border-color 0.25s, box-shadow 0.25s; }
.live-ic { position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; transform: scale(0.4); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.2s, background-color 0.2s; pointer-events: none; }
.live-ic::after { content: ''; position: absolute; inset: 0; background: var(--bg); -webkit-mask: center / 12px no-repeat; mask: center / 12px no-repeat; }
.field.ok .input { border-color: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 14%, transparent); }
.field.ok .live-ic { opacity: 1; transform: none; background: var(--good); }
.field.ok .live-ic::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.field.bad .input, .field.err .live-wrap .input { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.field.bad .live-ic { opacity: 1; transform: none; background: var(--danger); }
.field.bad .live-ic::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.field[data-f='password'] .live-ic { display: none; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); font-size: 19px; transition: color 0.2s, background-color 0.2s; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-meter span { height: 4px; border-radius: 4px; background: var(--line); transition: background-color 0.3s; }
.pw-meter[data-s='1'] span:nth-child(-n + 1) { background: var(--danger); }
.pw-meter[data-s='2'] span:nth-child(-n + 2) { background: #f2a33a; }
.pw-meter[data-s='3'] span:nth-child(-n + 3) { background: var(--good); }
.pw-meter[data-s='4'] span { background: var(--good); }
.pw-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.pw-rules li { display: flex; align-items: center; gap: 7px; color: var(--muted); transition: color 0.2s; }
.pw-rules li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background-color 0.2s, transform 0.3s var(--ease); }
.pw-rules li.on { color: var(--good); }
.pw-rules li.on::before { background: var(--good); transform: scale(1.25); }
.field.bad .pw-rules li[data-r='len']:not(.on) { color: var(--danger); }
.field.bad .pw-rules li[data-r='len']:not(.on)::before { background: var(--danger); }

/* ---------- Code reçu par e-mail ---------- */
.verify-modal .muted { line-height: 1.55; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 10px; margin: 8px 0 2px; }
.otp input { height: 62px; text-align: center; font-family: var(--mono); font-size: 26px; font-weight: 600; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); transform: translateY(-2px); }
.otp.bad input { border-color: var(--danger); animation: otp-shake 0.4s; }
@keyframes otp-shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.otp-msg { min-height: 20px; font-size: 14px; color: var(--muted); }
.otp-msg.ok { color: var(--good); }
.otp-msg.bad { color: var(--danger); }
@media (max-width: 480px) { .otp { gap: 6px; } .otp input { height: 52px; font-size: 22px; } }

/* ---------- Bandeau de cookies ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; margin-inline: auto; max-width: 760px; display: flex; align-items: center; gap: 18px 24px; padding: 18px 20px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45); transform: translateY(calc(100% + 30px)); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s; }
.cookie-bar.in { transform: none; opacity: 1; }
.cookie-txt { display: grid; gap: 4px; min-width: 0; }
.cookie-txt b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.cookie-txt b i { color: var(--accent-text); font-size: 18px; }
.cookie-txt p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.cookie-txt a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-width: 96px; justify-content: center; }
@media (max-width: 620px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-actions .btn { flex: 1; } }

/* ---------- Administration ---------- */
.adm-entry { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s, transform 0.4s var(--ease); }
.adm-entry > i:first-child { font-size: 24px; color: var(--accent-text); }
.adm-entry span { display: grid; flex: 1; }
.adm-entry small { color: var(--muted); }
.adm-entry:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Héros : annonce, garanties, décor ---------- */
.hero::before { content: ''; position: absolute; inset: 0 calc(var(--gutter) * -4); z-index: -1; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 60% at 65% 45%, #000 20%, transparent 75%); opacity: 0.55; }
.hero::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: min(62vw, 820px); aspect-ratio: 1; right: -8%; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%); filter: blur(20px); animation: hero-breathe 9s ease-in-out infinite alternate; }
@keyframes hero-breathe { to { transform: translateY(-46%) scale(1.08); opacity: 0.8; } }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); font-size: 13.5px; font-weight: 500; color: var(--text); transition: border-color 0.25s, transform 0.4s var(--ease); }
.hero-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-pill > i { color: var(--muted); transition: transform 0.3s var(--ease); }
.hero-pill:hover > i { transform: translateX(3px); color: var(--text); }
.hp-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.hp-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: hp-ping 2.4s var(--ease) infinite; }
@keyframes hp-ping { 0% { transform: scale(0.4); opacity: 0.9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--good); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .hero::after, .hp-dot::after { animation: none; } }

/* ---------- Aperçu produit en 3D ---------- */
.showcase { padding-block: clamp(40px, 8vw, 120px) clamp(60px, 9vw, 140px); }
.sc-head { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.sc-head .h-lg { text-wrap: balance; }
.sc-head .lede { text-wrap: pretty; }
.sc-stage { position: relative; perspective: 1600px; max-width: 1080px; margin-inline: auto; }
.sc-stage::before { content: ''; position: absolute; inset: 10% 8% -6%; z-index: -1; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); filter: blur(40px); }
.sc-frame { transform-origin: 50% 100%; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 50px 120px -40px rgba(0, 0, 0, 0.55), 0 20px 40px -20px rgba(0, 0, 0, 0.35); overflow: hidden; will-change: transform; }
.sc-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); }
.sc-bar > span:not(.sc-tag) { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.sc-url { flex: 1; max-width: 360px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--bg); font-size: 12.5px; color: var(--muted); }
.sc-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.sc-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; padding: 22px; }
.sc-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sc-cover { position: relative; aspect-ratio: 16 / 8; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(80% 90% at 30% 20%, #e8ff8a, #ff5c9a 40%, #6f8f12 100%); }
.sc-glyph { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: #11140a; color: #ff5c9a; font-size: 44px; box-shadow: 0 20px 40px -12px rgba(17, 20, 10, 0.6); }
.sc-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 45%, transparent 60%); transform: translateX(-100%); animation: sc-shine 5s ease-in-out infinite 1.5s; }
@keyframes sc-shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.sc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-title b { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; margin-right: 4px; }
.sc-pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.sc-pill.lime, .sc-btn.lime { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.sc-tagline { color: var(--muted); font-size: 15px; margin: -4px 0 0; }
.sc-actions { display: flex; gap: 8px; }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }
.sc-tabs { display: flex; gap: 18px; padding-top: 6px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sc-tabs span { padding-bottom: 10px; }
.sc-tabs .on { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.sc-lines { display: grid; gap: 9px; }
.sc-lines i { display: block; height: 9px; border-radius: 6px; background: var(--line); }
.sc-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sc-card { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 10px; }
.sc-k { font-size: 12.5px; color: var(--muted); }
.sc-spark { display: flex; align-items: flex-end; gap: 3px; height: 70px; }
.sc-spark i { flex: 1; height: var(--h); border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--text) 18%, transparent); transform-origin: bottom; animation: grow-y 1s var(--ease) both; }
.sc-spark i:nth-last-child(-n + 6) { background: var(--accent); }
@keyframes grow-y { from { transform: scaleY(0); } }
.sc-score { grid-template-columns: auto 1fr; align-items: center; }
.sc-score small { display: block; font-size: 12px; color: var(--faint); }
.sc-ring { width: 46px; height: 46px; }
.sc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.sc-ring .v { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 28; }
.sc-src { display: flex; gap: 3px; height: 10px; }
.sc-src i { width: var(--w); border-radius: 4px; background: var(--accent); }
.sc-src i:nth-child(2) { background: color-mix(in srgb, var(--text) 45%, transparent); }
.sc-src i:nth-child(3) { background: var(--line-2); }
.sc-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5); font-size: 14px; }
.sc-float > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 19px; }
.sc-float span { display: grid; }
.sc-float small { color: var(--muted); font-size: 12.5px; }
.sc-float.f1 { left: -4%; top: 22%; }
.sc-float.f2 { right: -5%; top: 8%; }
.sc-float.f3 { right: 6%; bottom: -6%; }
@media (max-width: 900px) {
  .sc-body { grid-template-columns: 1fr; }
  .sc-side { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-float.f1 { left: 2%; top: -6%; }
  .sc-float.f2 { display: none; }
}
@media (max-width: 600px) {
  .sc-side { grid-template-columns: 1fr; }
  .sc-side .sc-card:nth-child(n + 2) { display: none; }
  .sc-float { display: none !important; }
  .hero::after { width: 120vw; right: -40%; top: 70%; }
}
@media (prefers-reduced-motion: reduce) { .sc-shine { animation: none; } }

.hero { isolation: isolate; }
.showcase { position: relative; isolation: isolate; }

.adm-lock { min-height: 70dvh; display: grid; place-items: center; }
.adm-lock-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 32px; text-align: left; }
.adm-lock-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-size: 26px; margin-bottom: 4px; }
.adm-lock-card code { font-family: var(--mono); font-size: 12.5px; }

/* ---------- Repère de survol, posé sur l'élément (aucun suivi de souris) ---------- */
.has-cursor [data-cursor] { position: relative; }
.has-cursor [data-cursor]::after { content: attr(data-cursor); position: absolute; z-index: 4; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; opacity: 0; transform: translateY(6px) scale(0.92); transition: opacity 0.2s, transform 0.35s var(--ease); pointer-events: none; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4); }
.has-cursor [data-cursor]:hover::after, .has-cursor [data-cursor]:focus-visible::after { opacity: 1; transform: none; }
.has-cursor .pcard[data-cursor]::after { right: 14px; bottom: auto; top: 14px; }
@media (prefers-reduced-motion: reduce) { .has-cursor [data-cursor]::after { transition: opacity 0.2s; transform: none; } }

/* ---------- Identité légale d'une entreprise ---------- */
.legal-id { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); width: fit-content; max-width: 100%; }
.legal-id > i { font-size: 22px; color: var(--good); flex: none; }
.legal-id b { display: block; font-size: 14px; }
.legal-id span { font-size: 13px; color: var(--muted); }
.legal-id .mono { font-size: 12.5px; }
.opt { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Page des fonctionnalités ---------- */
.feat-hero { display: grid; justify-items: center; text-align: center; gap: 20px; max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); }
.feat-hero .h-lg { text-wrap: balance; }
.feat-hero .lede { text-wrap: pretty; }
.feat-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.feat-counts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14px; color: var(--muted); }
.feat-counts b { color: var(--text); font-size: 17px; margin-right: 4px; }
.feat-nav { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px; margin: 0 auto clamp(32px, 5vw, 56px); width: fit-content; max-width: 100%; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.feat-nav::-webkit-scrollbar { display: none; }
.feat-nav a { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.feat-nav a:hover { color: var(--text); }
.feat-nav a.on { background: var(--text); color: var(--bg); }
.feat-group { scroll-margin-top: calc(var(--nav-h) + 80px); padding-bottom: clamp(48px, 7vw, 90px); }
.feat-group-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.feat-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font-size: 26px; }
.feat-group-head .lede { margin-top: 8px; font-size: 16px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px; padding-bottom: 54px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color 0.25s, transform 0.45s var(--ease), background-color 0.25s; }
.feat-card::before { content: ''; position: absolute; inset: 0; opacity: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%); transition: opacity 0.3s; pointer-events: none; }
.feat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feat-card:hover::before { opacity: 1; }
.feat-card-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 20px; color: var(--accent-text); transition: background-color 0.25s, color 0.25s; }
.feat-card:hover .feat-card-ic { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.feat-card b { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.feat-card p { position: relative; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.feat-go { position: absolute; left: 24px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: 15px; transition: transform 0.4s var(--ease), background-color 0.25s, color 0.25s; }
.feat-card:hover .feat-go { background: var(--text); border-color: transparent; color: var(--bg); transform: translateX(4px); }
.feat-faq { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 6vw, 70px); max-width: 820px; }
.feat-faq .h-md { margin-bottom: 20px; }
.faq-list { display: grid; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font-family: var(--display); font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 22px; height: 22px; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; inset: 50% 0 auto 0; height: 2px; border-radius: 2px; background: var(--muted); transition: transform 0.35s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus::after { transform: rotate(0deg); }
.faq p { padding-bottom: 22px; margin: 0; color: var(--muted); line-height: 1.7; max-width: 70ch; }
.feat-final { grid-template-columns: 1fr auto; }
.feat-final h2 { font-size: clamp(34px, 5.4vw, 76px); }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat-group-head { gap: 14px; }
  .feat-ic { width: 44px; height: 44px; font-size: 22px; }
  .feat-nav { border-radius: 16px; justify-content: flex-start; width: 100%; }
}

/* ---------- Barre du bas (téléphone) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed; z-index: 110; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 2px; padding: 6px;
    border-radius: 22px; border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.45);
    transition: translate 0.45s var(--ease);
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 16px; color: var(--muted); font-size: 10.5px; font-weight: 500; transition: color 0.2s, background-color 0.2s; -webkit-tap-highlight-color: transparent; }
  .tabbar a i { font-size: 21px; }
  .tabbar a.on { color: var(--text); background: var(--surface-2); }
  .tabbar a:active { transform: scale(0.94); }
  .tabbar .tab-pub i { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 18px; }
  .tabbar .tab-pub.on i { background: var(--text); color: var(--bg); }
  /* Lab IA mis en avant dans la barre du bas : pastille qui brille et étincelle */
  .tabbar .tab-lab { position: relative; color: var(--text); font-weight: 700; }
  .tabbar .tab-lab i { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 10px; color: #11140a; font-size: 16px; background: linear-gradient(135deg, #9b7bff, #ff5c9a 50%, #ffa24c); animation: tabLabGlow 2.6s ease-in-out infinite; }
  .tabbar .tab-lab::after { content: '✦'; position: absolute; top: 2px; right: calc(50% - 24px); font-size: 11px; color: #ff5c9a; text-shadow: 0 0 6px #ff5c9a; animation: tabLabSpark 2.6s ease-in-out infinite; }
  @keyframes tabLabGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,92,154, 0.5); } 50% { box-shadow: 0 0 0 4px rgba(255,92,154, 0.18), 0 0 16px 2px rgba(255,92,154, 0.6); } }
  @keyframes tabLabSpark { 0%, 100% { opacity: 0.3; transform: scale(0.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.2) rotate(90deg); } }
  body { padding-bottom: 86px; }
  .cookie-bar { bottom: calc(86px + env(safe-area-inset-bottom)); }
  /* l'en-tête se concentre sur l'essentiel : le reste est dans le menu */
  .nav .phone-btn, .nav .acc-btn, .nav-actions > a[href="#/liste"] { display: none; }
  .nav .btn-accent.btn-sm { display: none; }
  .nav { padding-right: 10px; }
  .nav-links { top: 60px; max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 420px) { .tabbar a span { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .tabbar, .tabbar a { transition: none; } }

/* ---------- Confort tactile (téléphone et tablette) ---------- */
@media (hover: none) and (pointer: coarse) {
  /* cibles d'au moins 44 px : la règle d'accessibilité pour le doigt */
  .footer-cols div a, .footer-legal a, .legal-nav a, .adm-list a { min-height: 44px; display: flex; align-items: center; }
  .chip { height: 44px; padding: 0 18px; }
  .icon-btn { width: 44px; height: 44px; }
  a, button, summary, label, .chip { -webkit-tap-highlight-color: transparent; }
  /* retour tactile immédiat : l'élément s'enfonce légèrement */
  .btn:active, .chip:active, .pcard:active, .feat-card:active, .first-slot:active { transform: scale(0.97); }
  /* les survols ne collent pas après un appui */
  .feat-card:hover, .pcard:hover, .first-slot:hover { transform: none; }
  /* défilement horizontal plus naturel */
  .chips, .feat-nav, .legal-nav, .side { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
}
/* les champs ne doivent jamais faire zoomer la page sur iPhone : 16 px minimum */
@media (max-width: 760px) {
  .input, .textarea, .select, input, textarea, select { font-size: 16px; }
  .otp input { font-size: 22px; }
  .h-lg { font-size: clamp(32px, 9vw, 48px); }
  .page-head { margin-bottom: 32px; }
  .section { padding-block: 40px; }
}

/* ---------- Bandeau de page : même présentation partout ---------- */
.page-head { gap: 16px; }
.page-head > .label { display: inline-flex; align-items: center; gap: 8px; width: fit-content; }
.page-head > .label::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.page-head h1 { text-wrap: balance; }
.page-head .lede { text-wrap: pretty; }
.page > .page-head:first-child { padding-top: 8px; }

/* ---------- Décor dessiné (remplace l'image d'un service extérieur) ---------- */
.tile-art { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 110% at 15% 10%, #2b3a12 0%, #11140a 55%, #0a0b07 100%); }
.tile-art i { position: absolute; border-radius: 50%; background: var(--accent); opacity: 0.9; filter: blur(0.3px); transition: transform 1.1s var(--ease); }
.tile-art i:nth-child(1) { width: 46%; aspect-ratio: 1; right: -12%; bottom: -22%; opacity: 0.22; filter: blur(16px); }
.tile-art i:nth-child(2) { width: 14px; height: 14px; left: 18%; top: 26%; }
.tile-art i:nth-child(3) { width: 9px; height: 9px; left: 42%; top: 58%; opacity: 0.55; }
.tile-art i:nth-child(4) { width: 5px; height: 5px; left: 68%; top: 34%; opacity: 0.4; }
.tile-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,92,154, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,92,154, 0.09) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: radial-gradient(70% 70% at 30% 25%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 30% 25%, #000, transparent 75%); }
.t-photo:hover .tile-art i:nth-child(2) { transform: translate(14px, -10px); }
.t-photo:hover .tile-art i:nth-child(3) { transform: translate(-12px, 8px); }
.t-photo:hover .tile-art i:nth-child(4) { transform: translate(8px, 12px); }

/* le titre d'une carte est un vrai lien : il couvre la carte sans gêner les boutons */
.pc-link { color: inherit; }
.pc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.pcard .save, .pcard .vote, .pcard .pc-chip { position: relative; z-index: 2; }
.pcard:focus-within .cover { outline: 2px solid var(--accent); outline-offset: 3px; }
.pc-link:focus-visible { outline: none; }

/* ---------- Vitrine des projets sur l'accueil ---------- */
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; margin-bottom: 14px; }
.shelf-head .label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.shelf-head .h-lg { font-size: clamp(30px, 4vw, 54px); }
.shelf-tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.shelf-tabs button { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.shelf-tabs button:hover { color: var(--text); }
.shelf-tabs button[aria-selected='true'] { background: var(--text); color: var(--bg); }
.shelf-tabs button i { font-size: 16px; }
.shelf-note { font-size: 14.5px; max-width: 72ch; margin-bottom: 22px; line-height: 1.55; }
.shelf-note a { color: var(--text); }
.shelf-grid[hidden] { display: none; }
.shelf-more { margin-top: 24px; }
@media (max-width: 760px) {
  .shelf-head { align-items: stretch; }
  .shelf-tabs { overflow-x: auto; scrollbar-width: none; justify-content: flex-start; border-radius: 16px; }
  .shelf-tabs::-webkit-scrollbar { display: none; }
  .shelf-tabs button { flex: none; }
}

/* ---------- Décor du héros tant que la 3D n'est pas là (ou pas souhaitable) ---------- */
.hero-stage { position: relative; }
.hero-stage::before { content: ''; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent 72%); filter: blur(10px); opacity: 1; transition: opacity 0.8s var(--ease); }
.hero-stage::after { content: ''; position: absolute; left: 50%; top: 50%; width: min(42%, 220px); aspect-ratio: 1; translate: -50% -50%; border-radius: 30%; background: conic-gradient(from 210deg, var(--accent), #e9e7df, var(--accent)); -webkit-mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 60%); mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 60%); opacity: 0.85; animation: hero-spin 18s linear infinite; transition: opacity 0.8s var(--ease); }
.hero-stage.ready::before, .hero-stage.ready::after { opacity: 0; }
.hero-stage canvas { position: relative; z-index: 1; }
@keyframes hero-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-stage::after { animation: none; } }

/* ---------- Connexion avec Google ---------- */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--text); transition: border-color 0.2s, background-color 0.2s, transform 0.3s var(--ease); }
.btn-google:hover { border-color: var(--text); background: var(--surface-2); }
.btn-google:active { transform: scale(0.985); }
.btn-google[disabled] { opacity: 0.6; }
.btn-google svg { flex: none; }
.btn-google.pulse { animation: g-pulse 1.1s var(--ease) 2; border-color: var(--accent); }
@keyframes g-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent); } }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; font-size: 13px; color: var(--faint); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (prefers-reduced-motion: reduce) { .btn-google.pulse { animation: none; } }

/* Fonctionnalités : trois étapes pour démarrer, sous le titre */
.feat-steps { margin: 40px 0 8px; }
.feat-steps-title { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.feat-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: st; }
.feat-steps a { position: relative; display: grid; gap: 6px; padding: 22px 22px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .25s, transform .45s var(--ease); }
.feat-steps a:hover { border-color: var(--text); transform: translateY(-2px); }
.feat-step-n { position: absolute; right: 18px; top: 16px; font-size: 13px; color: var(--muted); }
.feat-step-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent, #ff5c9a); color: #11140a; font-size: 20px; margin-bottom: 6px; }
.feat-steps b { font-size: 17px; }
.feat-steps small { color: var(--muted); line-height: 1.5; }
/* un menu déroulant ne dépasse jamais de son conteneur, même avec un intitulé très long */
.select, select.input { max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* menu « Tout » : le Lab IA en tête, en grand */
.mega-lab { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; color: #11140a; background: linear-gradient(120deg, #9b7bff, #ff5c9a 55%, #ffa24c); box-shadow: 0 10px 30px -12px rgba(255,92,154, 0.7); position: relative; overflow: hidden; }
.mega-lab::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 160% 0; animation: navLabShine 2.6s ease-in-out infinite; pointer-events: none; }
.mega-lab .ml-ic { width: 44px; height: 44px; border-radius: 14px; background: #11140a; color: #ff5c9a; display: grid; place-items: center; font-size: 22px; flex: none; }
.mega-lab .ml-t { flex: 1; display: grid; gap: 2px; }
.mega-lab .ml-t b { font-size: 17px; } .mega-lab .ml-t em { font-style: normal; }
.mega-lab .ml-t small { font-size: 13px; opacity: 0.8; }
.mega-lab:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .mega-lab::before, .tabbar .tab-lab i, .tabbar .tab-lab::after { animation: none; } }

/* case d'accord (non cochée par défaut) sous le formulaire d'inscription */
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--muted); cursor: pointer; margin: 4px 0 10px; }
.check-line input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }

/* choix après l'inscription */
.onb h2 { margin: 0 0 4px; }
.onb-list { display: grid; gap: 8px; margin: 16px 0 14px; }
.onb-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.onb-opt:hover, .onb-opt:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); transform: translateY(-1px); }
.onb-opt > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.onb-opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.onb-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); font-size: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .onb-opt { transition: none; } .onb-opt:hover { transform: none; } }

/* Actualité (Communauté) */
.nw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nw-item { position: relative; display: grid; gap: 6px; padding: 16px 44px 16px 18px; color: var(--text); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.nw-item:hover { border-color: var(--accent); }
.nw-item:active { transform: scale(0.99); }
.nw-meta { font-size: 12.5px; color: var(--muted); }
.nw-meta b { color: var(--text); font-weight: 600; }
.nw-title { font-size: 16px; line-height: 1.4; font-weight: 600; }
.nw-go { position: absolute; right: 16px; top: 18px; color: var(--muted); font-size: 18px; }
@media (max-width: 760px) {
  .tabbar a { padding-left: 0; padding-right: 0; }
  .tabbar a span { font-size: 9.5px; letter-spacing: -0.2px; white-space: nowrap; max-width: 100%; }
}

/* Offre payante visible : accueil et après publication */
.hero-paid { display: inline-flex; align-items: center; gap: .6rem; margin-top: .9rem; padding: .65rem .95rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent, #7c5cff) 45%, transparent); background: color-mix(in srgb, var(--accent, #7c5cff) 10%, transparent); color: inherit; text-decoration: none; max-width: 100%; }
.hero-paid span { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.hero-paid small { opacity: .75; }
.hero-paid:hover { background: color-mix(in srgb, var(--accent, #7c5cff) 18%, transparent); }
.success-paid { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; padding: .9rem 1rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent, #7c5cff) 45%, transparent); background: color-mix(in srgb, var(--accent, #7c5cff) 10%, transparent); color: inherit; text-decoration: none; text-align: left; }
.success-paid > span:not(.btn) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.success-paid small { opacity: .75; }
@media (max-width: 520px) { .success-paid { flex-wrap: wrap; } .success-paid .btn { width: 100%; justify-content: center; } }
