/* ==========================================================================
   HAGK — feuille de style unique
   --------------------------------------------------------------------------
   Sommaire
   1. Police et variables (couleurs, espacements)
   2. Base et accessibilité
   3. En-tête et navigation
   4. Boutons, liens, statuts
   5. Sections communes
   6. Accueil (initiales, démarche, équipe, projets)
   7. Page projet (MaPermis) et pages annexes
   8. Feuille de route (état d'avancement)
   9. Captures d'écran
   10. Contact, pied de page, pages annexes
   11. Animations (désactivées si l'utilisateur limite les mouvements)
   ========================================================================== */

/* 1. Police et variables --------------------------------------------------- */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette : bleu nuit, blanc, ambre (couleur d'accent) */
  --nuit: #0B1A33;        /* fond principal sombre, texte principal sur fond clair */
  --nuit-2: #13284A;      /* surfaces légèrement relevées sur fond sombre */
  --nuit-3: #24406E;      /* bordures sur fond sombre */
  --blanc: #FFFFFF;
  --brume: #EEF2F8;       /* sections claires alternées */
  --trait: #D5DCE8;       /* bordures sur fond clair */
  --ardoise: #4A5B78;     /* texte secondaire sur fond clair (contraste 6,9:1) */
  --ciel: #A9B8D3;        /* texte secondaire sur fond sombre (contraste 8,7:1) */
  --ambre: #FFB81C;       /* accent : uniquement sur fond sombre ou en aplat */
  --ambre-clair: #FFC94D;
  --ambre-texte: #8A5A00; /* accent lisible sur fond clair (contraste 5,9:1) */

  --police: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --largeur: 74rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --rayon: 0.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base et accessibilité -------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.65;
  color: var(--nuit);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 750;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

p + p {
  margin-top: 1em;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: var(--marge);
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ambre);
  color: var(--nuit);
  font-weight: 650;
  text-decoration: none;
  border-radius: var(--rayon);
}

.lien-evitement:focus {
  top: 1rem;
}

.conteneur {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

/* 3. En-tête et navigation --------------------------------------------------- */

.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nuit);
  color: var(--blanc);
  border-bottom: 1px solid var(--nuit-2);
}

.entete-interieur {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  color: var(--blanc);
  text-decoration: none;
  padding-block: 0.5rem;
}

.logo svg {
  height: 1.55rem;
  width: auto;
}

.nav ul {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  list-style: none;
}

.nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--ciel);
  font-weight: 550;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 1.25rem;
  height: 3px;
  background: var(--ambre);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blanc);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (max-width: 40rem) {
  .entete {
    position: static;
  }

  .entete-interieur {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-block: 0.85rem 0.35rem;
    min-height: 0;
  }

  .nav {
    width: 100%;
  }

  .nav ul {
    justify-content: space-between;
    gap: 1rem;
  }
}

/* 4. Boutons, liens, statuts ------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bouton--ambre {
  background: var(--ambre);
  color: var(--nuit);
}

.bouton--ambre:hover {
  background: var(--ambre-clair);
}

.bouton--contour {
  border-color: var(--nuit-3);
  color: var(--blanc);
}

.bouton--contour:hover {
  border-color: var(--blanc);
}

.lien-fort {
  display: inline-block;
  margin-top: 1.4rem;
  padding-bottom: 0.2rem;
  font-weight: 650;
  font-stretch: 106%;
  text-decoration: none;
  border-bottom: 3px solid var(--ambre);
  transition: border-color 0.2s ease;
}

.lien-fort:hover {
  border-color: currentColor;
}

/* Statuts : plein = développé, ambre = en cours, pointillés = prévu */
.statut {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem 0.35rem 0.7rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 620;
  line-height: 1.25;
  white-space: nowrap;
}

.statut::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

.statut--fait {
  background: var(--nuit);
  color: var(--blanc);
}

.statut--encours {
  background: var(--ambre);
  color: var(--nuit);
}

.statut--prevu {
  border-style: dashed;
  border-color: currentColor;
  color: var(--ardoise);
}

.statut--prevu::before {
  background: transparent;
  border: 1.5px solid currentColor;
}

.sombre .statut--fait {
  background: var(--blanc);
  color: var(--nuit);
}

.sombre .statut--prevu {
  color: var(--ciel);
}

/* 5. Sections communes ------------------------------------------------------- */

.section {
  padding-block: var(--section);
}

.section--brume {
  background: var(--brume);
}

.sombre {
  background: var(--nuit);
  color: var(--blanc);
}

.titre-section {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem);
  font-stretch: 118%;
  font-weight: 760;
  letter-spacing: -0.005em;
}

.chapeau {
  max-width: 36em;
  margin-top: 1rem;
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.225rem);
  color: var(--ardoise);
}

.sombre .chapeau {
  color: var(--ciel);
}

.entete-section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.deux-colonnes {
  display: grid;
  gap: 2rem;
}

.deux-colonnes .entete-section {
  margin-bottom: 0;
}

@media (min-width: 62rem) {
  .deux-colonnes {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 5rem;
  }
}

.texte-courant {
  max-width: 40em;
}

.texte-courant p {
  color: var(--ardoise);
}

.texte-courant p:first-child {
  color: var(--nuit);
  font-size: 1.15rem;
}

/* Liste de points avec trait ambre (démarche, bénéfices, concept) */
.points {
  display: grid;
  gap: 2.5rem 3.5rem;
  list-style: none;
}

@media (min-width: 44rem) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.point::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 4px;
  margin-bottom: 1.1rem;
  background: var(--ambre);
}

.point h3,
.point h4 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-stretch: 110%;
}

.point p {
  color: var(--ardoise);
}

.point .statut {
  margin-top: 1.1rem;
}

.sombre .point p {
  color: var(--ciel);
}

/* 6. Accueil ---------------------------------------------------------------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

/* Les initiales HA + GK qui se rejoignent pour former HAGK */
.initiales {
  display: flex;
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  font-size: clamp(4.25rem, 19vw, 13rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: var(--blanc);
}

.paire {
  display: flex;
  flex-direction: column;
}

.paire-lettres {
  position: relative;
  display: block;
}

/* Le « trait d'union » ambre, sous la jonction des deux paires d'initiales */
.paire--h .paire-lettres::after {
  content: "";
  position: absolute;
  right: -0.3em;
  bottom: -0.17em;
  width: 0.56em;
  height: 0.09em;
  background: var(--ambre);
}

.paire-nom {
  display: block;
  margin-top: clamp(1.6rem, 4vw, 3rem);
  font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
  font-stretch: 100%;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--ciel);
}

.hero-grille {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .hero-grille {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 4.5rem;
  }
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.35rem);
  font-stretch: 112%;
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-texte p {
  color: var(--ciel);
  font-size: 1.1rem;
}

.hero-texte .actions {
  margin-top: 2rem;
}

/* Équipe */
.equipe {
  display: grid;
  gap: 3.5rem;
  list-style: none;
}

@media (min-width: 54rem) {
  .equipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.membre {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

@media (min-width: 30rem) {
  .membre {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.75rem;
  }
}

/* Emplacement photo : affiche les initiales tant qu'aucune photo n'est fournie */
.portrait {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 20vw, 9.5rem);
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: var(--nuit);
  border-radius: var(--rayon);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-initiales {
  position: relative;
  font-size: clamp(2.3rem, 6vw, 3.1rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--blanc);
}

.portrait-initiales::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.32em;
  width: 0.5em;
  height: 0.09em;
  background: var(--ambre);
  transform: translateX(-50%);
}

.membre h3 {
  font-size: 1.6rem;
  font-stretch: 115%;
}

.membre-role {
  margin: 0.4rem 0 1rem;
  font-weight: 620;
  color: var(--ambre-texte);
}

.membre-texte {
  color: var(--ardoise);
}

/* Projets */
.projets {
  list-style: none;
  border-top: 1px solid var(--trait);
}

.projet {
  display: grid;
  gap: 1.25rem 3rem;
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--trait);
}

@media (min-width: 56rem) {
  .projet {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.projet-nom {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.projet-type {
  margin-top: 0.75rem;
  font-weight: 550;
  color: var(--ardoise);
}

.projet-corps .statut {
  margin-bottom: 1.1rem;
}

.projet-corps p {
  max-width: 36em;
  color: var(--ardoise);
}

/* 7. Page projet (MaPermis) et pages annexes ------------------------------ */

.hero-produit {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6.5rem);
  overflow: hidden;
}

.fil-ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  list-style: none;
  font-size: 0.9rem;
  color: var(--ciel);
}

.fil-ariane li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--nuit-3);
}

.fil-ariane a {
  text-decoration: none;
}

.fil-ariane a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.produit-nom {
  font-size: clamp(3.1rem, 1.6rem + 7.5vw, 7.75rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.produit-nom--long {
  font-size: clamp(2.5rem, 1.4rem + 5.6vw, 6rem);
}

.produit-accroche {
  max-width: 30em;
  margin-top: 1.75rem;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.45;
}

.etat-projet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

.etat-projet p {
  color: var(--ciel);
  font-size: 0.975rem;
}

.acces {
  margin-top: 2.25rem;
}

/* Emplacement du futur lien vers le logiciel */
.acces-attente {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2px dashed var(--nuit-3);
  border-radius: var(--rayon);
  font-weight: 550;
  line-height: 1.3;
  color: var(--ciel);
}

.encadre {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--brume);
  border-left: 4px solid var(--ambre);
  border-radius: 0 var(--rayon) var(--rayon) 0;
}

.encadre-titre {
  margin-bottom: 0.4rem;
  font-weight: 720;
  font-stretch: 108%;
}

.encadre p:not(.encadre-titre) {
  color: var(--ardoise);
}

/* Profils d'utilisateurs */
.roles {
  display: grid;
  gap: 2.75rem;
  list-style: none;
}

@media (min-width: 56rem) {
  .roles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.role {
  padding-top: 1.35rem;
  border-top: 2px solid var(--nuit);
}

.role h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  font-stretch: 112%;
}

.role > p {
  color: var(--ardoise);
}

.role-etat {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.25rem;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ardoise);
}

.role-etat li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
}

/* Fonctionnalités développées / prévues */
.fonctions {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 58rem) {
  .fonctions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4.5rem;
  }
}

.fonctions-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 1rem;
  font-size: 1.35rem;
  font-stretch: 112%;
  border-bottom: 3px solid var(--nuit);
}

.fonctions-colonne--prevu .fonctions-titre {
  border-bottom-style: dashed;
  border-bottom-color: var(--ardoise);
}

.fonctions-liste {
  list-style: none;
}

.fonctions-liste li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--trait);
}

.fonctions-liste svg {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
}

.fonctions-liste strong {
  display: block;
  font-weight: 680;
}

.fonctions-liste span {
  display: block;
  color: var(--ardoise);
}

.fonctions-liste .statut {
  display: inline-flex;
  margin-top: 0.65rem;
  color: var(--nuit);
}

.icone-fait {
  color: var(--nuit);
}

.icone-prevu {
  color: var(--ardoise);
}

.icone-encours {
  color: var(--ambre-texte);
}

/* 8. Feuille de route --------------------------------------------------------- */

.route {
  max-width: 46rem;
  list-style: none;
}

.etape {
  position: relative;
  padding: 0 0 2.6rem 3.4rem;
}

.etape:last-child {
  padding-bottom: 0;
}

/* Tronçon de route entre deux étapes : plein = fait, ambre = en cours, pointillé = prévu */
.etape::before {
  content: "";
  position: absolute;
  left: calc(0.8125rem - 2px);
  top: 2.2rem;
  bottom: 0.35rem;
  width: 4px;
  border-radius: 2px;
  background: var(--blanc);
  transform-origin: top;
}

.etape:last-child::before {
  display: none;
}

.etape--encours::before {
  background: var(--ambre);
}

.etape--prevu::before {
  background: repeating-linear-gradient(to bottom, var(--ciel) 0 0.8rem, transparent 0.8rem 1.4rem);
}

.etape-repere {
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
}

.etape-repere svg {
  width: 0.95rem;
  height: 0.95rem;
}

.etape--fait .etape-repere {
  background: var(--blanc);
  color: var(--nuit);
}

.etape--encours .etape-repere {
  background: var(--ambre);
  box-shadow: 0 0 0 5px rgb(255 184 28 / 0.22);
}

.etape--prevu .etape-repere {
  border: 2px dashed var(--ciel);
}

.etape-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 1.25rem;
  font-stretch: 110%;
  font-weight: 720;
}

.etape p {
  max-width: 34em;
  margin-top: 0.5rem;
  color: var(--ciel);
}

.mise-a-jour {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--ciel);
}

/* 9. Captures d'écran ----------------------------------------------------------- */

.captures {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 48rem) {
  .captures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capture:first-child {
    grid-column: 1 / -1;
  }
}

/* Grand écran : une grande capture à gauche, deux plus petites à droite */
@media (min-width: 64rem) {
  .captures {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: start;
  }

  .capture:first-child {
    grid-column: 1;
    grid-row: span 2;
  }
}

.capture {
  margin: 0;
}

.capture-cadre {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 1.5rem;
  background: var(--brume);
  border: 2px dashed var(--trait);
  border-radius: var(--rayon);
  color: var(--ardoise);
  text-align: center;
  font-weight: 550;
}

/* Quand une vraie capture est ajoutée (voir README) */
.capture-cadre:has(img) {
  padding: 0;
  background: var(--blanc);
  border: 1px solid var(--trait);
}

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

.capture figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ardoise);
}

/* 10. Contact, pied de page, pages annexes ------------------------------------- */

.contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--nuit-2);
}

.contact p:not(.chapeau) {
  margin-top: 1rem;
}

.contact-courriel {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: clamp(1.55rem, 0.9rem + 3.4vw, 3.4rem);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 0.08em solid var(--ambre);
  transition: color 0.2s ease;
}

.contact-courriel:hover {
  color: var(--ambre);
}

.pied {
  padding-block: 3rem 2rem;
  font-size: 0.95rem;
  color: var(--ciel);
}

.pied-grille {
  display: grid;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .pied-grille {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.pied .logo svg {
  height: 1.3rem;
}

.pied-signature {
  margin-top: 0.85rem;
  max-width: 24em;
}

.pied-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
}

.pied a {
  text-decoration: none;
}

.pied-nav a,
.pied-bas a {
  color: var(--ciel);
}

.pied-nav a:hover,
.pied-bas a:hover {
  color: var(--blanc);
  text-decoration: underline;
}

.pied-bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--nuit-2);
  font-size: 0.875rem;
}

/* Mentions légales */
.prose {
  max-width: 44em;
}

.prose h2 {
  margin: 2.75rem 0 0.85rem;
  font-size: 1.4rem;
  font-stretch: 112%;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ardoise);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose strong {
  color: var(--nuit);
}

.a-completer {
  padding: 0.05rem 0.4rem;
  background: var(--ambre);
  color: var(--nuit);
  font-weight: 650;
  border-radius: 3px;
}

/* Page 404 */
.page-erreur {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.page-erreur .actions {
  margin-top: 2.25rem;
}

/* 11. Animations --------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  /* Les deux paires d'initiales se rejoignent, puis le trait d'union apparaît */
  .paire--h {
    animation: rapprocher-h 1.1s var(--ease) 0.25s both;
  }

  .paire--g {
    animation: rapprocher-g 1.1s var(--ease) 0.25s both;
  }

  .paire--h .paire-lettres::after {
    transform-origin: center;
    animation: trait 0.55s var(--ease) 1.15s both;
  }

  /* Feuille de route : les tronçons se tracent quand la section devient visible */
  .js .route .etape::before {
    transform: scaleY(0);
    transition: transform 0.6s var(--ease);
  }

  .js .route.est-visible .etape::before {
    transform: scaleY(1);
  }

  .js .route.est-visible .etape:nth-child(2)::before { transition-delay: 0.12s; }
  .js .route.est-visible .etape:nth-child(3)::before { transition-delay: 0.24s; }
  .js .route.est-visible .etape:nth-child(4)::before { transition-delay: 0.36s; }
  .js .route.est-visible .etape:nth-child(5)::before { transition-delay: 0.48s; }
  .js .route.est-visible .etape:nth-child(6)::before { transition-delay: 0.6s; }
  .js .route.est-visible .etape:nth-child(7)::before { transition-delay: 0.72s; }
}

@keyframes rapprocher-h {
  from {
    transform: translateX(-0.1em);
  }
  to {
    transform: none;
  }
}

@keyframes rapprocher-g {
  from {
    transform: translateX(0.55em);
  }
  to {
    transform: none;
  }
}

@keyframes trait {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
