:root {
  --blue: #1668F0;
  --blue-deep: #0D4FC4;
  --blue-soft: #E8F0FE;
  --ink: #0B1220;
  --ink-2: #4A5568;
  --line: #E6EAF0;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FC;
  --radius: 20px;
  --font-title: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-title); font-weight: 600;
  border-radius: 999px; padding: 12px 22px; font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(22,104,240,.7); }
.btn-primary:hover { background: var(--blue-deep); box-shadow: 0 14px 34px -10px rgba(22,104,240,.8); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-light { background: #fff; color: var(--blue); box-shadow: 0 12px 30px -12px rgba(0,0,0,.4); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 0; transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 19px; color: #fff; transition: color .3s; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-mark-dark { display: none; }
.nav.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.nav.scrolled .brand { color: var(--ink); }
.nav.scrolled .brand-mark-light { display: none; }
.nav.scrolled .brand-mark-dark { display: block; }

/* ---------- Hero vidéo ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; color: #fff;
  background: var(--ink) url("assets/hero-poster.jpg") center/cover no-repeat;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,18,32,.55) 0%, rgba(11,18,32,.35) 40%, rgba(11,18,32,.85) 100%),
    linear-gradient(90deg, rgba(13,79,196,.55) 0%, rgba(13,79,196,0) 70%);
}
.hero-content { position: relative; padding-top: 90px; padding-bottom: 90px; max-width: 760px; margin-left: max(0px, calc((100% - 1120px) / 2)); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); margin-bottom: 22px;
}
.hero h1 { font-family: var(--font-title); font-weight: 800; font-size: clamp(38px, 7vw, 72px); line-height: 1.05; letter-spacing: -.02em; }
.accent { color: #7FB0FF; }
.lede { font-size: clamp(16px, 2.2vw, 20px); color: rgba(255,255,255,.85); margin: 20px 0 34px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.7); }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .cta h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -.02em; text-align: center; margin-bottom: 48px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; padding: 32px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(22,104,240,.45); }
.step-num { position: absolute; top: 22px; right: 24px; font-family: var(--font-title); font-weight: 800; font-size: 34px; color: var(--blue-soft); }
.step-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.step-icon svg, .feature svg { width: 26px; height: 26px; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step-icon svg { stroke: #fff; }
.step h3 { font-family: var(--font-title); font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 28px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  font-family: var(--font-title); font-weight: 600; font-size: 15px;
}
.feature svg { width: 32px; height: 32px; stroke: var(--blue); }

.operators { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; }
.operators img {
  width: 92px; height: 92px; border-radius: 22px; object-fit: cover;
  box-shadow: 0 10px 28px -14px rgba(11,18,32,.35); border: 1px solid var(--line);
  transition: transform .25s ease;
}
.operators img:hover { transform: translateY(-4px) scale(1.04); }

/* ---------- Appel à l'action ---------- */
.cta { padding: 96px 0; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta::before { width: 420px; height: 420px; top: -180px; right: -120px; }
.cta::after { width: 300px; height: 300px; bottom: -160px; left: -80px; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cta-logo { width: 150px; margin-bottom: 24px; }
.cta h2 { margin-bottom: 28px; }
.cta-meta { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Pied de page ---------- */
.footer { padding: 40px 0 26px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { display: block; font-family: var(--font-title); }
.footer-brand span { font-size: 14px; color: var(--ink-2); }
.footer-brand a { color: var(--blue); font-weight: 600; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover { color: var(--blue); }
.copy { text-align: center; margin-top: 28px; font-size: 13px; color: #8A94A6; }

/* ---------- Liens légaux du pied de page ---------- */
.footer-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--blue); }

/* ---------- Pages légales ---------- */
.legal-hero { padding: 130px 0 56px; background: linear-gradient(135deg, var(--ink) 0%, #12306B 100%); color: #fff; }
.legal-back { display: inline-block; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.legal-back:hover { color: #fff; }
.legal-hero h1 { font-family: var(--font-title); font-weight: 800; font-size: clamp(32px, 5.5vw, 52px); letter-spacing: -.02em; line-height: 1.1; }
.legal-hero p { margin-top: 12px; max-width: 620px; color: rgba(255,255,255,.8); font-size: 17px; }
.legal-date { display: inline-block; margin-top: 22px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }

.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.legal-toc { position: sticky; top: 84px; }
.legal-toc p { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8A94A6; margin-bottom: 12px; }
.legal-toc ol { list-style: none; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-2); transition: color .2s, border-color .2s; }
.legal-toc a:hover, .legal-toc a.actif { color: var(--blue); border-left-color: var(--blue); }

.legal-body { max-width: 720px; }
.legal-body section { padding-bottom: 34px; margin-bottom: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-title); font-size: 22px; margin-bottom: 14px; }
.legal-body h2 span { font-size: 14px; color: var(--blue); font-weight: 700; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 10px; }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--blue); }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--blue); font-weight: 500; }
.legal-others { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-others a { padding: 12px 18px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-title); font-weight: 600; font-size: 14px; }
.legal-others a:hover { background: var(--blue); color: #fff; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .legal-toc { position: static; padding: 18px 20px; border-radius: 16px; background: var(--bg-alt); }
  .legal-hero { padding: 110px 0 44px; }
}

/* ---------- Animation d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .features .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3), .features .reveal:nth-child(3) { transition-delay: .2s; }
.features .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section, .cta { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .hero-content { padding-top: 110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .operators { gap: 10px; flex-wrap: nowrap; }
  .operators img { width: 58px; height: 58px; border-radius: 15px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 380px) {
  .nav .btn-sm { padding: 8px 12px; }
  .brand { font-size: 17px; }
}
