/* ============================================================
   CHANTÉVO — Site commercial
   Feuille de styles unique. Charte reprise de l'application :
   bleu marine #1a3a5c, orange #e67e22, fond clair #f0f4f8.
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  --navy-900: #0f2438;
  --navy-800: #142f47;
  --navy-700: #1a3a5c;
  --navy-600: #24506f;
  --navy-500: #3a6b8f;

  --orange-600: #cf6c14;
  --orange-500: #e67e22;
  --orange-400: #f0954a;
  --orange-100: #fdf0e2;

  --teal-500: #2a9d8f;
  --red-500: #c0392b;

  --ink-900: #101c28;
  --ink-700: #2e414f;
  --ink-500: #5a6f80;
  --ink-400: #8296a6;

  --paper: #ffffff;
  --paper-soft: #f6f9fc;
  --paper-blue: #eef3f8;
  --line: #dfe7ee;
  --line-soft: #edf2f7;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(16, 28, 40, .06), 0 2px 6px rgba(16, 28, 40, .04);
  --shadow-m: 0 2px 6px rgba(16, 28, 40, .06), 0 12px 28px rgba(16, 28, 40, .08);
  --shadow-l: 0 8px 20px rgba(16, 28, 40, .08), 0 30px 60px rgba(16, 28, 40, .12);

  --wrap: 1160px;
  --nav-h: 72px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ── 2. Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange-600); }

h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

strong { color: var(--ink-900); font-weight: 650; }

code, .mono { font-family: var(--mono); font-size: .88em; }

::selection { background: var(--orange-500); color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-700); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── 3. Utilitaires de mise en page ────────────────────────── */
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }

.section { padding: clamp(56px, 4vw + 32px, 104px) 0; }
.section-tight { padding: clamp(40px, 3vw + 20px, 64px) 0; }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-500); font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--orange-500); border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }

.bg-soft  { background: var(--paper-soft); }
.bg-blue  { background: var(--paper-blue); }
.bg-navy  { background: var(--navy-800); color: #c8d8e6; }
.bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy .section-head p { color: #9fb6c9; }

.lead { font-size: 1.15rem; color: var(--ink-500); }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
.split.reverse .split-visual { order: -1; }

/* ── 4. Boutons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: 13px 24px; border-radius: 10px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 6px 16px rgba(230, 126, 34, .3); }
.btn-primary:hover { background: var(--orange-600); color: #fff; box-shadow: 0 10px 22px rgba(230, 126, 34, .36); }

.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-800); color: #fff; }

.btn-ghost { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-700); background: var(--paper-soft); }

.btn-ghost-light { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

.btn-sm { padding: 9px 16px; font-size: .88rem; }
.btn-lg { padding: 16px 30px; font-size: 1.03rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ── 5. En-tête / navigation ───────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header.scrolled { box-shadow: var(--shadow-s); }

.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.22rem; font-weight: 800; color: var(--navy-700);
  letter-spacing: -.03em;
}
.brand-by { font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 550; color: var(--ink-700);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--paper-blue); color: var(--navy-700); }
.nav-links a.current { color: var(--orange-600); font-weight: 650; }

.nav-cta { margin-left: 18px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 19px; height: 2px; background: var(--navy-700);
  border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  background: var(--navy-700); border-radius: 2px; transition: transform .2s, top .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* ── 6. Héros ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(230, 126, 34, .16), transparent 62%),
    radial-gradient(900px 480px at 8% 108%, rgba(58, 107, 143, .22), transparent 60%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: #cfdeeb;
  padding: clamp(64px, 6vw, 108px) 0 clamp(72px, 6vw, 112px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1000px 620px at 50% 30%, #000 30%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: clamp(36px, 4vw, 64px); align-items: center; }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(230, 126, 34, .38) 62%);
  padding: 0 .08em;
}
.hero-lead { font-size: 1.16rem; color: #a9c1d4; max-width: 46ch; margin-bottom: 30px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(230, 126, 34, .13);
  border: 1px solid rgba(230, 126, 34, .34);
  color: var(--orange-400);
  font-size: .82rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, .25);
}

.hero-note { margin-top: 22px; font-size: .88rem; color: #7f9bb2; }
.hero-note strong { color: #cfdeeb; font-weight: 600; }

/* Maquette applicative du héros */
.mockup {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-origin: center;
}
.mockup-bar {
  height: 34px; background: var(--navy-700);
  display: flex; align-items: center; gap: 7px; padding: 0 14px;
}
.mockup-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mockup-bar .url {
  margin-left: 12px; flex: 1; height: 18px; border-radius: 5px;
  background: rgba(255,255,255,.12);
  font-size: .62rem; color: rgba(255,255,255,.6);
  display: flex; align-items: center; padding: 0 9px;
  font-family: var(--mono);
}
.mockup-body { display: flex; min-height: 340px; background: var(--paper-blue); }
.mockup-side { width: 132px; background: #1a2a3a; padding: 12px 8px; flex-shrink: 0; }
.mockup-side .s-lab {
  font-size: .5rem; letter-spacing: .1em; text-transform: uppercase;
  color: #6c8096; padding: 9px 8px 3px; font-weight: 700;
}
.mockup-side .s-item {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; border-radius: 5px; margin-bottom: 1px;
  font-size: .6rem; color: #b0bec5;
}
.mockup-side .s-item .ic { width: 10px; height: 10px; border-radius: 2px; background: #46586b; flex-shrink: 0; }
.mockup-side .s-item.on { background: var(--orange-500); color: #fff; font-weight: 600; }
.mockup-side .s-item.on .ic { background: rgba(255,255,255,.75); }

.mockup-main { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mk-title { font-size: .74rem; font-weight: 700; color: var(--ink-900); }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mk-kpi { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; }
.mk-kpi b { display: block; font-size: .95rem; color: var(--navy-700); line-height: 1.1; }
.mk-kpi span { font-size: .5rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .04em; }
.mk-kpi.acc b { color: var(--orange-600); }

.mk-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9px; flex: 1; }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.mk-card h5 { margin: 0 0 8px; font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); font-weight: 700; }
.mk-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.mk-row:first-of-type { border-top: 0; }
.mk-row .nm { flex: 1; font-size: .58rem; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-pill { font-size: .48rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; letter-spacing: .03em; }
.mk-pill.g { background: #e3f5ee; color: #1d7a63; }
.mk-pill.o { background: var(--orange-100); color: var(--orange-600); }
.mk-pill.b { background: #e4edf6; color: var(--navy-700); }
.mk-bar { height: 4px; border-radius: 99px; background: var(--line-soft); overflow: hidden; width: 52px; flex-shrink: 0; }
.mk-bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--orange-500); border-radius: 99px; }
.mk-alert { display: flex; gap: 6px; align-items: flex-start; font-size: .55rem; padding: 5px 0; color: var(--ink-500); }
.mk-alert .b { width: 3px; align-self: stretch; border-radius: 2px; background: var(--orange-500); flex-shrink: 0; }
.mk-alert.red .b { background: var(--red-500); }

/* ── 7. Bandeau de chiffres ────────────────────────────────── */
.stats-strip {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 30px 0;
}
.stats-strip .grid { gap: 16px; }
.stat { text-align: center; padding: 8px 12px; }
.stat b {
  display: block; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1.05;
}
.stat b em { font-style: normal; color: var(--orange-500); }
.stat span { font-size: .82rem; color: #85a0b6; }

/* ── 8. Cartes ─────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #cddbe7; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-500); font-size: .96rem; margin-bottom: 0; }

.card-ico {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--paper-blue); color: var(--navy-700);
}
.card-ico svg { width: 23px; height: 23px; }
.card-ico.accent { background: var(--orange-100); color: var(--orange-600); }

.card-list { list-style: none; padding: 0; margin: 16px 0 0; }
.card-list li {
  position: relative; padding-left: 22px; margin-bottom: 7px;
  font-size: .92rem; color: var(--ink-500);
}
.card-list li::before {
  content: ""; position: absolute; left: 2px; top: .58em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--orange-500);
}

.card-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-500); background: var(--paper-blue);
  padding: 4px 9px; border-radius: 5px; margin-bottom: 12px;
}

/* Carte-lien de module (page fonctionnalités) */
.module {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.module-head {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 28px 30px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--paper-soft), #fff);
}
.module-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.module-head h3 { margin: 0 0 4px; font-size: 1.32rem; }
.module-head p { color: var(--ink-500); font-size: .97rem; margin: 0; }
.module-body { padding: 26px 30px 30px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 28px; }
.feat-list li {
  position: relative; padding-left: 26px; margin-bottom: 9px;
  font-size: .95rem; color: var(--ink-700);
}
.feat-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--orange-100);
  box-shadow: inset 0 0 0 1.5px var(--orange-400);
}
.feat-list li::after {
  content: ""; position: absolute; left: 4.5px; top: .68em;
  width: 6px; height: 3px;
  border-left: 1.7px solid var(--orange-600);
  border-bottom: 1.7px solid var(--orange-600);
  transform: rotate(-45deg);
}
.feat-list li b { color: var(--ink-900); font-weight: 650; }

.module-out {
  margin-top: 22px; padding: 16px 18px;
  background: var(--paper-blue); border-radius: var(--radius-s);
  border-left: 3px solid var(--navy-500);
  font-size: .92rem; color: var(--ink-700);
}
.module-out b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy-500); margin-bottom: 4px; }

/* ── 9. Étapes / parcours ──────────────────────────────────── */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.flow-step { position: relative; padding: 0 16px; }
.flow-step::before {
  content: ""; position: absolute; top: 21px; left: 0; right: 0;
  height: 2px; background: var(--line);
}
.flow-step:first-child::before { left: 50%; }
.flow-step:last-child::before  { right: 50%; }
.flow-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; margin: 0 auto 16px;
  border-radius: 50%; background: #fff;
  border: 2px solid var(--orange-500); color: var(--orange-600);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.flow-step h4 { text-align: center; font-size: 1rem; margin-bottom: 6px; }
.flow-step p { text-align: center; font-size: .88rem; color: var(--ink-500); }

/* ── 10. Comparatif avant / après ──────────────────────────── */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.vs-col.before { background: var(--paper-soft); }
.vs-col.after  { background: linear-gradient(160deg, #fff, var(--orange-100)); border-color: #f2d5b6; }
.vs-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; margin-bottom: 18px; }
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
  font-size: .95rem; color: var(--ink-700);
}
.vs-col li::before {
  position: absolute; left: 0; top: -1px;
  font-weight: 800; font-size: 1rem;
}
.vs-col.before li::before { content: "✕"; color: var(--red-500); }
.vs-col.after  li::before { content: "✓"; color: var(--teal-500); }

/* ── 11. Profils métier ────────────────────────────────────── */
.role {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s, box-shadow .18s;
}
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.role-ava {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  background: var(--navy-700);
}
.role-ava.o { background: var(--orange-500); }
.role-ava.t { background: var(--teal-500); }
.role-ava.n { background: var(--navy-500); }
.role h3 { margin-bottom: 2px; font-size: 1.1rem; }
.role .role-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400); font-weight: 650; margin-bottom: 12px; }

/* ── 12. Tableau ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
table.tbl th, table.tbl td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.tbl thead th {
  background: var(--paper-soft); font-size: .76rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-500); font-weight: 700;
}
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td:first-child { color: var(--ink-900); font-weight: 550; }
table.tbl .yes { color: var(--teal-500); font-weight: 800; }
table.tbl .no  { color: var(--ink-400); }

/* ── 13. Tarifs ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; height: 100%;
}
.plan.featured {
  border-color: var(--orange-500); border-width: 2px;
  box-shadow: var(--shadow-m); position: relative;
}
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-500); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 99px; white-space: nowrap;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .plan-for { font-size: .88rem; color: var(--ink-400); margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price .amount { font-size: 2.3rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }
.plan-price .per { font-size: .88rem; color: var(--ink-400); }
.plan-note { font-size: .82rem; color: var(--ink-400); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.plan li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: .93rem; color: var(--ink-700);
}
.plan li::before { content: "✓"; position: absolute; left: 2px; top: -1px; color: var(--teal-500); font-weight: 800; }
.plan li.off { color: var(--ink-400); }
.plan li.off::before { content: "–"; color: var(--ink-400); }
.plan .btn { margin-top: auto; width: 100%; }

/* ── 14. FAQ ───────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; position: relative;
  font-weight: 650; color: var(--ink-900); font-size: 1.03rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--orange-500); border-bottom: 2px solid var(--orange-500);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 22px 0; color: var(--ink-500); font-size: .97rem; }
.faq summary:hover { color: var(--orange-600); }

/* ── 15. Citation ──────────────────────────────────────────── */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(30px, 3vw, 48px); box-shadow: var(--shadow-s);
  position: relative;
}
.quote::before {
  content: "“"; position: absolute; top: 4px; left: 24px;
  font-size: 5rem; line-height: 1; color: var(--orange-100); font-family: Georgia, serif;
}
.quote blockquote {
  margin: 0 0 22px; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  color: var(--ink-900); line-height: 1.55; position: relative;
}
.quote-by { display: flex; align-items: center; gap: 13px; }
.quote-by .av {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy-700);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.quote-by b { display: block; font-size: .95rem; color: var(--ink-900); }
.quote-by span { font-size: .85rem; color: var(--ink-400); }

/* ── 16. Bloc CTA ──────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-l);
  background:
    radial-gradient(700px 340px at 88% 8%, rgba(230, 126, 34, .22), transparent 60%),
    linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: #b9cddd;
  padding: clamp(40px, 4vw, 64px);
  text-align: center;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { max-width: 56ch; margin-inline: auto; margin-bottom: 28px; color: #a9c1d4; }

/* ── 17. Formulaire ────────────────────────────────────────── */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-s);
}
.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: .88rem; font-weight: 650;
  color: var(--ink-900); margin-bottom: 7px;
}
.field label .opt { font-weight: 400; color: var(--ink-400); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .96rem; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, .16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--ink-500); }
.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange-500); }
.form-msg {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 9px;
  border: 1px solid transparent; font-size: .93rem;
}
.form-msg.show { display: block; }
.form-msg.ok   { background: #e3f5ee; border-color: #bfe5d9; color: #1d7a63; }
.form-msg.err  { background: #fdecea; border-color: #f3c4bf; color: #b93a2b; }
.form-msg.warn { background: #fdf3e2; border-color: #f0d9b0; color: #8a5a10; }
.form-msg a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Champ-piège du formulaire : invisible à l'écran comme aux lecteurs
   d'écran, mais rempli par les robots qui soumettent tous les champs.
   `display:none` serait détecté par les robots les plus soignés ;
   on le sort donc du flux sans le masquer explicitement. */
.hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--paper-blue); color: var(--navy-700);
  display: grid; place-items: center;
}
.contact-item .ci svg { width: 19px; height: 19px; }
.contact-item b { display: block; color: var(--ink-900); font-size: .95rem; }
.contact-item span, .contact-item a { font-size: .93rem; color: var(--ink-500); }

/* ── 18. Pied de page ──────────────────────────────────────── */
.site-footer {
  background: var(--navy-900); color: #8fa9be;
  padding: 60px 0 28px; font-size: .93rem;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  color: #fff; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #8fa9be; }
.site-footer a:hover { color: var(--orange-400); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-by { color: #6d8aa3; }
.footer-about { margin-top: 16px; max-width: 34ch; color: #7d97ac; font-size: .9rem; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: .85rem; color: #6d8aa3;
}
.footer-bottom a { color: #6d8aa3; }

/* ── 19. Page interne (titre) ──────────────────────────────── */
.page-head {
  background:
    radial-gradient(760px 320px at 82% -20%, rgba(230, 126, 34, .16), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #a9c1d4;
  padding: clamp(48px, 4vw, 76px) 0;
}
.page-head h1 { color: #fff; margin-bottom: 14px; }
.page-head p { font-size: 1.1rem; max-width: 62ch; color: #a9c1d4; margin-bottom: 0; }
.page-head .eyebrow { color: var(--orange-400); }
.page-head .eyebrow::before { background: var(--orange-500); }

/* Sommaire d'ancres */
.anchors { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.anchors a {
  font-size: .84rem; font-weight: 600; padding: 7px 14px;
  border-radius: 99px; border: 1px solid rgba(255,255,255,.18);
  color: #cfdeeb; background: rgba(255,255,255,.05);
  transition: background .15s, border-color .15s, color .15s;
}
.anchors a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }

/* Contenu légal */
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-700); font-size: .97rem; }

/* ── 20. Divers ────────────────────────────────────────────── */
.pill-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill {
  font-size: .84rem; font-weight: 600; padding: 6px 13px;
  border-radius: 99px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-700);
}
.bg-navy .pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #cfdeeb; }

.doc-chip {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 16px;
  font-size: .93rem; color: var(--ink-700); font-weight: 550;
}
.doc-chip .pdf {
  flex-shrink: 0; width: 30px; height: 36px; border-radius: 4px;
  background: linear-gradient(160deg, #fff, #ffeceb);
  border: 1px solid #f3c4bf; color: var(--red-500);
  display: grid; place-items: center;
  font-size: .5rem; font-weight: 800; letter-spacing: .04em;
}

.callout {
  border-left: 3px solid var(--orange-500);
  background: var(--orange-100);
  padding: 18px 22px; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--ink-700); font-size: .96rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 21. Adaptatif ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .flow-step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .mockup { transform: none; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
  .g2, .g3, .split, .vs { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
  .feat-list { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 18px 22px; margin: 0;
    box-shadow: var(--shadow-m);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .module-head { padding: 22px; flex-direction: column; gap: 12px; }
  .module-body { padding: 22px; }
  .mockup-side { display: none; }
  .mk-kpis { grid-template-columns: repeat(2, 1fr); }
  .mk-panels { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta { display: none; }
  body { font-size: 12pt; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   22. Animation du héros
   Tout est en CSS pur avec `animation-fill-mode: both` : les
   éléments démarrent dans leur état initial sans qu'un script
   ait à intervenir, donc aucun clignotement au chargement et un
   rendu correct si le JavaScript est indisponible.
   ============================================================ */

@keyframes heroUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* La maquette arrive de la droite en se redressant vers sa
   perspective de repos (celle définie sur .mockup). */
@keyframes mockupIn {
  from {
    opacity: 0;
    transform: perspective(1400px) rotateY(-15deg) rotateX(5deg) translateX(54px) scale(.95);
  }
  to {
    opacity: 1;
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg) translateX(0) scale(1);
  }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* Remplissage des jauges : la largeur cible est portée par --w,
   ce qui laisse la barre correcte même sans animation. */
@keyframes remplir { from { width: 0; } to { width: var(--w, 0%); } }

/* Surlignage progressif du mot clé du titre. */
@keyframes souligner { from { background-size: 0 100%; } to { background-size: 100% 100%; } }

/* Pastille du badge : battement lent, façon voyant d'activité. */
@keyframes battement {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230, 126, 34, .25); }
  50%      { box-shadow: 0 0 0 7px rgba(230, 126, 34, .05); }
}

/* ── Cascade d'entrée du contenu ─────────────────────────────── */
.hero-badge,
.hero h1,
.hero-lead,
.hero .btn-row,
.hero-note {
  animation: heroUp .72s cubic-bezier(.22, .68, .36, 1) both;
}
.hero-badge     { animation-delay: .05s; }
.hero h1        { animation-delay: .15s; }
.hero-lead      { animation-delay: .28s; }
.hero .btn-row  { animation-delay: .40s; }
.hero-note      { animation-delay: .52s; }

.hero-badge .dot { animation: battement 2.6s ease-in-out 1.4s infinite; }

.hero h1 .hl {
  background-repeat: no-repeat;
  animation: souligner .75s cubic-bezier(.22, .68, .36, 1) .95s both;
}

.hero .mockup { animation: mockupIn 1s cubic-bezier(.22, .68, .36, 1) .3s both; }

/* ── Contenu de la maquette ──────────────────────────────────── */
/* Les délais reprennent après l'arrivée de la fenêtre (~1,1 s),
   dans l'ordre où l'œil parcourt un tableau de bord. */
.mockup .mk-kpi   { animation: heroUp .5s ease both; }
.mockup .mk-kpi:nth-child(1) { animation-delay: 1.05s; }
.mockup .mk-kpi:nth-child(2) { animation-delay: 1.13s; }
.mockup .mk-kpi:nth-child(3) { animation-delay: 1.21s; }
.mockup .mk-kpi:nth-child(4) { animation-delay: 1.29s; }

.mockup .mk-row { animation: slideIn .45s ease both; }
.mockup .mk-row:nth-of-type(1) { animation-delay: 1.34s; }
.mockup .mk-row:nth-of-type(2) { animation-delay: 1.42s; }
.mockup .mk-row:nth-of-type(3) { animation-delay: 1.50s; }
.mockup .mk-row:nth-of-type(4) { animation-delay: 1.58s; }
.mockup .mk-row:nth-of-type(5) { animation-delay: 1.66s; }

.mockup .mk-bar i { animation: remplir 1s cubic-bezier(.22, .68, .36, 1) 1.55s both; }

.mockup .mk-alert { animation: slideIn .45s ease both; }
.mockup .mk-alert:nth-of-type(1) { animation-delay: 1.72s; }
.mockup .mk-alert:nth-of-type(2) { animation-delay: 1.82s; }
.mockup .mk-alert:nth-of-type(3) { animation-delay: 1.92s; }
.mockup .mk-alert:nth-of-type(4) { animation-delay: 2.02s; }

.mockup .mockup-side .s-item,
.mockup .mockup-side .s-lab { animation: fadeIn .6s ease .9s both; }

/* Sous 1024 px la maquette perd sa perspective (règle du bloc
   adaptatif) : l'entrée doit suivre, sinon elle se termine sur
   une transformation que la mise en page n'attend plus. */
@media (max-width: 1024px) {
  .hero .mockup { animation: heroUp .8s cubic-bezier(.22, .68, .36, 1) .3s both; }
}

/* ── Compteurs du bandeau de chiffres ────────────────────────── */
/* La valeur finale est écrite dans le HTML : sans JavaScript,
   elle s'affiche telle quelle, simplement sans décompte. */
.stat b { font-variant-numeric: tabular-nums; }

/* ── Préférence système : pas d'animation ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero-lead, .hero .btn-row, .hero-note,
  .hero .mockup, .mockup .mk-kpi, .mockup .mk-row, .mockup .mk-alert,
  .mockup .mockup-side .s-item, .mockup .mockup-side .s-lab {
    animation: none;
  }
  .hero h1 .hl     { animation: none; background-size: 100% 100%; }
  .hero-badge .dot { animation: none; }
  .mockup .mk-bar i { animation: none; width: var(--w, 0%); }
}
