/* =====================================================================
   POLYMARKET GUIDE — Premium dark/red theme
   Fonts: Sora (display) + Manrope (body)
   ===================================================================== */

:root{
  --bg:        #0a0a0c;
  --bg-2:      #0f0f12;
  --surface:   #131318;
  --surface-2: #17171d;
  --line:      #242430;
  --line-soft: #1c1c24;
  --txt:       #ECECEF;
  --txt-2:     #A4A4AE;
  --txt-3:     #6E6E78;
  --red:       #E11D2A;
  --red-2:     #FF3B47;
  --red-deep:  #8E0F18;
  --white:     #FFFFFF;
  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1140px;
  --shadow:    0 30px 80px -30px rgba(0,0,0,.8);
  --glow-red:  0 0 60px -10px rgba(225,29,42,.55);
  --font-d:    'Sora', system-ui, sans-serif;
  --font-b:    'Manrope', system-ui, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body{
  font-family:var(--font-b);
  background:var(--bg);
  color:var(--txt);
  line-height:1.6;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

.container{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

/* ---------- Grain overlay ---------- */
.grain{
  position:fixed; inset:0; z-index:9999; pointer-events:none; opacity:.04;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4{ font-family:var(--font-d); font-weight:800; line-height:1.08; letter-spacing:-.02em; color:var(--white); }
h1{ font-size:clamp(2.4rem,6.2vw,4.6rem); }
h2{ font-size:clamp(1.9rem,4vw,3rem); }
h3{ font-size:1.22rem; }
p{ color:var(--txt-2); }
.accent{ color:var(--red); }
.lead{ font-size:1.12rem; color:var(--txt-2); max-width:620px; }
.eyebrow{
  display:inline-block; font-family:var(--font-d); font-size:.74rem; font-weight:700;
  letter-spacing:.28em; text-transform:uppercase; color:var(--red);
  padding-bottom:14px; position:relative;
}
.eyebrow.danger{ color:var(--red-2); }
.disclaimer{ font-size:.78rem; color:var(--txt-3); margin-top:26px; max-width:760px; }

/* ---------- Buttons ---------- */
.btn{
  --b:0; display:inline-flex; align-items:center; justify-content:center; gap:.5em;
  font-family:var(--font-d); font-weight:700; font-size:.96rem; cursor:pointer;
  text-decoration:none; border:1px solid transparent; border-radius:var(--radius-sm);
  padding:14px 26px; transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
  position:relative; white-space:nowrap; line-height:1;
}
.btn:active{ transform:translateY(1px) scale(.99); }
.btn-primary{
  background:linear-gradient(180deg,var(--red-2),var(--red)); color:#fff;
  box-shadow:0 10px 30px -10px rgba(225,29,42,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 18px 44px -12px rgba(225,29,42,.75), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-ghost{ background:rgba(255,255,255,.03); color:var(--txt); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--txt-3); background:rgba(255,255,255,.06); transform:translateY(-2px); }
.btn-sm{ padding:10px 18px; font-size:.85rem; }
.btn-lg{ padding:17px 34px; font-size:1.05rem; }
.btn-block{ width:100%; }

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(160%) blur(14px);
  background:rgba(10,10,12,.72);
  border-bottom:1px solid var(--line-soft);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:70px; }
.brand{ font-family:var(--font-d); font-weight:800; letter-spacing:.04em; font-size:1.02rem; color:#fff; text-decoration:none; display:flex; align-items:center; gap:9px; }
.brand-light{ color:var(--txt-3); font-weight:600; }
.brand-dot{ width:10px; height:10px; border-radius:50%; background:var(--red); box-shadow:0 0 14px var(--red); }
.nav-links{ display:flex; gap:30px; }
.nav-links a{ color:var(--txt-2); text-decoration:none; font-size:.92rem; font-weight:600; transition:color .2s; }
.nav-links a:hover{ color:#fff; }

/* ---------- Hero ---------- */
.hero{ position:relative; padding:120px 0 110px; overflow:hidden; }
.hero-glow{
  position:absolute; top:-200px; left:50%; transform:translateX(-50%);
  width:900px; height:900px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle, rgba(225,29,42,.30), rgba(225,29,42,.06) 38%, transparent 62%);
  filter:blur(20px); animation:pulse 9s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{opacity:.85; transform:translateX(-50%) scale(1);} 50%{opacity:1; transform:translateX(-50%) scale(1.07);} }
.hero-grid{
  position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:linear-gradient(var(--line-soft) 1px,transparent 1px),linear-gradient(90deg,var(--line-soft) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
          mask-image:radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
}
.hero-inner{ position:relative; text-align:center; z-index:2; }
.pill{
  display:inline-block; font-size:.82rem; font-weight:600; color:var(--txt);
  background:rgba(255,255,255,.04); border:1px solid var(--line);
  padding:8px 16px; border-radius:100px; margin-bottom:30px;
}
.hero h1{ margin-bottom:24px; }
.hero-sub{ max-width:680px; margin:0 auto 38px; font-size:1.16rem; color:var(--txt-2); }
.hero-sub strong{ color:var(--txt); }
.hero-cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:40px; }
.hero-trust{ display:flex; gap:26px; justify-content:center; flex-wrap:wrap; color:var(--txt-3); font-size:.88rem; font-weight:600; }

/* ---------- Stats ---------- */
.stats{ padding:0 0 30px; }
.stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.stat{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line); border-radius:var(--radius); padding:28px 24px; text-align:center;
}
.stat-num{ font-family:var(--font-d); font-size:2.7rem; font-weight:800; color:#fff; line-height:1; }
.stat-suf{ font-family:var(--font-d); font-size:1.1rem; font-weight:700; color:var(--red); }
.stat p{ font-size:.86rem; color:var(--txt-2); margin-top:12px; }

/* ---------- Sections ---------- */
.section{ padding:96px 0; position:relative; }
.section-head{ text-align:center; max-width:680px; margin:0 auto 56px; }
.section-head .lead{ margin:14px auto 0; }

/* ---------- Features ---------- */
.features-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card{
  background:linear-gradient(180deg,var(--surface),var(--bg-2));
  border:1px solid var(--line); border-radius:var(--radius); padding:30px;
  transition:transform .3s, border-color .3s, box-shadow .3s; position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; border-radius:var(--radius);
  background:radial-gradient(400px circle at var(--mx,50%) var(--my,0%), rgba(225,29,42,.10), transparent 45%);
  opacity:0; transition:opacity .3s;
}
.card:hover{ transform:translateY(-5px); border-color:#33333f; box-shadow:var(--shadow); }
.card:hover::before{ opacity:1; }
.card-ic{
  width:50px; height:50px; display:grid; place-items:center; font-size:1.4rem; border-radius:13px;
  background:rgba(225,29,42,.10); border:1px solid rgba(225,29,42,.25); margin-bottom:18px;
}
.card h3{ margin-bottom:10px; }
.card p{ font-size:.95rem; }

/* ---------- Preview ---------- */
.preview{ background:linear-gradient(180deg,transparent,var(--bg-2),transparent); }
.preview-inner{ display:grid; grid-template-columns:1fr 1.05fr; gap:60px; align-items:center; }
.preview-art{ display:flex; justify-content:center; perspective:1600px; }
.book{ transform:rotateY(-22deg) rotateX(6deg); transition:transform .6s cubic-bezier(.2,.8,.2,1); }
.preview-art:hover .book{ transform:rotateY(-10deg) rotateX(3deg); }
.book-cover{
  width:300px; height:420px; border-radius:6px 14px 14px 6px; padding:34px 30px;
  background:linear-gradient(150deg,#1a1a20,#0c0c0f 60%); position:relative;
  border:1px solid #2a2a34; box-shadow:-22px 30px 70px -20px rgba(0,0,0,.9), var(--glow-red);
  display:flex; flex-direction:column;
}
.book-cover::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:14px; background:linear-gradient(90deg,rgba(0,0,0,.5),transparent); border-radius:6px 0 0 6px; }
.book-kicker{ font-family:var(--font-d); font-size:.72rem; letter-spacing:.28em; color:var(--red); font-weight:700; }
.book-title{ font-family:var(--font-d); font-size:2rem; font-weight:800; color:#fff; margin-top:auto; line-height:1.05; }
.book-sub{ color:var(--txt-2); font-size:.92rem; margin-top:12px; }
.book-foot{ margin-top:26px; font-size:.74rem; color:var(--txt-3); letter-spacing:.1em; border-top:1px solid var(--line); padding-top:14px; }
.toc{ list-style:none; margin:24px 0 28px; }
.toc li{ display:flex; gap:16px; align-items:baseline; padding:13px 0; border-bottom:1px solid var(--line-soft); color:var(--txt); font-size:.98rem; }
.toc li span{ font-family:var(--font-d); color:var(--red); font-weight:700; font-size:.85rem; min-width:24px; }

/* ---------- Anti-guru ---------- */
.anti-guru .section-head{ margin-bottom:44px; }
.guru-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.guru-col{ border-radius:var(--radius); padding:34px; border:1px solid var(--line); }
.guru-col h3{ margin-bottom:18px; font-size:1.1rem; }
.guru-col ul{ list-style:none; display:flex; flex-direction:column; gap:13px; }
.guru-col li{ color:var(--txt-2); font-size:.96rem; padding-left:2px; }
.guru-col.bad{ background:linear-gradient(180deg,rgba(142,15,24,.12),transparent); border-color:rgba(225,29,42,.28); }
.guru-col.good{ background:linear-gradient(180deg,rgba(20,40,25,.18),transparent); border-color:rgba(60,160,90,.3); }

/* ---------- Reviews ---------- */
.reviews-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.review{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; }
.stars{ color:var(--red); letter-spacing:3px; margin-bottom:14px; }
.review blockquote{ color:var(--txt); font-size:1rem; line-height:1.65; }
.review figcaption{ margin-top:18px; color:var(--txt-3); font-size:.85rem; font-weight:600; }

/* ---------- CTA + form ---------- */
.cta{ position:relative; overflow:hidden; }
.cta-glow{ position:absolute; right:-180px; bottom:-180px; width:620px; height:620px; border-radius:50%;
  background:radial-gradient(circle,rgba(225,29,42,.22),transparent 62%); filter:blur(10px); pointer-events:none; }
.cta-inner{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; position:relative; z-index:2; }
.cta-points{ list-style:none; margin:22px 0 28px; display:flex; flex-direction:column; gap:11px; }
.cta-points li{ color:var(--txt); font-size:1rem; }
.price-tag{ display:flex; flex-direction:column; gap:4px; }
.price-now{ font-family:var(--font-d); font-size:2.6rem; font-weight:800; color:#fff; }
.price-note{ font-size:.85rem; color:var(--txt-3); }

.cta-form-wrap{
  background:linear-gradient(180deg,var(--surface-2),var(--bg-2));
  border:1px solid var(--line); border-radius:20px; padding:34px;
  box-shadow:var(--shadow);
}
.order-form h3{ margin-bottom:22px; font-size:1.3rem; }
.order-form label{ display:block; font-size:.85rem; font-weight:600; color:var(--txt); margin:16px 0 7px; }
.order-form label .opt{ color:var(--txt-3); font-weight:500; }
.order-form .req{ color:var(--red); }
.order-form input[type=text],
.order-form input[type=email]{
  width:100%; background:var(--bg); border:1px solid var(--line); border-radius:11px;
  padding:14px 15px; color:#fff; font-family:var(--font-b); font-size:1rem; transition:border-color .2s, box-shadow .2s;
}
.order-form input::placeholder{ color:var(--txt-3); }
.order-form input:focus{ outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(225,29,42,.18); }
.order-form input.invalid{ border-color:var(--red-2); box-shadow:0 0 0 3px rgba(255,59,71,.18); }
.hint{ display:block; color:var(--txt-3); font-size:.8rem; margin-top:6px; }
.check{ display:flex !important; gap:11px; align-items:flex-start; margin:20px 0 6px !important; font-weight:500 !important; font-size:.85rem !important; color:var(--txt-2) !important; cursor:pointer; }
.check input{ margin-top:3px; accent-color:var(--red); width:17px; height:17px; flex-shrink:0; }
.btn-spinner{ width:18px; height:18px; border:2px solid rgba(255,255,255,.4); border-top-color:#fff; border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg);} }
.form-error{ margin-top:14px; color:var(--red-2); font-size:.9rem; font-weight:600; background:rgba(225,29,42,.08); border:1px solid rgba(225,29,42,.3); padding:11px 14px; border-radius:10px; }
.secure-line{ text-align:center; margin-top:16px; font-size:.82rem; color:var(--txt-3); }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---------- FAQ ---------- */
.faq-wrap{ max-width:780px; }
.faq details{ border:1px solid var(--line); border-radius:13px; margin-bottom:12px; background:var(--surface); overflow:hidden; }
.faq summary{ list-style:none; cursor:pointer; padding:20px 22px; font-family:var(--font-d); font-weight:600; color:#fff; font-size:1.02rem; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.faq summary::-webkit-details-marker{ display:none; }
.chev{ font-size:1.5rem; color:var(--red); transition:transform .3s; line-height:1; }
.faq details[open] .chev{ transform:rotate(45deg); }
.faq details p{ padding:0 22px 22px; color:var(--txt-2); }

/* ---------- Footer ---------- */
.footer{ border-top:1px solid var(--line-soft); padding:54px 0; background:var(--bg-2); }
.footer-inner{ text-align:center; }
.footer .brand{ justify-content:center; margin-bottom:18px; }
.footer-disc{ max-width:680px; margin:0 auto 14px; font-size:.85rem; color:var(--txt-3); }
.footer-meta{ font-size:.82rem; color:var(--txt-3); }
.footer-meta a{ color:var(--txt-2); }

/* ---------- Result pages (success / cancel / download deny) ---------- */
.page-result{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.result-card{ max-width:520px; width:100%; text-align:center; background:linear-gradient(180deg,var(--surface-2),var(--bg-2));
  border:1px solid var(--line); border-radius:22px; padding:48px 40px; box-shadow:var(--shadow); }
.result-card h1{ font-size:2rem; margin-bottom:14px; }
.result-card .muted{ color:var(--txt-2); margin-bottom:26px; }
.result-card .btn{ margin:6px; }
.result-icon{ width:74px; height:74px; border-radius:50%; display:grid; place-items:center; font-size:2.2rem; margin:0 auto 24px; font-weight:800; }
.result-icon.success{ background:rgba(60,170,90,.14); color:#46d17e; border:1px solid rgba(60,170,90,.4); }
.result-icon.pending{ background:rgba(225,180,29,.12); color:#e1b41d; border:1px solid rgba(225,180,29,.4); }
.result-icon.error{ background:rgba(225,29,42,.12); color:var(--red-2); border:1px solid rgba(225,29,42,.4); }
.fine{ margin-top:24px; font-size:.84rem; color:var(--txt-3); line-height:1.7; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.10s; } .reveal.d2{ transition-delay:.20s; }
.reveal.d3{ transition-delay:.30s; } .reveal.d4{ transition-delay:.40s; }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .nav-links{ display:none; }
  .stats-grid{ grid-template-columns:repeat(2,1fr); }
  .features-grid,.reviews-grid{ grid-template-columns:1fr; }
  .preview-inner,.cta-inner,.guru-grid{ grid-template-columns:1fr; gap:40px; }
  .preview-art{ order:-1; }
  .section{ padding:72px 0; }
}
@media (max-width:560px){
  .container{ padding:0 18px; }
  .hero{ padding:80px 0 70px; }
  .hero-trust{ gap:14px; font-size:.8rem; }
  .stats-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .btn-lg{ width:100%; }
  .hero-cta .btn{ width:100%; }
  .cta-form-wrap{ padding:26px 20px; }
  .book-cover{ width:240px; height:340px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ============================================================
   PRODUITS — Sélecteur multi-ebooks
   ============================================================ */

/* ---------- Section produits ---------- */
.products-section{ padding:96px 0; background:linear-gradient(180deg,transparent,var(--bg-2) 30%,var(--bg-2) 70%,transparent); }
.products-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:0; }

.product-card{
  background:linear-gradient(160deg,var(--surface),var(--bg-2));
  border:2px solid var(--line); border-radius:20px; padding:32px 28px;
  cursor:pointer; position:relative; overflow:hidden;
  transition:transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.product-card::before{
  content:""; position:absolute; inset:0; border-radius:18px;
  background:radial-gradient(500px circle at var(--mx,50%) var(--my,-40%), rgba(225,29,42,.12), transparent 55%);
  opacity:0; transition:opacity .3s;
}
.product-card:hover{ transform:translateY(-6px); border-color:#3a3a44; box-shadow:var(--shadow); }
.product-card:hover::before{ opacity:1; }
.product-card.selected{
  border-color:var(--red) !important;
  box-shadow:0 0 0 3px rgba(225,29,42,.2), var(--shadow) !important;
  transform:translateY(-6px);
}
.product-card.highlighted{
  background:linear-gradient(160deg,rgba(225,29,42,.07),var(--bg-2));
  border-color:rgba(225,29,42,.35);
}

.product-badge{
  display:inline-block; font-family:var(--font-d); font-size:.72rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  padding:5px 12px; border-radius:100px; margin-bottom:16px;
  background:rgba(225,29,42,.12); color:var(--red); border:1px solid rgba(225,29,42,.3);
}
.product-badge.badge-new{ background:rgba(255,140,0,.1); color:#ff8c00; border-color:rgba(255,140,0,.35); }
.product-badge.badge-best{ background:rgba(225,29,42,.12); color:var(--red); }
.product-badge.badge-gem{ background:rgba(100,60,200,.12); color:#a78bfa; border-color:rgba(100,60,200,.35); }

.product-name{ font-family:var(--font-d); font-size:1.18rem; font-weight:800; color:#fff; line-height:1.2; margin-bottom:10px; }
.product-desc{ font-size:.9rem; color:var(--txt-2); line-height:1.55; margin-bottom:20px; }
.product-features{ list-style:none; margin-bottom:22px; display:flex; flex-direction:column; gap:8px; }
.product-features li{ font-size:.87rem; color:var(--txt-2); display:flex; align-items:center; gap:8px; }
.product-features li::before{ content:"✓"; color:var(--red); font-weight:700; font-size:.8rem; flex-shrink:0; }

.product-price-row{ display:flex; align-items:baseline; gap:10px; margin-bottom:18px; }
.product-price{ font-family:var(--font-d); font-size:2rem; font-weight:800; color:#fff; line-height:1; }
.product-price-note{ font-size:.8rem; color:var(--txt-3); }

.product-select-btn{
  width:100%; padding:13px 20px; border-radius:12px; font-family:var(--font-d); font-weight:700; font-size:.95rem;
  cursor:pointer; border:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--txt);
  transition:all .2s; display:flex; align-items:center; justify-content:center; gap:8px;
}
.product-select-btn:hover{ border-color:var(--red); color:#fff; background:rgba(225,29,42,.08); }
.product-card.selected .product-select-btn{
  background:linear-gradient(180deg,var(--red-2),var(--red)); color:#fff; border-color:transparent;
  box-shadow:0 8px 24px -8px rgba(225,29,42,.6);
}

/* ---------- Bouton "Accéder à la commande" flottant ---------- */
.order-sticky{
  position:sticky; bottom:24px; z-index:50; text-align:center; pointer-events:none;
  padding:0 24px;
}
.order-sticky-inner{
  display:inline-flex; align-items:center; gap:16px;
  background:rgba(10,10,12,.88); backdrop-filter:blur(14px);
  border:1px solid var(--line); border-radius:100px; padding:12px 20px 12px 16px;
  box-shadow:0 20px 60px -20px rgba(0,0,0,.9), var(--glow-red);
  pointer-events:all;
}
.order-sticky-label{ font-size:.88rem; color:var(--txt-2); }
.order-sticky-product{ font-family:var(--font-d); font-size:.9rem; color:#fff; font-weight:700; max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.order-sticky-price{ font-family:var(--font-d); font-size:1.1rem; font-weight:800; color:var(--red); }

/* ---------- Cover image réelle ---------- */
.book-cover-img{
  width:280px; height:auto; border-radius:8px 18px 18px 8px;
  box-shadow:-24px 30px 70px -20px rgba(0,0,0,.9), var(--glow-red);
  object-fit:cover;
}

/* ---------- Crypto trust badges ---------- */
.crypto-badges{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:18px;
}
.crypto-badge{
  display:flex; align-items:center; gap:7px;
  background:rgba(255,255,255,.03); border:1px solid var(--line);
  border-radius:100px; padding:7px 14px; font-size:.82rem; font-weight:600; color:var(--txt-2);
}
.crypto-badge span.coin{ font-size:1rem; }

/* ---------- Waiting animation (success page) ---------- */
.crypto-waiting{ display:flex; justify-content:center; gap:8px; margin-top:22px; }
.crypto-dot{
  width:9px; height:9px; border-radius:50%; background:var(--red);
  animation:dotPulse 1.4s ease-in-out infinite;
}
.crypto-dot.d1{ animation-delay:.2s; }
.crypto-dot.d2{ animation-delay:.4s; }
@keyframes dotPulse{ 0%,80%,100%{opacity:.2;transform:scale(.7);} 40%{opacity:1;transform:scale(1);} }

/* ---------- Responsive produits ---------- */
@media (max-width:900px){
  .products-grid{ grid-template-columns:1fr; max-width:480px; margin:0 auto; }
}
@media (max-width:560px){
  .products-grid{ max-width:100%; }
  .order-sticky-product{ max-width:130px; }
  .book-cover-img{ width:220px; }
}

/* ============================================================
   CORRECTIONS PRO + PWA
   ============================================================ */

/* ---- Sticky bar : controlled by JS class ---- */
.order-sticky {
  display: block !important;        /* toujours dans le flux */
  visibility: hidden;               /* invisible par défaut */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
  pointer-events: none;
}
.order-sticky.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  transition: opacity .3s ease, transform .3s ease;
}

/* ---- Nav active state ---- */
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: #fff; }

/* ---- Product card select-btn text update ---- */
.product-card.selected .product-select-btn .select-label { color: #fff; }

/* ---- Form spinner ---- */
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  position: absolute;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submit-btn { position: relative; }

/* ---- PWA install banner ---- */
.pwa-banner {
  position: fixed;
  bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 999;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.9);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 40px);
  white-space: nowrap;
}
.pwa-banner.show { transform: translateX(-50%) translateY(0); }
.pwa-banner-icon { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.pwa-banner-text { font-size: .88rem; }
.pwa-banner-text strong { display: block; color: #fff; font-weight: 700; }
.pwa-banner-text span { color: var(--txt-3); font-size: .8rem; }
.pwa-banner-btns { display: flex; gap: 8px; margin-left: auto; }
.pwa-install-btn { padding: 8px 16px; background: var(--red); color: #fff; border: none; border-radius: 8px; font-weight: 700; font-size: .82rem; cursor: pointer; font-family: var(--font-d); }
.pwa-dismiss-btn { padding: 8px 12px; background: none; color: var(--txt-3); border: none; cursor: pointer; font-size: .82rem; }

/* ---- Résultat pages (success / cancel) ---- */
.page-result {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.result-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-icon { font-size: 3rem; margin-bottom: 18px; display: block; }
.result-icon.success { color: #46d17e; }
.result-icon.error   { color: var(--red-2); }
.result-icon.pending { color: var(--txt-3); display: inline-block; }
.result-card h1 { font-size: 1.7rem; margin-bottom: 12px; }
.result-card .muted { color: var(--txt-2); margin-bottom: 22px; line-height: 1.6; }
.result-card .fine  { font-size: .82rem; color: var(--txt-3); margin-top: 16px; }
.result-card .fine a { color: var(--red-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Secure line ---- */
.secure-line {
  text-align: center;
  font-size: .78rem;
  color: var(--txt-3);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---- Mobile nav hamburger ---- */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--txt-2);
  border-radius: 8px;
}
.nav-burger:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 10px 16px 16px;
  gap: 4px;
}
.nav-mobile a {
  color: var(--txt-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background .15s, color .15s;
}
.nav-mobile a:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav-mobile.open { display: flex; }

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-cta      { display: none; }
  .nav-burger   { display: flex; }
}
