/* ==========================================================
   Design tokens — repris de l'identité déjà utilisée sur la
   carte de visite (marine + bleu), pour rester cohérent avec
   ce qui est déjà en ligne / imprimé.
   ========================================================== */
:root {
  --bg: #05070e;
  --surface: #0a0e1c;
  --surface-2: #0d1330;
  --ink: #f5f6f9;
  --ink-soft: #9198ab;
  --ink-faint: #5b6478;
  --accent: #4f6bf5;
  --accent-dim: #3d54c9;
  --line: rgba(255, 255, 255, 0.09);
  --badge-bg: #121830;
  --badge-border: rgba(255, 255, 255, 0.09);

  --light: #eef0f6;
  --light-surface: #ffffff;
  --light-line: rgba(10, 14, 28, 0.08);
  --light-ink: #12162a;
  --light-ink-soft: #565f78;
  --light-badge-bg: #e8ecfb;

  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--light-surface);
  color: var(--light-ink);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  padding: 15px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-dim); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-light { background: #fff; color: var(--bg); }
.btn-light:hover { background: var(--light); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  flex: none;
}
.logo-big { font-size: 20px; font-weight: 800; color: #fff; }
.logo-suffix { font-size: 10px; font-weight: 800; color: var(--accent); }
.navlinks {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}
.navlinks::-webkit-scrollbar { display: none; }
.navlinks a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.navlinks a:hover { color: var(--ink); }
.navlinks-cta {
  flex: none;
  background: var(--accent);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  margin-left: 10px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, var(--surface-2) 0%, var(--surface) 55%, var(--bg) 100%);
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 800;
  color: #fff;
  max-width: 680px;
  text-wrap: balance;
}
.hero-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero-actions { margin-top: 6px; }
.hero-note {
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- SECTIONS (generic) ---------- */
.section { padding: 64px 0; background: var(--light-surface); }
.section-alt { background: var(--light); }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
}
.section-sub {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--light-ink-soft);
}

/* ---------- PROBLÈME ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.problem-item {
  background: var(--light);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 22px;
}
.problem-item p { font-size: 15.5px; line-height: 1.6; color: var(--light-ink); }

/* ---------- CARDS (agents) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(10, 14, 28, 0.25); }
.badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--light-badge-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge svg {
  width: 21px;
  height: 21px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin: 0; font-size: 19px; font-weight: 800; }
.card-tagline { font-size: 14px; font-weight: 600; color: var(--accent); margin: -6px 0 4px; }
.card ul { display: flex; flex-direction: column; gap: 10px; }
.card li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--light-ink-soft);
  padding-left: 18px;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- ÉTAPES ---------- */
.steps { display: flex; flex-direction: column; gap: 28px; max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--light-badge-bg);
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--light-ink-soft); }

/* ---------- MYTHE / RÉALITÉ ---------- */
.myth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.myth-item {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  padding: 22px;
}
.myth-label { color: var(--light-ink-soft); margin: 0 0 4px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.myth-text { font-size: 15.5px; font-weight: 700; margin-bottom: 14px; }
.reality-label { color: var(--accent); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 4px; display: block; }
.reality-text { font-size: 14.5px; line-height: 1.6; color: var(--light-ink-soft); }

/* ---------- PREUVE / STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.stat {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--light-line);
}
.stat-figure { font-size: 34px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-desc { font-size: 14.5px; line-height: 1.55; color: var(--light-ink); margin-bottom: 10px; }
.stat-source { font-size: 12px; color: var(--light-ink-soft); }
.stats-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--light-ink-soft);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin: 0 auto; }
.faq-item {
  background: var(--light-surface);
  border: 1px solid var(--light-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
  flex: none;
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--light-ink-soft); }

/* ---------- OFFRE PILOTE ---------- */
.pilot {
  background: radial-gradient(ellipse at 50% 0%, var(--surface-2) 0%, var(--surface) 60%, var(--bg) 100%);
}
.pilot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.pilot h2 { margin: 0; font-size: clamp(24px, 5.5vw, 32px); font-weight: 800; color: #fff; }
.pilot-text { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); max-width: 480px; }

/* ---------- CONTACT ---------- */
#contact.section { background: var(--light-surface); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--light-ink); }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--light-line);
  background: var(--light);
  color: var(--light-ink);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field input:invalid[data-touched="true"],
.field textarea:invalid[data-touched="true"] {
  border-color: #e0533f;
}
.field-error {
  font-size: 12.5px;
  color: #c8402d;
  min-height: 1em;
}
.form-feedback {
  font-size: 14px;
  font-weight: 600;
  min-height: 1.4em;
}
.form-feedback[data-state="success"] { color: #1a8f5a; }
.form-feedback[data-state="error"] { color: #c8402d; }

.contact-side {
  border-top: 1px solid var(--light-line);
  padding-top: 24px;
}
.contact-side h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.contact-placeholder {
  font-size: 14.5px;
  color: var(--light-ink-soft);
  border: 1px dashed var(--light-line);
  border-radius: 10px;
  padding: 14px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg); padding: 28px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.logo-footer .logo-big { font-size: 15px; }
.logo-footer .logo-suffix { font-size: 8px; }
.footer-legal { font-size: 12.5px; color: var(--ink-faint); }
.footer-copy { font-size: 12px; color: var(--ink-faint); }

/* ==========================================================
   Breakpoints — mobile d'abord, on ajoute de l'espace et des
   colonnes à mesure que l'écran grandit.
   ========================================================== */
@media (min-width: 640px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .myth-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .contact-side { border-top: none; padding-top: 0; }
}

@media (min-width: 860px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
  .nav { padding: 20px 40px; }
  .hero { padding: 110px 0 120px; }
  .section { padding: 96px 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .navlinks { gap: 28px; }
  .navlinks a { font-size: 14px; }
}
