/* ==========================================================================
   KPL Express — feuille de style principale
   Charte : bleu #3464E3 (logo + application), encre #1D1E20.
   Typo   : DM Sans (titres) + Inter (texte) — identiques à l'app mobile.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Jetons de design
   -------------------------------------------------------------------------- */
:root {
  /* Marque */
  --blue: #3464e3;
  --blue-dark: #2247a8;
  --blue-deep: #16307a;
  --blue-light: #4b92e3;
  --blue-soft: #eaf0fe;
  --blue-softer: #f4f7ff;
  --amber: #e8912a;
  --amber-soft: #fdf3e6;

  /* Neutres */
  --ink: #1d1e20;
  --ink-soft: #3c4149;
  --muted: #6b7280;
  --faint: #9aa1ac;
  --line: #e6e8ec;
  --line-soft: #f0f2f6;
  --surface: #ffffff;
  --surface-alt: #f5f7fa;

  /* États */
  --green: #12946a;
  --green-soft: #e2f5ee;
  --red: #d64550;
  --red-soft: #fbe7e9;

  /* Rayons */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Ombres */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --sh-md: 0 10px 28px rgba(16, 24, 40, 0.08);
  --sh-lg: 0 24px 56px rgba(16, 24, 40, 0.12);
  --sh-blue: 0 12px 28px rgba(52, 100, 227, 0.28);

  /* Rythme */
  --shell: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 116px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Réinitialisation
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: "DM Sans", "Inter", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.7vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--ink-soft); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--blue-dark); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }

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

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* --------------------------------------------------------------------------
   3. Utilitaires de mise en page
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--alt { background: var(--surface-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 78px); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* En-tête de section */
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head p { font-size: 1.06rem; color: var(--muted); margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.head--center .eyebrow { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-dark); box-shadow: 0 16px 34px rgba(52, 100, 227, 0.34); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--sh-xs);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--light {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }

.btn--wa { --btn-bg: #25d366; --btn-fg: #08331a; box-shadow: 0 12px 26px rgba(37, 211, 102, 0.3); }
.btn--wa:hover { --btn-bg: #1fbb59; }

.btn--sm { padding: 11px 19px; font-size: 0.92rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. En-tête / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; margin-right: auto; flex: none; }
.brand img { height: 34px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-list a:hover { background: var(--surface-alt); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; flex: none; }

.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
}
.burger span {
  position: relative;
  display: block;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), background-color 0.15s var(--ease);
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Tiroir mobile */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #fff;
  padding: 92px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; transform: none; visibility: visible; }
.drawer a.drawer-link {
  font-family: "DM Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  padding: 15px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer a.drawer-link[aria-current="page"] { color: var(--blue); }
.drawer .btn { margin-top: 22px; }
body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------------------
   6. Héros
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px) clamp(64px, 8vw, 104px);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(75, 146, 227, 0.16), transparent 62%),
    radial-gradient(760px 420px at -6% 6%, rgba(52, 100, 227, 0.1), transparent 60%),
    var(--surface);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--blue) 10%, var(--blue-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-points svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* Visuel du héros */
.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 58%; height: 58%;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, var(--blue-soft), transparent);
  z-index: -1;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 18px;
  box-shadow: var(--sh-md);
  animation: bob 6s ease-in-out infinite;
}
.float-card--a { left: -18px; top: 14%; }
.float-card--b { right: -14px; bottom: 12%; animation-delay: -3s; }

.float-card .fc-top {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}
.float-card .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.float-card .fc-main {
  font-family: "DM Sans", sans-serif;
  font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-top: 6px;
}
.float-card .fc-sub { font-size: 0.8rem; color: var(--muted); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Barre de suivi rapide */
.track-bar {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px;
  box-shadow: var(--sh-md);
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 520px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.track-bar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), var(--sh-md); }
.track-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.track-bar input:focus { outline: none; }
.track-bar input::placeholder { color: var(--faint); }
.track-hint { font-size: 0.85rem; color: var(--faint); margin-top: 10px; }

/* --------------------------------------------------------------------------
   7. Bandeau de confiance / statistiques
   -------------------------------------------------------------------------- */
.trust {
  border-block: 1px solid var(--line);
  background: var(--surface-alt);
  padding-block: 26px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: center;
}
.trust-item .k {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}
.trust-item .v { font-size: 0.87rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   8. Cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #dfe4ee; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.97rem; color: var(--muted); margin-bottom: 0; }

.card-ico {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
}
.card-ico svg { width: 25px; height: 25px; }
.card-ico--amber { background: var(--amber-soft); color: var(--amber); }
.card-ico--green { background: var(--green-soft); color: var(--green); }

/* --------------------------------------------------------------------------
   9. Étapes « Comment ça marche »
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  position: relative;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  z-index: 1;
  flex: none;
}
.step:not(:last-child) .step-num::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  width: 2px; height: calc(100% + 34px);
  transform: translateX(-50%);
  background: linear-gradient(var(--blue-light), var(--line));
  z-index: -1;
}
.step-body { padding-top: 6px; }
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 0.99rem; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Boutiques partenaires
   -------------------------------------------------------------------------- */
.shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.shop {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}
.shop:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--sh-md);
  color: var(--ink);
}
.shop-logo {
  display: block;
  width: 100%;
  max-width: 150px;
  margin-bottom: 18px;
}
.shop-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.shop-name {
  font-family: "DM Sans", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.shop-go {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}
.shop-go svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.shop:hover .shop-go { color: var(--blue); }
.shop:hover .shop-go svg { transform: translate(3px, -3px); }

/* Bandeau de logos — accueil */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--muted);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.logo-tile:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: var(--sh-sm);
  color: var(--ink);
}

/* Les fichiers de logos sont tous normalisés au même cadre (320 x 64),
   voir tools/normalize_logos.py : une seule règle suffit donc. */
.logo-box {
  display: block;
  width: 100%;
  max-width: 190px;
  margin-inline: auto;
}
.logo-box img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-name {
  font-family: "DM Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. Sections split (texte + image)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.split--flip .split-media { order: -1; }
.split--top { align-items: start; }
.split-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
}
.split-media--contain {
  background: var(--surface-alt);
  border-radius: var(--r-xl);
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
}
.split-media--contain img {
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: none;
  border-radius: var(--r-md);
}

.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; margin: 0; color: var(--ink-soft); font-size: 0.99rem; }
/* Le texte de la puce reste un seul element flex : sans ce span, un
   <strong> en debut de ligne formerait une colonne a part. */
.check-list li > span { flex: 1; min-width: 0; }
.check-list svg { width: 21px; height: 21px; color: var(--blue); flex: none; margin-top: 2px; }

/* --------------------------------------------------------------------------
   12. Suivi de colis
   -------------------------------------------------------------------------- */
.track-panel {
  max-width: 720px;
  margin-inline: auto;
}
.track-form {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 9px;
  box-shadow: var(--sh-md);
}
.track-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), var(--sh-md); }
.track-form input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 14px 15px; font: inherit; font-size: 1.04rem;
  letter-spacing: 0.04em; color: var(--ink);
}
.track-form input:focus { outline: none; }

.track-state { margin-top: 26px; }
.state-box {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: clamp(24px, 3vw, 34px);
  text-align: center;
}
.state-box h3 { margin-bottom: 8px; }
.state-box p { color: var(--muted); margin-bottom: 0; }
.state-box--error { border-color: #f3c9cd; background: var(--red-soft); }
.state-box--error h3 { color: #a5303a; }
.is-hidden { display: none !important; }

.spinner {
  width: 30px; height: 30px; margin: 0 auto 14px;
  border: 3px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-md);
}
.result-head {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: clamp(22px, 3vw, 30px);
}
.result-head .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.result-head h3 { color: #fff; margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

.result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.result-meta > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.result-meta > div:last-child { border-right: 0; }
.result-meta .k {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
}
.result-meta .v {
  font-family: "DM Sans", sans-serif; font-weight: 700;
  color: var(--ink); font-size: 0.99rem; word-break: break-word;
}

.timeline { padding: clamp(22px, 3vw, 30px); display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 22px; position: relative; }
.tl-step:last-child { padding-bottom: 0; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-bullet {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-alt); border: 2px solid var(--line);
  color: var(--faint); font-size: 0.8rem; font-weight: 700; z-index: 1;
}
.tl-step:not(:last-child) .tl-rail::after {
  content: ""; position: absolute; top: 30px; left: 50%;
  width: 2px; height: calc(100% - 22px); transform: translateX(-50%);
  background: var(--line);
}
.tl-step.done .tl-bullet { background: var(--blue); border-color: var(--blue); color: #fff; }
.tl-step.done:not(:last-child) .tl-rail::after { background: var(--blue-light); }
.tl-step.current .tl-bullet { box-shadow: 0 0 0 5px var(--blue-soft); }
.tl-t { font-family: "DM Sans", sans-serif; font-weight: 600; color: var(--faint); padding-top: 3px; }
.tl-step.done .tl-t { color: var(--ink); }
.tl-d { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   13. Formulaires
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: "DM Sans", sans-serif;
}
.field .req { color: var(--blue); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field .hint { font-size: 0.8rem; color: var(--faint); }

.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: 0.89rem; color: var(--muted); }
.checkline input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--blue); }

.form-note { font-size: 0.85rem; color: var(--faint); margin-top: 4px; }

.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 40px);
  box-shadow: var(--sh-sm);
}

.form-feedback {
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  margin-bottom: 18px;
}
.form-feedback--ok { background: var(--green-soft); color: #0b6e4f; }
.form-feedback--ko { background: var(--red-soft); color: #a5303a; }

/* Séparateur « ou » */
.or-split {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  color: var(--faint); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.or-split::before,
.or-split::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --------------------------------------------------------------------------
   14. Contact / agences
   -------------------------------------------------------------------------- */
.agency {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 30px);
  height: 100%;
}
.agency h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.agency .flag {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--blue);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.agency dl { margin: 0; display: grid; gap: 15px; }
.agency dt {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: 2px;
}
.agency dd { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.agency dd a { font-weight: 500; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.faq details[open] { border-color: var(--blue); box-shadow: var(--sh-sm); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 56px 19px 22px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .faq-body { padding: 0 22px 21px; }
.faq .faq-body p { color: var(--muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   16. Bandeau d'appel à l'action
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 58%, var(--blue-light));
  color: #fff;
  padding: clamp(38px, 5vw, 62px);
  text-align: center;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.cta-band::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.cta-band::after { width: 240px; height: 240px; bottom: -130px; left: -60px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.86); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* --------------------------------------------------------------------------
   17. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #b9bfc9;
  padding-block: clamp(48px, 6vw, 72px) 26px;
  margin-top: clamp(64px, 8vw, 100px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 3.5vw, 48px);
}
/* width:auto est indispensable : sans lui, l'attribut width="1036" du
   balisage (plafonné par max-width:100%) fait prendre toute la largeur
   de la colonne a l'image, qui est alors étirée. */
.site-footer img.f-logo { height: 38px; width: auto; margin-bottom: 20px; }
.site-footer p { color: #99a0ac; font-size: 0.92rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li { margin: 0; }
.site-footer a { color: #b9bfc9; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.f-address { font-size: 0.9rem; line-height: 1.7; color: #99a0ac; }
.f-address strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }

.footer-bottom {
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #7e8593;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social a:hover { background: var(--blue); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   18. Boutons flottants
   -------------------------------------------------------------------------- */
.fab-wa {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s var(--ease);
}
.fab-wa:hover { transform: scale(1.07); color: #fff; }
.fab-wa svg { width: 29px; height: 29px; }
.fab-wa::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.to-top {
  position: fixed;
  right: 20px; bottom: 86px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--sh-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--blue); color: var(--blue); }
.to-top svg { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   19. Pages de contenu légal
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(42px, 6vw, 72px) clamp(30px, 4vw, 48px);
  background:
    radial-gradient(760px 340px at 82% -20%, rgba(75, 146, 227, 0.16), transparent 62%),
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--muted); max-width: 62ch; margin-bottom: 0; }

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--faint); margin-bottom: 14px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.72rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.99rem; }
.prose .updated { font-size: 0.86rem; color: var(--faint); }

.toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc h4 { margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.toc li { margin: 0; }
.toc a { font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   20. Apparition au défilement
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* --------------------------------------------------------------------------
   21. Adaptatif
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .nav-list { display: none; }
  .burger { display: flex; }
  .nav-cta .btn { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .hero-visual img { aspect-ratio: 4 / 3.4; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .logo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid--2 { grid-template-columns: 1fr; }
  .result-meta { grid-template-columns: 1fr; }
  .result-meta > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-meta > div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .float-card--a { left: -6px; top: 8%; }
  .float-card--b { right: -6px; bottom: 6%; }
  .track-bar { flex-direction: column; align-items: stretch; }
  .track-bar .btn { width: 100%; }
  .track-form { flex-direction: column; }
  .track-form .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .step { grid-template-columns: 46px minmax(0, 1fr); gap: 16px; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; }
}

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

@media print {
  .site-header, .site-footer, .fab-wa, .to-top, .cta-band { display: none !important; }
  body { font-size: 12pt; }
}
