/* Polices hébergées sur le site (aucun appel à Google Fonts) : Source Sans 3 et Source Serif 4, sous-ensembles latin */
/* Source Sans 3 latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Sans 3 latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Serif 4 latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Source Serif 4 latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* BULDAM : habillage des pages publiques refaites (accueil, tarifs).
   Direction : papier de bulletin, bleu nuit institutionnel, une seule touche d'ambre.
   Les jetons de couleur sont définis pour le mode clair, puis redéfinis pour le mode sombre. */
:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #0e1a38;
  --muted: #566079;
  --line: #ddd9cc;
  --navy: #0d2260;
  --accent: #1e40af;
  --amber: #e9a400;
  --ok: #0f7a4a;
  --ok-soft: #e3f3ea;
  --warn: #a35f00;
  --warn-soft: #fff1d1;
  --crit: #b42318;
  --crit-soft: #fdeceb;
  --on-accent: #ffffff;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0b1326; --surface: #121e3a; --ink: #eef2fb; --muted: #a2aec9; --line: #27365a;
  --navy: #0a1a47; --accent: #8fa9ff; --amber: #f2b52b; --ok: #5ed39a; --ok-soft: #0f3324; --warn: #f2b52b; --warn-soft: #3a2e0c;
  --crit: #ff8a7d; --crit-soft: #3b1a18; --on-accent: #0b1326; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Boutons ---------- */
.link { font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--ink); }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; font: 600 1rem var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-line { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--muted); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Haut de page ---------- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.badge::before { content: ""; width: 28px; height: 2px; background: var(--amber); }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 700; margin: 18px 0 20px; }
.hero h1 mark { background: none; color: inherit; box-shadow: inset 0 -0.32em 0 color-mix(in srgb, var(--amber) 55%, transparent); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.assure { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.9rem; color: var(--muted); }
.assure li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 6px; }

.stage { position: relative; padding: 0 0 40px; }
.win { margin-right: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(13, 34, 96, .45), 0 2px 0 var(--line); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: color-mix(in srgb, var(--paper) 70%, var(--surface)); border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win-bar span { margin-left: 10px; flex: 1; max-width: 300px; font-size: 0.78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 10px; }
.dash { padding: 18px 20px 22px; }
.dash h4 { font: 700 1.05rem var(--display); }
.dash .sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.kpi b { display: block; font: 700 1.35rem var(--display); }
.kpi span { font-size: 0.74rem; color: var(--muted); }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 78px 1fr 70px; gap: 12px; align-items: center; font-size: 0.82rem; }
.bar .track { height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 5px; background: var(--accent); }
.bar .fill.ok { background: var(--ok); }
.bar .fill.warn { background: var(--amber); }
.bar em { font-style: normal; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone { position: absolute; right: 0; bottom: -6px; width: 188px; background: var(--surface); border: 6px solid var(--ink); border-radius: 26px; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .5); overflow: hidden; }
:root[data-theme="dark"] .phone { border-color: #3a4a74; }
.phone .ph-top { padding: 12px 12px 8px; font: 700 0.8rem var(--display); border-bottom: 1px solid var(--line); }
.phone .ph-chip { margin: 10px 10px 4px; display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); font-size: 0.72rem; font-weight: 700; color: var(--accent); }
.phone ul { padding: 4px 10px 12px; display: grid; gap: 6px; }
.phone li { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.phone li b { min-width: 42px; text-align: center; padding: 4px 6px; border: 1.5px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
.phone li b.on { border-color: var(--accent); }
.phone .saved { margin: 0 10px 12px; font-size: 0.7rem; color: var(--ok); font-weight: 700; }

/* ---------- Confiance ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 0; }
.trust .cell { padding: 24px 24px; border-left: 1px solid var(--line); }
.trust .cell:first-child { border-left: 0; padding-left: 0; display: flex; align-items: center; }
.trust .cell:first-child p { font-weight: 600; max-width: 18em; }
.trust b { display: block; font: 700 1.9rem var(--display); color: var(--accent); line-height: 1.1; }
.trust span { color: var(--muted); font-size: 0.9rem; }

.fiche-band { background: var(--warn-soft); border-bottom: 1px solid var(--line); }
.fiche-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.fiche-band p { font-size: 0.97rem; flex: 1 1 420px; }
.fiche-band strong { font-weight: 700; }
.fiche-band span { color: var(--muted); }

/* ---------- Sections ---------- */
section.s { padding: 88px 0; }
section.s.alt { background: var(--surface); border-block: 1px solid var(--line); }
.s-head { max-width: 44em; margin-bottom: 44px; }
.kicker { display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.s-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.s-head p { color: var(--muted); font-size: 1.1rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: e; }
.st { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.st header { display: flex; justify-content: space-between; align-items: center; }
.st header::before { counter-increment: e; content: "Étape " counter(e); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.st .who { font-size: 0.76rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.st h3 { font-size: 1.3rem; }
.st p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.mini { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 0.8rem; display: grid; gap: 6px; background: var(--surface); }
.mini div { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { padding: 1px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
section.alt .roles { background: var(--paper); }
.role { padding: 28px 24px; border-left: 1px solid var(--line); }
.role:first-child { border-left: 0; }
.role h3 { font-size: 1.35rem; margin-bottom: 4px; }
.role .sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.role li { padding: 9px 0 9px 24px; position: relative; border-top: 1px solid var(--line); font-size: 0.96rem; }
.role li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

.cmp { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cmp th, .cmp td { padding: 16px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; background: color-mix(in srgb, var(--paper) 65%, var(--surface)); font: 700 0.8rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cmp thead th:last-child { color: var(--ok); }
.cmp tbody th { font: 700 1.02rem var(--display); width: 24%; }
.cmp td { color: var(--muted); }
.cmp td:last-child { color: var(--ink); font-weight: 500; background: color-mix(in srgb, var(--ok-soft) 40%, transparent); }
.note { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; background: var(--surface); font-size: 0.98rem; }

.etabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.etab { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 4px; }
.etab small { color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.etab b { font: 700 1.25rem var(--display); }
.etab em { margin-top: 12px; font: 700 2rem var(--display); font-style: normal; color: var(--accent); }
.etab span { color: var(--muted); font-size: 0.9rem; }

.final { background: var(--navy); color: #fff; border-radius: 16px; padding: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.final h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; color: #fff; }
.final .txt p { color: #c9d4f3; }
.final ul { margin-top: 20px; display: grid; gap: 8px; color: #e4ebfb; font-size: 0.97rem; }
.final li::before { content: "✓"; color: var(--amber); font-weight: 700; margin-right: 10px; }
.final form, .final .creds { background: var(--surface); color: var(--ink); border-radius: 12px; padding: 26px; display: grid; gap: 14px; }
.final label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; }
.final label .opt { font-weight: 400; color: var(--muted); }
.final input { height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 400 1rem var(--body); width: 100%; }
.final small { color: var(--muted); font-size: 0.82rem; }
.form-alert { padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; }
.form-alert.err { background: var(--crit-soft); color: var(--crit); }
.more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.more a { font-weight: 600; color: #fff; }
.creds table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.creds th, .creds td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); word-break: break-all; }
.creds th { font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Page tarifs ---------- */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin: 14px 0 14px; }
.plan { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.card h2, .card h3 { margin-bottom: 14px; }
.card h2 { font-size: 1.8rem; }
.checks li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.quote-line { font: italic 500 1.1rem var(--display); color: var(--muted); margin-bottom: 18px; }
.aside-card { background: var(--navy); color: #fff; }
.aside-card h3 { color: #fff; font-size: 1.5rem; }
.aside-card p { color: #c9d4f3; margin-bottom: 18px; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.trial { display: inline-block; margin-bottom: 14px; padding: 3px 12px; border-radius: 999px; background: var(--amber); color: #1b1300; font-weight: 700; font-size: 0.82rem; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.module h3 { font-size: 1.25rem; margin-bottom: 12px; }
.module li { padding: 7px 0 7px 22px; position: relative; font-size: 0.96rem; border-top: 1px solid var(--line); }
.module li:first-child { border-top: 0; }
.module li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.table-scroll { overflow-x: auto; border-radius: 12px; }
.cmp5 { min-width: 760px; }
.cmp5 td, .cmp5 th { padding: 13px 16px; font-size: 0.94rem; }
.cmp5 td:last-child { background: none; font-weight: 400; color: var(--muted); }
.cmp5 td.us { background: color-mix(in srgb, var(--ok-soft) 55%, transparent); color: var(--ink); font-weight: 600; }
.cmp5 thead th.us { color: var(--ok); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font: 600 1.02rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem var(--body); color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: 1fr 1fr; }
  .role:nth-child(3) { border-left: 0; }
  .role:nth-child(n+3) { border-top: 1px solid var(--line); }
  .trust .wrap { grid-template-columns: 1fr 1fr 1fr; }
  .trust .cell:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .trust .cell:nth-child(2) { border-left: 0; padding-left: 0; }
  .final { grid-template-columns: 1fr; padding: 32px; }
  .plan { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  section.s { padding: 60px 0; }
  .hero { padding: 40px 0 44px; }
  .steps, .roles, .etabs, .modules { grid-template-columns: 1fr; }
  .role { border-left: 0; border-top: 1px solid var(--line); }
  .role:first-child { border-top: 0; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust .cell { border-left: 0; padding: 16px 0; border-top: 1px solid var(--line); }
  .trust .cell:nth-child(2) { border-top: 0; }
  .cta-row .btn { flex: 1 1 100%; }
  .win { margin-right: 40px; }
  .phone { width: 150px; }
  .bar { grid-template-columns: 60px 1fr 54px; gap: 8px; }
  .cmp:not(.cmp5) thead { display: none; }
  .cmp:not(.cmp5), .cmp:not(.cmp5) tbody, .cmp:not(.cmp5) tr, .cmp:not(.cmp5) th, .cmp:not(.cmp5) td { display: block; width: 100%; }
  .cmp:not(.cmp5) tr { border-top: 1px solid var(--line); }
  .cmp:not(.cmp5) th, .cmp:not(.cmp5) td { border: 0; padding: 8px 18px; }
  .cmp:not(.cmp5) td:nth-of-type(1)::before { content: "Sans BULDAM : "; font-weight: 700; color: var(--crit); }
  .cmp:not(.cmp5) td:nth-of-type(2)::before { content: "Avec BULDAM : "; font-weight: 700; color: var(--ok); }
  .final { padding: 26px 20px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.cmp5 thead th:last-child { color: var(--muted); }
