/* ==========================================================================
   EVOHE — feuille de style du site vitrine
   Pas de police ni de ressource externe : aucun appel tiers, pas de cookie.
   ========================================================================== */

:root {
  /* Marque : bleu et rouge du logo EVOHE */
  --brand: #2335d4;
  --brand-dark: #1a27a3;
  --brand-soft: #e9ecfd;
  --accent: #d7263d;

  /* Encres et fonds */
  --navy-950: #070d2b;
  --navy-900: #0b1437;
  --navy-800: #121e52;
  --ink: #141a3b;
  --muted: #566089;
  --line: #dde2f2;
  --bg: #ffffff;
  --bg-soft: #f5f7fd;

  /* Notes de qualité : mêmes sens que dans le logiciel */
  --note-bonne: #2e9d5b;
  --note-douteuse: #e8a21a;
  --note-mauvaise: #d6403a;
  --note-substituee: #3b82f6;
  --serie: #1d2a6b;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(11, 20, 55, .06), 0 8px 28px rgba(11, 20, 55, .10);
  --shadow-lg: 0 2px 4px rgba(11, 20, 55, .08), 0 24px 60px rgba(7, 13, 43, .28);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--note-substituee); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--navy-900); }
h1 { font-size: clamp(2.3rem, 1.2rem + 4.4vw, 3.85rem); font-weight: 780; letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.6rem); font-weight: 760; }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: .6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1320px; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a {
  color: var(--ink); text-decoration: none; font-weight: 560; font-size: .98rem;
  padding: .5em .8em; border-radius: 8px;
}
.nav > a:hover { background: var(--bg-soft); color: var(--brand-dark); }
.nav > a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav .nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav .nav-actions .btn { white-space: nowrap; }
.nav .nav-actions a[aria-current="page"] { color: var(--brand); border-color: #bdc6f5; background: var(--brand-soft); }
.nav-toggle { display: none; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .95em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--brand-soft); color: var(--navy-900); }
.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn-sm { padding: .65em 1.15em; font-size: .94rem; }
.btn:active { transform: translateY(1px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #d9defa; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.section-dark .eyebrow, .hero .eyebrow { color: #9fb0ff; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #d9defa;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(59, 91, 255, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero::before { /* papier millimétré : on est dans la mesure */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #8fa2ff; }
.hero .lead { color: #b9c3ee; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }

/* ---------- Carte du graphique ---------- */
.chart-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 18px 18px 14px;
}
.chart-tabs { display: flex; gap: 6px; background: var(--bg-soft); border-radius: 999px; padding: 4px; margin-bottom: 12px; }
.chart-tabs button {
  flex: 1; font: inherit; font-size: .88rem; font-weight: 650; color: var(--muted);
  padding: .55em .5em; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.chart-tabs button:hover { color: var(--brand-dark); }
.chart-tabs button[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(11, 20, 55, .15); }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; font-size: .82rem; color: var(--muted); margin-bottom: 4px; }
.chart-title strong { color: var(--navy-900); font-size: .92rem; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg .grid { stroke: #e6eaf6; stroke-width: 1; }
.chart-svg .axis-label { fill: #5d668c; font-size: 11.5px; font-family: var(--font); }
.chart-svg .callout { fill: var(--ink); font-size: 12.5px; font-weight: 650; font-family: var(--font); }
.chart-svg .callout-line { stroke: #8a93b8; stroke-width: 1; stroke-dasharray: 2 3; }
.chart-svg .layer { animation: layer-in .35s ease both; }
@keyframes layer-in { from { opacity: 0; } to { opacity: 1; } }
.chart-caption { font-size: .92rem; color: var(--muted); margin: 10px 0 0; min-height: 3.2em; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .l-bonne { background: var(--note-bonne); }
.legend .l-douteuse { background: var(--note-douteuse); }
.legend .l-mauvaise { background: var(--note-mauvaise); }
.legend .l-substituee { background: repeating-linear-gradient(90deg, var(--note-substituee) 0 5px, transparent 5px 8px); }
.legend .l-brute { background: var(--serie); }
.chart-note { font-size: .78rem; color: #8089ab; margin: 8px 0 0; }

/* ---------- Origine scientifique ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: clamp(40px, 5vw, 68px); }
.trust-copy h2 { font-size: clamp(1.65rem, 1.1rem + 1.4vw, 2.2rem); line-height: 1.18; margin-bottom: 20px; }
.trust-copy p { color: var(--muted); font-size: 1rem; margin-bottom: 20px; }
.trust-link { font-weight: 650; }
.trust-link span { display: inline-block; margin-left: 6px; }
.trust-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trust-partner { height: 100%; padding: 24px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); text-align: center; }
.trust-logo-frame { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.trust-logo-frame img { width: 104px; height: auto; object-fit: contain; }
.trust-logo-frame img.logo-alison { width: 176px; height: auto; }
.trust-partner h3 { font-size: 1.15rem; margin-bottom: 6px; }
.trust-partner p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }
@media (max-width: 900px) {
  .trust-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trust-logos { width: 100%; max-width: 500px; }
}
@media (max-width: 420px) {
  .trust-logos { gap: 12px; }
  .trust-partner { padding: 20px 12px; }
  .trust-logo-frame { height: 104px; }
}

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cdd5f0; }
.card.product { display: flex; flex-direction: column; }
.card-action { margin-top: auto; padding-top: 18px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.product-logo { height: 56px; width: auto; margin-bottom: 18px; align-self: flex-start; }
.partner-logo { width: auto; height: 64px; margin-bottom: 16px; object-fit: contain; }
.partner-logo-insa { border-radius: 6px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 1rem; }
.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- Chaîne de traitement ---------- */
.chain { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: etape; position: relative; }
.chain::before { /* le fil de la chaîne */
  content: ""; position: absolute; left: 6%; right: 6%; top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--note-bonne), var(--note-douteuse), var(--note-mauvaise), var(--note-substituee), var(--brand));
  opacity: .55;
}
.chain li { position: relative; margin: 0; padding-top: 58px; counter-increment: etape; }
.chain li::before {
  content: counter(etape); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 750; color: #fff; background: var(--navy-900); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.chain h3 { font-size: 1.12rem; margin-bottom: .3em; }
.chain p { font-size: .96rem; color: var(--muted); margin: 0; }
.chain a.more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .94rem; }

/* ---------- Chiffres ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: left; }
.fact b { display: block; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.3rem); line-height: 1; font-weight: 780; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }
.fact span { color: #b9c3ee; font-size: .98rem; display: block; max-width: 22ch; }

/* ---------- Bande « nom » ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.quote-mark { font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: .9; font-weight: 800; letter-spacing: -.04em; color: var(--brand); }
.quote-mark small { display: block; font-size: 1.1rem; letter-spacing: 0; font-weight: 600; color: var(--muted); margin-top: 14px; }

/* ---------- Appel à l'action ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), #1b2aa6 60%, #121e7a); color: #e4e8ff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- En-tête de page interne ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.1rem); margin-bottom: .35em; }
.page-head .lead { margin-bottom: 0; }

/* ---------- Page fonctionnalités ---------- */
.feature-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; font-size: .95rem; }
.toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: .45em 0 .45em 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 560; }
.toc a:hover { color: var(--brand); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); }
.feature { padding-block: 8px 56px; scroll-margin-top: 90px; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 56px; }
.feature .step-no { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.feature .step-no b { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: .9rem; letter-spacing: 0; }
.feature h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
.feature-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; margin-top: 22px; }
.feature-body ul { color: var(--ink); }
.feature-body li::marker { color: var(--brand); }
.illus { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.illus svg { width: 100%; height: auto; }
.illus figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.illus-box { fill: #fff; stroke: #c9d1ec; stroke-width: 1.2; }
.illus-text { font-family: var(--font); font-size: 11px; fill: var(--ink); }
.illus-text-sm { font-family: var(--font); font-size: 9.5px; fill: var(--muted); }
.illus-text-b { font-family: var(--font); font-size: 11px; fill: var(--ink); font-weight: 700; }
.s-serie { fill: none; stroke: var(--serie); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.s-bonne { fill: none; stroke: var(--note-bonne); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-douteuse { fill: none; stroke: var(--note-douteuse); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-mauvaise { fill: none; stroke: var(--note-mauvaise); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.s-subst { fill: none; stroke: var(--note-substituee); stroke-width: 2.4; stroke-dasharray: 5 4; stroke-linecap: round; }
.f-bonne { fill: var(--note-bonne); } .f-douteuse { fill: var(--note-douteuse); }
.f-mauvaise { fill: var(--note-mauvaise); } .f-subst { fill: var(--note-substituee); }
.f-brand { fill: var(--brand); } .f-navy { fill: var(--navy-900); }
.s-arrow { fill: none; stroke: #8a93b8; stroke-width: 1.6; }
.s-grid { stroke: #dfe4f4; stroke-width: 1; }
.s-axis { stroke: #98a2c8; stroke-width: 1.2; }
.s-leader { stroke: #8a93b8; stroke-width: 1; stroke-dasharray: 2 3; fill: none; }

/* Captures d'écran du logiciel, cliquables pour agrandir */
.shot { margin: 30px 0 0; }
.shot a {
  position: relative; display: block; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in;
}
.shot a::after {
  content: "Agrandir"; position: absolute; right: 12px; bottom: 12px; padding: .35em .8em; border-radius: 999px;
  font-size: .8rem; font-weight: 650; color: #fff; background: rgba(11, 20, 55, .82); opacity: 0; transition: opacity .15s;
}
.shot a:hover::after, .shot a:focus-visible::after { opacity: 1; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.shot-grid .shot { margin: 0; }
.shot.shot-small { max-width: 430px; }
/* Bilans : une capture mise en avant, puis deux vues complémentaires. */
.report-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.report-shot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 4px 18px rgba(11, 20, 55, .05); }
.report-shot > a { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; border: 0; border-radius: 0; background: var(--bg-soft); box-shadow: none; }
.report-shot img { width: 100%; height: 100%; object-fit: contain; }
.report-shot figcaption { margin: 0; padding: 20px; }
.report-kicker { display: block; margin-bottom: 8px; color: var(--brand); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.report-shot h3 { margin-bottom: 8px; color: var(--navy-900); font-size: 1.1rem; }
.report-shot p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.65; }
.report-shot-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.report-shot-featured > a { aspect-ratio: auto; }
.report-shot-featured img { height: auto; }
.report-shot-featured figcaption { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 28px); }
.report-shot-featured h3 { font-size: 1.25rem; }
.report-gallery-hint { margin: 12px 0 0; color: var(--muted); font-size: .85rem; text-align: right; }
@media (max-width: 680px) {
  .report-gallery, .report-shot-featured { grid-template-columns: minmax(0, 1fr); }
  .report-shot > a { aspect-ratio: auto; }
  .report-shot img { height: auto; }
  .report-gallery-hint { text-align: left; }
}
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(7, 13, 43, .86); }
.lightbox-scroll { max-width: 96vw; max-height: 94vh; overflow: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); }
.lightbox-scroll img { display: block; max-width: none; height: auto; }
.lightbox-close {
  position: fixed; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%;
  font: inherit; font-size: 1.6rem; line-height: 1; color: #fff; background: rgba(11, 20, 55, .9); cursor: pointer;
}
.lightbox-close:hover { background: var(--brand); }

.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.also .card { padding: 22px 22px; }
.also h3 { font-size: 1.08rem; }
.also p { font-size: .96rem; }

/* ---------- Démonstration ---------- */
.video-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-soon {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px;
  color: #cdd5f7; background:
    radial-gradient(600px 260px at 70% 0%, rgba(59, 91, 255, .35), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-950));
}
.video-soon svg { width: 64px; height: 64px; color: #8fa2ff; }
.video-soon strong { color: #fff; font-size: 1.25rem; }
.video-soon span { max-width: 44ch; font-size: .98rem; }
.chapters { counter-reset: chap; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.chapters li { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.chapters li::before { counter-increment: chap; content: counter(chap); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 750; display: grid; place-items: center; font-size: .95rem; }
.chapters b { display: block; color: var(--navy-900); }
.chapters span { color: var(--muted); font-size: .96rem; }

/* ---------- Références ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ref { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.ref h3 { margin-bottom: .2em; }
.ref .where { color: var(--muted); font-size: .94rem; margin-bottom: .8em; }
.ref ul { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Contact / formulaires ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .96rem; color: var(--navy-900); }
.field .hint { font-weight: 500; color: var(--muted); font-size: .86rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%;
  padding: .75em .9em; border: 1.5px solid #c6cde6; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9aa6d6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(35, 53, 212, .15); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field p.hint { font-weight: 400; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.aside-card h3 { margin-bottom: .5em; }
.aside-card ul { color: var(--muted); }
.notice { border-radius: var(--radius); padding: 16px 18px; font-size: .98rem; border: 1px solid; }
.notice-ok { background: #ecf8f0; border-color: #b6e0c5; color: #17532f; }
.notice-err { background: #fdeeed; border-color: #f2b9b5; color: #7d1f1a; }
.notice-info { background: var(--brand-soft); border-color: #c9d0f7; color: #1a2380; }

/* ---------- Pages texte (mentions légales) ---------- */
.narrow { max-width: 760px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.todo { background: #fff6dd; border: 1px dashed #e0b63a; border-radius: 6px; padding: 0 .35em; color: #6b4d00; font-weight: 600; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-950); color: #aeb8e6; padding-block: 56px 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-grid h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; }
.site-footer a { color: #cdd5f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .evohe-on-dark { background: #fff; padding: 8px 12px; border-radius: 8px; display: inline-block; margin-bottom: 14px; }
.footer-brand .evohe-on-dark img { height: 24px; width: auto; }
.footer-brand p { max-width: 36ch; margin-bottom: 18px; }
.footer-logos { display: flex; align-items: center; gap: 20px; }
.footer-logos img { height: 34px; width: auto; border-radius: 4px; }
.footer-logos img.logo-alison { height: 20px; filter: brightness(0) invert(1); border-radius: 0; opacity: .9; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .88rem; color: #8b96c9; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chain::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--note-bonne), var(--note-douteuse), var(--note-mauvaise), var(--note-substituee), var(--brand)); }
  .chain li { padding: 0 0 30px 64px; min-height: 44px; }
  .feature-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; margin: 0; }
  .toc a.active { border-color: var(--brand); background: var(--brand-soft); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .grid-3, .also, .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .story, .feature-body, .contact-grid, .chapters, .shot-grid { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px; font: inherit; font-weight: 650;
    padding: .55em .9em; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 12px; background:
    linear-gradient(currentColor 0 0) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 100% / 100% 2px no-repeat; }
  .nav { margin-left: 0; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; box-shadow: 0 16px 24px rgba(11, 20, 55, .1);
  }
  .js .nav.open { display: flex; }
  .nav > a { padding: .8em .6em; }
  .nav .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav .nav-actions .btn { width: 100%; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -4px; padding-inline: 4px; }
  .chart-svg { min-width: 520px; }
  .grid-4, .facts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .chart-tabs button { font-size: .8rem; padding: .55em .3em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { font-size: 11pt; }
}

/* Compte client dans la navigation du site */
.header-logout { margin: 0; display: inline-flex; }
