/* ==========================================================================
   roadmap.global-exam.com
   Feuille de style unique, adossée à la charte GlobalExam
   (design system @global-exam/ui-kit v1.1.2, thème Front).
   Les valeurs de couleur, rayon, ombre et typo sont reprises telles quelles
   du design system : ne pas introduire de hex en dur ailleurs que dans ce
   bloc :root.
   ========================================================================== */

:root {
  /* --- Palette de base (design system) ------------------------------- */
  --white: #ffffff;

  --primary-200: #f0ddff;
  --primary-300: #dfc9f2;
  --primary-400: #d7aef9;
  --primary-500: #bb92dd;
  --primary-600: #a88bbf;
  --primary-700: #8b54bd;
  --primary-800: #653591;
  --primary-900: #402955;

  --secondary-200: #fff5e5;
  --secondary-300: #ffdba4;
  --secondary-500: #ffc369;
  --secondary-600: #ffb039;
  --secondary-700: #ff9446;
  --secondary-800: #ff7b1e;
  --secondary-900: #fd6900;

  --background-100: #ffffff;
  --background-200: #f9f8fe;
  --background-300: #f5f2fc;
  --background-400: #eeedf5;
  --background-500: #e8e6f1;
  --background-600: #e1dfe8;
  --background-800: #b6b3c2;

  --typeface-600: #928aa1;
  --typeface-700: #7b718c;
  --typeface-800: #675a7e;
  --typeface-900: #291052;
  --typeface-reverse-800: #e3def3;
  --typeface-reverse-900: #fefdff;

  --success-200: #e6ffe0;
  --success-800: #4d9234;
  --info-200: #dbedfe;
  --info-800: #1d4db0;
  --premium-200: #e1dbff;
  --premium-800: #5b3eef;
  --exam-200: #e8fffb;
  --exam-800: #0b6a59;
  --general-200: #e7f0ff;
  --general-900: #0044ae;
  --business-200: #d5dde9;
  --business-900: #002663;

  /* Dégradé primaire : violet -> orange, 120°. Une seule surface dégradée
     visible à la fois, texte toujours blanc dessus. */
  --primary-gradient-800: linear-gradient(120deg, #653591, #893bd0 45%, #fd6900);
  /* Variante mobile : 135°, violet -> magenta, sans orange. */
  --primary-gradient-800-narrow: linear-gradient(135deg, #653591, #893bd0 55%, #b5309c);
  --secondary-gradient-800: linear-gradient(to right, #fd6900, #ffb039);

  /* Dégradé « carte » : fond de page, du violet (en cours) au pêche (à venir). */
  --page-gradient: linear-gradient(
    135deg,
    #f1e6f8 0%,
    #fbeff3 34%,
    #fdf3ea 62%,
    #fdefe2 100%
  );
  --page-fallback: #fdf7f3;

  /* --- Tokens sémantiques -------------------------------------------- */
  --fg: var(--typeface-900);
  --fg-muted: var(--typeface-800);
  --fg-subtle: var(--typeface-700);
  --bg: var(--background-100);
  --bg-soft: var(--background-200);
  --bg-muted: var(--background-300);
  --border: var(--background-600);
  --primary: var(--primary-800);
  --primary-hover: var(--primary-700);
  --accent: var(--secondary-900);

  /* --- Rayons, ombres, transitions ------------------------------------ */
  --radius-12: 0.75rem;
  --radius-16: 1rem;
  --radius-20: 1.25rem;
  --radius-24: 1.5rem;
  --radius-36: 2.25rem;
  --radius-full: 9999px;

  --shadow-default: 0 2px 16px rgba(64, 41, 85, 0.08);
  --shadow-hover: 0 2px 16px 0 rgba(64, 41, 85, 0.15);
  --shadow-800: 12px 11px 58px rgba(41, 16, 82, 0.12);
  --shadow-floating: 0 14px 24px 0 rgba(16, 42, 82, 0.08);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;

  --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Gabarit --------------------------------------------------------- */
  --wrap: 1272px;
  --wrap-narrow: 984px;
  --header-h: 76px;
}

/* ==========================================================================
   Socle
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--page-fallback);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  min-height: 100vh;
  background-color: var(--page-fallback);
  background-image: var(--page-gradient);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg);
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-12);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 24px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

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

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

.icon-sm {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--typeface-reverse-900);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary-300);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-200);
}

.btn-reverse {
  /* Bouton posé sur le dégradé : blanc plein, libellé #653591. */
  background: var(--white);
  color: var(--primary-800);
}

.btn-reverse:hover {
  background: var(--primary-200);
  box-shadow: var(--shadow-hover);
}

.btn-ghost-reverse {
  background: rgba(255, 255, 255, 0.12);
  color: var(--typeface-reverse-900);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-reverse:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--white);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 16px;
}

.btn .icon {
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .icon-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 248, 254, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.site-logo img {
  height: 30px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-subtle);
  transition: color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.site-nav a:hover {
  color: var(--primary);
  background: var(--background-300);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: var(--primary-200);
}

.site-header .btn {
  margin-left: 8px;
}

@media (max-width: 900px) {
  .site-header-inner {
    gap: 12px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .site-header .btn {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-gradient-800);
  color: var(--typeface-reverse-900);
  padding-block: 88px 104px;
  isolation: isolate;
}

.hero::after {
  /* Raccord doux vers le corps de page */
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--page-fallback));
  opacity: 0.18;
  pointer-events: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--secondary-800), transparent 68%);
}

.hero-blob-2 {
  width: 520px;
  height: 520px;
  bottom: -280px;
  left: -160px;
  background: radial-gradient(circle, var(--primary-400), transparent 68%);
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.eyebrow .dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary-500);
  box-shadow: 0 0 0 4px rgba(255, 195, 105, 0.25);
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  color: var(--typeface-reverse-900);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--secondary-600);
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--typeface-reverse-800);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Bandeau de chiffres sous le hero */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-meta span {
  font-size: 13px;
  font-weight: 600;
  color: var(--typeface-reverse-800);
}

@media (max-width: 760px) {
  .hero,
  .cta-band {
    background: var(--primary-gradient-800-narrow);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

main {
  padding-bottom: 40px;
}

.section {
  padding-block: 64px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 17px;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Frise des horizons (page Roadmap)
   ========================================================================== */

.horizons {
  margin-bottom: 48px;
  padding-block: 12px;
}

.horizons-rail {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: var(--white);
  border-radius: var(--radius-full);
}

.horizon-stop {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 22px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-align: left;
  transition: background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.horizon-stop:hover {
  background: var(--background-300);
}

.horizon-stop-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}

.horizon-stop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--background-800);
  transition: background var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.horizon-stop-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--typeface-600);
  padding-left: 20px;
}

.horizon-stop.is-active {
  /* Palier actif : contour de 2 px, le fond reste blanc et le texte sombre. */
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--primary-800);
}

.horizon-stop.is-active .horizon-stop-label {
  color: var(--primary-800);
}

.horizon-stop.is-active .horizon-stop-count {
  color: var(--fg-muted);
}

.horizon-stop.is-active .horizon-stop-dot {
  background: var(--secondary-900);
  box-shadow: none;
}

@media (max-width: 760px) {
  .horizons-rail {
    flex-direction: column;
    border-radius: var(--radius-24);
  }

  .horizon-stop {
    border-radius: var(--radius-16);
  }
}

/* ==========================================================================
   Projets de la roadmap
   ========================================================================== */

.horizon-panel {
  display: none;
}

.horizon-panel.is-visible {
  display: block;
}

.project-list {
  display: grid;
  gap: 24px;
}

.project {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-default);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.project:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-300);
}

/* Les projets illustrés passent en pleine largeur, image à droite */
.project.has-visual {
  grid-column: 1 / -1;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.project-visual {
  position: relative;
  background: var(--background-300);
  order: 2;
  min-height: 240px;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.project h3 {
  font-size: 21px;
  line-height: 1.3;
}

.project.has-visual h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.project p {
  color: var(--fg-subtle);
  font-size: 15.5px;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-300);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out);
}

.project-cta:hover {
  border-bottom-color: var(--primary);
}

.project-cta .icon {
  transition: transform var(--dur-base) var(--ease-out);
}

.project-cta:hover .icon {
  transform: translateX(4px);
}

@media (min-width: 900px) {
  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .project.has-visual {
    grid-template-columns: 1fr;
  }

  .project-visual {
    order: 0;
    min-height: 200px;
    max-height: 280px;
  }

  .project-body {
    padding: 24px;
  }
}

.horizon-empty {
  padding: 48px;
  text-align: center;
  color: var(--fg-subtle);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius-24);
  grid-column: 1 / -1;
}

/* ==========================================================================
   Cartes « nouveautés »
   ========================================================================== */

.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-default);
  transition: box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-300);
}

.feature-card.is-clickable {
  cursor: pointer;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  /* Hauteur réservée : les titres démarrent à la même hauteur d'une carte à
     l'autre, qu'il y ait une ou deux étiquettes. */
  min-height: 26px;
}

/* Icône et étiquettes empilées : tout le contenu de la carte part de la même
   marge gauche. */
.card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.card-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-16);
  display: grid;
  place-items: center;
  background: var(--primary-200);
  color: var(--primary-800);
}

.card-icon .icon {
  width: 24px;
  height: 24px;
}

.card-icon.is-labs {
  background: var(--secondary-200);
  color: var(--secondary-900);
}

.card-icon.is-prototype {
  background: var(--premium-200);
  color: var(--premium-800);
}

.feature-card h3 {
  font-size: 19px;
}

.feature-card .desc {
  color: var(--fg-subtle);
  font-size: 15px;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.bullets div {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.bullets div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234D9234' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--background-400);
}

.stat-row > div {
  flex: 1 1 90px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-row b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary-800);
  line-height: 1.1;
}

.stat-row span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--typeface-600);
  line-height: 1.35;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.card-cta .icon {
  transition: transform var(--dur-base) var(--ease-out);
}

.card-cta:hover .icon {
  transform: translateX(4px);
}

/* Étiquettes de carte */
.badge {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-LABS {
  background: var(--secondary-200);
  color: #a34a00;
}

.badge-PROTOTYPE {
  background: var(--premium-200);
  color: var(--premium-800);
}

.month-tag {
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--primary-200);
  color: var(--primary-800);
}

.month-tag.rank-1 {
  background: var(--info-200);
  color: var(--info-800);
}

.month-tag.rank-2 {
  background: var(--exam-200);
  color: var(--exam-800);
}

.updated-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-700);
}

/* ==========================================================================
   Panneau « aussi au menu »
   ========================================================================== */

.mini-panel {
  margin-top: 32px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-default);
}

.mini-panel > h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.mini-panel > p {
  color: var(--fg-subtle);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.mini-groups {
  display: grid;
  gap: 28px 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.mini-group-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--typeface-600);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--background-400);
}

.mini-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--background-400);
}

.mini-item:last-child {
  border-bottom: 0;
}

.mini-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.mini-item b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.mini-item p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg-subtle);
}

.mini-month {
  font-size: 11px;
  font-weight: 700;
  color: var(--typeface-600);
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--background-300);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dot-new {
  background: var(--secondary-900);
}

.dot-updated {
  background: var(--primary-700);
}

/* ==========================================================================
   Historique — bloc graphique « sorties par année »
   --------------------------------------------------------------------------
   Le bloc chevauche le bas du héros : la page s'ouvre sur la courbe de
   l'activité produit plutôt que sur un mur de texte. Une seule série, donc une
   seule couleur et aucune légende.
   ========================================================================== */

.hero-with-panel {
  padding-bottom: 150px;
}

.chart-panel {
  position: relative;
  z-index: 2;
  margin: -110px 0 0;
  padding: 28px 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-800);
}

.chart-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 8px;
}

.chart-panel-head h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.chart-panel-head p {
  font-size: 13.5px;
  color: var(--fg-subtle);
}

.chart-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.chart-total b {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary-800);
}

.chart-total span {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-subtle);
}

.chart-canvas {
  position: relative;
  margin-top: 4px;
}

.chart-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Marques : colonnes fines, graduations en filet plein d'un cran au-dessus
   de la surface. Le texte ne porte jamais la couleur de la série. */
.chart-bar {
  fill: var(--primary-800);
  transition: fill var(--dur-base) var(--ease-out);
}

/* Année en cours : même série, valeur provisoire, donc même teinte en plus
   clair. Le contraste de ce pas passe sous 3:1 sur fond blanc — il est
   compensé, comme le veut la règle, par l'étiquette chiffrée posée sur la
   colonne et par le détail complet listé dans l'accordéon, et la note sous le
   graphique le dit en toutes lettres : l'information n'est jamais portée par
   la couleur seule. */
.chart-bar.is-partial {
  fill: var(--primary-500);
}

.chart-grid {
  stroke: var(--background-500);
  stroke-width: 1;
}

.chart-axis {
  stroke: var(--background-800);
  stroke-width: 1;
}

.chart-tick,
.chart-year {
  font-size: 11px;
  font-weight: 600;
  fill: var(--typeface-600);
  font-variant-numeric: tabular-nums;
}

.chart-year.is-current {
  fill: var(--fg-muted);
  font-weight: 800;
}

.chart-value {
  font-size: 13px;
  font-weight: 800;
  fill: var(--fg);
}

/* Lavis de survol : posé au fond du graphique, donc derrière la colonne, qui
   garde sa couleur pleine quand on la survole. */
.chart-band-bg {
  fill: transparent;
  pointer-events: none;
  transition: fill var(--dur-fast) var(--ease-out);
}

.chart-band-bg.is-active {
  fill: var(--background-400);
}

/* Cible de survol : au-dessus de tout pour capter le pointeur, et transparente
   en permanence. C'est `.chart-band-bg` qui porte la réponse visuelle. */
.chart-band {
  fill: transparent;
  cursor: pointer;
  outline: none;
}

.chart-band:focus-visible {
  stroke: var(--accent);
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  display: none;
  flex-direction: column;
  transform: translate(-50%, calc(-100% - 12px));
  padding: 8px 14px;
  border-radius: var(--radius-12);
  background: var(--typeface-900);
  color: var(--typeface-reverse-900);
  box-shadow: var(--shadow-floating);
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
}

.chart-tooltip.is-visible {
  display: flex;
}

.chart-tooltip b {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.chart-tooltip span {
  font-size: 12px;
  color: var(--typeface-reverse-800);
}

@media (max-width: 720px) {
  .hero-with-panel {
    padding-bottom: 110px;
  }

  .chart-panel {
    margin-top: -80px;
    padding: 22px 18px 18px;
  }

  .chart-total b {
    font-size: 32px;
  }

  /* Sur petit écran l'infobulle se replie plutôt que de déborder de la page. */
  .chart-tooltip {
    white-space: normal;
    max-width: 170px;
  }
}

/* ==========================================================================
   Historique (frise)
   ========================================================================== */

.legacy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.legacy-years {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legacy-year {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-20);
  box-shadow: var(--shadow-default);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

.legacy-year.is-open {
  border-color: var(--primary-300);
}

/* Année amenée sous les yeux depuis le graphique : on la signale brièvement. */
.legacy-year.is-flash {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.legacy-year-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.legacy-year-head:hover {
  background: var(--background-200);
}

.legacy-year-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 72px;
  color: var(--primary-800);
}

.legacy-year-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-subtle);
}

.legacy-year-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--background-400);
  overflow: hidden;
  min-width: 40px;
}

.legacy-year-bar i {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--primary-gradient-800);
}

.legacy-year-chevron {
  flex: none;
  color: var(--typeface-600);
  transition: transform var(--dur-base) var(--ease-out);
}

.legacy-year.is-open .legacy-year-chevron {
  transform: rotate(180deg);
}

.legacy-year-body {
  display: none;
  padding: 4px 24px 24px;
  border-top: 1px solid var(--background-400);
}

.legacy-year.is-open .legacy-year-body {
  display: block;
}

.legacy-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--background-200);
  font-size: 14px;
}

.legacy-item:last-child {
  border-bottom: 0;
}

.legacy-month {
  flex: none;
  width: 54px;
  font-size: 12px;
  font-weight: 700;
  color: var(--typeface-600);
}

.legacy-tag {
  flex: none;
  min-width: 84px;
  text-align: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--background-300);
  color: var(--fg-muted);
}

.legacy-tag-EXAM {
  background: var(--exam-200);
  color: var(--exam-800);
}

.legacy-tag-GENERAL {
  background: var(--general-200);
  color: var(--general-900);
}

.legacy-tag-BUSINESS {
  background: var(--business-200);
  color: var(--business-900);
}

.legacy-tag-ADMIN {
  background: var(--info-200);
  color: var(--info-800);
}

.legacy-tag-LIVE {
  background: var(--secondary-200);
  color: #a34a00;
}

.legacy-tag-PRODUIT {
  background: var(--primary-200);
  color: var(--primary-800);
}

.legacy-title {
  color: var(--fg-muted);
}

@media (max-width: 640px) {
  .legacy-item {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .legacy-title {
    flex-basis: 100%;
  }
}

/* ==========================================================================
   Bandeau d'appel
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 48px;
  border-radius: var(--radius-36);
  background: var(--primary-gradient-800);
  color: var(--typeface-reverse-900);
  box-shadow: var(--shadow-800);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-800), transparent 70%);
  opacity: 0.4;
  filter: blur(50px);
}

.cta-band-text {
  position: relative;
  max-width: 560px;
}

.cta-band h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--typeface-reverse-900);
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--typeface-reverse-800);
  font-size: 16px;
}

.cta-band-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--primary-800);
}

.cta-band .btn-primary:hover {
  background: var(--secondary-200);
}

@media (max-width: 640px) {
  .cta-band {
    padding: 32px 24px;
    border-radius: var(--radius-24);
  }
}

/* Renvoi inter-pages */
.crosslink {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-default);
}

.crosslink h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.crosslink p {
  font-size: 14.5px;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Modale d'historique
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(41, 16, 82, 0.45);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 84vh;
  overflow-y: auto;
  padding: 36px;
  background: var(--white);
  border-radius: var(--radius-24);
  box-shadow: var(--shadow-800);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--background-300);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}

.modal-close:hover {
  background: var(--background-500);
}

.modal-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-700);
  margin-bottom: 8px;
}

.modal h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.modal-timeline {
  position: relative;
  padding-left: 26px;
}

.modal-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--background-500);
}

.tl-item {
  position: relative;
  padding-bottom: 24px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary-500);
}

.tl-item.is-update .tl-dot {
  border-color: var(--secondary-900);
}

.tl-month {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-800);
  margin-bottom: 4px;
}

.tl-text {
  font-size: 14.5px;
  color: var(--fg-subtle);
}

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer {
  margin-top: 40px;
  padding-block: 48px 40px;
  background: var(--primary-900);
  color: var(--typeface-reverse-800);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.site-footer img {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.site-footer p {
  font-size: 14px;
  max-width: 340px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--typeface-reverse-900);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--typeface-reverse-800);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.footer-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
