:root {
  --ink: #0B1220; --ink2: #131D3B; --ink3: #3B5BDB;
  --gold: #6366F1; --gold-l: #A5B4FC; --cream: #EEF2FF; --blue: #3B82F6;
  --bg: #F6F8FC; --surface: #FFFFFF; --text: #101828; --muted: #5B6676; --line: #E3E8F2;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--ink3); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 19px; max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--gold); }
section { padding: 88px 0; }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--blue), var(--gold)); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(247,238,219,.35); }
.btn-ink { background: var(--ink); color: var(--cream); }

/* en-tête */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(10,27,46,.92); backdrop-filter: blur(10px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-family: Georgia, serif; font-size: 22px; font-weight: 600; }
.brand img { width: 36px; height: 36px; }
nav.menu { display: flex; align-items: center; gap: 26px; }
nav.menu a { color: #C9D3E0; text-decoration: none; font-size: 15px; }
nav.menu a:hover { color: var(--cream); }
nav.menu .btn { padding: 9px 16px; font-size: 15px; color: #fff; }

/* héros */
.hero { background: radial-gradient(1200px 600px at 80% -10%, #1E2A5A 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, #0F1830 100%); color: var(--cream); padding: 96px 0 110px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.4vw, 54px); margin: 14px 0 20px; }
.hero .wrap.mq { display: block; }
.hero h1 em { font-style: normal; color: var(--gold-l); }
.hero p { color: #C9D3E0; font-size: 19px; max-width: 560px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero small { color: #8FA0B6; font-size: 14px; }

/* maquette du panneau */
.pane { background: #0C111D; border: 1px solid #27324B; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; font-family: "Segoe UI", sans-serif; font-size: 14px; color: #E8ECF4; max-width: 420px; justify-self: end; width: 100%; }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #27324B; color: #8E9AB3; font-size: 13px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 8px; }
/* l'en-tête de la démo reste sur une ligne : un statut long passait sur deux lignes en largeur téléphone et faisait bouger la page */
.pane-head { gap: 12px; white-space: nowrap; }
.pane-head > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pane-head > span:last-child { flex-shrink: 0; }
.hero .wrap > * { min-width: 0; }   /* une ligne de saisie sur une ligne ne doit pas élargir la colonne */
.pane-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-u { align-self: flex-end; background: linear-gradient(135deg, #6366F1, #3B82F6); color: #fff; padding: 9px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.msg-a { background: #151C2C; border: 1px solid #27324B; padding: 11px 14px; border-radius: 16px 16px 16px 4px; max-width: 95%; }
.msg-a b { color: #fff; }
.msg-a ul { margin: 6px 0 0; padding-left: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chip { border: 1px solid #27324B; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: #C9D3E0; }
.pane-input { margin: 0 16px 16px; border: 1px solid #27324B; background: #182033; border-radius: 12px; padding: 11px 14px; color: #8E9AB3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fonctionnalités */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); font-size: 22px; margin-bottom: 14px; }
.card h3 { margin: 0 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* confiance */
.trust { background: var(--ink); color: var(--cream); }
.trust .lead { color: #C9D3E0; }
.trust .grid .card { background: #121C36; border-color: #22305A; }
.trust .card p { color: #AFBDCE; }
.trust .card .ic { background: linear-gradient(135deg, var(--gold), var(--blue)); color: #fff; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 26px 26px 26px 78px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 24px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--blue)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: Georgia, serif; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* formules */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.plan.featured { border: 2px solid var(--gold); }
.plan h3 { margin: 0 0 4px; font-size: 24px; }
.plan .for { color: var(--gold); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan li { margin: 6px 0; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* prérequis */
.req { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; margin-top: 32px; padding: 0; list-style: none; }
.req li { padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.req li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 10px; }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* appel final et pied */
.final { text-align: center; background: linear-gradient(135deg, var(--ink2), var(--ink)); color: var(--cream); border-radius: 24px; padding: 64px 24px; }
.final p { color: #C9D3E0; }
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer .badges { flex-basis: 100%; display: flex; gap: 12px; align-items: center; }
footer .badges img { height: 40px; width: auto; display: block; }

/* page de texte (mentions légales) */
.doc { max-width: 780px; padding: 64px 24px; margin: 0 auto; }
.doc h1 { font-size: 40px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc ul { padding-left: 22px; margin: 8px 0 14px; }
.doc li { margin: 6px 0; }
.doc p, .doc li { line-height: 1.6; }
.todo { background: #EEF2FF; border: 1px dashed var(--gold); padding: 1px 6px; border-radius: 4px; }

/* chiffres */
.stats-band { padding: 8px 0 48px; background: #0F1830; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; text-align: center; color: #AFBDCE; font-size: 15px; border-left: 1px solid #1F2A4D; }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: Georgia, serif; font-size: 52px; line-height: 1; color: var(--gold-l); margin-bottom: 8px; }

/* confidentialité */
.two { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { position: relative; padding: 0 0 18px 40px; color: var(--muted); }
.checks li b { color: var(--text); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--gold-l); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.flow { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 0; box-shadow: 0 24px 60px rgba(10,27,46,.08); }
.node { width: 100%; max-width: 300px; border-radius: 18px; padding: 20px; text-align: center; }
.node .nt { font-family: Georgia, serif; font-size: 24px; font-weight: 600; }
.node .nb { font-size: 15px; opacity: .85; }
.node .ns { margin-top: 8px; font-size: 13px; display: inline-block; padding: 3px 10px; border-radius: 999px; }
.node.pc { background: var(--ink); color: var(--cream); }
.node.pc .ns { background: rgba(99,102,241,.2); color: var(--gold-l); }
.node.ai { background: #EEF2FF; color: var(--ink); border: 1px solid var(--line); }
.node.ai .ns { background: #fff; color: var(--muted); }
.link { position: relative; height: 130px; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px); }
.link em { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 170px; font-style: normal; font-size: 13px; color: var(--muted); }
.pulse { position: absolute; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(99,102,241,.2); animation: travel 2.6s ease-in-out infinite; }
.pulse.p2 { animation-delay: 1.3s; background: #3B82F6; box-shadow: 0 0 0 6px rgba(59,130,246,.2); animation-direction: reverse; }
@keyframes travel { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
.nope { margin-top: 22px; transform: rotate(-2deg); border: 2px dashed #D9534F; color: #B23B37; border-radius: 12px; padding: 8px 12px; text-align: center; font-size: 13px; background: #FFF6F5; }
.nope s { display: block; font-weight: 700; font-size: 14px; }

/* outlook classique : comparaison */
.classic { background: #EEF2FA; }
.compare { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; max-width: 860px; }
.compare .row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; padding: 16px 24px; border-top: 1px solid var(--line); align-items: center; }
.compare .row:first-child { border-top: 0; }
.compare .head { background: var(--ink); color: var(--cream); font-weight: 600; }
.compare .head span:nth-child(2) { color: var(--gold-l); }
.compare .yes { color: #15803D; font-weight: 600; }
.compare .yes::before { content: "● "; }
.compare .no { color: var(--muted); }
.compare .row:not(.head):hover { background: #F8FAFF; }

/* ------------------------------------------------------------ animations */
.hero::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(500px 300px at 20% 30%, rgba(99,102,241,.18), transparent 60%), radial-gradient(600px 400px at 85% 70%, rgba(59,130,246,.18), transparent 60%); animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.hero { position: relative; }
.hero .wrap { position: relative; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) rotate(0deg); } to { transform: translate3d(3%, 2%, 0) rotate(6deg); } }

.ink { position: relative; white-space: nowrap; }
.ink svg { position: absolute; left: -2%; bottom: -.28em; width: 104%; height: .5em; overflow: visible; }
.ink path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .6s cubic-bezier(.65,0,.35,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.pane { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-12px) rotate(.4deg); } }
.pane .msg-u, .pane .msg-a, .pane .typing { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
.pane .show { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 4px; padding: 10px 14px; background: #151C2C; border: 1px solid #27324B; border-radius: 16px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #3B82F6; animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.pane-input .caret { display: inline-block; width: 1px; height: 1em; background: #E8ECF4; vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chip { transition: background .2s, color .2s, border-color .2s; }
.chip.on { background: #6366F1; border-color: #6366F1; color: #fff; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(3n+2), .steps .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: .12s; }
.grid .reveal:nth-child(3n), .steps .reveal:nth-child(3) { transition-delay: .24s; }

.card, .plan, .step { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover, .plan:hover, .step:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,27,46,.12); }
.trust .card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.35); border-color: var(--gold); }
.card .ic { transition: transform .35s; }
.card:hover .ic { transform: rotate(-8deg) scale(1.08); }

.btn-gold { background-size: 200% 200%; animation: shine 6s ease infinite; }
@keyframes shine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-gold:hover { box-shadow: 0 12px 32px rgba(99,102,241,.5); }

header.top { transition: box-shadow .3s; }
header.top.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.marquee { overflow: hidden; border-top: 1px solid rgba(247,238,219,.1); margin-top: 64px; padding-top: 22px; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: scroll 30s linear infinite; color: #8FA0B6; font-size: 15px; }
.marquee span::before { content: "✦"; color: var(--gold); margin-right: 12px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* barre de progression de lecture */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--blue)); z-index: 20; }

/* titre : apparition mot par mot */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); animation: wordIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; filter: none; } }
.hero .eyebrow, .hero p, .hero .cta, .hero small { opacity: 0; animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
.hero p { animation-delay: .9s; } .hero .cta { animation-delay: 1.05s; } .hero small { animation-delay: 1.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* panneau : inclinaison 3D au survol */
.tilt { justify-self: end; width: 100%; max-width: 420px; transition: transform .25s ease-out; will-change: transform; transform-style: preserve-3d; }
.tilt .pane { max-width: none; }

/* halo qui suit la souris sur les cartes */
.card, .plan, .step { position: relative; overflow: hidden; }
.card::after, .plan::after, .step::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(99,102,241,.14), transparent 60%); }
.trust .card::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(165,180,252,.18), transparent 60%); }
.card:hover::after, .plan:hover::after, .step:hover::after { opacity: 1; }

/* bordure animée de la formule mise en avant */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.plan.featured { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), var(--gold), var(--blue), #A5B4FC, var(--gold)) border-box; animation: spin 6s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }

/* logo flottant de l'appel final, icônes qui respirent */
.final img { animation: float 5s ease-in-out infinite; filter: drop-shadow(0 12px 24px rgba(99,102,241,.45)); }
.brand img { transition: transform .4s; } .brand:hover img { transform: rotate(-12deg) scale(1.08); }
.stat b { background: linear-gradient(90deg, #A5B4FC, #fff, #A5B4FC); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero .eyebrow, .hero p, .hero .cta, .hero small { opacity: 1 !important; transform: none !important; filter: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .pane .msg-u, .pane .msg-a { opacity: 1 !important; transform: none !important; }
  .ink path { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .hero .wrap, .plans, .steps, .two { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .compare .row { grid-template-columns: 1.3fr 1fr 1fr; padding: 14px 16px; font-size: 15px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .tilt { justify-self: start; }
  nav.menu a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .grid, .req { grid-template-columns: 1fr; }
  .stat b { font-size: 40px; }
  .compare .row { grid-template-columns: 1.2fr .8fr .9fr; font-size: 14px; }
  .link em { width: 120px; }
  .hero { padding: 64px 0 80px; }
}

/* sélecteur de langue à drapeaux (toujours visible, même sur mobile) */
nav.menu .lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.04); }
nav.menu .lang-switch a { display: inline-flex !important; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #C9D3E0; }
nav.menu .lang-switch a:hover { background: rgba(255,255,255,.08); color: #fff; }
nav.menu .lang-switch a.on { background: var(--cream); color: var(--ink); }
nav.menu .lang-switch svg { width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }
@media (max-width: 600px) { nav.menu .lang-switch a { padding: 5px 8px; } nav.menu .lang-switch span { display: none; } }
/* vidéo de démonstration : rien n'est chargé depuis YouTube avant le clic (aucun cookie tant qu'on ne lance pas la vidéo) */
.demo-video { padding: 10px 0 70px; }
.demo-video .wrap { max-width: 980px; text-align: center; }
.demo-video h2 { margin-bottom: 8px; }
.demo-video .lead { margin: 0 auto 26px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.12);
      background: radial-gradient(900px 500px at 30% 20%, #1E2A5A, #0B1220 70%); box-shadow: 0 30px 80px rgba(11,18,32,.35); }
.yt .poster { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; }
.yt .poster img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 40px rgba(99,102,241,.45); }
.yt .poster b { font-size: 30px; letter-spacing: -.01em; }
.yt .play { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg,#6366F1,#2563EB); display: grid; place-items: center; transition: transform .2s; box-shadow: 0 10px 30px rgba(37,99,235,.5); }
.yt:hover .play { transform: scale(1.08); }
.yt .play:after { content: ""; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.yt .note { font-size: 13px; color: #94A3B8; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }footer .soc { color: var(--muted); display: inline-flex; width: 28px; height: 28px; }
footer .soc:hover { color: var(--gold); }
footer .soc svg { width: 100%; height: 100%; }
