/* ============================================================
   LOOP — L'IT au juste prix. Sans mystère.
   "Tract de nuit" — dark, typographic, provocative.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face{
  font-family:"Space Grotesk";
  src:url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"Inter";
  src:url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"JetBrains Mono";
  src:url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"JetBrains Mono";
  src:url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}

/* ---------- Tokens ---------- */
:root{
  --ink:#0A0A0F;          /* fond principal */
  --ink-2:#14141C;        /* fond secondaire / cartes */
  --paper:#F5F3EE;        /* texte */
  --lime:#C6FF3F;         /* action / espoir */
  --red:#FF3B30;          /* colère / constat */
  --steel:#8A8F98;        /* neutre / méta */
  --line:rgba(245,243,238,.12);
  --line-strong:rgba(245,243,238,.22);

  --sans:"Inter",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --display:"Space Grotesk","Inter",system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --wrap:1160px;
  --pad:clamp(1.25rem,5vw,3rem);
  --sp-section:clamp(5rem,12vw,9rem);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--ink);color:var(--paper);
  font-family:var(--sans);font-size:clamp(1rem,1.05rem,1.125rem);
  line-height:1.6;font-weight:400;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-family:var(--display);font-weight:700;letter-spacing:-.02em;line-height:1.02}
p{margin:0}
.mono{font-family:var(--mono);font-weight:500}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad)}

.skip-link{position:absolute;left:-999px;top:0;z-index:200;background:var(--lime);color:var(--ink);
  padding:.6rem 1rem;font-family:var(--mono);font-weight:700}
.skip-link:focus{left:1rem;top:1rem}

:focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:2px}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(10,10,15,.72);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;height:64px}
.logo{font-family:var(--display);font-weight:700;font-size:1.5rem;letter-spacing:-.03em;color:var(--paper)}
.logo-dot{color:var(--lime)}
.nav{display:none;gap:1.6rem;font-size:.9rem;color:var(--steel)}
.nav a{position:relative;transition:color .18s ease}
.nav a:hover{color:var(--paper)}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:-4px;height:2px;background:var(--lime);transition:right .22s ease}
.nav a:hover::after{right:0}
@media(min-width:920px){.nav{display:flex}}
.lang-toggle{display:flex;align-items:center;gap:.4rem;font-family:var(--mono);font-size:.82rem;color:var(--steel)}
.lang-toggle button{
  background:none;border:0;color:var(--steel);font:inherit;cursor:pointer;padding:.2rem .1rem;letter-spacing:.05em;
  transition:color .18s ease;
}
.lang-toggle button:hover{color:var(--paper)}
.lang-toggle button.is-active{color:var(--lime)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  font-family:var(--mono);font-weight:700;font-size:.92rem;letter-spacing:.01em;
  padding:.95rem 1.4rem;border:1px solid transparent;cursor:pointer;
  transition:background .01s linear,color .01s linear,border-color .18s ease,transform .18s ease;
  will-change:transform;
}
.btn-lime{background:var(--lime);color:var(--ink);border-color:var(--lime)}
.btn-lime:hover{background:#d7ff6b;transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--paper);border-color:var(--line-strong)}
.btn-ghost:hover{border-color:var(--lime);color:var(--lime)}
.btn-block{width:100%}
/* ink button — used on the lime-inverted Session Live block */
.btn-ink{background:var(--ink);color:var(--lime);border-color:var(--ink)}
.btn-ink:hover{background:#000;color:var(--lime);transform:translateY(-2px)}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:calc(100svh - 64px);display:flex;align-items:center;
  padding-block:clamp(3rem,9vh,6rem)}
.hero .wrap{width:100%}
.hero-inner{max-width:900px}
.eyebrow{color:var(--steel);font-size:.85rem;letter-spacing:.02em;margin-bottom:1.4rem}
.hero-title{
  font-size:clamp(2.1rem,5.1vw,4.1rem);line-height:1.05;letter-spacing:-.03em;max-width:19ch;
  text-wrap:balance;
}
.hero-title .strike{white-space:nowrap}
.hero-sub{margin-top:1.8rem;max-width:46ch;color:#d9d6cf;font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.55}
.cta-row{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2.4rem}
.scroll-hint{position:absolute;left:var(--pad);bottom:1.6rem;color:var(--steel);font-size:.78rem;letter-spacing:.15em}

/* ---------- Signature: strike-through ---------- */
.strike{position:relative;display:inline;color:var(--paper)}
.strike::after{
  content:"";position:absolute;left:-.04em;right:-.04em;top:52%;height:.11em;
  background:var(--red);transform:scaleX(1);transform-origin:left center;
}
/* animation gated on .anim — without JS the strike is simply drawn */
.anim .strike::after{transform:scaleX(0)}
.anim .strike.is-drawn::after{transform:scaleX(1);transition:transform .5s cubic-bezier(.7,0,.3,1)}

/* ---------- Signature: lime highlighter ---------- */
mark{
  background:linear-gradient(transparent 62%,rgba(198,255,63,.32) 0);
  color:inherit;padding:0 .04em;
}

/* ---------- Section chrome ---------- */
section{position:relative;padding-block:var(--sp-section)}
.section-tag{color:var(--lime);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;margin-bottom:1.4rem}
.section-h{font-size:clamp(1.9rem,4.4vw,3.2rem);letter-spacing:-.025em;max-width:18ch;text-wrap:balance}
.section-lede{margin-top:1rem;max-width:52ch;color:var(--steel);font-size:1.05rem}

/* ---------- Manifeste ---------- */
.manifeste{background:var(--ink);border-block:1px solid var(--line)}
.manifeste-lines{margin-top:2.5rem;display:flex;flex-direction:column;gap:.35em}
.m-line{
  font-family:var(--display);font-weight:700;
  font-size:clamp(1.6rem,4.6vw,3.4rem);line-height:1.06;letter-spacing:-.025em;
  color:var(--paper);max-width:24ch;text-wrap:balance;
}
.m-line--red{color:var(--red)}
.anim .m-line[data-reveal]{opacity:0;transform:translateY(24px)}
.m-line.is-in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}

/* ---------- La rente en chiffres ---------- */
.chiffres{background:var(--ink-2)}
.chiffres-grid{margin-top:3rem;display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
@media(min-width:800px){.chiffres-grid{grid-template-columns:repeat(3,1fr)}}
.chiffre-card{background:var(--ink);padding:clamp(1.6rem,3vw,2.4rem)}
.chiffre-label{color:var(--steel);font-size:.82rem;letter-spacing:.02em;margin-bottom:1.6rem}
.chiffre-old{display:flex;flex-direction:column;gap:.3rem;margin-bottom:1.4rem}
.chiffre-old .strike{font-size:clamp(1.5rem,3vw,2rem);font-weight:700;color:var(--paper)}
.chiffre-old .strike .mono{font-weight:700}
.chiffre-old-note{color:var(--steel);font-size:.8rem}
.chiffre-new{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem;font-size:1.05rem}
.chiffre-new .arrow{color:var(--lime);font-weight:700}
.chiffre-new strong{color:var(--lime);font-size:clamp(1.4rem,2.8vw,1.9rem);font-weight:700}
.chiffre-new-note{color:var(--steel);font-size:.82rem}
.chiffres-foot{margin-top:2.4rem;color:var(--paper);font-size:.95rem;max-width:60ch;
  border-left:2px solid var(--lime);padding-left:1rem}

/* ---------- Services ---------- */
.services{background:var(--ink)}
.services-grid{margin-top:3rem;display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
@media(min-width:640px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.services-grid{grid-template-columns:repeat(3,1fr)}}
.service-card{background:var(--ink-2);padding:clamp(1.6rem,3vw,2.2rem);
  transition:background .2s ease,transform .2s ease}
.service-card:hover{background:#191922}
.service-title{font-size:1.4rem;margin-bottom:1rem;letter-spacing:-.02em}
.service-myth{color:var(--steel);font-size:.98rem;margin-bottom:.9rem}
.service-myth .strike{color:var(--steel)}
.service-real{color:#e7e4dd;font-size:1rem;line-height:1.55}

/* ---------- Nos règles ---------- */
.regles{background:var(--ink-2)}
.regles-list{margin:3rem 0 0;padding:0;list-style:none;display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
@media(min-width:760px){.regles-list{grid-template-columns:repeat(2,1fr)}}
.regle{background:var(--ink);display:flex;gap:1.2rem;padding:clamp(1.4rem,2.6vw,2rem)}
.regle-num{color:var(--lime);font-size:.95rem;font-weight:700;padding-top:.15rem;flex:none}
.regle strong{color:var(--paper);font-weight:700;font-family:var(--display);letter-spacing:-.01em}
.regle p{color:var(--steel);font-size:.98rem;line-height:1.55}
.regle p strong{display:inline}

/* ---------- Session Live — inverted lime block (standout) ---------- */
.live{background:var(--lime);color:var(--ink);overflow:hidden}
.live::before{content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(10,10,15,.06), transparent 60%),
    radial-gradient(100% 80% at 0% 100%, rgba(10,10,15,.05), transparent 55%);
  pointer-events:none}
.live-inner{position:relative;max-width:840px}
.live-kicker{color:var(--ink);font-size:.82rem;letter-spacing:.22em;text-transform:uppercase;
  font-weight:700;margin-bottom:1.4rem;display:inline-flex;align-items:center;gap:.6rem}
.live-kicker::before{content:"";width:26px;height:2px;background:var(--ink)}
.live-h{color:var(--ink);font-size:clamp(2rem,4.8vw,3.4rem);letter-spacing:-.025em;max-width:16ch}
.live-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.5rem 1rem;margin-top:2.2rem}
.live-price-num{font-weight:700;color:var(--ink);
  font-size:clamp(3.4rem,11vw,7rem);line-height:.9;letter-spacing:-.04em}
.live-price-unit{font-weight:500;color:var(--ink);font-size:clamp(1.1rem,2.4vw,1.7rem)}
.live-price-sub{margin-top:.9rem;color:rgba(10,10,15,.72);font-size:.92rem;letter-spacing:.01em}
.live-body{margin-top:2rem;max-width:56ch;color:rgba(10,10,15,.9);font-size:1.08rem;line-height:1.6;font-weight:500}
.live-proofs{margin:2rem 0 0;padding:0;list-style:none;display:grid;gap:.7rem 2rem}
@media(min-width:640px){.live-proofs{grid-template-columns:1fr 1fr}}
.live-proofs li{position:relative;padding-left:1.9rem;color:var(--ink);font-weight:500;font-size:1rem}
.live-proofs li::before{content:"";position:absolute;left:0;top:.5em;width:12px;height:2px;background:var(--ink)}
.live-proofs li::after{content:"";position:absolute;left:5px;top:calc(.5em - 5px);width:2px;height:12px;background:var(--ink)}
.live-contrast{margin-top:2.4rem;display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;
  font-family:var(--mono);font-size:clamp(.95rem,1.8vw,1.15rem);font-weight:500}
.live-contrast .strike{color:rgba(10,10,15,.55)}
/* on the lime block the strike line is ink, not red, so it stays legible */
.live-contrast .strike::after{background:var(--ink);height:.14em}
.live-contrast .live-arrow{color:var(--ink);font-weight:700}
.live-contrast strong{color:var(--ink);font-weight:700}
.live .btn-ink{margin-top:2.6rem}

/* ---------- Preuve sociale ---------- */
.proof{background:var(--ink)}
.proof-band{margin-top:2.6rem;display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
@media(min-width:640px){.proof-band{grid-template-columns:repeat(3,1fr)}}
.stat{background:var(--ink-2);padding:1.8rem clamp(1.4rem,2.6vw,2rem);text-align:left}
.stat-num{display:block;font-size:clamp(2rem,4vw,2.8rem);font-weight:700;color:var(--lime);line-height:1}
.stat-label{display:block;margin-top:.6rem;color:var(--steel);font-size:.85rem}
.proof-grid{margin-top:1px;display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:820px){.proof-grid{grid-template-columns:repeat(3,1fr)}}
.testi{margin:1.4rem 0 0;padding:1.6rem;border:1px dashed var(--line-strong);background:transparent}
.testi--placeholder .testi-quote{color:var(--steel);font-size:1.05rem;font-style:normal}
.testi-meta{color:#5f636b;font-size:.78rem;margin-top:1rem}
.proof-note{margin-top:2rem;color:var(--lime);font-size:.92rem;
  border-left:2px solid var(--lime);padding-left:1rem;max-width:56ch}

/* ---------- Contact ---------- */
.contact{background:var(--ink-2)}
.contact-inner{display:grid;gap:clamp(2.5rem,5vw,4rem)}
@media(min-width:900px){.contact-inner{grid-template-columns:1fr 1fr;align-items:start}}
.contact-lede{margin-top:1.2rem;color:var(--steel);max-width:44ch}
.contact-loop{margin-top:2.5rem;color:var(--lime);font-size:1.4rem;letter-spacing:.02em}
.contact-form{background:var(--ink);border:1px solid var(--line);padding:clamp(1.6rem,3vw,2.4rem);display:flex;flex-direction:column;gap:1.2rem}
.field{display:flex;flex-direction:column;gap:.45rem}
.field label{font-family:var(--mono);font-size:.82rem;letter-spacing:.03em;color:var(--paper)}
.field .opt{color:var(--steel)}
.field input,.field textarea{
  background:var(--ink-2);border:1px solid var(--line-strong);color:var(--paper);
  font:inherit;padding:.85rem .9rem;border-radius:0;transition:border-color .18s ease;
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--lime)}
.field textarea{resize:vertical;min-height:88px}
.hp{position:absolute;left:-9999px}

/* ---------- Footer ---------- */
.site-footer{background:var(--ink);border-top:1px solid var(--line);padding-block:3rem}
.footer-inner{display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-start;justify-content:space-between}
.footer-logo{font-size:1.4rem}
.footer-tag{margin-top:.7rem;color:var(--steel);font-size:.9rem;max-width:24ch}
.footer-nav{display:flex;flex-wrap:wrap;gap:1.2rem;color:var(--steel);font-size:.9rem}
.footer-nav a:hover{color:var(--lime)}
.footer-meta{display:flex;flex-direction:column;gap:.4rem;color:var(--steel);font-size:.82rem;text-align:right}
.footer-meta a:hover{color:var(--lime)}

/* ---------- Loop line motif ---------- */
.loop-line{position:fixed;top:0;left:max(1rem,calc((100vw - var(--wrap))/2 - 1.5rem));
  width:40px;height:100vh;z-index:-1;opacity:.18;pointer-events:none}
.loop-line path{stroke-dasharray:1;stroke-dashoffset:1}
.loop-line.is-active path{stroke-dashoffset:0}
@media(max-width:1280px){.loop-line{display:none}}

/* ---------- Reveal (generic) — gated on .anim so no-JS shows content ---------- */
.anim [data-reveal]{opacity:0;transform:translateY(20px)}
[data-reveal].is-in{opacity:1;transform:none;transition:opacity .55s ease,transform .55s cubic-bezier(.2,.7,.2,1)}

/* ---------- Merci page ---------- */
.merci-body{display:flex;min-height:100vh}
.merci{display:flex;align-items:center;min-height:100vh}
.merci .logo{font-size:1.6rem;display:inline-block;margin-bottom:2rem}
.merci-h{font-size:clamp(2.4rem,7vw,4.5rem);letter-spacing:-.03em}
.merci-p{margin:1.4rem 0 2.4rem;color:var(--steel);max-width:44ch;font-size:1.15rem}

/* ============================================================
   Reduced motion — honor the user's system preference
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important;
  }
  [data-reveal],.m-line[data-reveal]{opacity:1 !important;transform:none !important}
  .strike::after{transform:scaleX(1) !important}
  .loop-line path{stroke-dashoffset:0 !important}
  .btn:hover{transform:none !important}
}
