/* Police JetBrains Mono Variable auto-hébergée (au lieu de Google Fonts) pour
   ne transmettre l'IP d'aucun visiteur à un tiers. Fichier variable unique
   (poids 100-800 via l'axe wght) couvrant latin + latin-ext (accents
   français), extrait depuis Google Fonts. */
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Police des titres : Bricolage Grotesque (2026-10-31, à la demande de
   l'utilisateur, à la place d'Argentum Sans, la police de MoonShot), police
   libre (SIL OFL 1.1, licence dans fonts/) récupérée sur Google Fonts et
   hébergée ici. Fichier variable : graisses 200 à 800 et taille optique
   (opsz) réglée automatiquement par le navigateur. Texte en Urbanist. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Urbanist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/urbanist-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Couleurs du drapeau togolais (logo uniquement) et signalétique sémantique (niveaux, urgence) */
  --green: #006a4e;
  --yellow: #ffce00;
  --red: #d21034;
  /* Palette WIYAO : les 4 couleurs du drapeau togolais, vert, jaune,
     rouge et blanc (2026-11-07, à la demande de l'utilisateur), avec leurs
     nuances : vert nuit pour le texte et les traits, vert sourd pour les
     textes secondaires, jaune pâle pour les survols. Rien d'autre (ni
     sable, ni bleu, ni gris). Blanc sur vert 6,6:1, sur rouge 5,4:1 ;
     vert nuit sur blanc 12,7:1, sur jaune 8,5:1. */
  --w-ink: #0b3a2c;
  --w-white: #ffffff;
  --w-green: #006a4e;
  --w-yellow: #ffce00;
  --w-yellow-pale: #fff4c2;
  --w-red: #d21034;
  --w-green-soft: #e8f3ee;
  --focus: var(--w-ink);
  --accent: var(--tk-primary);
  --accent-soft: var(--tk-primary-soft);
  --accent-wash: rgba(0, 106, 78, 0.06);
  --bg: var(--tk-canvas);
  --card-bg: var(--tk-surface);
  --text: var(--tk-text);
  --text-muted: var(--tk-text-muted);
  --border: var(--tk-border);
  /* Teintes des badges sur fond clair (vert / jaune / rouge). */
  --tint-green-bg: var(--w-green-soft);
  --tint-green-fg: var(--w-green);
  --tint-yellow-bg: var(--w-yellow-pale);
  --tint-yellow-fg: var(--w-ink);
  --tint-red-bg: #fde7eb;
  --tint-red-fg: #b00d2c;
  --radius: 18px;
  --tk-canvas: var(--w-white);
  --tk-surface: var(--w-white);
  --tk-surface-soft: var(--w-green-soft);
  --tk-border: rgba(11, 58, 44, 0.28);
  --tk-text: var(--w-ink);
  --tk-text-reading: var(--w-ink);
  --tk-text-muted: #2c5847;
  --tk-text-subtle: #3d6655;
  --tk-primary: var(--w-green);
  --tk-primary-hover: var(--w-ink);
  --tk-primary-soft: var(--w-green-soft);
  /* Largeur de la colonne de contenu, calée sur le catalogue Codecademy (~1240 px). */
  --content-max: 1240px;
  /* Texte courant : police système (Segoe UI, Roboto, San Francisco…),
     rien à télécharger et conçue pour la lecture à l'écran. La police à
     chasse fixe reste l'accent de la marque (grands titres, chiffres),
     pas la police de lecture. */
  --font-text: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Bricolage Grotesque", "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-family: var(--font-text);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
  scroll-padding-top: 170px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tk-text);
  line-height: 1.5;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 50%;
  color: var(--tk-text);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 58, 44, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s, color 0.15s ease, border-color 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--tk-primary);
  border-color: var(--tk-primary);
}

/* Assistant WIYAO : bulle flottante + panneau de chat */
.wiyao-assistant-toggle {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 58, 44, 0.3);
  transition: transform 0.15s ease;
}

.wiyao-assistant-toggle:hover {
  transform: scale(1.06);
}

.wiyao-assistant-panel {
  position: fixed;
  right: 20px;
  bottom: 152px;
  z-index: 60;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(11, 58, 44, 0.35);
  overflow: hidden;
}

.wiyao-assistant-panel[hidden] {
  display: none;
}

.wiyao-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tk-border);
  font-weight: 700;
  color: var(--tk-text);
  flex: none;
}

.wiyao-assistant-close {
  background: transparent;
  border: none;
  color: var(--tk-text-subtle);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
}

.wiyao-assistant-close:hover {
  color: var(--tk-text);
}

.wiyao-assistant-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiyao-assistant-msg {
  display: flex;
  flex-direction: column;
}

.wiyao-assistant-msg-user {
  align-items: flex-end;
}

.wiyao-assistant-msg-bot {
  align-items: flex-start;
}

.wiyao-assistant-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.wiyao-assistant-msg-bot .wiyao-assistant-bubble {
  background: var(--tk-surface-soft);
  color: var(--tk-text);
  border-bottom-left-radius: 4px;
}

.wiyao-assistant-msg-user .wiyao-assistant-bubble {
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border-bottom-right-radius: 4px;
}

.wiyao-assistant-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  max-width: 88%;
}

.wiyao-assistant-links a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--tk-border);
  background: var(--tk-surface);
  color: var(--tk-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.wiyao-assistant-links a:hover {
  border-color: var(--tk-primary);
}

.wiyao-assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  flex: none;
}

.wiyao-assistant-chip {
  border: 1px solid var(--tk-border);
  background: var(--tk-surface-soft);
  color: var(--tk-text-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wiyao-assistant-chip:hover {
  border-color: var(--tk-primary);
  color: var(--tk-primary);
}

.wiyao-assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--tk-border);
  flex: none;
}

.wiyao-assistant-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--tk-border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--tk-canvas);
  color: var(--tk-text);
}

.wiyao-assistant-form input:focus {
  outline: none;
  border-color: var(--tk-primary);
}

.wiyao-assistant-form button {
  border: none;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border-radius: 10px;
  width: 38px;
  flex: none;
  cursor: pointer;
  font-size: 1rem;
}

/* Téléphone : la bulle de l'assistant et le bouton « haut de page » côte à
   côte tout en bas (au lieu d'être empilés à mi-hauteur sur le contenu), et
   la bulle s'efface pendant qu'on répond au test d'orientation. */
@media (max-width: 600px) {
  .wiyao-assistant-toggle {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    transition: transform 0.15s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .wiyao-assistant-panel {
    right: 14px;
    bottom: 74px;
  }
  .back-to-top {
    right: 70px;
    bottom: 16px;
  }
  body.quiz-in-view .wiyao-assistant-toggle {
    opacity: 0;
    visibility: hidden;
  }
}

/* En-tête façon Woudy (2026-10-10) : barre-pilule flottante, transparente
   en haut de page, qui prend un fond flouté et une ombre dès qu'on défile
   (classe is-scrolled posée par nav.js) ; logo WIYAO bleu à gauche, menus en
   texte simple au centre, langue / recherche / bouton bleu du test à
   droite. Une fine barre bleue en haut de l'écran suit la lecture. */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  background: var(--tk-primary);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px;
  background: transparent;
}

.site-header-top {
  position: relative;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.site-header.is-scrolled .site-header-top,
header.site-header.is-menu-open .site-header-top {
  background: rgba(11, 58, 44, 0.9);
  border-color: var(--tk-border);
  box-shadow: 0 10px 30px rgba(11, 58, 44, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

/* Logo WIYAO en bleu (le logo vectorisé sert de masque), comme le logo
   aux couleurs de la marque de Woudy. */
.brand-mark {
  display: block;
  height: 34px;
  aspect-ratio: 856 / 325;
  background: var(--tk-primary);
  -webkit-mask: url("../icons/wordmark.svg") center / contain no-repeat;
  mask: url("../icons/wordmark.svg") center / contain no-repeat;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Bouton icône rond, sans fond ni bordure. */
.nav-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
  color: var(--tk-text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-search-icon:hover {
  color: var(--tk-text);
  background: var(--tk-surface-soft);
}

.nav-search-icon.active {
  color: var(--tk-primary);
  background: var(--tk-primary-soft);
}

/* Bouton du test : pilule bleue ; au survol, la flèche sort en haut à
   droite et une nouvelle arrive d'en bas à gauche (bouton de Woudy). */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px 0 20px;
  border-radius: 999px;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.header-cta:hover {
  background: var(--tk-primary-hover);
}

.header-cta-arrow {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  overflow: hidden;
}

.header-cta-arrow svg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cta-arrow svg + svg {
  transform: translate(-16px, 16px);
}

.header-cta:hover .header-cta-arrow svg:first-child {
  transform: translate(16px, -16px);
}

.header-cta:hover .header-cta-arrow svg + svg {
  transform: translate(0, 0);
}

/* roadmap.html : le test d'orientation est déjà dans le menu Parcours,
   pas besoin du bouton d'en-tête en plus sur cette page précise. */
.page-roadmap .header-cta {
  display: none;
}

/* Bouton « hamburger » : visible seulement sous 1 080 px. */
.nav-burger {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--tk-text);
  color: var(--tk-canvas);
  cursor: pointer;
}

.nav-burger-close,
.nav-burger[aria-expanded="true"] .nav-burger-open {
  display: none;
}

.nav-burger[aria-expanded="true"] .nav-burger-close {
  display: block;
}

.nav-more {
  position: relative;
}

/* Menus en texte simple, sans pilule (les liens de Woudy). */
.nav-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--tk-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-more-toggle:hover {
  color: var(--tk-text);
}

.nav-more-toggle.active {
  color: var(--tk-primary);
}

/* Nom du groupe : seulement dans le panneau du menu « hamburger ». */
.nav-group-label {
  display: none;
}

.nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(11, 58, 44, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 30;
}

.nav-more.is-open .nav-more-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-more-menu a {
  color: var(--tk-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
}

.site-nav .nav-more-menu a {
  text-transform: uppercase;
}

.nav-more-menu a:hover {
  color: var(--tk-text);
  background: var(--tk-surface);
}

.nav-more-menu a.active {
  color: var(--tk-primary);
}

/* Sélecteur de langue : petite pilule sombre, langue active en couleur. */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  justify-self: end;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--tk-text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-btn::after {
  content: "";
  position: absolute;
  inset: -9px 0;
}

.lang-btn:hover {
  color: var(--tk-text);
}

.lang-btn.active {
  color: var(--tk-canvas);
  background: var(--tk-primary);
}

.search-bar-wrap {
  max-width: 480px;
  margin: 14px auto 0;
}

/* Page recherche : la barre est le contenu principal, alignée à
   gauche comme le reste de la page plutôt que centrée sous le header. */
.roadmap-category .search-bar-wrap {
  margin: 0 0 20px;
  max-width: 560px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tk-surface-soft);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.search-bar:focus-within {
  background: var(--tk-surface);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.25);
}

.search-icon {
  flex: 0 0 auto;
  color: var(--tk-text-subtle);
}

.search-bar input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  color: var(--tk-text);
  font-family: inherit;
}

.search-bar input[type="search"]::placeholder {
  color: var(--tk-text-subtle);
}

.search-bar input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}

.domain-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.domain-chip {
  background: var(--tk-surface-soft);
  border: none;
  color: var(--tk-text-muted);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.domain-chip:hover {
  background: var(--tk-surface);
  color: var(--tk-text);
}

.domain-chip.active {
  background: var(--tk-primary);
  color: var(--tk-canvas);
}

/* Sélecteur de mode du formulaire de contact ("Nous écrire" /
   "Proposer un contenu") : gros boutons pilule à bordure visible,
   inspirés d'un formulaire de type "I AM A..." (contours nets, grande
   zone cliquable) plutôt que les petites puces de filtre du reste
   du site. */
#contact-mode-filters {
  gap: 12px;
  margin-bottom: 8px;
}

#contact-mode-filters .domain-chip {
  flex: 1;
  border: 1.5px solid var(--tk-border);
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

#contact-mode-filters .domain-chip:hover {
  border-color: var(--tk-primary);
}

#contact-mode-filters .domain-chip.active {
  border-color: var(--tk-primary);
}

.eco-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 48px;
}

.eco-jump-nav a {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  color: var(--tk-text-muted);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.eco-jump-nav a:hover {
  border-color: var(--tk-primary);
  color: var(--tk-primary);
}

.no-results {
  color: var(--tk-text-muted);
  font-size: 0.9rem;
  padding: 20px 0;
  text-align: center;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--tk-text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--tk-text-muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--tk-text);
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--tk-text-muted);
}

.breadcrumb-current {
  color: var(--tk-text);
}

/* Largeur de référence du site (1100px) : partagée avec .site-header-top
   et .footer-inner pour que header, contenu et footer soient alignés
   exactement à la même largeur, pas sur --content-max (1240px) utilisé
   ailleurs (ex. .contact-card, deux colonnes plus larges). Élargie de
   875 à 1100px pour que les 4 liens légaux + le copyright du footer
   tiennent sur une seule ligne. */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 40px;
}

.hero {
  text-align: left;
  padding: 40px 0 30px;
}

/* Grands titres des pages (bandeau .page-title-banner) masqués à l'écran
   le 2026-10-10 à la demande de l'utilisateur. Le bandeau reste dans le HTML
   pour garder un h1 par page (lecteurs d'écran, référencement) ; le
   sélecteur « main » l'emporte sur les anciennes règles responsives. */
main .page-title-banner {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sans le grand titre, l'introduction remonte sous l'en-tête. */
main .page-title-banner + .hero {
  padding-top: 8px;
}

/* Exclu de l'aplat total (voir plus bas dans ce fichier) : ce titre doit
   rester grand pour avoir l'impact recherché, comme le "404". Le span
   .hero-accent à l'intérieur hérite de cette taille (inherit) plutôt que
   de redéclarer chaque palier responsive séparément. */
.page-title-banner h1 {
  font-size: 4.5rem !important;
  font-weight: 800;
  line-height: 1.05;
  color: var(--tk-text);
  margin: 0;
}

.page-title-banner h1 .hero-accent {
  font-size: inherit !important;
}


.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero p {
  color: var(--tk-text-muted);
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

/* Sous-titre de la page d'accueil : prend toute la largeur du
   contenu (comme les autres sites) plutôt qu'une colonne de lecture
   étroite, lu de gauche à droite et justifié (pas centré). */
.hero p[data-i18n-key="hero.subtitle"],
.hero p[data-i18n-key="quiz.hero.subtitle"],
.hero p[data-i18n-key="ecoles.hero.subtitle"],
.hero p[data-i18n-key="calendrier.hero.subtitle"],
.hero p[data-i18n-key="bourses.hero.subtitle"],
.hero p[data-i18n-key="stages.hero.subtitle"],
.hero p[data-i18n-key="eco.hero.subtitle"],
.hero p[data-i18n-key="actu.hero.subtitle"],
.hero p[data-i18n-key="temoignages.hero.subtitle"],
.hero p[data-i18n-key="contact.hero.subtitle"],
.hero p[data-i18n-key="mentions.hero.subtitle"],
.hero p[data-i18n-key="about.hero.subtitle"],
.hero p[data-i18n-key="confidentialite.hero.subtitle"],
.hero p[data-i18n-key="cgu.hero.subtitle"] {
  max-width: 70ch;
  text-align: left;
  line-height: 1.65;
  margin-top: 14px;
}

.hero-accent {
  color: var(--tk-primary);
}

.hero-guide {
  color: var(--tk-text-muted);
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-style: normal;
}

/* Accueil : plus d'air entre le bouton d'orientation et la ligne
   « Nouveau·elle ici ?… » qui le suit. */
.hero .btn-primary + .hero-guide {
  margin-top: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

/* Page 404 */
.error-hero {
  padding-top: 60px;
}

.page-title-banner p.error-code {
  margin: 0 0 4px;
  max-width: none;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--tk-primary);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-btn-secondary {
  background: var(--tk-surface);
  color: var(--tk-primary);
  border: 1px solid var(--tk-border);
}

.roadmap-category {
  margin-top: 56px;
}

.roadmap-category h2 {
  margin-bottom: 4px;
}

.category-desc {
  color: var(--tk-text-muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.domain-group {
  margin-top: 32px;
}

.domain-group:first-child {
  margin-top: 0;
}

.domain-group-title {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.domain-group-desc {
  color: var(--tk-text-muted);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

.domain-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  padding: 10px 18px;
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--tk-text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.domain-group-toggle:hover {
  border-color: var(--tk-primary);
  color: var(--tk-primary);
  background: var(--tk-primary-soft);
}

.skill-grid-toggle {
  margin-bottom: 24px;
}

/* Aperçu : les cartes en plus restent cachées tant que le groupe est replié ;
   le bouton « Voir les N autres » suit la grille. */
.grid.is-collapsed > .card-extra {
  display: none;
}

.grid + .domain-group-toggle {
  margin-top: 16px;
}

.journey-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.journey-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.journey-step-number {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-step h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.journey-step p {
  color: var(--tk-text-muted);
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.journey-step a {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Page d'accueil : le parcours devient une chronologie verticale (ligne +
   pastilles numérotées reliées), pour que le hero débouche sur une vue
   d'ensemble du site entier plutôt que directement sur le catalogue de
   roadmaps. Scopé à #parcours : les autres pages (ex. stages-emploi.html)
   gardent les cartes .journey-step classiques. */
#parcours .journey-steps {
  position: relative;
  gap: 0;
}

#parcours .journey-step {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 28px 48px;
}

#parcours .journey-step:last-child {
  padding-bottom: 0;
}

#parcours .journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--tk-border);
}

#parcours .journey-step-number {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

#global-search-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.search-result {
  display: block;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s ease;
}

.search-result:hover {
  border-color: var(--tk-primary);
}

.search-result-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tk-primary);
  margin-bottom: 6px;
}

.search-result h3 {
  margin: 0 0 4px;
}

.search-result p {
  color: var(--tk-text-muted);
  margin: 0;
}

/* Même disposition que les blocs de roadmaps (.grid / .card) : grille et
   carte blanche identiques, icône séparée du titre. */
.domain-primer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.domain-primer-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}



.domain-primer-item :is(h3, h4) {
  margin: 0 0 6px;
}

.domain-primer-item p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.domain-primer-presence {
  margin-top: 0 !important;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.grid[hidden] {
  display: none;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: block;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card[hidden] {
  display: none;
}

/* Survol réservé aux cartes cliquables (les roadmaps sont des liens) : une
   bordure bleue, visible sur fond sombre (l'ancienne ombre noire ne
   l'était plus). Les cartes d'école ou d'actualité ne bougent pas : elles
   ne sont pas cliquables en entier. */
a.card:hover {
  border-color: var(--tk-primary);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-meta-divider {
  border-top: 1px dashed var(--border);
  margin: 16px 0 12px;
}

/* Actualités : grille de cartes d'annonce façon anthropic.com/news, à la
   place de la chronologie verticale (.timeline) — 3 colonnes sur desktop
   via auto-fill, sans media query dédiée (même mécanique que .grid). */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.actu-card-title {
  margin: 0 0 10px;
}

.actu-card-desc {
  color: var(--text-muted);
  margin: 0;
}

.actu-meta {
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.actu-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.actu-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.actu-meta-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.actu-card-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  background: transparent;
  color: var(--tk-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.actu-card-btn::after {
  content: " →";
}

.actu-card-btn:hover {
  opacity: 0.85;
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.level-badge {
  margin-left: 0;
}

.level-badge.level-debutant {
  background: var(--tint-green-bg);
  color: var(--tint-green-fg);
}

.level-badge.level-intermediaire {
  background: var(--tint-yellow-bg);
  color: var(--tint-yellow-fg);
}

.level-badge.level-avance {
  background: var(--tint-red-bg);
  color: var(--tint-red-fg);
}

.badge.togo-badge {
  margin-left: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.badge.best-match-badge {
  margin-left: 0;
  background: var(--accent);
  color: var(--tk-canvas);
  font-weight: 700;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 16px;
  min-height: 62px;
}

.progress-bar {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar.large {
  height: 10px;
  max-width: 480px;
  margin: 16px auto 8px;
}

.progress-fill {
  background: var(--w-green);
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#global-label {
  color: var(--tk-text-muted);
}

/* Roadmap detail */
.roadmap-header {
  text-align: center;
  margin-bottom: 40px;
}

.roadmap-header h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

.roadmap-header .subtitle {
  color: var(--tk-text-muted);
  margin-left: auto;
  margin-right: auto;
}

.roadmap-header .type-badge {
  background: var(--tk-surface-soft);
  color: var(--tk-text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.roadmap-header .badge {
  margin: 0 4px 10px;
}

.roadmap-header .level-badge {
  background: var(--tk-surface-soft);
  color: var(--tk-text-muted);
}

.roadmap-header .togo-badge {
  background: var(--tk-primary-soft);
  color: var(--tk-primary);
}

.roadmap-header .progress-bar {
  background: var(--tk-border);
}

.roadmap-header .progress-fill {
  background: var(--tk-primary);
}

.togo-notice {
  max-width: 560px;
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  color: var(--tk-text-muted);
  font-size: 0.85rem;
  text-align: left;
}

.related-section {
  margin-top: 56px;
}

.related-section h2 {
  font-size: 1.375rem;
  margin-bottom: 18px;
}

.roadmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tk-text-muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  border-color: var(--tk-primary);
  color: var(--tk-primary);
  background: var(--tk-primary-soft);
}

.track {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text);
}

.section h2 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.item:hover {
  background: var(--accent-wash);
}

.item.optional {
  opacity: 0.85;
}

.check {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--tk-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check::after {
  content: "";
  position: absolute;
  inset: -11px;
}

.item.done .check {
  background: var(--accent);
  border-color: var(--accent);
}

.item.done .item-label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.item-label-wrap {
  flex: 1;
}

.item-label {
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--tint-yellow-bg);
  color: var(--tint-yellow-fg);
  vertical-align: middle;
}

.item-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.item-resource {
  display: block;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  /* Une adresse sans espace (« goafricaonline.com/tg/emploi ») débordait de
     9 px à 320 px de large : elle peut maintenant se couper. */
  overflow-wrap: anywhere;
}

.item-resource:hover {
  text-decoration: underline;
}

/* À propos & pages longues (mentions légales, confidentialité, CGU) :
   traitement « document » lisible inspiré des pages légales de Codecademy —
   corps de texte large, interlignage confortable, hiérarchie nette,
   liens bleus soulignés. */
/* Toute la largeur du contenu, texte aligné à gauche (pas justifié) :
   façon Codecademy (codecademy.com/terms), plutôt qu'une colonne de
   lecture étroite et justifiée. Valeur par défaut ; les 4 pages légales
   resserrent et centrent ce bloc juste en dessous (règle .hero-legal ~). */
.about-section {
  max-width: none;
  margin: 0 0 34px;
}

/* Les 4 pages légales (About, Mentions légales, Confidentialité, CGU)
   reprennent la disposition des pages légales d'anthropic.com : une
   colonne resserrée et centrée sur la page plutôt que pleine largeur ;
   le texte à l'intérieur reste aligné à gauche. Le sélecteur .hero-legal ~
   ne cible que les .about-section de ces 4 pages (identifiées par leur
   hero), sans toucher au guide de stages-emploi.html qui réutilise aussi
   .about-section mais garde sa propre colonne étroite non centrée (#guide). */
.hero-legal,
.hero-legal ~ .about-section {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.about-section h2 {
  font-size: 2.125rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

.about-section p {
  color: var(--tk-text-reading);
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 0 18px;
  text-align: left;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-section a {
  color: var(--tk-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-section a:hover {
  color: var(--tk-primary-hover);
}

.about-section ul {
  margin: 0 0 18px;
  padding-left: 24px;
  color: var(--tk-text-reading);
}

.about-section li {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* Stages & emploi : le bloc-guide réutilise .about-section pour sa
   colonne de lecture, mais doit garder la même échelle de titres et de
   texte que les .eco-section qui l'entourent sur cette page, pas celle
   des 4 pages légales autonomes (34 px/17 px y ferait un titre hors
   d'échelle par rapport au reste de la page). */
#guide h2 {
  font-size: 1.375rem;
}

/* Contrairement aux 4 pages légales, le guide de stages-emploi.html
   garde sa colonne de lecture étroite (pas concerné par ce changement). */
#guide {
  max-width: 720px;
}

#guide p {
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: left;
}

/* Titre de page des 4 pages légales : même échelle que Codecademy (64 px). */
.hero-legal h1 {
  font-size: 4rem;
  line-height: 1.2;
}

/* Ligne "Dernière mise à jour" sous le hero (sans trait de séparation, à la demande de l'utilisateur). */
.hero-legal-meta {
  margin-top: 20px;
  color: var(--tk-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .page-title-banner {
    padding: 40px 32px;
  }
  .page-title-banner h1 {
    font-size: 3.25rem !important;
  }
  .hero-legal h1 {
    font-size: 3rem;
  }
  .about-section h2 {
    font-size: 1.8rem;
  }
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.founder-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--tk-border);
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.founder-name {
  font-weight: 700;
  color: var(--tk-text);
}

.founder-links {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

/* Écoles & universités */
.school-card {
  display: flex;
  flex-direction: column;
}

.school-badges {
  margin-bottom: 10px;
}

.badge.status-public {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.badge.status-prive {
  background: var(--tk-surface-soft);
  color: var(--text-muted);
  font-weight: 700;
}

.badge.status-inter-etats {
  background: var(--tint-green-bg);
  color: var(--tint-green-fg);
  font-weight: 700;
}

.badge.ville-badge {
  background: var(--tint-yellow-bg);
  color: var(--tint-yellow-fg);
  font-weight: 700;
}

.school-card .card-icon {
  margin-bottom: 6px;
}

.school-card h3 {
  margin-bottom: 4px;
}

.school-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.school-filieres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.school-filieres li {
  background: var(--tk-surface-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: var(--text);
}

.school-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.school-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Fiches écoles compactes : l'essentiel visible, le détail à un clic. */
.school-filieres-line {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.school-filieres-line strong {
  color: var(--text);
  font-weight: 600;
}

.school-details {
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.school-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  color: var(--tk-primary);
  cursor: pointer;
  list-style: none;
}

.school-details summary::-webkit-details-marker {
  display: none;
}

main .school-details summary,
main .school-details summary * {
  font-size: 14px !important;
  font-weight: 600 !important;
}

.school-details summary .ico {
  margin: 0;
  transition: transform 0.2s ease;
}

.school-details[open] summary .ico {
  transform: rotate(180deg);
}

.school-details-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 8px;
  color: var(--text-muted);
}

.school-details-body strong {
  color: var(--text);
  font-weight: 600;
}

.school-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.school-link:hover {
  text-decoration: underline;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tk-text-muted);
  margin: 0 0 8px;
}

.source-note {
  max-width: 680px;
  margin: 30px 0 0;
  padding: 12px 16px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  color: var(--tk-text-muted);
  font-size: 0.82rem;
  text-align: left;
}

/* FAQ façon LottieFiles (2026-10-10, à la demande de l'utilisateur ;
   remplace la mise en page à colonne collante façon Composio) : une seule
   colonne centrée de 760 px, l'introduction centrée au-dessus, puis chaque
   question dans sa propre carte arrondie (12 px), cartes espacées de 16 px,
   chevron à droite qui pivote à l'ouverture. Cartes sombres (--tk-surface)
   au lieu des cartes blanches de LottieFiles ; la question garde l'échelle
   du site (18 px, graisse 700, règle « main summary » plus bas). */
.faq-layout {
  max-width: 760px;
  margin: 0 auto;
}

.faq-sidebar {
  margin-bottom: 40px;
  text-align: center;
}

.hero.faq-hero p {
  margin: 0 auto;
  text-align: center;
}

.faq-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--tk-text);
  color: var(--tk-text);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.faq-content {
  min-width: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 4px 24px;
  border: none;
  border-radius: 12px;
  background: var(--tk-surface);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  color: var(--tk-text);
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Chevron (même tracé que l'icône « chevron-down » de LottieFiles), en
   masque pour prendre la couleur du texte secondaire. */
.faq-item summary::after {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: var(--tk-text-subtle);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform 0.2s ease-out;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--tk-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}

.faq-item p a {
  color: var(--tk-primary);
  font-weight: 600;
}

@media (max-width: 560px) {
  .faq-sidebar {
    margin-bottom: 28px;
  }
  .faq-item {
    padding: 2px 20px;
  }
}

/* Test d'orientation : questionnaire façon "liste de questions" */
#quiz-progress-wrap {
  max-width: 620px;
  margin: 0 auto 30px;
}

#quiz-progress-wrap .progress-bar {
  display: flex;
  gap: 5px;
  height: 6px;
  max-width: none;
  margin: 0 0 14px;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

#quiz-progress-wrap .progress-seg {
  flex: 1;
  height: 100%;
  border-radius: 100px;
  background: var(--tk-border);
  transition: background 0.25s ease;
}

#quiz-progress-wrap .progress-seg.is-done {
  background: var(--tk-primary);
}

#quiz-progress-label {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tk-primary);
}

.quiz-question-title {
  max-width: 620px;
  margin: 14px auto 30px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  color: var(--tk-text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: 14px;
  padding: 15px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--tk-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--tk-text-subtle);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option:hover {
  border-color: var(--tk-primary);
  background: var(--tk-surface);
}

.quiz-option:hover::before {
  border-color: var(--tk-primary);
  box-shadow: inset 0 0 0 4px var(--tk-primary);
}

.quiz-back {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tk-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.quiz-back:hover {
  color: var(--tk-primary);
}

.quiz-disclaimer {
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  background: var(--tk-surface-soft);
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  color: var(--tk-text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

.quiz-disclaimer a {
  font-weight: 700;
}

.quiz-secondary {
  text-align: center;
  color: var(--tk-text-muted);
  margin: 24px 0 0;
}

.quiz-scores-title {
  margin: 40px 0 16px;
  font-size: 1.05rem;
  text-align: center;
}

.quiz-scores {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-score-row {
  display: grid;
  grid-template-columns: 190px 1fr 50px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.quiz-score-label {
  color: var(--tk-text-muted);
}

.quiz-score-value {
  text-align: right;
  color: var(--tk-text-muted);
}

.quiz-score-row .progress-bar {
  background: var(--tk-border);
}

.quiz-score-row .progress-fill {
  background: var(--tk-primary);
}

#quiz-restart {
  display: block;
  margin: 30px auto 0;
}

.quiz-match-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.quiz-match-checklist span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.quiz-match-checklist .match-ok {
  background: var(--accent-soft);
  color: var(--accent);
}

.quiz-match-checklist .match-no {
  background: var(--tk-surface-soft);
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .quiz-score-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .quiz-score-value {
    text-align: left;
  }
  #quiz-progress-wrap .progress-bar {
    gap: 3px;
  }
  .quiz-question-title {
    font-size: 1.3rem;
    margin: 12px auto 22px;
  }
  .quiz-option {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}

/* Listes chronologiques (calendrier type + actualités) : une seule
   présentation en cartes avec pastille de date teintée, partagée par
   toute chronologie datée du site (ex-traitement #timeline-general
   généralisé à .timeline). */
.timeline {
  max-width: 760px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--tk-border);
  border-radius: var(--radius);
  background: var(--tk-surface);
  transition: border-color 0.15s ease;
}

.timeline-item:hover {
  border-color: var(--tk-primary);
}

.timeline-period {
  flex: 0 0 auto;
  width: 108px;
  padding: 14px 8px;
  margin: 0;
  border-radius: 12px;
  background: var(--tk-primary-soft);
  color: var(--tk-primary);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: normal;
}

.timeline-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.timeline-content h3 {
  margin: 0 0 4px;
  color: var(--tk-text);
}

.timeline-content p {
  margin: 0;
  color: var(--tk-text-muted);
}

/* Calendrier : "Le calendrier type" en 2 colonnes (titre + ligne
   verticale à puces), façon calendrier Djanta Tech Hub — traitement
   propre à cette section, distinct de la chronologie en cartes
   partagée par ailleurs (#timeline-general uniquement, pas .timeline). */
.calendrier-general-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.calendrier-general-intro {
  position: sticky;
  top: 24px;
}

.calendrier-general-layout .calendrier-general-intro h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
}

.calendrier-general-intro .category-desc {
  margin: 0;
}

#timeline-general {
  position: relative;
  max-width: none;
  gap: 0;
}

#timeline-general .timeline-item {
  position: relative;
  display: block;
  border: none;
  background: none;
  border-radius: 0;
  padding: 0 0 32px 28px;
}

#timeline-general .timeline-item:hover {
  border-color: transparent;
}

#timeline-general .timeline-item:last-child {
  padding-bottom: 0;
}

#timeline-general .timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 17px;
  bottom: 0;
  width: 2px;
  background: var(--tk-border);
}

#timeline-general .timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--tk-primary);
  background: var(--tk-canvas);
}

#timeline-general .timeline-period {
  all: unset;
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--tk-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
}

#timeline-general .timeline-content {
  padding-top: 0;
}

#timeline-general .timeline-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tk-primary);
  margin: 0 0 4px;
}

#timeline-general .timeline-content p {
  font-size: 1.25rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .calendrier-general-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .calendrier-general-intro {
    position: static;
  }
}

.dates-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  color: var(--text);
}

.dates-row-urgent {
  border-color: var(--tint-red-fg);
  border-width: 2px;
}

.dates-urgent-note {
  color: var(--tint-red-fg);
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 8px;
}

.dates-row h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.dates-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.dates-list li {
  margin-bottom: 4px;
}

.dates-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: normal;
  margin: 0 0 8px;
}

.dates-ref-note {
  color: var(--tint-yellow-fg);
  font-size: 0.78rem;
  margin: 0 0 8px;
}

@media (max-width: 600px) {
  .timeline-item {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .timeline-period {
    width: auto;
    align-self: flex-start;
    padding: 7px 14px;
  }
}

/* Ecosysteme page */
.eco-section {
  margin-bottom: 56px;
}

.eco-section h2 {
  margin-bottom: 16px;
}

.eco-subheading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tk-text-muted);
  margin: 24px 0 14px;
}

.eco-subheading:first-of-type {
  margin-top: 0;
}

.eco-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.eco-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
}

.eco-item :is(h3, h4) {
  margin: 0 0 6px;
  font-size: 1rem;
}

.eco-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.eco-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--tk-primary);
  font-weight: 600;
}

.eco-item a.eco-link {
  color: var(--accent);
}

.eco-item .eco-contact {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

/* "Ils l'ont fait" : carte façon témoignage — texte, puis identité
   (avatar initiales + nom + rôle) ancrée en pied de carte, source en bas. */
#portraits .eco-list {
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
}

#portraits .eco-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait-quote {
  flex: 1;
  margin: 0;
}

.portrait-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portrait-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--tk-canvas);
  font-size: 0.8rem;
  font-weight: 700;
}

.portrait-person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portrait-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.portrait-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.portrait-source {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.portrait-source a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.portrait-source a:hover {
  text-decoration: underline;
}

/* ── Échelle typographique calée sur le catalogue Codecademy ──
   titre de section 22 px · titre de carte 18 px · description 16 px.
   Placé après les règles de composants pour l'emporter sur leurs
   anciennes tailles (spécificité égale, source plus tardive). */
.roadmap-category h2,
.related-section h2,
.eco-section h2,
.section h2 {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.3;
}

.card h3,
.school-card h3,
.eco-item :is(h3, h4),
.journey-step h3,
.timeline-content h3,
.search-result h3,
.domain-primer-item :is(h3, h4),
.domain-group-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.category-desc,
.card p,
.eco-item p,
.journey-step p,
.domain-group-desc,
.timeline-content p,
.search-result p,
.domain-primer-item p {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Police monospace (JetBrains Mono) : la justification, même en pleine
   largeur, y crée des espaces trop visibles entre les mots. Alignement
   à gauche partout plutôt que justifié. */
.category-desc,
.journey-step p,
.domain-group-desc {
  text-align: left;
}

/* Pied de page façon Woudy (2026-10-10), simplifié à la demande de
   l'utilisateur : bande pleine largeur ; quatre colonnes qui reprennent
   les quatre menus de l'en-tête (Parcours, Opportunités, Communauté,
   Contact) sous des étiquettes en capitales ; en bas, le copyright et les
   liens légaux (la signature WIYAO en très grand a été retirée à la demande
   de l'utilisateur). Les liens se soulignent de gauche à droite au survol. */
footer.site-footer {
  margin-top: 0;
  overflow: hidden;
  background: var(--tk-surface);
  border-top: 1px solid var(--tk-border);
}

.footer-inner,
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding: 80px 0 64px;
}

.footer-col h2 {
  margin: 0;
  color: var(--tk-text-subtle);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.footer-links-col li {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.5;
}

/* Soulignement qui pousse de gauche à droite au survol, et repart vers la
   droite en sortant (seule la taille du trait est animée). */
.footer-links-col a,
.footer-legal-links a {
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--tk-primary), var(--tk-primary)) no-repeat right bottom / 0 1px;
  transition: color 0.2s ease, background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links-col a {
  color: var(--tk-text-muted);
}

.footer-links-col a:hover,
.footer-links-col a:focus-visible,
.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--tk-text);
  background-position: left bottom;
  background-size: 100% 1px;
}

.footer-links-col a.active,
.footer-legal-links a.active {
  color: var(--tk-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.footer-copy {
  margin: 0;
  color: var(--tk-text-subtle);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links li {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-legal-links a {
  color: var(--tk-text-subtle);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
  }
}

@media (max-width: 560px) {
  .footer-inner,
  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-grid {
    gap: 36px 20px;
    padding: 56px 0 48px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fenêtre « Informations légales » à onglets (comme Woudy) : voile sombre
   flouté, carte arrondie (en bas de l'écran sur téléphone, centrée sur
   ordinateur), titre, bouton rond de fermeture, onglets en pastilles (actif
   rempli en bleu), puis le contenu de la page choisie. */
html.legal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 58, 44, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.legal-modal[hidden] {
  display: none;
}

.legal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px;
  border: 1px solid var(--tk-border);
  border-radius: 28px;
  background: var(--tk-surface);
  color: var(--tk-text-muted);
  box-shadow: 0 24px 60px rgba(11, 58, 44, 0.5);
}

.legal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--tk-surface-soft);
  color: var(--tk-text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.legal-close:hover {
  background: var(--tk-border);
}

.legal-title {
  margin: 0;
  padding-right: 56px;
  color: var(--tk-text);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.legal-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--tk-text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.2s ease;
}

.legal-tab:hover {
  color: var(--tk-text);
}

.legal-tab[aria-selected="true"] {
  background: var(--tk-primary);
  color: var(--tk-canvas);
}

.legal-panel {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal-panel:focus-visible {
  outline: 2px solid var(--tk-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.legal-panel .hero,
.legal-panel .about-section {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
}

.legal-panel .about-section {
  margin-top: 28px;
}

.legal-panel p,
.legal-panel li {
  max-width: 65ch;
  margin: 0 0 12px;
  color: var(--tk-text-muted);
  font-size: 1rem;
}

.legal-panel .hero > p:first-child {
  color: var(--tk-text);
  font-size: 1.125rem !important;
}

.legal-panel h3 {
  margin: 0 0 10px;
  color: var(--tk-text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.legal-panel ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-panel a {
  color: var(--tk-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-panel img {
  max-width: 100%;
  height: auto;
}

.legal-panel .hero-legal-meta {
  margin-top: 12px;
  color: var(--tk-text-subtle);
  font-size: 0.875rem;
}

.legal-status {
  color: var(--tk-text-subtle);
}

@media (max-width: 639px) {
  .legal-modal {
    align-items: flex-end;
    padding: 12px;
  }
  .legal-dialog {
    max-height: 88vh;
    padding: 24px;
    border-radius: 24px;
  }
  .legal-title {
    font-size: 1.5rem;
  }
}

@media (pointer: coarse) {
  .legal-tab {
    min-height: 44px;
  }
}

@media print {
  .legal-modal {
    display: none !important;
  }
}

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

/* Sous 1 080 px, les menus ne tiennent plus sur la barre : bouton
   « hamburger » qui ouvre un panneau sous la barre avec les quatre groupes
   et tous leurs liens (comme les colonnes du pied de page). */
@media (max-width: 1079px) {
  .nav-burger {
    display: grid;
  }
  nav.site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 24px;
    background: var(--tk-surface);
    border: 1px solid var(--tk-border);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(11, 58, 44, 0.4);
  }
  header.site-header.is-menu-open nav.site-nav {
    display: grid;
  }
  .nav-more-toggle {
    display: none;
  }
  .nav-group-label {
    display: block;
    color: var(--tk-text-subtle);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .nav-more-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav .nav-more-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    white-space: normal;
  }
  .nav-more-menu a:hover {
    background: none;
  }
}

/* Téléphone : le bouton du test s'efface (comme celui de Woudy) ; le test
   reste dans le menu Parcours et sur l'accueil. */
@media (max-width: 639px) {
  header.site-header {
    padding: 10px 12px;
  }
  .site-header-top {
    gap: 8px;
    padding: 6px 6px 6px 16px;
  }
  .header-cta {
    display: none;
  }
  .header-actions,
  .header-tools {
    gap: 4px;
  }
  .brand-mark {
    height: 30px;
  }
}

@media (max-width: 359px) {
  nav.site-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 16px 0 24px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .page-title-banner {
    padding: 28px 20px;
    margin-top: -40px;
  }
  .page-title-banner h1 {
    font-size: 2.1rem !important;
  }
  .hero-legal h1 {
    font-size: 2.3rem;
  }
  .about-section h2 {
    font-size: 1.55rem;
  }
  .roadmap-category h2,
  .related-section h2,
  .eco-section h2,
  .section h2 {
    font-size: 1.2rem;
  }
}

/* Page Contact : une carte unique, coordonnées + gros titre à gauche, formulaire à droite */
.contact-section {
  margin-top: 50px;
  padding: 0 24px;
}

.contact-card {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  background: var(--tk-surface);
  border: 1px solid var(--tk-border);
  border-radius: 24px;
  padding: 48px;
}

/* Page Proposer : pas de colonne "coordonnées", le formulaire seul est centré */
.contact-card--form-only {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.contact-intro h2 {
  margin: 0 0 14px;
  font-size: 2.1rem;
  line-height: 1.15;
  color: var(--tk-text);
}

.contact-intro-desc {
  margin: 0 0 32px;
  color: var(--tk-text-muted);
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 38ch;
  text-align: left;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-detail-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tk-surface-soft);
  color: var(--tk-primary);
}

.contact-detail-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tk-text-subtle);
  margin-bottom: 4px;
}

.contact-detail-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tk-text);
}

.contact-detail-value a {
  color: var(--tk-text);
}

.contact-detail-value a:hover {
  color: var(--tk-primary);
}

.contact-required-note {
  margin: 0 0 20px;
  color: var(--tk-text-muted);
  font-size: 0.88rem;
}

.required-mark {
  color: var(--tk-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tk-text);
}

.contact-form-field input,
.contact-form-field textarea,
.contact-form-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--tk-border);
  padding: 15px 22px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--tk-text);
  background: var(--tk-surface-soft);
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form-field input,
.contact-form-field select {
  border-radius: 999px;
}

.contact-form-field textarea {
  border-radius: var(--radius);
  resize: none;
  min-height: 140px;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--tk-text-subtle);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus,
.contact-form-field select:focus {
  outline: none;
  background: var(--tk-surface);
  border-color: var(--tk-primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.25);
}

.btn-send {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border: none;
  border-radius: 999px;
  padding: 18px 30px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-send:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.contact-form-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tk-text-muted);
  line-height: 1.5;
}

.contact-form-note a {
  color: var(--tk-primary);
  font-weight: 600;
}

@media (max-width: 860px) {
  .contact-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-form-card {
    padding: 32px 24px;
  }
  .contact-intro-desc {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Échelle typographique du contenu (<main>) : la lecture d'abord.
   Remplace l'ancien « aplat » 16/14/12 px, illisible (70 à 80 % du texte des
   pages de contenu était à 12 px, en police à chasse fixe). Un défaut
   universel à 16 px garantit qu'aucun texte ne retombe sous la taille de
   lecture ; les paliers ci-dessous ne descendent jamais sous 13 px.
   !important : nécessaire pour primer sur les dizaines de sélecteurs
   contextuels ci-dessus ; les exceptions plus bas gardent la main grâce à
   leur spécificité plus forte. */
main * {
  font-size: 16px !important;
}

main p,
main li,
main dd,
main td {
  line-height: 1.6;
}

/* Titre de page hors bandeau (ex. une roadmap). */
main h1 {
  font-size: 40px !important;
  line-height: 1.15;
}

/* Titres en police de texte : graisse 700 (le 800 tombe sur une coupe
   « Black » trop lourde en Segoe UI / Roboto). Les grands titres en chasse
   fixe (bandeaux) gardent leur graisse. */
main h2,
main h3,
main h4,
main h5,
main h6,
main summary {
  font-weight: 700 !important;
}

/* Titres de section. */
main h2 {
  font-size: 24px !important;
  line-height: 1.25;
}

/* Titres de carte, questions de FAQ. */
main h3,
main h4,
main h5,
main h6,
main summary {
  font-size: 18px !important;
  line-height: 1.35;
}

/* Chapeau d'introduction sous le bandeau de titre (18 px : ~60 ch pour rester
   sous 70 caractères par ligne). */
main .hero > p:first-child,
main .roadmap-header .subtitle {
  font-size: 18px !important;
  max-width: 60ch;
}

/* Éléments secondaires : boutons, filtres, liens de carte, métadonnées. */
main .btn,
main .btn-primary,
main .domain-chip,
main .eco-jump-nav a,
main .eco-link,
main .school-link,
main .actu-card-btn,
main .actu-meta-value,
main .breadcrumb,
main .breadcrumb *,
main .school-filieres li,
main .dates-ref-note,
main .eco-contact,
main .quiz-match-checklist span,
main .progress-label,
main #quiz-progress-label,
main .hero-guide,
main .hero-guide *,
main .hero-legal-meta span,
main .portrait-role,
main .portrait-source,
main .portrait-source *,
main .founder-links a,
main .eco-subheading,
main #parcours .journey-step a {
  font-size: 14px !important;
}

/* Étiquettes en capitales : le plus petit palier autorisé. */
main .badge,
main .actu-meta-label,
main .filter-group-label,
main .faq-badge,
main .timeline-period,
main .search-result-category,
main .contact-detail-label {
  font-size: 13px !important;
}

/* Longueur de ligne : 60 à 75 caractères, la plage de lecture confortable. */
main .hero p,
main .hero-guide,
main .category-desc,
main .about-section > p,
main .about-section li,
main .faq-item p,
main .dates-note,
main .timeline-content p {
  max-width: 65ch;
}

/* Accents de la marque en chasse fixe. */
.page-title-banner h1,
.page-title-banner h1 *,
.page-title-banner p.error-code,
.journey-step-number,
.roadmap-header h1 {
  font-family: var(--font-mono);
}

/* Le "404" reste un gros chiffre décoratif, pas un paragraphe de texte
   courant : exclu de l'aplat ci-dessus. */
main .page-title-banner p.error-code {
  font-size: 3rem !important;
}

/* Titre des bandeaux de page (façon Julaya) : exclu de l'aplat ci-dessus
   pour le même motif que le "404". Règle de base (+ 2 paliers responsive)
   déjà définie plus haut avec !important — pas de règle main ici pour ne
   pas prendre le pas sur ces paliers avec une spécificité plus élevée. */

/* Icônes des roadmaps : au trait depuis le 2026-11-07 (à la place des
   emoji, qui arrivaient avec leurs propres couleurs), vertes sur les
   cartes blanches, couleur du texte devant le titre d'une roadmap. */
main .card-icon {
  font-size: 1rem !important;
  line-height: 0;
}

.card-icon .ico-roadmap {
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--w-green);
}

/* En pixels, à 90 % du titre (26 à 40 px) : une taille en em suivrait la
   taille de texte imposée aux éléments de main, pas celle du titre. */
.roadmap-header h1 .ico-roadmap-title {
  width: clamp(23px, 12.6px + 3.6vw, 36px);
  height: clamp(23px, 12.6px + 3.6vw, 36px);
  margin-right: 0.3em;
  vertical-align: -0.1em;
  color: currentColor;
}

/* Impression d'une roadmap (bouton "Imprimer / PDF") : réutilise les
   tokens --card-bg/--text/--border déjà clairs (cartes blanches sur fond
   sombre) en les propageant aussi aux tokens de page (--tk-canvas etc.),
   plutôt que de réécrire chaque sélecteur individuellement. */
/* Icônes au trait (remplacent les emoji d'interface) : taille du texte qui
   les entoure, couleur héritée. */
.ico {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.15em;
}

.domain-chip .ico,
.btn .ico {
  margin-right: 6px;
}

.domain-group-title .ico {
  color: var(--tk-primary);
  margin-right: 0.5em;
}

/* Icône de domaine des cartes « 7 grands domaines » : sur la ligne du titre. */
.domain-primer-item h3 .ico {
  color: var(--tk-primary);
  margin-right: 0.5em;
}

/* Test d'orientation : l'aperçu des 7 domaines, replié sous le test. */
.primer-fold {
  border: 1px solid var(--tk-border);
  border-radius: 16px;
  background: var(--tk-surface);
}

.primer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}

.primer-summary::-webkit-details-marker {
  display: none;
}

.primer-summary h2 {
  margin: 0;
}

.primer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tk-primary);
  font-weight: 600;
}

main .primer-toggle,
main .primer-toggle * {
  font-size: 14px !important;
}

.primer-toggle .ico {
  margin: 0;
  transition: transform 0.2s ease;
}

.primer-fold[open] .primer-chevron {
  transform: rotate(180deg);
}

.primer-hide,
.primer-fold[open] .primer-show {
  display: none;
}

.primer-fold[open] .primer-hide {
  display: inline;
}

.primer-body {
  padding: 0 24px 24px;
}

.primer-body .category-desc {
  margin-top: 0;
}

/* Accueil : trois repères rassurants sous le bouton du test (repris de la
   ligne « Payez avec… » de Woudy). */
.hero-reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hero-reassure li {
  display: inline-flex;
  align-items: center;
  color: var(--tk-text-muted);
  font-weight: 600;
}

main .hero-reassure li,
main .hero-reassure li * {
  font-size: 14px !important;
}

.hero-reassure .ico {
  color: var(--tk-primary);
}

.hero-reassure + .hero-guide {
  margin-top: 24px;
}

/* Pages longues : titres de section numérotés 01, 02… (repris de XCompany et
   LE JPEG). Numéro généré en CSS, masqué aux lecteurs d'écran. */
main.numbered-sections {
  counter-reset: wiyao-section;
}

main.numbered-sections > section:is(.eco-section, .about-section) > h2::before {
  counter-increment: wiyao-section;
  content: counter(wiyao-section, decimal-leading-zero);
  content: counter(wiyao-section, decimal-leading-zero) / "";
  display: inline-block;
  margin-right: 12px;
  color: var(--tk-primary);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
}

/* Appui : léger enfoncement de tout ce qui se clique, pour qu'on voie (au
   doigt surtout) que le geste a été pris en compte. Placé après les règles
   de survol pour l'emporter pendant l'appui. */
.btn:active,
.btn-primary:active,
.btn-send:active,
.header-cta:active,
.nav-search-icon:active,
.nav-more-toggle:active,
.lang-btn:active,
.domain-chip:active,
.quiz-option:active,
.quiz-back:active,
.actu-card-btn:active,
.back-to-top:active,
.wiyao-assistant-toggle:active,
.eco-jump-nav a:active,
.search-result:active,
.check:active,
a.card:active {
  transform: scale(0.97);
  transition: transform 0.08s ease;
}

/* Surfaces du navigateur (sélection de texte, curseur de saisie, cases et
   boutons radio natifs, barre de défilement) aux couleurs du site plutôt que
   celles par défaut du navigateur. */
:root {
  accent-color: var(--tk-primary);
  scrollbar-color: var(--tk-border) var(--tk-canvas);
}

::selection {
  background: var(--tk-primary);
  color: var(--tk-canvas);
}

input,
textarea {
  caret-color: var(--tk-primary);
}

/* Focus clavier visible et aux couleurs de WIYAO : le contour par défaut
   du navigateur se voyait mal sur le fond sombre. Les champs de saisie
   gardent leur propre indicateur (bordure colorée). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--tk-primary);
  outline-offset: 2px;
}

/* Écrans tactiles : toute cible d'au moins 44 px de haut (doigt), sans
   changer la mise en page sur ordinateur. Les liens en liste gardent leur
   espacement visuel ; leur zone cliquable est prolongée par ::after. */
@media (pointer: coarse) {
  .eco-link,
  .school-link,
  .item-resource,
  .contact-detail-value a,
  .founder-links a,
  .about-section li > a:only-child {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
  }
  .brand,
  .nav-more-toggle,
  .nav-search-icon,
  .header-cta,
  .domain-chip,
  .actu-card-btn,
  .eco-jump-nav a,
  .btn {
    min-height: 44px;
  }
  .eco-jump-nav a {
    display: inline-flex;
    align-items: center;
  }
  .search-bar {
    padding-top: 0;
    padding-bottom: 0;
  }
  .search-bar input[type="search"] {
    min-height: 44px;
  }
  .header-cta,
  .nav-search-icon {
    height: 44px;
  }
  .footer-links-col li,
  .footer-legal-links li {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
  }
  .footer-links-col a,
  .footer-legal-links a {
    position: relative;
  }
  .footer-links-col a::after,
  .footer-legal-links a::after {
    content: "";
    position: absolute;
    inset: -12px 0;
  }
}

/* ── Style graphique façon MoonShot by TechCabal (2026-10-31, à la demande
   de l'utilisateur), transposé sur le fond sombre : boutons à trait épais
   et ombre dure décalée, cartes en grille à bordures partagées, grands
   titres de section en capitales, bandeau défilant sur l'accueil. Le trait
   (« encre ») est la couleur du texte, comme le bleu marine de MoonShot
   sur fond clair. Placé après les règles de survol et d'appui pour
   l'emporter. */
:root {
  --ink: var(--tk-text);
  --grid-line: var(--w-ink);
}

/* Boutons principaux : aplat bleu, trait de 2 px, ombre dure en bas à
   gauche, case flèche accolée à droite. Au survol, le bouton se soulève ;
   à l'appui, il s'enfonce dans son ombre. */
.btn-primary,
.btn-send {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 52px;
  padding: 0 0 0 22px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  font-weight: 700;
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
  filter: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary::after,
.btn-send::after {
  content: "";
  flex: none;
  align-self: stretch;
  width: 48px;
  margin-left: 20px;
  border-left: 2px solid var(--ink);
  background: var(--tk-canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Bouton de retour (404) : la case flèche passe à gauche. */
.btn-primary.btn-back {
  flex-direction: row-reverse;
  padding: 0 22px 0 0;
}

.btn-primary.btn-back::after {
  margin: 0 20px 0 0;
  border-left: 0;
  border-right: 2px solid var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}

/* Formulaires : bouton pleine largeur, libellé centré, case flèche à droite. */
.btn-send {
  display: flex;
  justify-content: center;
  min-height: 56px;
  padding: 0 48px;
}

.btn-send::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}

.btn-primary:hover,
.btn-send:hover {
  filter: none;
  background: var(--tk-primary);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary:active,
.btn-send:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.error-btn-secondary,
.error-btn-secondary:hover {
  background: var(--tk-surface);
  color: var(--tk-text);
}

main :is(.btn-primary, .btn-send) {
  font-size: 16px !important;
}

/* Boutons secondaires : même trait et même ombre, sur aplat sombre. */
.btn,
.domain-group-toggle,
.actu-card-btn {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--tk-surface);
  color: var(--tk-text);
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 1;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.btn:hover,
.domain-group-toggle:hover,
.actu-card-btn:hover {
  border-color: var(--ink);
  background: var(--tk-surface-soft);
  color: var(--tk-text);
  opacity: 1;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn:active,
.domain-group-toggle:active,
.actu-card-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

/* Cartes en grille : collées les unes aux autres, coins droits, bordures
   partagées (la marge négative fait chevaucher les traits voisins, ce qui
   garde une bordure complète à chaque carte, même seule sur sa ligne).
   La carte survolée passe au-dessus de ses voisines pour montrer son trait
   bleu en entier. */
:is(.grid, .eco-list, .actu-grid) {
  gap: 0;
  padding: 0 1px 1px 0;
}

:is(.grid, .eco-list, .actu-grid) > :is(.card, .eco-item) {
  margin: 0 -1px -1px 0;
  border: 1px solid var(--grid-line);
  border-radius: 0;
}

a.card:hover {
  z-index: 1;
  border-color: var(--tk-primary);
  background: var(--tk-surface-soft);
  transform: none;
}

/* Titres de carte en capitales, comme les « content tracks » de MoonShot.
   Les titres d'actualité, qui sont des phrases, restent en casse normale. */
.card h3:not(.actu-card-title),
.eco-item :is(h3, h4) {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Grands titres de section en capitales. Les quatre pages de lecture
   (mentions légales, confidentialité, conditions, à propos) gardent des
   titres en casse normale : leurs titres sont longs et numérotés. */
main h2:not(.sr-only, .quiz-question-title) {
  font-size: clamp(30px, 1rem + 3.2vw, 56px) !important;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Page d'une roadmap : le nom de la roadmap (h1, 40 px) reste le plus grand
   titre ; les étapes et les rubriques du bas restent en capitales, plus
   petites. */
.page-roadmap main h2:not(.sr-only) {
  font-size: clamp(24px, 1rem + 1vw, 30px) !important;
  line-height: 1.15;
}

main .hero-legal ~ * h2:not(.sr-only) {
  font-size: 24px !important;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

.roadmap-category > h2,
.eco-section > h2,
.related-section > h2 {
  margin-bottom: 14px;
}

/* Bandeau défilant (accueil) : bande bleue pleine largeur, mots en
   capitales qui défilent en continu. Décoratif (aria-hidden), avec un
   bouton pause pour le clavier et le tactile (critère WCAG 2.2.2) ; arrêté
   au survol, et immobile avec le réglage « réduire les animations ». */
body {
  overflow-x: clip;
}

/* --scrollbar (largeur de la barre de défilement, posée par nav.js) : sans
   elle, 100vw déborderait de cette largeur sous Windows. */
.marquee {
  position: relative;
  width: calc(100vw - var(--scrollbar, 0px));
  margin: 24px 0 8px calc(50% - 50vw + var(--scrollbar, 0px) / 2);
  overflow: hidden;
  background: var(--tk-primary);
  color: var(--tk-canvas);
  border-block: 2px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: wiyao-marquee 60s linear infinite;
}

.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

@keyframes wiyao-marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee-list {
  display: flex;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .marquee-list li {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: clamp(26px, 1rem + 1.6vw, 40px) !important;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-list li::after {
  content: "•";
  margin: 0 0.5em;
}

.marquee-pause {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--tk-canvas);
  color: var(--tk-text);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.marquee-pause:hover {
  background: var(--tk-surface-soft);
}

.marquee-pause:active {
  transform: translate(3px, calc(-50% + 3px));
  box-shadow: 0 0 0 var(--ink);
}

.marquee-pause .ico-play,
.marquee-pause[aria-pressed="true"] .ico-pause {
  display: none;
}

.marquee-pause[aria-pressed="true"] .ico-play {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee-pause {
    display: none;
  }
}

/* ══ Thème clair WIYAO (2026-10-31) ══
   Né d'une reprise du style de MoonShot by TechCabal, puis rendu propre à
   WIYAO le même jour à la demande de l'utilisateur : palette « Couleurs du
   Togo », titres en Bricolage Grotesque, ombres vers la droite, flèches en
   pastille et losanges des bandeaux (voir « Signature WIYAO »).
   Historique : 
   À la demande de l'utilisateur, WIYAO reprend tout le style de MoonShot :
   fond crème, texte et traits bleu marine, grandes bandes de couleur
   (orange en haut de page, marine pour les bandeaux, blanc / crème /
   violet / rose / turquoise pour les sections), titres très gras en
   Argentum Sans, texte en Urbanist. Seul le style est recréé : aucune image,
   illustration ni logo de TechCabal. Placé en fin de feuille pour primer
   sur les règles du thème sombre. */
body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--tk-text);
}

:is(h1, h2, h3, h4, h5, h6, summary, .marquee-list, .btn-primary, .btn-send, .btn, .domain-group-toggle, .journey-step-number) {
  font-family: var(--font-display);
}

/* Comme sur MoonShot, le bouton flottant et les titres du pied de page
   restent en Urbanist gras. */
.cta-float,
.footer-col h2 {
  font-family: var(--font-text);
}

main :is(h2, h3, h4) {
  color: var(--tk-text);
}

main h2:not(.sr-only, .quiz-question-title) {
  font-weight: 800 !important;
}

a {
  text-underline-offset: 3px;
}

/* Bande pleine largeur derrière une section, sans changer sa largeur de
   contenu : une ombre portée géante de la couleur de la bande, rognée en
   haut et en bas. */
.band,
:is(main, .faq-layout) > .hero,
#roadmap-detail > :is(.breadcrumb, .roadmap-header),
main > :is(.roadmap-category, .eco-section, .related-section, .contact-section, .about-section),
#roadmap-detail > .related-section,
.faq-content {
  box-shadow: 0 0 0 100vmax var(--band, transparent);
  clip-path: inset(0 -100vmax);
  background: var(--band, transparent);
}

/* ── En-tête : bande orange pleine largeur, logo et menus en blanc,
   menus déroulants violets. Le bouton du test devient un bouton flottant
   (comme « Get Tickets »). */
.scroll-progress {
  height: 4px;
  background: var(--w-yellow);
}

header.site-header {
  padding: 0;
  background: var(--w-green);
  border-bottom: 2px solid var(--w-ink);
}

.site-header-top,
header.site-header.is-scrolled .site-header-top,
header.site-header.is-menu-open .site-header-top {
  max-width: 1100px;
  padding: 12px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Logo WIYAO écrit avec la police des titres du site (Bricolage Grotesque), à
   la demande de l'utilisateur (2026-10-31), au lieu du logo vectorisé
   manuscrit. Hauteur de ligne de 34 px : l'en-tête garde ses 70 px. */
.brand-mark {
  height: auto;
  aspect-ratio: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 34px;
  /* Lettres espacées comme le logo MOONSHOT ; la marge négative retire
     l'espace ajouté après la dernière lettre. */
  letter-spacing: 0.18em;
  margin-right: -0.18em;
  white-space: nowrap;
}

@media (max-width: 639px) {
  .brand-mark {
    font-size: 24px;
    line-height: 30px;
  }
}

/* À 320 px, le logo plus étroit laisse tenir langue, recherche et menu. */
@media (max-width: 359px) {
  .brand-mark {
    font-size: 18px;
  }
}

.nav-more-toggle,
.nav-more-toggle:hover,
.nav-more-toggle.active {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9375rem;
}

.nav-more-toggle:hover,
.nav-more-toggle.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Le panneau s'ouvre sans fondu (il glisse seulement) : en fondu, la page
   transparaissait à travers pendant l'ouverture. */
.nav-more-menu {
  transition: transform 0.15s ease, visibility 0.15s ease;
}

/* Chaque menu déroulant prend la couleur de sa rubrique. */
#nav-parcours {
  --menu: var(--w-green);
  --menu-ink: #ffffff;
  --menu-label: #ffffff;
}

#nav-opportunites {
  --menu: var(--w-yellow);
  --menu-ink: var(--w-ink);
  --menu-label: var(--w-yellow);
}

#nav-communaute {
  --menu: var(--w-red);
  --menu-ink: #ffffff;
  --menu-label: #ffffff;
}

#nav-contact {
  --menu: var(--w-white);
  --menu-ink: var(--w-ink);
  --menu-label: #ffffff;
}

.nav-more-menu {
  top: calc(100% + 14px);
  gap: 0;
  padding: 8px;
  background: var(--menu, var(--w-green));
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--w-ink);
}

.nav-more-menu a,
.nav-more-menu a.active {
  color: var(--menu-ink, #ffffff);
  border-radius: 2px;
}

/* Liens en casse normale (plus en petites capitales), lignes plus hautes
   séparées par un filet, comme les lignes de la FAQ. */
:is(#nav-parcours, #nav-communaute) { --menu-line: rgba(255, 255, 255, 0.45); }
:is(#nav-opportunites, #nav-contact) { --menu-line: rgba(11, 58, 44, 0.3); }

@media (min-width: 1080px) {
  .nav-more-menu {
    min-width: 248px;
    padding: 6px;
  }
  .site-nav .nav-more-menu a {
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
  }
  .site-nav .nav-more-menu a + a {
    border-top: 1.5px solid var(--menu-line);
  }
}

.nav-more-menu a:hover {
  color: #ffffff;
  background: var(--w-ink);
}

.nav-more-menu a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.lang-switch {
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 2px;
  padding: 2px;
}

.lang-btn {
  color: #ffffff;
  border-radius: 0;
}

.lang-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.lang-btn.active {
  color: var(--w-ink);
  background: #ffffff;
}

.nav-search-icon,
.nav-search-icon:hover,
.nav-search-icon.active {
  color: #ffffff;
  border-radius: 2px;
}

.nav-search-icon:hover,
.nav-search-icon.active {
  background: rgba(255, 255, 255, 0.18);
}

.nav-burger {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--w-ink);
  box-shadow: 3px 3px 0 var(--w-ink);
}

header.site-header :focus-visible {
  outline-color: #ffffff;
}

/* Le bouton du test quitte la barre : il flotte en bas à gauche. */
.header-cta {
  display: none !important;
}

.cta-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 55;
  display: inline-flex;
  align-items: stretch;
  min-height: 48px;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: var(--w-yellow-pale);
  color: var(--w-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--w-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-float-label {
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.cta-float-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  border-left: 2px solid var(--w-ink);
  background: #ffffff;
}

.cta-float:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--w-ink);
}

.cta-float:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--w-ink);
}

@media (max-width: 1079px) {
  nav.site-nav {
    top: 100%;
    left: 0;
    right: 0;
    background: var(--w-ink);
    border: 2px solid var(--w-ink);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--w-ink);
  }
  .nav-group-label {
    color: var(--menu-label, var(--w-yellow));
  }
  .site-nav .nav-more-menu a {
    color: var(--menu-ink, #ffffff);
  }
  .nav-more-menu a:hover {
    color: var(--menu-ink, #ffffff);
    background: none;
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

@media (max-width: 639px) {
  .site-header-top,
  header.site-header.is-scrolled .site-header-top,
  header.site-header.is-menu-open .site-header-top {
    padding: 10px 16px;
  }
  .cta-float {
    left: 12px;
    bottom: 12px;
    font-size: 0.875rem;
  }
}

/* ── Une couleur par rubrique (2026-10-31, à la demande de l'utilisateur,
   pour ne pas reprendre l'enchaînement de couleurs de MoonShot ; couleurs
   du drapeau depuis le 2026-11-07) : la classe du <body> donne la couleur
   de la rubrique du menu. Parcours en vert, Opportunités en jaune,
   Communauté en rouge, Contact en blanc ; l'accueil et les pages hors menu
   (recherche, 404, pages légales) sont en vert. --rubrique-ink est la
   couleur du texte posé dessus (blanc sur vert 6,6:1 et rouge 5,4:1 ;
   vert nuit sur jaune 8,5:1 et blanc 12,7:1). */
body {
  --rubrique: var(--w-green);
  --rubrique-ink: #ffffff;
  --rubrique-line: rgba(255, 255, 255, 0.5);
}

body.rubrique-parcours {
  --rubrique: var(--w-green);
  --rubrique-ink: #ffffff;
  --rubrique-line: rgba(255, 255, 255, 0.5);
}

body.rubrique-opportunites {
  --rubrique: var(--w-yellow);
  --rubrique-ink: var(--w-ink);
  --rubrique-line: rgba(11, 58, 44, 0.4);
}

body.rubrique-communaute {
  --rubrique: var(--w-red);
  --rubrique-ink: #ffffff;
  --rubrique-line: rgba(255, 255, 255, 0.5);
}

/* Contact en blanc : l'introduction se détache entre le filet vert nuit de
   l'en-tête et le bandeau défilant vert nuit. */
body.rubrique-contact {
  --rubrique: var(--w-white);
  --rubrique-ink: var(--w-ink);
  --rubrique-line: rgba(11, 58, 44, 0.4);
}

/* ── Haut de page : l'introduction est une bande de la couleur de la
   rubrique. */
main {
  padding-top: 0;
}

.page-roadmap main {
  padding-top: 0;
}

:is(main, .faq-layout) > .hero,
#roadmap-detail > :is(.breadcrumb, .roadmap-header) {
  --band: var(--rubrique);
  --tk-text: var(--rubrique-ink);
  --tk-text-reading: var(--rubrique-ink);
  --tk-text-muted: var(--rubrique-ink);
  --tk-text-subtle: var(--rubrique-ink);
  --tk-primary: var(--rubrique-ink);
  --tk-border: var(--rubrique-line);
  --focus: var(--rubrique-ink);
  color: var(--rubrique-ink);
}

:is(main, .faq-layout) > .hero {
  padding: 96px 0;
}

:is(main, .faq-layout) > .hero p:first-of-type,
main .hero > p:first-child {
  font-size: 22px !important;
  font-weight: 600;
  line-height: 1.45;
}

:is(main, .faq-layout) > .hero a:not(.btn-primary, .btn),
#roadmap-detail > :is(.breadcrumb, .roadmap-header) a {
  color: var(--rubrique-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

main > .hero .hero-reassure li {
  color: var(--rubrique-ink);
}

#roadmap-detail > .breadcrumb {
  margin: 0;
  padding: 40px 0 0;
}

#roadmap-detail > .roadmap-header {
  margin: 0;
  padding: 24px 0 80px;
}

.roadmap-header h1 {
  font-family: var(--font-display) !important;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rubrique-ink);
}

.roadmap-header .progress-bar {
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid var(--w-ink);
}

.roadmap-header .progress-fill {
  background: var(--w-yellow);
}

.faq-badge {
  border: 2px solid var(--rubrique-ink);
  color: var(--rubrique-ink);
}

/* ── Bandeaux défilants : bande marine, mots crème, collée sous le haut
   de page orange. */
.marquee {
  margin-top: 0;
  margin-bottom: 0;
  --focus: #ffffff;
  background: var(--w-ink);
  color: #ffffff;
  border-block: 0;
}

main .marquee-list li {
  font-weight: 800;
}

.marquee-pause {
  border-color: var(--w-ink);
  background: #ffffff;
  color: var(--w-ink);
  box-shadow: 3px 3px 0 var(--w-yellow);
}

.marquee-pause:hover {
  background: var(--w-yellow);
}

/* ── Sections : bandes alternées crème / blanc ; une section mise en avant
   par page prend la couleur de sa rubrique. */
main > :is(.roadmap-category, .eco-section, .related-section, .contact-section, .about-section),
#roadmap-detail > .related-section {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 96px;
  padding-bottom: 96px;
}

main > :is(.roadmap-category, .eco-section):nth-of-type(even),
#roadmap-detail > .related-section:nth-of-type(even) {
  --band: #ffffff;
}

#par-competence,
#bac,
#etat,
#ressources-locales,
#femmes-tech,
#chiffres,
.faq-content {
  --band: var(--rubrique);
  --tk-text: var(--rubrique-ink);
  --tk-text-muted: var(--rubrique-ink);
  --tk-text-subtle: var(--rubrique-ink);
  --tk-primary: var(--rubrique-ink);
  --focus: var(--rubrique-ink);
  color: var(--rubrique-ink);
}

main > .about-section:last-of-type {
  padding-bottom: 72px;
}

/* Les cartes et blocs posés sur une bande gardent les couleurs d'une
   surface claire, quelle que soit la couleur de la bande. */
:is(.card, .eco-item, .faq-item, .contact-card, .search-result, .quiz-card, .togo-notice, .item, .dates-row, .timeline-item, .domain-primer-item) {
  --tk-text: var(--w-ink);
  --tk-text-reading: var(--w-ink);
  --tk-text-muted: #2c5847;
  --tk-text-subtle: #3d6655;
  --tk-primary: var(--w-green);
  --tk-border: rgba(11, 58, 44, 0.28);
  --focus: var(--w-ink);
}

/* ── Cartes : blanches, traits marine, titres en capitales Bricolage Grotesque. Au
   survol, une carte cliquable passe au turquoise. */
:root {
  --ink: var(--w-ink);
  --grid-line: var(--w-ink);
}

.card,
.eco-item {
  background: #ffffff;
  color: var(--w-ink);
}

:is(.grid, .eco-list, .actu-grid) > :is(.card, .eco-item) {
  border-width: 1.5px;
}

.card h3:not(.actu-card-title),
.eco-item :is(h3, h4) {
  font-family: var(--font-display);
  font-weight: 800;
}

a.card:hover {
  background: var(--w-yellow-pale);
  border-color: var(--w-ink);
}

.card p,
.eco-item p {
  color: var(--tk-text-muted);
}

.progress-bar {
  background: var(--tk-surface-soft);
  border: 1.5px solid var(--w-ink);
  border-radius: 0;
}

.progress-fill {
  background: var(--w-green);
}

.badge.togo-badge,
.roadmap-header .togo-badge {
  background: var(--tk-primary-soft);
  color: var(--w-green);
}

.badge.best-match-badge {
  background: var(--w-ink);
  color: #ffffff;
}

.roadmap-header .badge {
  border: 1.5px solid var(--w-ink);
}

.roadmap-header .type-badge,
.roadmap-header .level-badge {
  background: #ffffff;
  color: var(--w-ink);
}

/* ── Boutons : aplat turquoise (principal) ou blanc (secondaire), trait
   et ombre marine, case flèche blanche. */
.btn-primary,
.btn-send {
  background: var(--w-yellow);
  color: var(--w-ink);
}

.btn-primary:hover,
.btn-send:hover {
  background: var(--w-yellow);
}

.btn-primary::after,
.btn-send::after {
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.btn-primary.btn-back::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3a2c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}

.error-btn-secondary,
.error-btn-secondary:hover {
  background: #ffffff;
  color: var(--w-ink);
}

.btn,
.domain-group-toggle,
.actu-card-btn,
.btn:hover,
.domain-group-toggle:hover,
.actu-card-btn:hover {
  border-color: var(--w-ink);
  color: var(--w-ink);
}

.btn,
.domain-group-toggle,
.actu-card-btn {
  background: #ffffff;
}

.btn:hover,
.domain-group-toggle:hover,
.actu-card-btn:hover {
  background: var(--w-yellow-pale);
}

.btn .ico {
  color: var(--w-ink);
}

/* Hors de la bande orange, la marge de 22 px du bouton d'accueil reste. */
.hero .btn-primary {
  margin-top: 28px;
}

/* ── Filtres en pastilles : trait marine, actif plein. */
.domain-chip {
  background: #ffffff;
  border: 1.5px solid var(--w-ink);
  color: var(--w-ink);
  font-weight: 700;
}

.domain-chip:hover {
  background: var(--w-yellow-pale);
  color: var(--w-ink);
}

.domain-chip.active,
.domain-chip.active:hover {
  background: var(--w-ink);
  color: #ffffff;
}

#contact-mode-filters .domain-chip {
  border: 2px solid var(--w-ink);
}

/* ── Parcours de l'accueil : numéros en carrés de couleur, trait marine. */
.journey-step-number {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: var(--rubrique);
  color: var(--rubrique-ink);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--w-ink);
}

/* Sur l'accueil, chaque étape du parcours prend la couleur de la rubrique
   où elle mène : test, roadmaps, écoles (Parcours) ; dates, stages
   (Opportunités) ; écosystème (Communauté). */
#parcours .journey-step:nth-child(-n + 3) .journey-step-number {
  background: var(--w-green);
  color: #ffffff;
}

#parcours .journey-step:nth-child(4) .journey-step-number,
#parcours .journey-step:nth-child(5) .journey-step-number {
  background: var(--w-yellow);
  color: var(--w-ink);
}

#parcours .journey-step:nth-child(6) .journey-step-number {
  background: var(--w-red);
  color: #ffffff;
}

#parcours .journey-step:not(:last-child)::after {
  background: var(--w-ink);
}

.journey-step a {
  color: var(--w-green);
}

/* ── FAQ : lignes blanches encadrées de marine, collées, sur bande
   turquoise ; question en Bricolage Grotesque, flèche dans un rond à droite. */
.faq-layout {
  max-width: none;
}

.faq-layout > .hero {
  margin-bottom: 0;
}

.faq-content {
  padding: 96px 0;
}

.faq-list {
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin: 0 0 -2px;
  padding: 0 24px;
  border: 2px solid var(--w-ink);
  border-radius: 0;
  background: #ffffff;
}

main .faq-item summary {
  padding: 22px 0;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--w-ink);
}

.faq-item summary::after {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%230b3a2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='16' r='14'/%3E%3Cpath d='M16 9v14M10 17l6 6 6-6'/%3E%3C/svg%3E") center / 32px no-repeat;
  -webkit-mask: none;
  mask: none;
}

.faq-item[open] {
  background: #ffffff;
}

.faq-item p {
  color: var(--tk-text-muted);
}

@media (max-width: 560px) {
  .faq-item {
    padding: 0 16px;
  }
  main .faq-item summary {
    font-size: 18px !important;
  }
}

/* ── Test d'orientation (2026-10-31, à la demande de l'utilisateur) :
   questionnaire au style du site. Progression en cases bordées de marine,
   remplies de la couleur de la rubrique ; question en Bricolage Grotesque ;
   réponses en blocs blancs à trait marine, chacune précédée d'une lettre
   (A, B, C…) dans une case qui prend la couleur de la rubrique au survol,
   le bloc se soulevant sur son ombre comme les boutons. */
#quiz-progress-wrap {
  max-width: 720px;
  margin-bottom: 40px;
}

#quiz-progress-wrap .progress-bar {
  gap: 6px;
  height: 14px;
  margin-bottom: 16px;
}

#quiz-progress-wrap .progress-seg {
  border: 1.5px solid var(--w-ink);
  border-radius: 0;
  background: #ffffff;
}

#quiz-progress-wrap .progress-seg.is-done {
  background: var(--rubrique);
}

#quiz-progress-label {
  color: var(--w-ink);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.quiz-question-title {
  max-width: 720px;
  margin: 0 auto 32px;
  color: var(--w-ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 1rem + 1.6vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: balance;
}

.quiz-options {
  max-width: 720px;
  gap: 14px;
  counter-reset: quiz-option;
}

.quiz-option {
  counter-increment: quiz-option;
  gap: 16px;
  min-height: 64px;
  padding: 10px 20px 10px 10px;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--w-ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option::before {
  content: counter(quiz-option, upper-alpha);
  content: counter(quiz-option, upper-alpha) / "";
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: var(--w-white);
  box-shadow: none;
  color: var(--w-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--w-ink);
  background: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--w-ink);
}

.quiz-option:hover::before,
.quiz-option:focus-visible::before {
  border-color: var(--w-ink);
  background: var(--rubrique);
  box-shadow: none;
  color: var(--rubrique-ink);
}

.quiz-option:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--w-ink);
}

.quiz-back,
.quiz-back:hover {
  margin-top: 28px;
  color: var(--w-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.quiz-back:hover {
  text-decoration-thickness: 3px;
}

.quiz-disclaimer {
  max-width: 720px;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--tk-text-muted);
  font-size: 15px;
}

.quiz-scores-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-scores {
  max-width: 640px;
  gap: 12px;
}

.quiz-score-row {
  font-size: 15px;
}

.quiz-score-label,
.quiz-score-value {
  color: var(--w-ink);
}

.quiz-score-row .progress-bar {
  height: 14px;
  border: 1.5px solid var(--w-ink);
  border-radius: 0;
  background: #ffffff;
}

.quiz-score-row .progress-fill {
  border-radius: 0;
  background: var(--rubrique);
}

.quiz-match-checklist span {
  border: 1.5px solid var(--w-ink);
  border-radius: 2px;
  font-size: 13px;
}

.quiz-match-checklist .match-ok {
  background: var(--tint-green-bg);
  color: var(--tint-green-fg);
}

.quiz-match-checklist .match-no {
  background: var(--w-white);
  color: var(--tk-text-muted);
}

@media (max-width: 600px) {
  .quiz-option {
    min-height: 56px;
    font-size: 16px;
  }
  .quiz-option::before {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* ── Composants restés à l'ancien style (relevé du 2026-10-31 sur les 20
   pages : coins arrondis, traits clairs, pilules) ramenés au style du
   site : coins droits, traits marine, couleur de la rubrique en accent. */

/* Calendrier, « Dates par école » : fiches blanches à trait marine,
   collées comme les lignes de la FAQ ; nom de l'école en Bricolage Grotesque ;
   chaque date précédée d'une case de la couleur de la rubrique. */
.dates-row {
  margin: 0 0 -2px;
  padding: 28px 32px;
  border: 2px solid var(--w-ink);
  border-radius: 0;
  background: #ffffff;
  color: var(--w-ink);
}

.dates-row-urgent {
  border-color: var(--w-ink);
  border-width: 2px;
}

.dates-urgent-note {
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid var(--w-ink);
  border-radius: 2px;
  background: var(--tint-red-bg);
  color: var(--tint-red-fg);
  font-size: 14px;
}

.dates-row h3 {
  margin: 0 0 10px;
  color: var(--w-ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

main .dates-note {
  margin: 0 0 16px;
  color: var(--tk-text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.dates-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 17px;
  color: var(--w-ink);
}

.dates-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.dates-list li::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--w-ink);
  background: var(--rubrique);
  transform: translateY(1px);
}

main .dates-ref-note {
  margin: 0 0 6px;
  color: var(--tk-text-muted);
  font-size: 14px;
}

.dates-row .school-link,
.dates-row .school-link:hover {
  margin-top: 12px;
  color: var(--w-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.dates-row .school-link:hover {
  text-decoration-thickness: 3px;
}

/* Calendrier type : frise à cases carrées marine remplies de la couleur
   de la rubrique, trait marine. */
#timeline-general .timeline-item::before {
  border: 2px solid var(--w-ink);
  border-radius: 0;
  background: var(--rubrique);
}

#timeline-general .timeline-item:not(:last-child)::after {
  background: var(--w-ink);
}

#timeline-general .timeline-content h3 {
  color: var(--w-ink);
  font-family: var(--font-display);
  font-weight: 800;
}

/* Étapes d'une roadmap, encarts du test et du guide des stages. */
.section,
.primer-fold,
.domain-primer-item,
#guide .journey-step {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
}

/* Le formulaire de contact est déjà dans une carte : pas de carte dans la
   carte. */
.contact-card .contact-form-card {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Étiquettes, filtres et liens en pilule : coins droits, trait marine. */
.badge {
  border: 1.5px solid var(--w-ink);
  border-radius: 2px;
}

.domain-chip,
#contact-mode-filters .domain-chip {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
}

.eco-jump-nav a,
#search-categories-group a {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--w-ink);
}

.eco-jump-nav a:hover,
#search-categories-group a:hover {
  border-color: var(--w-ink);
  background: var(--rubrique);
  color: var(--rubrique-ink);
}

.search-bar {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
}

.search-bar:focus-within {
  box-shadow: 4px 4px 0 var(--w-ink);
}

@media (max-width: 600px) {
  .dates-row {
    padding: 22px 18px;
  }
  .dates-row h3 {
    font-size: 19px;
  }
  .dates-list {
    font-size: 16px;
  }
}

/* ── Signature WIYAO (2026-10-31, à la demande de l'utilisateur, pour se
   distinguer de MoonShot) : ombres dures portées en bas à droite, flèche
   des boutons dans une pastille ronde vert nuit qui glisse au survol (au
   lieu d'une case accolée), bouton flottant vert (bandeaux défilants rythmés
   par des losanges jaunes jusqu'au 2026-11-07, retirés depuis). */
.btn-primary,
.btn-send {
  gap: 16px;
  padding: 0 8px 0 22px;
  background: var(--w-yellow);
  color: var(--w-ink);
}

.btn-primary:hover,
.btn-send:hover {
  background: var(--w-yellow);
}

.btn-primary::after,
.btn-send::after {
  flex: none;
  align-self: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--w-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffce00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.15s ease;
}

.btn-primary:hover::after {
  transform: translateX(3px);
}

.btn-primary.btn-back {
  padding: 0 22px 0 8px;
}

.btn-primary.btn-back::after {
  margin: 0;
  border: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffce00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M11 6l-6 6 6 6'/%3E%3C/svg%3E");
}

.btn-primary.btn-back:hover::after {
  transform: translateX(-3px);
}

.btn-send {
  padding: 0 56px;
}

.btn-send::after {
  top: 50%;
  right: 8px;
  bottom: auto;
  transform: translateY(-50%);
}

.btn-send:hover::after {
  transform: translate(3px, -50%);
}

.cta-float {
  background: var(--w-green);
  color: #ffffff;
}

.cta-float-arrow {
  align-self: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--w-yellow);
  color: var(--w-ink);
  transition: transform 0.15s ease;
}

.cta-float:hover .cta-float-arrow {
  transform: translateX(3px);
}

/* Mots séparés par un simple espace : les losanges jaunes ont été retirés à
   la demande de l'utilisateur le 2026-11-07. */
.marquee-list li::after {
  content: "";
  flex: none;
  width: 1.2em;
}

/* ── Contact / Proposer : carte blanche à trait marine. */
.contact-card {
  background: #ffffff;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--w-ink);
}

.contact-form-field input,
.contact-form-field textarea,
.contact-form-field select,
.search-bar input[type="search"] {
  background: #ffffff;
  border: 1.5px solid var(--w-ink);
  border-radius: 2px;
  color: var(--w-ink);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus,
.contact-form-field select:focus {
  background: #ffffff;
  border-color: var(--w-green);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.25);
}

/* ── Pied de page façon MoonShot (mesuré sur sa page, 2026-10-31) : bande
   marine depuis le passage à une couleur par rubrique (violette au départ ;
   les rayures qui l'annonçaient ont été retirées à la demande de
   l'utilisateur le même jour) ; colonnes de liens sur toute
   la largeur (titres Urbanist 18 px gras, liens 14 px), liens légaux et
   copyright dessous. Pas de logo (retiré à la demande de l'utilisateur le
   2026-10-31) ni de réseaux sociaux (WIYAO n'en a pas). */
footer.site-footer {
  --tk-text: #ffffff;
  --tk-text-muted: #ffffff;
  --tk-text-subtle: #ffffff;
  --tk-primary: #ffffff;
  border-top: 0;
  background: var(--w-ink);
  color: #ffffff;
}

/* Titres des colonnes en blanc, sans marque de couleur (les carrés de
   couleur de rubrique ont été retirés à la demande de l'utilisateur le
   2026-11-07). */
footer.site-footer {
  --focus: #ffffff;
}

.footer-inner {
  padding-top: 80px;
}

.footer-grid {
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 32px;
  padding: 0 0 48px;
}

.footer-col h2 {
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.footer-col ul {
  margin-top: 24px;
}

.footer-links-col li {
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-links-col a,
.footer-legal-links a,
.footer-copy {
  color: #ffffff;
  font-weight: 400;
}

.footer-links-col a.active,
.footer-legal-links a.active {
  background-position: left bottom;
  background-size: 100% 1px;
}

/* Copyright et liens légaux sur une même ligne (à la demande de
   l'utilisateur), qui passe sur deux lignes quand la place manque ; 96 px
   dessous pour dégager le bouton flottant du test, en bas à gauche. */
.footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  border-top: 0;
  padding-top: 0;
  padding-bottom: 96px;
}

footer.site-footer :focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

@media (max-width: 560px) {
  .footer-inner {
    padding-top: 56px;
  }
}

/* ── Fenêtre « Informations légales » : voile marine, fenêtre blanche à
   trait marine et ombre dure. */
.legal-modal {
  background: rgba(11, 58, 44, 0.6);
}

.legal-dialog {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--w-ink);
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
}

.legal-close {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
}

.legal-close:hover {
  background: var(--w-yellow-pale);
}

.legal-tab {
  border: 1.5px solid var(--w-ink);
  border-radius: 2px;
  color: var(--w-ink);
}

.legal-tab:hover {
  background: var(--w-yellow-pale);
}

.legal-tab[aria-selected="true"] {
  background: var(--w-ink);
  color: #ffffff;
}

/* ── Petits éléments flottants. */
.back-to-top {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: #ffffff;
  color: var(--w-ink);
  box-shadow: 3px 3px 0 var(--w-ink);
}

.wiyao-assistant-toggle {
  border: 2px solid var(--w-ink);
  background: var(--w-green);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--w-ink);
}

.wiyao-assistant-panel {
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  box-shadow: 6px 6px 0 var(--w-ink);
}

/* La bulle de l'assistant et le bouton « haut de page » s'effacent tant
   qu'ils recouvriraient le bouton pause d'un bandeau défilant (classe
   is-yielding posée par nav.js, 2026-11-08) : sur téléphone, la bulle
   tombait pile dessus au premier écran. */
.wiyao-assistant-toggle {
  transition: transform 0.15s ease, opacity 0.2s ease, visibility 0.2s;
}

.wiyao-assistant-toggle.is-yielding,
.back-to-top.is-yielding {
  opacity: 0;
  visibility: hidden;
}

::selection {
  background: var(--w-green);
  color: #ffffff;
}

:root {
  accent-color: var(--w-green);
  scrollbar-color: var(--w-ink) var(--w-white);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: var(--focus);
}

/* ── Espacement et centrage de MoonShot, mesurés sur sa page : sections
   aérées (80 à 120 px), grands titres et introductions centrés. Les longs
   textes, listes et grilles restent alignés à gauche ; les 4 pages de
   lecture gardent un espacement plus serré et leurs titres à gauche. */
:is(main, .faq-layout) > .hero {
  text-align: center;
}

/* L'ancienne règle « l'introduction remonte sous l'en-tête » (8 px) ne
   vaut plus : la bande orange a sa propre marge. */
main > .page-title-banner + .hero {
  padding-top: 96px;
}

/* Comme sur MoonShot, l'introduction occupe tout le premier écran, son
   contenu centré dans la hauteur ; le bandeau défilant qui la suit reste
   visible en bas de l'écran, signe qu'il y a une suite. Hauteurs mesurées :
   en-tête 70 px (66 px sous 640 px), bandeau 28 px + 1,1 × sa police. */
:root {
  --wiyao-header-h: 70px;
  --wiyao-marquee-h: calc(28px + 1.1 * clamp(26px, 1rem + 1.6vw, 40px));
}

:is(main, .faq-layout) > .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--wiyao-header-h) - var(--wiyao-marquee-h));
  min-height: calc(100svh - var(--wiyao-header-h) - var(--wiyao-marquee-h));
}

/* Sauf sur la Recherche : son champ (autofocus) doit rester dans le premier
   écran, sinon le navigateur saute par-dessus l'introduction. */
main > .hero.hero-compact {
  min-height: 0;
}

/* Page d'une roadmap, à la demande de l'utilisateur : le haut orange (fil
   d'Ariane + en-tête) occupe aussi le premier écran. Le fil d'Ariane est
   posé en haut de l'en-tête (position absolue) pour que l'en-tête seul
   porte la hauteur ; son contenu est centré dans la hauteur. */
#roadmap-detail {
  position: relative;
}

#roadmap-detail > .breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding-top: 24px;
}

/* En Argentum Sans capitales, un mot long (« D'INFORMATION ») dépassait
   de l'écran à 40 px sur mobile : taille fluide et césure de secours. */
#roadmap-detail > .roadmap-header h1 {
  font-size: clamp(26px, 14px + 4vw, 40px) !important;
  overflow-wrap: break-word;
  hyphens: auto;
}

#roadmap-detail > .roadmap-header {
  align-content: center;
  min-height: calc(100vh - var(--wiyao-header-h) - var(--wiyao-marquee-h));
  min-height: calc(100svh - var(--wiyao-header-h) - var(--wiyao-marquee-h));
  padding-top: 96px;
}

@media print {
  :is(main, .faq-layout) > .hero,
  #roadmap-detail > .roadmap-header {
    min-height: 0;
  }
  #roadmap-detail > .breadcrumb {
    position: static;
  }
}

:is(main, .faq-layout) > .hero > :is(p, .hero-legal-meta) {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

:is(main, .faq-layout) > .hero :is(.hero-reassure, .error-actions),
.eco-jump-nav {
  justify-content: center;
}

/* Les filtres posés juste sous un titre centré (Roadmaps) se centrent
   aussi ; ceux d'Écoles et de Recherche, avec leurs étiquettes, restent
   à gauche comme un panneau d'outils. */
main > .roadmap-category > h2 ~ .domain-filters {
  justify-content: center;
}

/* Titre du test dans un <summary> en flex : sans min-width: 0, un mot
   long (« L'INFORMATIQUE, ») ne peut pas passer à la ligne à 320 px. */
.primer-summary > h2 {
  min-width: 0;
}

/* Le sommaire de l'Écosystème se détache du bandeau défilant. */
main > .eco-jump-nav {
  margin: 40px 0 0;
}

main > :is(.roadmap-category, .eco-section, .related-section, .contact-section) > h2,
main > .hero:not(.hero-legal) ~ .about-section > h2,
#roadmap-detail > .related-section > h2 {
  text-align: center;
}

main > :is(.roadmap-category, .eco-section) > h2 + .category-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* « Le calendrier type » est dans une colonne étroite (320 px) à côté de
   la frise : titre à gauche et plus petit, sinon « CALENDRIER » était
   coupé en deux. */
main .calendrier-general-intro > h2:not(.sr-only) {
  font-size: clamp(30px, 1rem + 1.6vw, 40px) !important;
  hyphens: manual;
  text-align: left;
}

main > .hero-legal ~ .about-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (max-width: 639px) {
  :root {
    --wiyao-header-h: 66px;
  }
}

@media (max-width: 640px) {
  :is(main, .faq-layout) > .hero,
  main > .page-title-banner + .hero {
    padding: 64px 0 72px;
  }
  :is(main, .faq-layout) > .hero p:first-of-type,
  main .hero > p:first-child {
    font-size: 19px !important;
  }
  main > :is(.roadmap-category, .eco-section, .related-section, .contact-section, .about-section),
  #roadmap-detail > .related-section,
  .faq-content {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  main > .hero-legal ~ .about-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  /* En-tête d'une roadmap resserré (2026-11-08, à la demande de
     l'utilisateur) pour que même un long titre tienne dans l'écran : fil
     d'Ariane sur une seule ligne (le titre complet est juste dessous, en
     grand), marges et espacements internes réduits. */
  #roadmap-detail > .breadcrumb {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0 6px;
    padding-top: 16px;
    white-space: nowrap;
  }
  #roadmap-detail > .breadcrumb > .breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #roadmap-detail > .roadmap-header {
    padding-top: 52px;
    padding-bottom: 28px;
  }
  #roadmap-detail > .roadmap-header h1 {
    margin-top: 10px;
    margin-bottom: 4px;
  }
  main .roadmap-header .subtitle {
    margin-top: 10px;
    margin-bottom: 12px;
    line-height: 1.45;
  }
  #roadmap-detail .togo-notice {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 14px !important;
    line-height: 1.45;
  }
  #roadmap-detail .roadmap-header .progress-bar {
    margin-top: 12px;
  }
  /* Les deux boutons côte à côte (sur deux rangées, ils prenaient 94 px). */
  #roadmap-detail .roadmap-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }
  #roadmap-detail .roadmap-toolbar .btn {
    justify-content: center;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: normal;
  }
}

/* Petits écrans de 700 px de haut ou moins (2026-11-08, à la demande de
   l'utilisateur) : titre d'une roadmap à 22 px (au lieu de 26 à 29 px) et
   marges de l'en-tête encore réduites, pour que même un long titre tienne
   dans l'écran avec le bandeau défilant visible en entier. */
@media (max-width: 640px) and (max-height: 700px) {
  #roadmap-detail > .roadmap-header {
    padding-top: 44px;
    padding-bottom: 12px;
  }
  #roadmap-detail > .roadmap-header h1 {
    font-size: 22px !important;
    line-height: 1.1;
  }
  .roadmap-header h1 .ico-roadmap-title {
    width: 20px;
    height: 20px;
  }
}

/* ── Formulaires Contact et Proposer, envoi direct (2026-11-07) : champ
   piège hors écran (un robot le remplit, une personne ne le voit pas) et
   message de résultat sous le bouton. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  position: relative;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 2px solid var(--w-ink);
  border-radius: 2px;
  background: var(--w-white);
  color: var(--w-ink);
  font-weight: 600;
}

.form-status[data-state="sent"] {
  background: var(--tint-green-bg);
}

.form-status[data-state="error"],
.form-status[data-state="rate"] {
  background: var(--tint-red-bg);
  color: var(--tint-red-fg);
}

.form-status a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ── Liens dans le texte courant (2026-11-10, à la demande de l'utilisateur) :
   ils avaient la couleur du texte et aucun soulignement, donc invisibles
   (WCAG 1.4.1). Seuls les liens sans classe d'un paragraphe ou d'une liste
   sont visés : boutons, cartes, sommaires et liens « site officiel » ont
   leur propre style. --tk-primary suit le fond : vert sur blanc et dans les
   cartes, couleur du texte de la bande sur une bande de couleur. */
main :is(p, li, dd, td) a:not([class]) {
  color: var(--tk-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main :is(p, li, dd, td) a:not([class]):hover {
  text-decoration-thickness: 2px;
}

/* ── Partage sur WhatsApp (plan marketing, 2026-11-10) : bouton secondaire
   blanc (introduction de Témoignages, fin d'une roadmap, résultat du test)
   ou lien texte dans le détail d'une fiche école. */
.hero .btn-share {
  margin-top: 28px;
}

/* Calendrier type, adresse à partager après le bac (calendrier.html#calendrier-type). */
.calendrier-general-intro .btn-share {
  margin-top: 20px;
}

/* Accueil : « Tu viens d'avoir ton bac ? » sous l'introduction du parcours
   (pas dans le premier écran, qui doit laisser voir le bandeau défilant). */
#parcours > .category-desc + .category-desc {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.roadmap-share {
  margin: 48px 0 0;
  text-align: center;
}

.roadmap-share p {
  margin: 0 auto 16px;
  max-width: 60ch;
  font-size: 18px;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.quiz-actions #quiz-restart {
  margin: 0;
}

.school-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

@media print {
  .roadmap-share,
  .quiz-actions .btn-share {
    display: none !important;
  }
}

/* « Encore possible aujourd'hui » du Calendrier (2026-11-12) : bloc
   jaune pâle en tête des dates par école, détaché de la liste. */
.dates-row.dates-now {
  margin-bottom: 32px;
  background: var(--w-yellow-pale);
}

/* « Tu pars de zéro ? » d'une roadmap (champ debut, 2026-11-12) : encart
   lisible avant l'étape 1, pas la petite note de l'en-tête. */
#roadmap-detail .togo-notice.roadmap-start {
  max-width: none;
  margin: 40px 0 0;
  padding: 20px 24px;
  border: 2px solid var(--w-ink);
  border-radius: 0;
  background: var(--w-yellow-pale);
  color: var(--w-ink);
  font-size: 16px !important;
  line-height: 1.55;
}

#roadmap-detail .roadmap-start p {
  max-width: 65ch;
  margin: 0;
}

/* Anglais choisi : la page reste masquée jusqu'à ce que i18n.js l'ait
   traduite (classe posée par js/lang-boot.js, retirée par i18n.js ou au
   bout de 3,5 s), au lieu d'afficher d'abord le français (2026-11-10). */
html.i18n-pending body {
  visibility: hidden;
}

/* Liens qui s'ouvrent dans un nouvel onglet (2026-11-10) : petite flèche
   sortante de la couleur du lien et, pour les lecteurs d'écran, « nouvel
   onglet » en texte alternatif du contenu généré. Remplace la flèche « → »
   du bouton « Lire la source » des actualités ; les boutons principaux
   gardent leur pastille. */
a[target="_blank"]:not(.btn-primary, .btn-send)::after {
  content: "" / " (nouvel onglet)";
  display: inline-block;
  flex: none;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.32em;
  vertical-align: -0.02em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

html:lang(en) a[target="_blank"]:not(.btn-primary, .btn-send)::after {
  content: "" / " (opens in a new tab)";
}

/* Réglage système « réduire les animations » : plus de mouvement décoratif
   (survols qui bougent, défilement doux, lueur de l'accueil). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --tk-canvas: #ffffff;
    --tk-surface: #ffffff;
    --tk-text: #0b3a2c;
    --tk-text-reading: #0b3a2c;
  }

  header.site-header,
  .scroll-progress,
  footer.site-footer,
  .marquee,
  .roadmap-toolbar,
  .wiyao-assistant,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    max-width: 100%;
    padding: 0;
  }

  .section,
  .related-section,
  .togo-notice {
    break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a.item-resource[target="_blank"]::after {
    content: " (" attr(href) ")";
    font-size: 0.7rem;
    color: #2c5847;
    word-break: break-all;
  }
}
