5:1 minimum).
   ========================================================================= */

/* ---- Polices : Visby CF / Visby Slab CF (licence HEC), Arial en substitution officielle ---- */
@font-face { font-family: "Visby CF"; font-weight: 400; font-style: normal; font-display: swap;
  src: local("Visby CF Regular"), local("VisbyCF-Regular"), url("../fonts/VisbyCF-Regular.woff2") format("woff2"); }
@font-face { font-family: "Visby CF"; font-weight: 500; font-style: normal; font-display: swap;
  src: local("Visby CF Medium"), local("VisbyCF-Medium"), url("../fonts/VisbyCF-Medium.woff2") format("woff2"); }
@font-face { font-family: "Visby CF"; font-weight: 600; font-style: normal; font-display: swap;
  src: local("Visby CF Demi Bold"), local("VisbyCF-DemiBold"), url("../fonts/VisbyCF-DemiBold.woff2") format("woff2"); }
@font-face { font-family: "Visby CF"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Visby CF Bold"), local("VisbyCF-Bold"), url("../fonts/VisbyCF-Bold.woff2") format("woff2"); }
@font-face { font-family: "Visby CF"; font-weight: 800; font-style: normal; font-display: swap;
  src: local("Visby CF Extra Bold"), local("VisbyCF-ExtraBold"), url("../fonts/VisbyCF-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Visby Slab CF"; font-weight: 500; font-style: normal; font-display: swap;
  src: local("Visby Slab CF Medium"), local("VisbySlabCF-Medium"), url("../fonts/VisbySlabCF-Medium.woff2") format("woff2"); }
@font-face { font-family: "Visby Slab CF"; font-weight: 700; font-style: normal; font-display: swap;
  src: local("Visby Slab CF Bold"), local("VisbySlabCF-Bold"), url("../fonts/VisbySlabCF-Bold.woff2") format("woff2"); }
@font-face { font-family: "Visby Slab CF"; font-weight: 800; font-style: normal; font-display: swap;
  src: local("Visby Slab CF Extra Bold"), local("VisbySlabCF-ExtraBold"), url("../fonts/VisbySlabCF-ExtraBold.woff2") format("woff2"); }

/* ---- Jetons ---- */
:root {
  /* Palette HEC Montréal */
  --hec-navy: #002855;      /* PMS 295 */
  --hec-blue: #0072ce;      /* PMS 285 */
  --hec-sky: #92c1e9;       /* PMS 283 */
  --hec-teal: #00aec7;      /* PMS 3125 */
  --hec-green: #26d07c;     /* PMS 7479 */
  --hec-yellow: #f3d03e;    /* PMS 129 */
  --hec-red: #ff585d;       /* PMS 178 */
  --hec-gray-8: #888b8d;    /* PMS Cool Gray 8 — décoratif seulement */
  --hec-gray-1: #d9d9d6;    /* PMS Cool Gray 1 */
  --cream: #f5f0e6;         /* fond chaud du plan d'action */

  --navy-deep: #001a3a;
  --blue-ink: #005bb5;      /* bleu pour le texte : 5,8:1 sur crème, 6,6:1 sur blanc */

  --bg: #ffffff;
  --bg-soft: var(--cream);
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --ink: #0b1b2e;
  --ink-2: #33475e;
  --line: #dde2e8;
  --link: var(--blue-ink);
  --accent: var(--hec-blue);
  --accent-soft: #e6f0fa;
  --focus: var(--hec-blue);
  --on-dark: #ffffff;
  --on-dark-2: #c9dcf1;

  --font: "Visby CF", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-slab: "Visby Slab CF", "Visby CF", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.81rem + 0.12vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.13rem, 1.06rem + 0.33vw, 1.3rem);
  --step-2: clamp(1.32rem, 1.18rem + 0.66vw, 1.7rem);
  --step-3: clamp(1.62rem, 1.36rem + 1.3vw, 2.45rem);
  --step-4: clamp(2rem, 1.5rem + 2.5vw, 3.55rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(0 25 60 / 0.06);
  --shadow: 0 1px 2px rgb(0 25 60 / 0.05), 0 10px 30px -12px rgb(0 25 60 / 0.18);
  --shadow-lg: 0 2px 4px rgb(0 25 60 / 0.06), 0 24px 60px -20px rgb(0 25 60 / 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --gutter: 1rem;
  --maxw: 76rem;
  --header-h: 4rem;

  color-scheme: light;
}

@media (min-width: 40em) { :root { --gutter: 1.5rem; } }
@media (min-width: 64em) { :root { --gutter: 2rem; --header-h: 4.5rem; } }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #061426;
    --bg-soft: #0a1c33;
    --surface: #0d2440;
    --surface-2: #0b2039;
    --ink: #edf2f8;
    --ink-2: #b9c7d8;
    --line: #22395a;
    --link: #9ccbf2;
    --accent: #4aa3ec;
    --accent-soft: #10325a;
    --focus: var(--hec-yellow);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 24px 60px -20px rgb(0 0 0 / 0.6);
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 4rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1, h2 { font-family: var(--font-slab); font-weight: 700; }
h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
strong { font-weight: 700; }
blockquote { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--hec-sky); color: var(--hec-navy); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 1000;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--hec-yellow); color: var(--hec-navy); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.muted { color: var(--ink-2); }

/* Zones sombres : texte clair, anneau de focus jaune */
.hero, .section-navy, .section-closing, .page-hero, .site-footer {
  --focus: var(--hec-yellow);
}
html:has(dialog[open]) { overflow: hidden; }

/* ---- Barre de progression ---- */
.read-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--hec-blue), var(--hec-teal), var(--hec-yellow));
}

/* ---- Boutons ---- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--link); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 2.9rem; padding: 0.7rem 1.2rem;
  border: 2px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; text-decoration: none; text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --btn-bg: var(--hec-blue); --btn-fg: #fff; --btn-bd: var(--hec-blue); box-shadow: 0 8px 20px -10px rgb(0 114 206 / 0.8); }
.btn-primary:hover { --btn-bg: var(--blue-ink); --btn-bd: var(--blue-ink); }
.btn-outline { --btn-fg: var(--link); --btn-bd: currentColor; }
.btn-outline:hover { --btn-bg: var(--accent-soft); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--hec-navy); --btn-bd: #fff; }
.btn-light:hover { --btn-bg: var(--hec-yellow); --btn-bd: var(--hec-yellow); }
.btn-lg { min-height: 3.25rem; padding: 0.85rem 1.5rem; }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn-meta { display: block; font-size: 0.78em; font-weight: 500; opacity: 0.8; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ---- En-tête ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand-line { width: 2.4rem; height: 1.5rem; flex: none; fill: none; stroke: var(--hec-blue); stroke-width: 3; stroke-linecap: round; }
.brand-line circle { fill: var(--hec-yellow); stroke: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1rem; white-space: nowrap; }
.brand-text span { font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: none; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
  display: block; padding: 0.55rem 0.8rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
}
.nav-list a:hover { background: var(--accent-soft); }
.nav-list a[aria-current="page"] { background: var(--hec-navy); color: #fff; }
@media (prefers-color-scheme: dark) { .nav-list a[aria-current="page"] { background: var(--hec-sky); color: var(--hec-navy); } }

.header-actions { display: flex; align-items: center; gap: 0.35rem; }

.menu-toggle {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 63.99em) {
  .main-nav.is-open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; inset: 100% 0 auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open .nav-list { flex-direction: column; }
  .main-nav.is-open .nav-list a { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .nav-pdf { align-self: flex-start; }
  .brand-text span { max-width: 44vw; }
}
@media (max-width: 39.99em) {
  .brand-text span { display: none; }
  .hero-line { display: none; }
}
@media (min-width: 64em) {
  .main-nav { display: flex; align-items: center; gap: 0.5rem; }
  .menu-toggle { display: none; }
  .nav-pdf { display: none; }
}

/* ---- Sections ---- */
.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.section-cream, .section-glance { background: var(--bg-soft); }
.section-navy, .section-closing { background: var(--hec-navy); color: var(--on-dark); }
.section-navy a:not(.btn), .section-closing a:not(.btn) { color: var(--hec-sky); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.section-lead { font-size: var(--step-1); color: var(--ink-2); margin-bottom: 0; }
.section-navy .section-lead, .section-closing .section-lead { color: var(--on-dark-2); }
.kicker {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link);
}
.kicker::before { content: ""; width: 2rem; height: 3px; border-radius: 3px; background: currentColor; }
.hero .kicker, .page-hero .kicker, .section-navy .kicker, .section-closing .kicker { color: var(--hec-sky); }
.sub-title { margin-top: 2.5rem; }

/* ---- Accueil : bandeau principal ---- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(0 114 206 / 0.55), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgb(0 174 199 / 0.25), transparent 60%),
    var(--hec-navy);
  color: var(--on-dark);
  padding-block: clamp(2.25rem, 1.5rem + 4vw, 6rem) clamp(5.5rem, 4rem + 6vw, 9rem);
}
.hero-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-line path { fill: none; stroke-linecap: round; }
.hero-line-glow { stroke: rgb(146 193 233 / 0.25); stroke-width: 14; }
.hero-line-main { stroke: var(--hec-sky); stroke-width: 2.5; }
.hero-grid {
  display: grid; gap: 0 1rem; align-items: center;
  grid-template-columns: auto 1fr;
  grid-template-areas: "photo who" "slogan slogan" "title title" "lead lead" "cta cta";
}
.hero-portrait { grid-area: photo; width: 4.75rem; }
.hero-portrait img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 50%; border: 3px solid var(--hec-sky); background: var(--hec-navy);
}
.hero-who { grid-area: who; margin: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hero-who strong { font-size: var(--step-1); }
.hero-who span { color: var(--on-dark-2); font-size: var(--step--1); }
.hero-slogan {
  grid-area: slogan; margin: 1.75rem 0 0.75rem;
  font-family: var(--font-slab); font-weight: 700; font-size: var(--step-1); color: var(--hec-yellow);
}
.hero-title { grid-area: title; font-size: var(--step-4); max-width: 18ch; margin-bottom: 1.25rem; }
.hero-lead { grid-area: lead; font-size: var(--step-1); color: var(--on-dark-2); max-width: 38rem; }
.hero-cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.75rem; }
@media (min-width: 60em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 0 clamp(2rem, 4vw, 5rem);
    grid-template-areas: "who photo" "slogan photo" "title photo" "lead photo" "cta photo";
  }
  .hero-portrait { width: 100%; max-width: 26rem; justify-self: end; align-self: center; position: relative; }
  .hero-portrait::before {
    content: ""; position: absolute; inset: -0.9rem; border-radius: 999px 999px 32px 32px;
    border: 2px solid rgb(146 193 233 / 0.55); z-index: -1;
  }
  .hero-portrait img { border-radius: 999px 999px 28px 28px; aspect-ratio: 4 / 5; border: 0; box-shadow: var(--shadow-lg); }
  .hero-slogan { margin-top: 1.25rem; }
}

/* Chiffres clés { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -3rem - 3vw, -3rem); }

/* ---- Pacte ---- */
.pact-grid { display: grid; gap: 1rem; }
@media (min-width: 40em) { .pact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .pact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pact-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pact-card, .card, .built-card {
  padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pact-card p, .card p, .built-card p { margin: 0; color: var(--ink-2); }
.pact-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem;
  border-radius: 14px; background: var(--accent-soft); color: var(--link);
}
.pact-icon .icon { width: 1.5rem; height: 1.5rem; }
@keyframes flip-in {
  0% { transform: rotateX(-80deg) translateY(-10px); opacity: 0; }
  60% { transform: rotateX(8deg); opacity: 1; }
  100% { transform: rotateX(0); }
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
[data-show-all] { margin-top: 1.25rem; }

/* ---- Coup d'œil ---- */
.glance-ambition {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  border-radius: var(--radius); background: var(--hec-navy); color: #fff; text-decoration: none;
  font-size: var(--step-1); --focus: var(--hec-yellow);
}
.glance-ambition .icon { width: 2rem; height: 2rem; color: var(--hec-yellow); }
.glance-ambition strong { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hec-sky); }
.glance-title { font-family: var(--font); margin: 0 0 1rem; }
.glance-grid { display: grid; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 40em) { .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .glance-priorities { grid-template-columns: repeat(4, minmax(0, 1fr)); } .glance-levers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.glance-grid a {
  display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.85rem; height: 100%; padding: 1.1rem 1.2rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.glance-grid a:hover { border-color: var(--hec-blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.glance-num { grid-row: span 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--hec-blue); color: #fff; font-family: var(--font-slab); font-weight: 800; font-size: 1.15rem; }
.glance-levers .glance-num { background: var(--accent-soft); color: var(--link); border-radius: 12px; }
.glance-short { font-weight: 700; line-height: 1.3; }
.glance-one { font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.glance-cta { margin: 0; }

/* ---- Candidat (accueil) ---- */
.candidate-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60em) { .candidate-grid { grid-template-columns: 0.7fr 1.3fr; gap: 4rem; } }
.candidate-photo img { width: min(18rem, 70vw); aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 6px solid var(--bg-soft); box-shadow: var(--shadow-lg); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1.75rem 0 2rem; }
.fact-grid li { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 0.85rem; border-top: 3px solid var(--hec-blue); }
.fact-value { font-family: var(--font-slab); font-weight: 800; font-size: var(--step-3); line-height: 1.05; color: var(--link); font-variant-numeric: tabular-nums; }
.fact-label { font-size: 0.92rem; color: var(--ink-2); line-height: 1.4; }
.fact-grid-light li { border-top-color: var(--hec-yellow); }
.fact-grid-light .fact-value { color: #fff; }
.fact-grid-light .fact-label { color: var(--on-dark-2); }

/* ---- Citation de clôture ---- */
.closing { text-align: center; max-width: 52rem; }
.closing-mark { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--hec-yellow); }
.closing blockquote p { font-family: var(--font-slab); font-weight: 700; font-size: var(--step-3); line-height: 1.25; margin-bottom: 1rem; }
.closing blockquote footer { color: var(--on-dark-2); font-weight: 600; }
.closing-text { font-size: var(--step-1); color: var(--on-dark-2); margin-bottom: 2rem; }
.closing-slogan { font-family: var(--font-slab); font-weight: 700; font-size: var(--step-3); color: var(--hec-yellow); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 2rem; }

/* ---- En-têtes de page ---- */
.page-hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: radial-gradient(50rem 24rem at 90% -20%, rgb(0 114 206 / 0.5), transparent 60%), var(--hec-navy);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
.page-hero::after {
  content: ""; position: absolute; right: -8rem; bottom: -10rem; width: 30rem; height: 30rem; border-radius: 50%;
  border: 2px solid rgb(146 193 233 / 0.3); pointer-events: none;
}
.page-hero h1 { max-width: 22ch; }
.page-lead { font-size: var(--step-1); color: var(--on-dark-2); max-width: 44rem; margin-bottom: 0; }
.page-hero-actions { margin: 2rem 0 0; }
.candidate-hero { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 48em) { .candidate-hero { grid-template-columns: auto 1fr; gap: 3rem; } }
.candidate-hero-photo img { width: clamp(10rem, 8rem + 12vw, 20rem); aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 4px solid var(--hec-sky); }
.candidate-subtitle { color: var(--hec-yellow); font-weight: 600; font-size: var(--step-1); }

/* ---- Le plan ---- */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.subnav ul { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.6rem 0; scrollbar-width: thin; scroll-snap-type: x proximity; }
.subnav li { flex: none; scroll-snap-align: start; }
.subnav a {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.35rem 0.85rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.subnav a:hover { border-color: var(--hec-blue); }
.subnav a[aria-current="true"] { background: var(--hec-navy); border-color: var(--hec-navy); color: #fff; }
@media (prefers-color-scheme: dark) { .subnav a[aria-current="true"] { background: var(--hec-sky); border-color: var(--hec-sky); color: var(--hec-navy); } }
.subnav-num { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--hec-blue); color: #fff; font-size: 0.75rem; font-weight: 800; }
.subnav a.is-lever .subnav-num { background: var(--accent-soft); color: var(--link); border-radius: 6px; }
.subnav a[aria-current="true"] .subnav-num { background: var(--hec-yellow); color: var(--hec-navy); }

.plan-group-head { padding-top: clamp(3rem, 2rem + 4vw, 5rem); }
.plan-group-head h2 { font-size: var(--step-4); }
.plan-group-head p { max-width: 44rem; font-size: var(--step-1); color: var(--ink-2); }
.plan-group-levers { background: var(--bg-soft); margin-top: clamp(2rem, 1rem + 3vw, 4rem); }
.plan-section { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 3.5rem); }
.plan-section:focus { outline: none; }
.plan-grid { display: grid; gap: 1.5rem; }
@media (min-width: 64em) {
  .plan-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .plan-head { position: sticky; top: calc(var(--header-h) + 5rem); align-self: start; }
}
.plan-label { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--link); margin-bottom: 1rem; }
.plan-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--hec-blue); color: #fff; }
.is-lever .plan-icon { background: var(--hec-navy); color: var(--hec-yellow); }
@media (prefers-color-scheme: dark) { .is-lever .plan-icon { background: var(--accent-soft); } }
.plan-head h2 { font-size: var(--step-3); }
.plan-oneliner { font-size: var(--step-1); color: var(--ink-2); }
.plan-lead { font-size: var(--step-1); }
.commitment {
  position: relative; margin: 1.5rem 0 2rem; padding: 1.35rem 1.5rem 1.35rem 1.75rem;
  border-radius: var(--radius); background: var(--accent-soft); border-left: 5px solid var(--hec-blue);
}
.commitment p { margin: 0; font-weight: 600; }
.commitment .commitment-label { margin-bottom: 0.4rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--link); }
.measures-title { font-family: var(--font); font-size: var(--step-1); margin-bottom: 1rem; }
.measures { display: grid; gap: 0.75rem; }
.measures li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; padding: 1rem 1.1rem;
  border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 5rem);
}
.measures li:target { border-color: var(--hec-blue); box-shadow: 0 0 0 4px rgb(0 114 206 / 0.2); }
.measures li:focus { outline: none; }
.measures .icon { width: 1.6rem; height: 1.6rem; padding: 0.3rem; border-radius: 50%; background: var(--hec-blue); color: #fff; stroke-width: 2.5; }
.measure-body { display: flex; flex-direction: column; gap: 0.5rem; }
.measure-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag { padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; }
.example { margin-top: 1.5rem; padding: 1.35rem 1.5rem; border-radius: var(--radius); background: var(--bg-soft); border-left: 5px solid var(--hec-yellow); }
.plan-group-levers .example { background: var(--surface); }
.example-label { display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 0.4rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.example h3 { margin-bottom: 0.35rem; }
.example a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.example a .icon { width: 1rem; height: 1rem; }

/* ---- Vision ---- */
.split { display: grid; gap: 2rem; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.pull-quote { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--hec-navy); color: #fff; }
.pull-quote .icon { width: 2.5rem; height: 2.5rem; color: var(--hec-yellow); }
.pull-quote p { font-family: var(--font-slab); font-weight: 700; font-size: var(--step-2); line-height: 1.3; margin: 0; }
.concerns { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); border: 1px dashed var(--line); }
.concerns ul { display: grid; gap: 0.5rem; padding-left: 1.2rem; }
.concerns li { list-style: disc; color: var(--ink-2); }
.why-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 48em) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .why-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-list li { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-list p { margin: 0; font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.why-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--hec-blue); color: #fff; }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 48em) { .two-col { grid-template-columns: 1fr 1fr; } }
.numbered-grid { display: grid; gap: 1rem; }
@media (min-width: 48em) { .numbered-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.numbered-grid li { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.numbered-num { display: block; margin-bottom: 0.75rem; font-family: var(--font-slab); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--hec-blue); }
.numbered-grid p { margin: 0; color: var(--ink-2); }
.big-line { font-family: var(--font-slab); font-weight: 700; font-size: var(--step-2); color: var(--hec-yellow); }
.dimensions { display: grid; gap: 1rem; }
@media (min-width: 48em) { .dimensions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dimensions a {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 1.5rem 1.5rem 3.5rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.dimensions a:hover { border-color: var(--hec-blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.dimension-name { font-family: var(--font-slab); font-weight: 800; font-size: var(--step-3); color: var(--link); }
.dimension-q { font-weight: 700; }
.dimension-text { color: var(--ink-2); }
.dimensions .icon { position: absolute; left: 1.5rem; bottom: 1.25rem; color: var(--link); }
.traits { display: grid; gap: 1rem; }
@media (min-width: 48em) { .traits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trait { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border-top: 5px solid var(--hec-blue); box-shadow: var(--shadow-sm); }
.trait:nth-child(2) { border-top-color: var(--hec-teal); }
.trait:nth-child(3) { border-top-color: var(--hec-yellow); }
.trait h3 { font-family: var(--font-slab); font-size: var(--step-2); }
.trait p { margin: 0; color: var(--ink-2); }
.check-list { display: grid; gap: 0.7rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.check-list .icon { margin-top: 0.15rem; color: var(--link); }
.compass-questions { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60em) { .compass-questions { grid-template-columns: 0.6fr 1.4fr; gap: 4rem; } }
.compass-visual svg { width: min(16rem, 60vw); margin-inline: auto; }
.cv-ring { fill: none; stroke: var(--hec-sky); stroke-width: 2; }
.cv-ring-2 { stroke-dasharray: 4 8; stroke: var(--hec-blue); }
.cv-needle path { fill: var(--hec-navy); }
.cv-needle .cv-north { fill: var(--hec-blue); }
@media (prefers-color-scheme: dark) { .cv-needle path { fill: var(--hec-sky); } .cv-needle .cv-north { fill: var(--hec-yellow); } }
.cv-hub { fill: var(--hec-yellow); }
.cv-needle { transform-origin: 100px 100px; }
.question-list { display: grid; gap: 0.85rem; counter-reset: q; }
.question-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.question-num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--hec-navy); color: var(--hec-yellow); font-family: var(--font-slab); font-weight: 800; }
@media (prefers-color-scheme: dark) { .question-num { background: var(--hec-sky); color: var(--hec-navy); } }

/* ---- Candidat ---- */
.figure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 60em) { .figure-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 2.5rem; } }
.figure-grid li { display: flex; flex-direction: column; gap: 0.3rem; padding-top: 1rem; border-top: 3px solid var(--hec-blue); }
.built-grid { display: grid; gap: 1rem; }
@media (min-width: 48em) { .built-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.built-year { font-family: var(--font); font-size: 0.85rem; font-weight: 700; color: var(--link); margin-left: 0.25rem; }
.photo-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 0 0 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: 4.5rem; top: 0.4rem; bottom: -0.2rem; width: 2px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: calc(4.5rem - 5px); top: 0.4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--hec-blue); }
.timeline li:last-child::before { display: none; }
.timeline li:last-child::after { background: var(--hec-yellow); box-shadow: 0 0 0 5px rgb(243 208 62 / 0.3); }
.timeline-year { font-family: var(--font-slab); font-weight: 800; color: var(--link); }
.timeline-text { padding-left: 1.25rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.tag-cloud li { padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.award-list { display: grid; gap: 0.85rem; }
.award-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.award-year { font-family: var(--font-slab); font-weight: 800; color: var(--link); }
.award-detail { display: block; color: var(--ink-2); font-size: 0.93rem; }
.link-grid { display: grid; gap: 0.75rem; }
@media (min-width: 48em) { .link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1rem 1.2rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none;
}
.link-grid a:hover { border-color: var(--hec-blue); color: var(--link); }

/* ---- Pied de page ---- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); padding-block: 3.5rem 2rem; }
.site-footer a:not(.btn) { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 60em) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 3rem; } }
.footer-name { margin: 0; font-family: var(--font-slab); font-weight: 700; font-size: var(--step-2); color: #fff; }
.footer-role { margin: 0 0 1rem; }
.footer-slogan { color: var(--hec-yellow); font-weight: 700; }
.footer-nav ul { display: grid; gap: 0.25rem; }
.footer-nav a { display: inline-block; padding: 0.35rem 0; text-decoration: none; font-weight: 600; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: 0.85rem; }
.footer-legal p { margin: 0; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Animations (seulement si l'utilisateur les accepte) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }
  .reveal-ready .reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0s); }
  .hero-line path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw-line 2.4s 0.2s var(--ease) forwards; }
  @keyframes draw-line { to { stroke-dashoffset: 0; } }
  .hero-slogan, .hero-title, .hero-lead, .hero-cta, .hero-who, .hero-portrait { animation: rise 0.9s var(--ease) both; }
  .hero-who { animation-delay: 0.05s; }
  .hero-slogan { animation-delay: 0.12s; }
  .hero-title { animation-delay: 0.2s; }
  .hero-lead { animation-delay: 0.32s; }
  .hero-cta { animation-delay: 0.42s; }
  .hero-portrait { animation: portrait-in 1.1s 0.15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes portrait-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
  .compass-visual .cv-needle { animation: needle 6s var(--ease) infinite alternate; }
  @keyframes needle { 0% { transform: rotate(-24deg); } 30% { transform: rotate(10deg); } 55% { transform: rotate(-4deg); } 100% { transform: rotate(0deg); } }
  @view-transition { navigation: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- Contraste élevé (Windows) ---- */
@media (forced-colors: active) {
  .btn, .chip, .flagship-card, .measure-item a, .phase-body, .faq-item summary { border: 1px solid CanvasText; }
  .chip[aria-pressed="true"], .lang-switch a[aria-current="true"], .nav-list a[aria-current="page"] { outline: 2px solid Highlight; }
}

/* ---- Impression ---- */
@media print {
  .site-header, .read-progress, .chat-fab, .chat, .subnav, .toast, .compass-controls, .hero-line, [data-show-all], .footer-actions, .closing-actions { display: none !important; }
  .hero, .page-hero, .section-navy, .section-closing, .site-footer { background: none !important; color: #000 !important; }
  body { font-size: 11pt; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
