/* ==========================================================================
   VTD BOT — Landing page
   ========================================================================== */

/* ------------------------------ Brand ----------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, #7FBEFF, #2E8FFF 50%, #5AA9FF); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-blue), inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.1); }
.brand-name { font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); }
.brand-name span { color: var(--blue-500); }

/* ------------------------------ Header ---------------------------------- */
.lp-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: all .3s var(--ease); }
.lp-header.scrolled { background: rgba(18,21,23,.82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.lp-nav { display: flex; gap: 30px; }
.lp-nav a { font-weight: 600; font-size: .94rem; color: var(--slate-600); transition: color .18s; }
.lp-nav a:hover { color: var(--ink); }
.lp-burger { display: none; }
.lp-header-cta { display: flex; align-items: center; }
/* Menu mobile (drawer) — masqué sur desktop, injecté au niveau <body>. */
.lp-mobile { display: none; }
.lp-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--slate-700); text-decoration: none; padding: 3px 8px 3px 3px; border-radius: 999px; }
.lp-user:hover { background: var(--slate-100); }

/* ------------------------------ Hero ------------------------------------ */
.lp-hero { position: relative; padding: calc(var(--header-h) + 60px) 0 0; overflow: hidden; }
.hero-glow { position: absolute; top: -180px; right: -120px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(46,143,255,.26), transparent 62%); pointer-events: none; z-index: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; padding: 8px 14px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-400); border: 1px solid var(--blue-100); }
.hero-copy h1 { margin: 22px 0 20px; }
.hero-sub { font-size: 1.22rem; color: var(--slate-600); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin: 32px 0 30px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .76rem; border: 2.5px solid var(--canvas); margin-left: -10px; }
.avatars .av:first-child { margin-left: 0; }
.avatars .av.av-img { background-size: cover; background-position: center 28%; color: transparent; }
.stars { color: var(--amber-500); font-size: .95rem; letter-spacing: 1px; }
.stars strong { color: var(--ink); margin-left: 4px; }

/* Hero preview card */
.hero-visual { position: relative; }
.preview-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); box-shadow: var(--sh-lg), var(--glow-md), var(--edge-light); padding: 18px; animation: float 6s ease-in-out infinite; position: relative; z-index: 2; }
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.live-pill { box-shadow: 0 0 16px -4px rgba(34,199,126,.45); display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 700; color: var(--green-500); background: var(--green-50); padding: 5px 11px; border-radius: var(--r-pill); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); animation: blink 1.4s ease infinite; box-shadow: 0 0 0 0 rgba(18,182,107,.5); }
.radar-scan { position: relative; height: 90px; border-radius: var(--r-md); background: radial-gradient(circle at 50% 100%, rgba(46,143,255,.10), transparent 70%); border: 1px solid var(--border); overflow: hidden; margin-bottom: 14px; }
.radar-scan::before, .radar-scan::after { content: ""; position: absolute; left: 50%; bottom: 0; border-radius: 50%; border: 1px solid rgba(46,143,255,.22); transform: translateX(-50%); }
.radar-scan::before { width: 120px; height: 120px; }
.radar-scan::after { width: 200px; height: 200px; }
.radar-sweep { position: absolute; left: 50%; bottom: 0; width: 2px; height: 90px; background: linear-gradient(to top, var(--blue-500), transparent); transform-origin: bottom center; animation: radar 3.4s linear infinite; }
@keyframes radar { from { transform: rotate(-70deg); } to { transform: rotate(70deg); } }
/* L'onde de pulsation était un box-shadow animé PORTÉ PAR LE POINT : le navigateur
   repeignait le point à chaque image, en boucle permanente. L'anneau est maintenant un
   ::after distinct animé en transform + opacity, que le compositeur gère seul. Le point,
   lui, ne change plus du tout -> plus rien à repeindre. */
.radar-blip { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--grad-dot); box-shadow: 0 0 10px 2px rgba(46,143,255,.55); }
.radar-blip { --pulse-c: rgba(46,143,255,.35); }
.radar-blip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; background: var(--pulse-c); pointer-events: none; animation: pulse-ring 2s ease infinite; }
.radar-blip.b1 { left: 30%; bottom: 38%; }
.radar-blip.b2 { left: 62%; bottom: 55%; }
.radar-blip.b3 { left: 48%; bottom: 24%; }
.radar-blip.b1::after { animation-delay: .2s; }
.radar-blip.b2::after { animation-delay: 1s; }
.radar-blip.b3::after { animation-delay: 1.7s; }
.preview-feed { display: flex; flex-direction: column; gap: 8px; }
/* Les trois annonces n'avaient qu'une animation d'ENTRÉE : une fois jouée, la carte
   « Radar en direct · Live » restait figée alors que le radar au-dessus balayait en
   continu. Elles arrivent maintenant EN BOUCLE, comme des notifications qui tombent :
   chacune glisse depuis la droite, se pose, reste affichée, puis s'efface pour laisser
   revenir la suivante — décalées de 0,8 s via --i.
   Le mouvement a été ADOUCI après un premier essai jugé trop brutal : cycle allongé de
   6 s à 9 s, arrivée deux fois plus longue (8 % du cycle au lieu de 4 %), distance
   réduite de 30 px à 18 px, et surtout SUPPRESSION du sursaut d'échelle à l'atterrissage
   (scale 1.015) et du rebond sec du score (0.8 -> 1.1) : c'est ce dépassement, pas la
   vitesse seule, qui donnait l'impression d'à-coup.
   Même règle que pour les points du radar plus haut : UNIQUEMENT transform + opacity,
   rien à repeindre, tout est géré par le compositeur.
   La pause hors écran (js/ui/anim.js, section .lp-hero) et la règle globale
   prefers-reduced-motion en fin de fichier couvrent déjà ces animations. */
.feed-row { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: var(--r-sm); background: var(--slate-50); border: 1px solid var(--border); animation: notifIn 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .8s); }
.feed-row .score { animation: notifPop 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .8s); }
@keyframes notifIn {
  0%   { opacity: 0; transform: translateX(18px) scale(.99); }
  8%   { opacity: 1; transform: none; }
  92%  { opacity: 1; transform: none; }
  98%  { opacity: 0; transform: translateX(-8px) scale(.995); }
  100% { opacity: 0; transform: translateX(18px) scale(.99); }
}
@keyframes notifPop { 0%, 5% { transform: scale(.94); } 12% { transform: scale(1.035); } 20%, 100% { transform: scale(1); } }
.feed-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--blue-400); flex: none; box-shadow: var(--sh-xs); }
.feed-row strong { font-size: .9rem; display: block; }
.feed-right { display: flex; align-items: center; gap: 10px; }
.feed-price { font-weight: 800; font-size: .96rem; white-space: nowrap; }
.preview-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .82rem; font-weight: 600; }
.preview-card .live-dot { background: var(--green-500); }

/* Marquee */
/* `position: relative; z-index: 1` protège le bandeau du halo `.lp-hero::after`, qui
   est ancré en bas à gauche et le recouvrait entièrement d'un voile violet. La grille
   du hero était déjà protégée ainsi ; le bandeau avait été oublié. */
.hero-marquee { position: relative; z-index: 1; margin-top: 64px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: ticker 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; color: var(--slate-600); white-space: nowrap; }
.marquee-track span svg { color: var(--blue-500); }

/* ------------------------------ Stats strip ----------------------------- */
.lp-stats { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); background: linear-gradient(120deg, var(--blue-500), var(--blue-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lab { font-size: .92rem; }

/* ------------------------------ Problem --------------------------------- */
.lp-problem { background: var(--surface); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.problem-list { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.problem-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--slate-700); }
.problem-list li svg { color: var(--red-500); flex: none; }
.problem-card { background: linear-gradient(160deg, var(--blue-50), var(--surface)); border: 1px solid var(--blue-100); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-md); }
.pc-head { display: flex; justify-content: center; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-400); margin-bottom: 18px; font-family: var(--font-display); }
/* espaceur invisible (largeur de l'étoile) à droite -> le TEXTE « Avec VTD BOT »
   est optiquement centré, l'étoile restant à sa gauche. */
.pc-head::after { content: ""; width: 18px; flex: none; }
.pc-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--blue-100); }
.pc-row:first-of-type { border-top: none; }
.pc-row svg { color: var(--green-500); flex: none; }
.pc-row strong { display: block; }
.pc-row span { font-size: .9rem; }

/* ------------------------------ Features -------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-card { padding: 26px; border-radius: var(--r-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease); overflow: hidden; }
/* Effet de survol réservé aux appareils à souris (pas de « hover collant » au tap sur mobile). */
@media (hover: hover) { .feat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); } }
.feat-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.feat-ic.brand { background: var(--blue-50); color: var(--blue-400); }
.feat-ic.blue { background: var(--blue-50); color: var(--info-500); }
.feat-ic.green { background: var(--green-50); color: var(--green-500); }
.feat-ic.violet { background: var(--violet-50); color: var(--violet-500); }
.feat-ic.amber { background: var(--amber-50); color: var(--amber-500); }
.feat-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feat-card p { font-size: .94rem; }
.feat-demo { margin-top: 18px; }

/* Mini démos animées — jouent quand la carte entre à l'écran (.feat-card.in) */
.d-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.d-chip { font-size: .76rem; font-weight: 700; padding: 6px 11px; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-400); display: inline-flex; align-items: center; gap: 4px; opacity: 0; }
.d-chip svg { color: var(--blue-400); }
.feat-card.in .d-chip { animation: chipCycle 6s ease-in-out infinite both; }
.d-chip.add { background: var(--slate-100); color: var(--slate-500); opacity: 1; }
.feat-card.in .d-chip.add { animation: chipPulse 2.2s ease-in-out infinite; }

.d-alerts { display: flex; flex-direction: column; gap: 8px; }
.d-alert { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--slate-50); border: 1px solid var(--border); }
.feat-card.in .d-alert { animation: alertArrive 6s ease-in-out infinite both; }
.feat-card.in .d-alert:nth-child(2) { animation-delay: .55s; }
.d-alert-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--info-500); flex: none; --pulse-c: rgba(47,107,255,.35); }
.d-alert-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 100%; height: 100%; border-radius: 50%; background: var(--pulse-c); pointer-events: none; animation: pulse-ring 1.8s ease infinite; }
.d-alert > div { flex: 1; min-width: 0; }
.d-alert strong { display: block; font-size: .86rem; }
.d-alert span.muted { font-size: .74rem; }
.d-alert .badge { flex: none; margin-left: auto; }

.d-price { background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; font-size: .86rem; display: flex; flex-direction: column; gap: 6px; }
.d-meter { position: relative; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #6ee7b7, var(--amber-500), var(--red-500)); margin: 6px 0; overflow: hidden; }
.d-meter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); transform: translateX(-120%); }
.feat-card.in .d-meter::after { animation: sweep 2.6s ease-in-out infinite; }
.d-meter-dot { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green-500); transform: translate(-50%, -50%); box-shadow: var(--sh-sm); z-index: 1; }
.feat-card.in .d-meter-dot { animation: meterSettle 3.4s var(--ease) infinite; }

.d-spark { background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px; }
.d-spark svg { width: 100%; height: 56px; }
.d-spark polyline { stroke-dasharray: 300; stroke-dashoffset: 300; }
.feat-card.in .d-spark polyline { animation: draw 4.6s ease-in-out infinite; }
.d-spark .badge { margin-top: 6px; }

.d-gauge { display: flex; align-items: center; gap: 16px; }
.gauge-svg { position: relative; width: 76px; height: 76px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gauge-arc { stroke-dasharray: 113; stroke-dashoffset: 113; }
.feat-card.in .gauge-arc { animation: gaugeFill 1.6s var(--ease) forwards; }
.gauge-val { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.gauge-max { position: relative; z-index: 1; font-size: .62rem; color: var(--slate-400); line-height: 1; margin-top: 1px; }
.gauge-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; flex: 1; }
.gauge-bars span { flex: 1; background: linear-gradient(var(--amber-500), var(--blue-500)); border-radius: 5px; min-height: 8px; transform-origin: bottom; }
.feat-card.in .gauge-bars span { animation: equalize 1.5s ease-in-out infinite; }
.feat-card.in .gauge-bars span:nth-child(2) { animation-delay: .18s; }
.feat-card.in .gauge-bars span:nth-child(3) { animation-delay: .36s; }
.feat-card.in .gauge-bars span:nth-child(4) { animation-delay: .54s; }

.d-reco { display: flex; flex-direction: column; gap: 8px; }
.reco-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--r-sm); background: var(--slate-50); border: 1px solid var(--border); font-size: .8rem; }
.feat-card.in .reco-row { animation: recoScan 3.6s ease-in-out infinite; }
.feat-card.in .reco-row:nth-child(2) { animation-delay: .5s; }
.feat-card.in .reco-row:nth-child(3) { animation-delay: 1s; }

@keyframes chipCycle { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 12%, 55% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; transform: translateY(6px) scale(.8); } }
@keyframes chipPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@keyframes alertArrive { 0% { opacity: 0; transform: translateX(-16px); } 6% { opacity: 1; transform: none; } 74% { opacity: 1; transform: none; } 84%, 100% { opacity: 0; transform: translateX(-16px); } }
/* `left` animé = mise en page recalculée à chaque image. Le point est déjà centré par
   translate(-50%,-50%) : on lui ajoute simplement un décalage en transform. */
@keyframes meterSettle { 0%, 100% { transform: translate(-50%,-50%); } 24%, 76% { transform: translate(calc(-50% - 26px), -50%); } }
@keyframes draw { 0% { stroke-dashoffset: 300; } 45%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 300; } }
@keyframes gaugeFill { from { stroke-dashoffset: 113; } to { stroke-dashoffset: 18; } }
@keyframes equalize { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
/* Animait background + border-color + box-shadow : trois propriétés qui forcent une
   REPEINTURE à chaque image, en boucle. Le fond teinté et son ombre sont désormais peints
   une fois dans ::after, et seule son opacité varie — géré par le compositeur. */
.reco-row { position: relative; }
.reco-row::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: var(--blue-50); box-shadow: 0 6px 18px rgba(46,143,255,.16);
  border: 1px solid var(--blue-200); pointer-events: none;
}
.feat-card.in .reco-row::after { animation: recoGlow 3.6s ease-in-out infinite; }
@keyframes recoScan { 0%, 100% { transform: translateX(0); } 45%, 55% { transform: translateX(6px); } }
@keyframes recoGlow { 0%, 100% { opacity: 0; } 45%, 55% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .feat-card .d-chip, .feat-card .reco-row { opacity: 1 !important; }
  .feat-card .d-chip, .feat-card .d-alert, .feat-card .d-meter-dot, .feat-card .d-meter::after,
  .feat-card .d-spark polyline, .feat-card .gauge-arc, .feat-card .gauge-bars span, .feat-card .reco-row { animation: none !important; }
  .gauge-arc { stroke-dashoffset: 18; }
  .d-spark polyline { stroke-dashoffset: 0; }
  .d-meter-dot { left: 24%; }
}

/* ------------------------------ AutoBuy --------------------------------- */
.lp-autobuy { background: linear-gradient(150deg, #1a1c26, #14161f 60%); position: relative; overflow: hidden; border-radius: var(--r-xl); margin: 0 16px; }
.lp-autobuy::before { content: ""; position: absolute; top: -100px; left: -80px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(46,143,255,.22), transparent 60%); }
.autobuy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.autobuy-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 30px; }
.autobuy-list li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.9); font-weight: 600; }
.autobuy-list li svg { color: var(--blue-400); flex: none; }
.ab-terminal { background: #0d0e14; border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-lg); }
.ab-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.ab-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3d4a; }
.ab-lines { padding: 14px 16px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .8rem; display: flex; flex-direction: column; gap: 9px; }
.ab-line { display: grid; grid-template-columns: auto auto 1fr auto; gap: 12px; align-items: center; animation: rise .5s both; }
.ab-time { color: #A5AEB5; }
.ab-tag { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: .72rem; }
.ab-line.ok .ab-tag { background: rgba(18,182,107,.15); color: #3ee08a; }
.ab-line.skip .ab-tag { background: rgba(150,150,160,.12); color: #8A939A; }
.ab-msg { color: #C6CED3; }
.ab-ms { color: var(--blue-400); font-weight: 700; }
.ab-line.skip .ab-ms { color: #6C757C; }

/* ------------------------------ Modules --------------------------------- */
.mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mod-card { display: flex; gap: 16px; padding: 24px; }
.mod-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-400); display: grid; place-items: center; flex: none; }
.mod-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.mod-card p { font-size: .9rem; }

/* ------------------------------ How ------------------------------------- */
.lp-how { background: var(--surface); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.how-grid::before { content: ""; position: absolute; top: 38px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-200) 0 8px, transparent 8px 16px); z-index: 0; }
.how-step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.how-num { width: 34px; height: 34px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); box-shadow: var(--sh-blue), var(--edge-light); }
.how-ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--blue-400); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.how-step h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ------------------------------ Showcase -------------------------------- */
.showcase-frame { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; max-width: 960px; margin: 0 auto; }
.sc-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--slate-50); border-bottom: 1px solid var(--border); }
.sc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }

/* Boutons de fenêtre macOS (maquettes navigateur / terminal) */
.win-dots { display: inline-flex; align-items: center; gap: 8px; }
.win-dot { width: 12px; height: 12px; border-radius: 50%; display: grid; place-items: center; flex: none; color: rgba(0,0,0,.55); }
.win-dot svg { width: 8px; height: 8px; opacity: .6; transition: opacity .15s; }
.win-dot.close { background: #ff5f57; }
.win-dot.min { background: #febc2e; }
.win-dot.full { background: #28c840; }
.sc-bar:hover .win-dot svg, .ab-head:hover .win-dot svg { opacity: 1; }
.sc-url { margin-left: 14px; font-size: .8rem; color: var(--slate-500); background: var(--surface-2); padding: 5px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); }
.sc-body { padding: 26px; background: var(--canvas); }
.sc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.sc-kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; position: relative; }
.sc-kpi-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-bottom: 10px; }
.sc-kpi-dot.green { background: var(--green-500); } .sc-kpi-dot.brand { background: var(--grad-dot); } .sc-kpi-dot.blue { background: var(--info-500); } .sc-kpi-dot.violet { background: var(--violet-500); }
.sc-kpi-val { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.sc-kpi .muted { font-size: .78rem; }
.sc-deals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sc-deal { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
.sc-deal-thumb { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); flex: none; }
/* « Liquid glass » (façon iOS) : verre fumé translucide + flou de l'arrière-plan +
   liseré spéculaire clair, plutôt qu'un noir plein. */
.sc-overlay-cta { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity .3s, transform .3s, background .25s;
  color: #fff; font-weight: 700;
  background: rgba(22, 24, 32, .42);
  -webkit-backdrop-filter: saturate(1.7) blur(16px);
  backdrop-filter: saturate(1.7) blur(16px);
  border: 1px solid rgba(255, 255, 255, .30);
  box-shadow: 0 12px 34px rgba(18, 20, 28, .30), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .08);
}
.sc-overlay-cta svg { color: #fff; }
.sc-overlay-cta:hover { background: rgba(22, 24, 32, .55); }
.showcase-frame:hover .sc-overlay-cta { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* ------------------------------ Testimonials ---------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.testi-card { padding: 28px; border-radius: var(--r-lg); }
.testi-card .stars { font-size: 1rem; margin-bottom: 14px; }
.testi-card p { font-size: 1.05rem; color: var(--ink); line-height: 1.6; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author strong { display: block; }
.testi-author span.muted { font-size: .84rem; }

/* ------------------------------ Pricing --------------------------------- */
.lp-pricing { background: var(--surface); }
.price-toggle { display: flex; justify-content: center; margin-top: 22px; }
/* Page /tarifs autonome : le sélecteur précède directement la grille, il lui faut
   sa propre respiration (et de quoi dégager le badge « Le plus choisi » qui
   dépasse au-dessus de la carte Pro). :not(:empty) = rien si l'annuel est masqué. */
.pricing-toggle-wrap:not(:empty) { margin-bottom: 62px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; align-items: start; }
.plan { padding: 32px; border-radius: var(--r-lg); position: relative; }
.plan-featured { border: 2px solid var(--blue-500); box-shadow: var(--sh-lg), var(--glow-md); transform: scale(1.02); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: .76rem; font-weight: 700; padding: 6px 14px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 5px; box-shadow: var(--sh-blue), var(--edge-light); }
.plan h3 { font-size: 1.5rem; }
.plan-tagline { font-size: .92rem; margin: 6px 0 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 800; font-size: 3.4rem; letter-spacing: -.03em; }
.plan-price .per { font-weight: 700; color: var(--slate-500); }
.plan-price .per small { font-weight: 600; }
.plan-billing { font-size: .82rem; margin: 4px 0 22px; }
.plan-guarantee { text-align: center; font-size: .78rem; margin-top: 10px; }
.plan-feats { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.plan-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: .94rem; color: var(--slate-700); }
.plan-feats li svg { color: var(--green-500); flex: none; margin-top: 2px; }
.plan-featured .plan-feats li svg { color: var(--blue-500); }

/* ------------------------------ FAQ ------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--sh-sm); border-color: var(--border-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.02rem; text-align: left; color: var(--ink); }
.faq-q svg { color: var(--slate-400); transition: transform .25s; flex: none; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--blue-500); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p { padding: 0 22px 22px; font-size: .96rem; }

/* ------------------------------ Final CTA ------------------------------- */
.lp-final { padding-top: 0; }   /* la bande azur se suffit à elle-même : pas d'écart en haut */
.final-band { position: relative; text-align: center; background: var(--grad-band); border-radius: var(--r-xl);
  padding: 64px 32px; overflow: hidden; box-shadow: var(--glow-lg), var(--edge-light); }
/* DEUX sources : une lumière en haut à gauche, une ombre bleue profonde en bas à
   droite. Un seul halo clair sur un aplat ne crée aucun volume — c'est le contraste
   entre les deux qui fait le relief. */
.final-glow { position: absolute; inset: 0;
  background:
    /* Lumière rasante, repoussée DANS le coin pour ne pas passer sous le texte. */
    radial-gradient(46% 62% at 8% -8%, rgba(255,255,255,.24), transparent 64%),
    /* Ombre bleue profonde en bas à droite : c'est elle qui crée le volume. */
    radial-gradient(72% 96% at 98% 106%, rgba(8,42,90,.55), transparent 58%),
    /* Voile sombre CENTRÉ, sous le bloc de texte. Il fait passer la ligne de soutien
       de 3,2:1 à ~6,5:1 sans assombrir la bande : sans lui, il aurait fallu virer au
       bleu marine pour atteindre le seuil, et la bande n'aurait plus été « la bleue ». */
    radial-gradient(56% 68% at 50% 54%, rgba(6,32,70,.26), transparent 72%); }
/* `:not(.final-glow)` est INDISPENSABLE : sans lui, cette règle — plus tardive et de
   même spécificité — repassait le halo en `position: relative`, où `inset: 0` ne
   dimensionne plus rien. Le halo faisait 0 px de haut et aucun de ses trois dégradés
   n'était peint. La bande paraissait « plate » pour cette raison, pas à cause du bleu. */
.final-band > *:not(.final-glow) { position: relative; z-index: 1; }

/* ------------------------------ Footer ---------------------------------- */
.lp-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot-col h5 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--slate-600); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--blue-400); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 980px) {
  .problem-grid, .autobuy-grid { grid-template-columns: 1fr; gap: 40px; }
  /* « Le constat » centré sur mobile + en-tête « Avec VTD BOT » (étoile incluse) centré. */
  .lp-problem .problem-grid > .reveal:first-child { text-align: center; }
  /* Listes : le BLOC est centré, mais les éléments restent alignés à gauche ->
     les icônes forment une colonne propre (pas de zigzag). */
  .lp-problem .problem-list { max-width: 300px; margin-left: auto; margin-right: auto; text-align: left; }
  .lp-problem .problem-list li { justify-content: flex-start; }
  .pc-head { display: flex; justify-content: center; }
  /* AutoBuy centré sur mobile : accroche, texte, liste et bouton. */
  .lp-autobuy .autobuy-grid > .reveal:first-child { text-align: center; }
  .autobuy-list { max-width: 280px; margin-left: auto; margin-right: auto; text-align: left; }
  .autobuy-list li { justify-content: flex-start; }
  /* Héro mobile : centré, et le radar remonte JUSTE SOUS le titre (à la place du
     paragraphe). display:contents dissout .hero-copy -> ses enfants deviennent des
     items de la grille, réordonnables individuellement avec `order`. */
  .hero-grid { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .hero-copy { display: contents; }
  .hero-badge { order: 1; justify-self: center; }
  .hero-copy h1 { order: 2; margin: 2px 0; }
  .hero-visual { order: 3; max-width: 440px; margin: 8px auto 4px; }
  .hero-sub { display: none; }                 /* mobile : paragraphe masqué */
  .hero-cta { order: 5; justify-content: center; margin: 10px 0; }
  .hero-cta .btn-ghost { display: none; }        /* mobile : bouton « Voir la démo » masqué */
  .hero-trust { order: 6; justify-content: center; }
  .feat-grid, .mod-grid, .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .testi-grid { grid-template-columns: 1fr; }
  .lp-nav { display: none; }
  .lp-header-cta { display: none; }
  .lp-burger { display: grid; }
  /* Menu mobile (drawer depuis la droite) — mêmes sections que sur PC. */
  .lp-mobile { display: block; position: fixed; inset: 0; z-index: 4000; visibility: hidden; }
  .lp-mobile.open { visibility: visible; }
  .lp-mobile-scrim { position: absolute; inset: 0; background: rgba(20,22,31,.45); opacity: 0; transition: opacity .28s var(--ease); }
  .lp-mobile.open .lp-mobile-scrim { opacity: 1; }
  .lp-mobile-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(85vw, 340px);
    background: var(--surface); box-shadow: -14px 0 44px rgba(0,0,0,.62);
    transform: translateX(100%); transition: transform .3s var(--ease);
    display: flex; flex-direction: column; padding: 16px 20px 28px; overflow-y: auto;
  }
  .lp-mobile.open .lp-mobile-panel { transform: translateX(0); }
  .lp-mobile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
  .lp-mobile-close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: none; background: var(--slate-100); border-radius: 11px; color: var(--slate-600); cursor: pointer; }
  .lp-mobile-nav { display: flex; flex-direction: column; }
  .lp-mobile-nav a { padding: 15px 6px; font-size: 1.08rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
  .lp-mobile-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
  .lp-mobile-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 680px) {
  .feat-grid, .mod-grid, .how-grid, .sc-kpis, .sc-deals { grid-template-columns: 1fr; }
  /* Radar « Live » : la colonne nom est étroite sur mobile — on réduit un peu la
     police pour que les noms tiennent sur UNE ligne (ex. « Stone Island Badge · T.XL »). */
  .feed-row strong { font-size: .8rem; }
  /* Section Sniper : titre plus compact sur mobile pour tenir sur 3 lignes (pas 4). */
  .lp-autobuy h2 { font-size: 1.55rem; line-height: 1.16; }
  /* Fonctionnalités centrées sur mobile : icône du haut, titre, texte, puces… */
  .feat-card { text-align: center; }
  .feat-ic { margin-left: auto; margin-right: auto; }
  .feat-card .d-chips, .feat-card .d-gauge { justify-content: center; }
  /* Carrousels horizontaux (swipe) sur mobile : avis, fonctionnalités, modules.
     Carte centrée + APERÇU des cartes voisines de CHAQUE côté (façon Learnea) :
     snap centré + padding latéral qui laisse dépasser la précédente et la suivante.
     Défilement tactile, scrollbar cachée, hauteur égale. */
  .testi-grid, .feat-grid, .mod-grid, .pricing-grid {
    display: flex; grid-template-columns: none;
    justify-content: flex-start;          /* sinon .pricing-grid (center) rogne la 1re carte */
    margin-inline: -24px;                 /* pleine largeur : annule le padding du conteneur */
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;       /* pas de navigation « retour » en fin de course */
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 13vw;
    align-items: stretch;                 /* toutes les cartes à la même hauteur */
    gap: 12px;
    padding: 4px 13vw 20px;               /* 13vw de chaque côté = on voit un vrai bout des voisines */
    scrollbar-width: none;
    /* bords fondus (pas de coupe nette) : les cartes voisines se dissolvent doucement */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
  }
  /* Tarifs : padding-haut suffisant pour ne pas rogner le badge « Le plus choisi » qui dépasse. */
  .pricing-grid { padding-top: 22px; align-items: stretch; }
  /* Cartes de prix compactes sur mobile (sinon > hauteur d'écran, on ne voit pas la fin). */
  .pricing-grid .plan { padding: 20px 20px 22px; }
  .pricing-grid .plan h3 { font-size: 1.28rem; }
  .pricing-grid .plan-tagline { font-size: .86rem; margin: 3px 0 12px; }
  .pricing-grid .plan-price .amount { font-size: 2.4rem; }
  .pricing-grid .plan-price .per { font-size: .9rem; }
  .pricing-grid .plan-billing { font-size: .78rem; margin: 2px 0 14px; }
  .pricing-grid .plan-cta.btn-lg { padding: 12px 18px; font-size: .95rem; }
  .pricing-grid .plan-feats { margin-top: 14px; gap: 8px; }
  .pricing-grid .plan-feats li { font-size: .86rem; line-height: 1.3; }
  .testi-grid::-webkit-scrollbar, .feat-grid::-webkit-scrollbar, .mod-grid::-webkit-scrollbar, .pricing-grid::-webkit-scrollbar { display: none; }
  .testi-grid > *, .feat-grid > *, .mod-grid > *, .pricing-grid > * { flex: 0 0 74vw; scroll-snap-align: center; }
  /* Carte fonctionnalité : contenu centré verticalement (fini le grand trou),
     et démo animée toujours visible sur mobile (sinon la carte paraît vide). */
  .feat-card { display: flex; flex-direction: column; justify-content: center; }
  .feat-card .feat-demo { margin-top: 16px; }
  .feat-card .d-chips { flex-wrap: wrap; }
  .feat-card .d-chip { opacity: 1 !important; animation: none !important; }
  .plan-featured { transform: none; }
  .hero-sub { font-size: 1.08rem; }
  .lp-autobuy { margin: 0 8px; border-radius: var(--r-lg); }
  /* Titre du CTA final : réduit pour tenir sur 2 lignes (une phrase par ligne). */
  .final-band h2 { font-size: 1.15rem; }
  /* Footer sur 2 colonnes (façon Learnea) au lieu d'une seule colonne empilée. */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 18px 18px; }
  /* Footer resserré sur mobile (moins de gros espaces). */
  .lp-footer { padding: 32px 0 22px; }
  .foot-col h5 { margin-bottom: 8px; }
  .foot-col a { padding: 4px 0; }
  .foot-bottom { margin-top: 22px; padding-top: 16px; }
  /* Tarifs : resserrer les gros espaces verticaux sur mobile. */
  .price-toggle { margin-top: 10px; }
  .pricing-toggle-wrap:not(:empty) { margin-bottom: 18px; }
}

/* ─────────────────────────── PERFORMANCE DE LA PAGE D'ACCUEIL ───────────────────
   La page fait ~9 900 px de haut et porte 17 animations en boucle infinie (radar,
   bandeau défilant, jauges, puces qui flottent…). Sans précaution le navigateur les
   calcule TOUTES à chaque image, y compris à des milliers de pixels hors de l'écran :
   9 des 17 tournaient déjà pour rien au chargement. D'où les à-coups au défilement.

   `js/ui/anim.js` pose la classe `anim-idle` sur les sections éloignées de l'écran ;
   on met alors leurs animations en PAUSE (elles reprennent à l'approche). C'est sans
   effet sur la mise en page — contrairement à `content-visibility`, qui faisait sauter
   la barre de défilement en estimant mal la hauteur des sections. */
.anim-idle, .anim-idle *, .anim-idle::before, .anim-idle::after, .anim-idle *::before, .anim-idle *::after { animation-play-state: paused !important; }

/* Sécurité : sur un appareil réglé pour limiter les animations, on coupe les boucles. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ------------------- Lueurs d'ambiance (ajout) -------------------------- */
/* Une seule source de lumière donne un éclairage plat. On en pose une seconde,
   froide et très discrète, du côté opposé. `.lp-hero` est déjà en overflow:hidden :
   le halo est donc rogné proprement par la section. */
.lp-hero::after {
  content: ""; position: absolute; left: -240px; bottom: -280px;
  width: 640px; height: 640px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(155,124,255,.15), transparent 64%);
}
/* Les cartes d'atout gagnent une lueur de marque au survol, en plus de l'ombre noire :
   sur fond sombre, une ombre seule ne se voit presque pas. */
@media (hover: hover) {
  .feat-card:hover { box-shadow: var(--sh-lg), var(--glow-sm); }
}
/* Tuiles d'icônes : un dégradé très doux au lieu d'un aplat. */
.feat-ic.brand, .feat-ic.blue { background: var(--grad-soft); }

/* ---------------- Lueurs d'ambiance, second passage --------------------- */
/* Les tuiles d'icônes des atouts rayonnent de leur propre teinte : une lueur
   par `currentColor` évite d'écrire cinq règles, une par couleur d'accent. */
.feat-ic { box-shadow: 0 8px 22px -10px currentColor, var(--edge-light); }
/* Le bloc d'aperçu du radar : une lueur douce derrière, pour le décoller. */
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -8% -18% -8%; z-index: -1;
  background: radial-gradient(58% 52% at 50% 46%, rgba(46,143,255,.16), transparent 68%);
  pointer-events: none;
}
