:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface2: #f4f3ef;
  --line: #e6e4de;
  --ink: #16161a;
  --muted: #5f5f6b;
  --accent: #6b47ff;
  --accent-soft: #efebff;
  --ok: #15803d;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1f1f25;
    --surface2: #282830;
    --line: #363640;
    --ink: #f0f0f5;
    --muted: #a5a5b4;
    --accent: #a896ff;
    --accent-soft: #2d2652;
    --ok: #4ade80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.conteneur { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* En-tête */
header.barre { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.marque img { width: 36px; height: 36px; }
nav.liens a { color: var(--muted); text-decoration: none; font-weight: 600; margin-left: 22px; font-size: 15px; }
nav.liens a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #7c5cff, #c05cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sous { font-size: 20px; color: var(--muted); margin: 0 0 30px; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .08); }
.btn.primaire { background: #6b47ff; color: #fff; border-color: #6b47ff; box-shadow: 0 6px 18px rgb(107 71 255 / .35); }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.version { margin-top: 14px; font-size: 14px; color: var(--muted); }
.visuel { position: relative; display: flex; justify-content: center; }
.visuel img { width: min(340px, 80%); filter: drop-shadow(0 30px 50px rgb(91 59 239 / .35)); animation: flotte 6s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-12px) rotate(-1.5deg); } }

/* Sections */
section { padding: 56px 0; }
h2 { font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -0.02em; margin: 0 0 10px; }
.intro { color: var(--muted); margin: 0 0 32px; max-width: 640px; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.carte { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.carte .emoji { font-size: 32px; }
.carte h3 { margin: 10px 0 6px; font-size: 18px; }
.carte p { margin: 0; color: var(--muted); font-size: 15px; }
.etapes { counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.etapes .carte::before { counter-increment: e; content: counter(e); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p, details ol { color: var(--muted); margin: 10px 0 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

/* Pages de texte (confidentialité) */
.texte { max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; }
.texte h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 24px 0 6px; }
.texte h2 { font-size: 22px; margin: 36px 0 8px; }
.texte p, .texte li { color: var(--ink); }
.texte .maj { color: var(--muted); margin-top: 0; }
.encart { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: center; }
  .hero .boutons { justify-content: center; }
  .visuel { order: -1; }
  .visuel img { width: 180px; }
  .grille, .etapes { grid-template-columns: 1fr; }
  nav.liens a { margin-left: 14px; }
  table, thead, tbody, tr, th, td { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .visuel img { animation: none; } }

/* Lancement : lien Intel, bouton centré, ancres */
.autre { margin-top: 12px; font-size: 14px; color: var(--muted); }
.centre { text-align: center; margin: 0 0 24px; }
section { scroll-margin-top: 20px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 40px; }
  .hero .visuel { display: none; }
  .btn { width: 100%; }
  nav.liens a { margin-left: 12px; font-size: 14px; }
}
