:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f2f0ec;
  --text: #13202f;
  --muted: #55606d;
  --line: #e2ded7;
  --navy: #0f1b2d;
  --navy-2: #182a42;
  --on-navy: #ffffff;
  --on-navy-muted: #c3cedb;
  --accent: #d9482b;
  --accent-hover: #b93a20;
  --accent-soft: #fbe9e4;
  --ok: #1d7a55;
  --ok-soft: #e1f3ea;
  --wait: #8a5a00;
  --wait-soft: #fdf1d8;
  --warn-bg: #fff4dc;
  --warn-line: #e9c46a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1520;
    --surface: #142030;
    --surface-2: #1a2a3d;
    --text: #e9edf2;
    --muted: #a3afbd;
    --line: #26384d;
    --navy: #091220;
    --navy-2: #13243a;
    --accent: #f0694b;
    --accent-hover: #ff8468;
    --accent-soft: #3a1f1a;
    --ok: #4cc493;
    --ok-soft: #12352a;
    --wait: #f2c46d;
    --wait-soft: #3a2f12;
    --warn-bg: #332a12;
    --warn-line: #8a6d1f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1520;
  --surface: #142030;
  --surface-2: #1a2a3d;
  --text: #e9edf2;
  --muted: #a3afbd;
  --line: #26384d;
  --navy: #091220;
  --navy-2: #13243a;
  --accent: #f0694b;
  --accent-hover: #ff8468;
  --accent-soft: #3a1f1a;
  --ok: #4cc493;
  --ok-soft: #12352a;
  --wait: #f2c46d;
  --wait-soft: #3a2f12;
  --warn-bg: #332a12;
  --warn-line: #8a6d1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 2em 0 .6em; }
h3 { font-size: 1.12rem; margin: 1.4em 0 .4em; }
p, li { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.small { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin: 0; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 680px; }

/* En-tête */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.site-header a:hover { color: var(--on-navy); opacity: .85; }
.main-nav { display: flex; align-items: center; gap: 4px 20px; }
.main-nav a { text-decoration: none; font-size: .95rem; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.menu-toggle { display: none; background: transparent; color: var(--on-navy); border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.header-tools { display: none; align-items: center; gap: 10px; }
.site-header .lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 5px 10px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.site-header .lang-switch:hover { border-color: var(--accent); opacity: 1; }
@media (max-width: 900px) {
  .header-tools { display: flex; }
  .main-nav .lang-switch-desktop { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 1rem; }
  .main-nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; text-align: center; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; border-color: currentColor; color: inherit; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.site-header .btn-primary:hover { opacity: 1; background: var(--accent-hover); }

/* Héros */
.hero { background: var(--navy); color: var(--on-navy); padding: 56px 0 64px; }
.hero .lead { color: var(--on-navy-muted); }
.hero h1 { max-width: 860px; }
.hero a:not(.btn):hover { color: var(--on-navy); }
.hero .btn-ghost, .hero .btn-secondary { color: var(--on-navy); }
.hero-service { padding: 48px 0 48px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 24px 0 0; list-style: none; color: var(--on-navy-muted); font-size: .95rem; }
.trust-row li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.page-hero { padding: 48px 0 8px; }

.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Exemple de suivi */
.mock { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 8px 12px; overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mock th, .mock td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mock th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.mock figcaption { font-size: .8rem; color: var(--muted); padding: 10px 10px 0; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.status-ok { background: var(--ok-soft); color: var(--ok); }
.status-wait { background: var(--wait-soft); color: var(--wait); }

/* Cartes */
.cards { display: grid; gap: 16px; margin: 20px 0; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent) !important; font-size: 1.2rem !important; font-weight: 800; margin-bottom: 12px !important; }
.card-link { display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.card-link p { flex: 1; }
.card-more { margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.card-more::after { content: " →"; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 0; list-style: none; margin: 28px 0 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 10px; }
.steps h3 { margin-top: 0; }
.steps p { margin: 0; color: var(--muted); }

/* Tarif */
.pricing { padding: 64px 0 24px; }
.pricing-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.pricing-head h2 { margin-top: .3em; }
.pricing-head .lead { margin: 0 auto; }
.pricing-card { max-width: 920px; margin: 0 auto; background: var(--surface); border: 2px solid var(--accent); border-radius: 20px; box-shadow: var(--shadow); padding: 24px; }
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border: 0; padding: 4px; margin: 0 0 24px; background: var(--surface-2); border-radius: 14px; }
.term { position: relative; cursor: pointer; }
.term input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.term span { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 10px; text-align: center; }
.term small { color: var(--muted); font-size: .78rem; }
.term input:checked + span { background: var(--surface); box-shadow: var(--shadow); }
.term input:checked + span small { color: var(--accent); font-weight: 700; }
.term input:focus-visible + span { outline: 3px solid var(--accent); }
.pricing-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .pricing-body { grid-template-columns: 1fr; } }
.pricing-body h3 { margin: 0 0 4px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.02em; }
.price-unit { color: var(--muted); }
.price-billing { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.addon { background: var(--surface-2); border-radius: 12px; padding: 14px; margin-bottom: 18px; }
.addon small { color: var(--muted); }
.included-title { font-weight: 700; margin: 0 0 8px; }
.included { list-style: none; padding: 0; margin: 0 0 14px; }
.included li { padding: 5px 0 5px 26px; position: relative; font-size: .96rem; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Contenu éditorial */
.prose { padding-bottom: 32px; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.prose thead th { background: var(--surface-2); }
.prose .cards { padding: 0; }
.note { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.note p { margin: 0; }
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy-2); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.tldr p { margin: .2em 0; }
.tldr-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); }
.urgent { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 14px 18px; margin: 20px 0 8px; font-size: .95rem; }
.cta-box { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 28px; margin: 40px 0; }
.cta-box h2 { margin-top: 0; }
.cta-box p { color: var(--on-navy-muted); }
.cta-box a:not(.btn) { color: var(--on-navy); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 8px 0 14px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; list-style: none; margin: 12px 0; }
.pills li { margin: 0 !important; }
.pills a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .93rem; background: var(--surface); }
.pills a:hover { border-color: var(--accent); }
.related h2 { font-size: 1.25rem; }
.sources ol { font-size: .9rem; color: var(--muted); }
.sources h2 { font-size: 1.15rem; }

.glossary { margin: 24px 0; }
.glossary > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font-weight: 800; font-size: 1.1rem; margin-bottom: 6px; }
.glossary dd { margin: 0; color: var(--text); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; background: var(--surface-2); border-radius: 20px; padding: 32px; margin: 48px 0; align-items: start; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; padding: 20px; } }
.contact h2 { margin-top: 0; }
.contact-promises { list-style: none; padding: 0; margin: 16px 0; }
.contact-promises li { padding: 4px 0 4px 26px; position: relative; font-weight: 600; }
.contact-promises li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Formulaires */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.form legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { font-size: .86rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); padding: 0; }

/* Pied de page */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 48px 0 24px; font-size: .93rem; margin-top: 40px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--on-navy); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0 0 16px; }
.footer-grid li { margin: 6px 0; }
.footer-title { color: var(--on-navy); font-weight: 700; margin: 0 0 8px; }
.brand-footer { color: var(--on-navy); margin-top: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 20px; }
.footer-bottom .small { color: #9fb0c3; }
