/* Page d'accueil (refonte 2026-11) : design system autonome.
   Les autres pages gardent assets/style.css jusqu'à leur passage au nouveau style. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0c111a;
  --surface: #151d29;
  --surface-2: #111925;
  --border: #293648;
  --text: #f2f4f7;
  --muted: #8b95a5;
  --action: #ffd21f;
  --action-ink: #1a1300;
  --accent: #1e9bff;
  --safe: #3ddc84;
  --radius: 14px;
  --mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.6;
  background:
    radial-gradient(ellipse 75% 34% at 82% 8%, rgba(255, 210, 31, .09), transparent 72%),
    radial-gradient(ellipse 70% 40% at 8% 30%, rgba(30, 155, 255, .09), transparent 72%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
section[id] { scroll-margin-top: 72px; }

/* Accessibilité */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--action); color: var(--action-ink); font-weight: 600;
  padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 6px; }

/* Navigation */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 13, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.z { color: var(--action); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav a.link { color: var(--muted); font-size: .94rem; transition: color .2s; }
.nav a.link:hover { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: .78rem; font-weight: 600; }
.lang a, .lang span { padding: 4px 9px; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang [aria-current] { color: var(--text); background: var(--surface); }
@media (max-width: 820px) { .nav a.link { display: none; } .nav nav { gap: 14px; } }
@media (max-width: 420px) {
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .nav nav { gap: 10px; }
  .lang a, .lang span { padding: 4px 7px; }
  .nav .btn-small { padding: 7px 11px; font-size: .85rem; }
}

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--action); color: var(--action-ink); }
.btn-primary:hover { background: #ffdc4d; transform: translateY(-1px); }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: #3a4558; }
.btn-small { padding: 8px 14px; font-size: .9rem; }
.btn svg.i { width: 18px; height: 18px; }

/* Typographie des sections */
.eyebrow { color: var(--muted); font-size: .85rem; font-weight: 500; letter-spacing: .02em; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.3; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin-top: 16px; }
section { padding: 64px 0; }
.head { margin-bottom: 40px; }
.head.center { text-align: center; }
.head.center h2, .head.center .lede { margin-inline: auto; }

/* Hero */
.hero { padding: 64px 0 48px; display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); margin: 18px 0 20px; max-width: 13ch; }
.hero .lede { margin-top: 0; font-size: 1.18rem; }
.launch-logo {
  width: 300px; margin-top: 20px; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.microcopy { margin-top: 16px; color: var(--muted); font-size: .88rem; }
.byline { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.byline a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.shot-hero { perspective: 1600px; }
.frame {
  position: relative; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02);
}
.shot-hero .frame { transform: rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
/* Les groupes de doublons apparaissent un à un, comme pendant une vraie analyse :
   un cache de la couleur du tableau (#0c111b) se retire ligne par ligne (9 lignes). */
.frame .scan {
  position: absolute; left: 2.3%; width: 94.2%; top: 33%; height: 25.6%;
  background: #0c111b; transform-origin: bottom; transform: scaleY(0);
  animation: scan 1.8s steps(9, end) .5s both;
}
@keyframes scan { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .shot-hero .frame { transform: none; }
}

/* Barre de preuves */
.proof {
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(30, 155, 255, .06), rgba(255, 210, 31, .06), rgba(30, 155, 255, .06));
}
.proof ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
  padding: 22px 0; color: var(--muted); font-size: .92rem;
}
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg.i { width: 18px; height: 18px; color: var(--safe); }

/* Cartes (problème, bénéfices, confiance) */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px;
}
.card svg.i { color: var(--muted); margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.trust .card svg.i { color: var(--safe); }
.trust .cards { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* Avant / après */
.ba { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.ba > div { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.ba .after { background: var(--surface); }
.ba h3 { font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin-bottom: 18px; }
.ba ul { list-style: none; display: grid; gap: 14px; }
.ba li { display: flex; gap: 12px; align-items: flex-start; }
.ba li svg.i { width: 20px; height: 20px; margin-top: 3px; }
.ba .before li { color: var(--muted); }
.ba .before li span {
  text-decoration: line-through; text-decoration-thickness: 1px;
  text-decoration-color: transparent; transition: text-decoration-color .5s ease;
}
.ba .before.seen li span { text-decoration-color: currentColor; }
.ba .before li:nth-child(2) span { transition-delay: .25s; }
.ba .before li:nth-child(3) span { transition-delay: .5s; }
.ba .before li:nth-child(4) span { transition-delay: .75s; }
.ba .after li svg.i { color: var(--safe); }

/* Comment ça marche */
.steps { list-style: none; display: grid; gap: 48px; }
.step { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.step:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.step:nth-child(even) .step-text { order: 2; }
.step-num { font-family: var(--mono); color: var(--accent); font-size: .95rem; }
.step h3 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); letter-spacing: -.02em; margin: 10px 0 12px; }
.step p { color: var(--muted); }
.tag {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-size: .75rem; font-weight: 500; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.tag.paid { border-color: rgba(255, 210, 31, .4); color: var(--action); }
.step .frame { max-width: 640px; }
.step .frame.narrow { max-width: 440px; }
.more { margin-top: 40px; text-align: center; }
.more a { color: var(--accent); }
.more a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) {
  .steps { gap: 56px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
}

/* Confiance */
.founder {
  margin-top: 40px; display: grid; gap: 20px; align-items: start;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.founder h3 { margin-bottom: 16px; }
.founder-copy { display: grid; gap: 14px; color: var(--muted); font-size: .96rem; }
.founder cite { display: block; margin-top: 12px; color: var(--muted); font-style: normal; font-size: .92rem; }
.founder details { margin-top: 16px; }
.founder summary { cursor: pointer; color: var(--accent); font-size: .92rem; list-style: none; }
.founder summary::-webkit-details-marker { display: none; }
.founder summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.founder details p { margin-top: 12px; color: var(--muted); font-size: .96rem; }

/* Prix */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); max-width: 880px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.plan.paid { background: linear-gradient(145deg, rgba(255, 210, 31, .08), var(--surface) 58%); }
.plan h3 { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price { margin: 10px 0 4px; font-size: 2.6rem; letter-spacing: -.03em; }
.price small { font-family: "Inter", sans-serif; font-size: .95rem; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { list-style: none; display: grid; gap: 12px; margin: 22px 0 28px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .97rem; }
.plan li svg.i { width: 18px; height: 18px; margin-top: 4px; color: var(--safe); }
.plan li.first { color: var(--text); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  display: flex; justify-content: space-between; gap: 24px; font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* Appel final et inscription */
.final {
  text-align: center; border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255, 210, 31, .09), transparent 72%);
}
.final h2 { margin-inline: auto; max-width: 20ch; }
.final .lede { margin-inline: auto; }
.final .cta { justify-content: center; }
.signup { margin: 32px auto 0; max-width: 560px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup .btn { flex: 1 0 auto; }
.signup input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem;
}
.signup input[type="email"]::placeholder { color: #5f6a7b; }
.signup input[type="email"]:focus { outline: none; border-color: var(--accent); }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .note { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.signup .note a { text-decoration: underline; text-underline-offset: 3px; }
.signup [data-signup-state] { margin-top: 14px; font-size: .95rem; }
.signup [data-signup-state="done"] { color: var(--safe); }
.signup [data-signup-state="error"] { color: #ff8a8a; }

/* Pied de page */
footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: grid; gap: 10px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
footer a:hover { color: var(--text); }

/* Apparition au défilement (activée par site.js, sans effet si le script ne tourne pas) */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

/* Mobile : page courte (captures des étapes masquées, cartes compactes) */
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .head { margin-bottom: 24px; }
  h2 { font-size: 1.7rem; }
  .hero { padding: 28px 0 40px; gap: 28px; }
  .hero h1 { margin-top: 0; }
  .launch-logo { width: 180px; }
  .cta { margin-top: 24px; }
  .proof ul { gap: 8px 20px; padding: 16px 0; font-size: .85rem; }
  .steps { gap: 24px; }
  .step .frame { display: none; }
  .step h3 { margin: 4px 0 6px; font-size: 1.25rem; }
  .more { margin-top: 28px; }
  .cards, .trust .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 16px; }
  .card svg.i { margin-bottom: 10px; }
  .card h3 { font-size: .95rem; margin-bottom: 4px; }
  .card p { font-size: .88rem; }
  .ba { gap: 10px; }
  .ba > div, .founder, .plan { padding: 20px 18px; }
  .ba ul { gap: 10px; }
  .founder { margin-top: 24px; gap: 12px; }
  .plans { gap: 10px; }
  .price { font-size: 2.1rem; }
  .plan ul { margin: 14px 0 20px; gap: 8px; }
  .faq summary { padding: 16px 0; font-size: .98rem; }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .frame .scan { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover { transform: none; }
}
