/* ==========================================================================
   Passerelle — feuille de style principale (thème sombre)
   ========================================================================== */

:root {
  --bg: #14171F;
  --bg-raised: #1C212B;
  --bg-raised-2: #232936;
  --text: #ECEEF2;
  --text-soft: #A9AFBD;
  --line: #2B303C;
  --line-strong: #3C4353;
  --accent: #4FA8B5;
  --accent-dark: #3A8894;
  --gold: #C9A55C;
  --danger: #D97A7A;
  --muted: #7D8494;

  --font-display: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --font-body: "Mulish", "Segoe UI", Arial, sans-serif;

  --maxw: 1120px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--text);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.18;
  margin: 0 0 0.5em; letter-spacing: -0.005em; color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; max-width: 62ch; color: var(--text-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
section.tight { padding: 52px 0; }

.section-head { max-width: 620px; margin-bottom: 42px; }
.section-head p { margin-bottom: 0; }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 0.96rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-body); transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #0E1116; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.brand span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; width: 42px; height: 42px; padding: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); margin: 4px auto; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: var(--bg-raised);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 18px; transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.13rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Dashboard mockup (grounded hero visual) ---------- */
.dash-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.55);
  overflow: hidden;
}
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.dash-head span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.dash-tile { background: var(--bg-raised); padding: 18px; }
.dash-tile h4 { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; text-transform: none; }
.dash-tile .dash-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text); }
.dash-tile .dash-sub { font-size: 0.76rem; color: var(--text-soft); margin-top: 2px; }
.dash-tile.accent .dash-value { color: var(--accent); }
.dash-tile.gold .dash-value { color: var(--gold); }

/* ---------- Steps row (genuine sequence, filled circle numbers on dark bg) ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.step-item { text-align: left; }
.step-circle {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #0E1116;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 16px;
}
.step-item h3 { margin-bottom: 8px; }
.step-item p { margin: 0; font-size: 0.93rem; }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.95rem; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.pull-quote {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--text);
  line-height: 1.4; border-left: 3px solid var(--accent); padding-left: 22px;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 12px 0 12px 28px; position: relative; border-top: 1px solid var(--line); }
.check-list li:first-child { border-top: none; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 18px 40px -26px rgba(79,168,181,0.35); }
.plan-tag { display: inline-block; align-self: flex-start; background: var(--accent); color: #0E1116; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.plan-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.plan-audience { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.plan-price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.plan-price span { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan-note { font-size: 0.82rem; color: var(--muted); margin-bottom: 22px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; flex-grow: 1; }
.plan-list li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--text-soft); display: flex; gap: 10px; }
.plan-list li:first-child { border-top: none; }
.plan-list li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-fineprint {
  margin-top: 34px; padding: 20px 24px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.92rem;
}
.pricing-fineprint p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-body); font-size: 1.3rem; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { margin-top: 12px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-raised-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { color: var(--text); }

/* ---------- Forms ---------- */
.form-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--text); }
.field .hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 0.95rem; background: var(--bg); color: var(--text);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.form-msg { padding: 14px 16px; border-radius: 8px; font-size: 0.92rem; margin-bottom: 20px; }
.form-msg.error { background: #3A2226; color: var(--danger); border: 1px solid #5A2E33; }
.form-msg.success { background: #1E3236; color: var(--accent); border: 1px solid #2E4E54; }
.required { color: var(--danger); }

.info-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.info-row { padding: 14px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: none; padding-top: 0; }
.info-row .label { font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.info-row .value { font-weight: 600; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.92rem; max-width: 42ch; }
.footer-col h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--text-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: var(--muted);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Legal ---------- */
.legal-body h2 { margin-top: 1.8em; color: var(--text); }
.legal-updated { color: var(--muted); font-size: 0.88rem; }

/* ---------- 404 / merci ---------- */
.state-page { min-height: 60vh; display: flex; align-items: center; }
.state-page .container { text-align: left; max-width: 640px; }
.state-kicker { color: var(--accent); font-weight: 700; margin-bottom: 12px; }

.mt-32 { margin-top: 32px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
