/* ==========================================================================
   1. Polices
   ========================================================================== */

@font-face {
  font-family: "Gilda Display";
  src: url("../fonts/gilda-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* ==========================================================================
   2. Tokens
   ========================================================================== */

:root {
  /* Couleurs (ratios de contraste dans STATUS_PROJET.md) */
  --c-creme: hsl(35 48% 90%);
  --c-surface: hsl(37 52% 95%);
  --c-brun: hsl(21 42% 16%);
  --c-brun-doux: hsl(21 25% 33%);
  --c-sauge: hsl(89 20% 61%);
  --c-sauge-fonce: hsl(89 20% 38%);
  --c-sauge-clair: hsl(89 22% 70%);
  --c-sauge-profond: hsl(87 25% 33%);
  --c-bordure: hsl(34 35% 79%);
  --c-bandeau: hsl(33 34% 84%);
  --c-succes: hsl(110 35% 31%);
  --c-erreur: hsl(11 68% 38%);
  --c-avert: hsl(36 100% 27%);

  /* Typographie */
  --ff-titre: "Gilda Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ff-texte: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-sm: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.6rem + 2vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.75rem + 3.6vw, 4.75rem);
  --fs-citation: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --fs-email: clamp(1.5rem, 0.9rem + 4.2vw, 4rem);
  --fs-annee: clamp(2.25rem, 1.7rem + 2.8vw, 4rem);
  --fs-marque: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-hero: clamp(2.25rem, 1rem + 5vw, 5.3125rem);
  --fs-titre-fort: clamp(2.25rem, 1.3rem + 4.2vw, 5.5rem);
  --fs-accroche: clamp(1.625rem, 1.15rem + 1.9vw, 2.75rem);
  --fs-accroche-sm: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --fs-bandeau: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem);

  /* Grain : bruit gris à 9 % d'opacité, lisible sur le beige comme sur le brun.
     Assombrit le beige d'environ 3 % et éclaircit le brun d'autant : contrastes inchangés en pratique. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1.6 0 0 0 -0.3 1.6 0 0 0 -0.3 1.6 0 0 0 -0.3 0 0 0 0 0.09'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --lh-texte: 1.65;
  --lh-titre: 1.1;
  --lh-h1: 1.02;
  --measure: 68ch;

  /* Espacements, base 4 px */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;
  --section-space: clamp(4rem, 2rem + 6vw, 8rem);

  /* Rayons : la hiérarchie distingue images, blocs et actions */
  --r-sm: 2px;
  --r-md: 8px;
  --r-pill: 999px;

  /* Bordures et ombres */
  --border-deco: 1px solid var(--c-bordure);
  --border-action: 1.5px solid var(--c-brun);
  --sh-1: 0 1px 2px hsl(21 42% 16% / 0.06);
  --sh-2: 0 8px 24px -8px hsl(21 42% 16% / 0.12);

  /* Mouvement */
  --dur-1: 200ms;
  --dur-2: 300ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Mise en page */
  --gutter: clamp(1rem, 4vw, 3rem);
  --container: min(100% - 2 * var(--gutter), 80rem);
  --header-h: 4rem;
  --target-min: 2.75rem;
}

@media (min-width: 64rem) {
  :root {
    --header-h: 4.5rem;
    /* Place réservée au rail de navigation, à gauche (et symétrique à droite) */
    --container: min(100% - 2 * (var(--gutter) + 3.25rem), 80rem);
  }
}

/* ==========================================================================
   3. Reset
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  interpolate-size: allow-keywords;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img,
picture,
video {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

p,
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Défilement doux natif seulement sans Lenis (qui gère lui-même les ancres). */
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

/* Règles officielles de Lenis 1.3.27 (lenis.css) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

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

/* ==========================================================================
   4. Base
   ========================================================================== */

/* Le grain se superpose à chaque fond, beige comme brun. */
body,
.site-header,
.contact,
.surface-brun,
.apport__opening,
.stripe,
.marquee {
  background-image: var(--grain);
}

body {
  background-color: var(--c-creme);
  color: var(--c-brun);
  font-family: var(--ff-texte);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-texte);
}

h1,
h2,
h3 {
  font-family: var(--ff-titre);
  font-weight: 400;
  font-synthesis: none;
  line-height: var(--lh-titre);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p,
li {
  max-width: var(--measure);
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-brun-doux);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--c-sauge-profond);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--c-brun);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

main:focus {
  outline: none;
}

::selection {
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}

/* ==========================================================================
   5. Mise en page
   ========================================================================== */

.container {
  width: var(--container);
  margin-inline: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--c-creme);
}

/* L'ombre apparaît au défilement par son opacité, seule propriété animée avec transform. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: var(--sh-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

/* Accueil : l'en-tête flotte au-dessus du hero ; jusqu'à la section Profil, seul le choix de langue
   reste affiché (main.js). Le reste réapparaît dès que l'en-tête reçoit le focus clavier. */
.page-home .site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  transition: background-color 300ms var(--ease);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  min-height: var(--header-h);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  margin-inline-end: auto;
  font-family: var(--ff-titre);
  font-size: var(--fs-marque);
  text-decoration: none;
  white-space: nowrap;
}

/* Préfixe .site-header : la règle doit l'emporter sur .btn, déclarée plus loin. */
.site-header .site-header__cta {
  display: none;
}

/* Sélecteur de langue : deux pastilles, la langue courante en plein */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid hsl(21 42% 16% / 0.18);
  border-radius: var(--r-pill);
  background-color: hsl(37 52% 95% / 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lang-switch__item {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding-inline: var(--sp-2);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}

.lang-switch__item.is-current {
  background-color: var(--c-brun);
  color: var(--c-surface);
}

a.lang-switch__item:hover {
  background-color: hsl(21 42% 16% / 0.08);
}

/* Accueil : sur le hero, l'en-tête s'efface mais la langue reste affichée */
.page-home .site-header.is-concealed:not(:focus-within) {
  background-color: transparent;
  background-image: none;
}

.page-home .site-header.is-concealed:not(:focus-within)::after {
  opacity: 0;
}

.page-home .site-header.is-concealed:not(:focus-within) :is(.site-header__brand, .site-header__cta) {
  opacity: 0;
  pointer-events: none;
}

.site-header__brand,
.site-header__cta {
  transition: opacity 300ms var(--ease);
}

/* Petits écrans : le bouton de contact cède sa place à la langue (le rail mène aussi au contact). */
@media (min-width: 26rem) {
  .site-header .site-header__cta {
    display: inline-flex;
  }
}

/* Rail de navigation (modèle : breedlove.xyz) -------------------------- */
/* Mobile : pastille horizontale en bas de l'écran, numéros seuls, intitulé de la section active.
   Grand écran : colonne à gauche, centrée en hauteur ; tous les intitulés s'ouvrent au survol ou au focus. */

.rail {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(var(--sp-3), env(safe-area-inset-bottom));
  translate: -50% 0;
  transition:
    opacity 400ms var(--ease),
    translate 400ms var(--ease);
}

.rail.is-concealed:not(:focus-within) {
  opacity: 0;
  translate: -50% 1rem;
  pointer-events: none;
}

.rail__list {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border: 1px solid hsl(89 22% 70% / 0.35);
  border-radius: var(--r-pill);
  background:
    radial-gradient(circle at 18% 8%, hsl(37 52% 95% / 0.12), transparent 40%),
    linear-gradient(140deg, hsl(21 30% 24% / 0.94), hsl(21 42% 12% / 0.92));
  box-shadow:
    inset 0 1px 0 hsl(37 52% 95% / 0.14),
    0 18px 38px -22px hsl(21 60% 4% / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.rail__item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 1.75rem;
  min-height: 2.25rem;
  padding-inline: 0.3rem;
  border-radius: var(--r-pill);
  color: hsl(35 30% 78%);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 450ms var(--ease),
    color 300ms var(--ease);
}

.rail__num {
  min-width: 1.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rail__tick {
  display: none;
}

/* Intitulé replié mais toujours présent : il reste le nom accessible du lien. */
.rail__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width 450ms var(--ease),
    opacity 250ms var(--ease);
}

.rail__item:hover,
.rail__item:focus-visible {
  color: var(--c-surface);
}

.rail__item.is-active {
  background-color: hsl(89 22% 70% / 0.22);
  color: var(--c-sauge-clair);
}

/* Mobile : l'intitulé de la section active s'affiche quand la largeur le permet */
@media (min-width: 23rem) {
  .rail__item.is-active .rail__label {
    max-width: 9rem;
    opacity: 1;
  }
}

.rail :focus-visible {
  outline-color: var(--c-sauge-clair);
}

@media (min-width: 64rem) {
  .rail {
    left: clamp(0.5rem, 1.2vw, 1.25rem);
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }

  .rail.is-concealed:not(:focus-within) {
    translate: -1rem -50%;
  }

  .rail__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 1.5rem;
  }

  .rail__item {
    gap: var(--sp-2);
    min-width: 2rem;
    min-height: 1.75rem;
    padding-inline: 0.45rem;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
  }

  .rail__tick {
    display: inline-block;
    width: 0;
    height: 1px;
    background-color: currentColor;
    opacity: 0.5;
    transition: width 450ms var(--ease);
  }

  /* Repli : seuls les numéros ; la section active garde sa couleur, sans intitulé */
  .rail__item.is-active .rail__label {
    max-width: 0;
    opacity: 0;
  }

  .rail__list:hover .rail__label,
  .rail__list:focus-within .rail__label {
    max-width: 9rem;
    opacity: 1;
  }

  .rail__list:hover .rail__tick,
  .rail__list:focus-within .rail__tick {
    width: 1.25rem;
  }

  .rail__list:hover .rail__item,
  .rail__list:focus-within .rail__item {
    padding-inline-end: var(--sp-4);
  }
}

/* Pied de page : colophon -------------------------------------------- */

.site-footer {
  position: relative;
  padding-block-start: var(--section-space);
  overflow: hidden;
  font-size: var(--fs-sm);
}

.site-footer__inner {
  display: grid;
  gap: var(--sp-12);
}

/* « Colophon ———— Mis à jour en … » */
.colophon__rule {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  max-width: none;
  color: var(--c-brun-doux);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.colophon__line {
  flex: 1;
  height: 1px;
  background-color: var(--c-bordure);
}

.colophon__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-8) var(--sp-6);
}

.colophon__title {
  margin-block-end: var(--sp-3);
  font-family: var(--ff-texte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brun-doux);
}

.colophon__list {
  display: grid;
  gap: var(--sp-1);
}

.colophon__list a,
.colophon__list .link-button {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  font-family: var(--ff-titre);
  font-size: var(--fs-lg);
  text-decoration-color: transparent;
  overflow-wrap: anywhere;
}

.colophon__list a:hover,
.colophon__list .link-button:hover {
  text-decoration-color: var(--c-sauge-profond);
}

.colophon__plain {
  display: flex;
  align-items: center;
  min-height: var(--target-min);
  font-family: var(--ff-titre);
  font-size: var(--fs-lg);
}

/* Copyright, langue et retour en haut sur une même ligne, centrés verticalement */
.colophon__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-6);
  max-width: none;
  padding-block-start: var(--sp-6);
  border-block-start: var(--border-deco);
  color: var(--c-brun-doux);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.colophon__bottom a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}

/* Le nom en très grand, entier, sur toute la largeur du contenu (modèle : davidecarusio.it).
   Le prénom et le nom glissent l'un vers l'autre en fin de page (animations.js). */
/* Centré sur la largeur de l'écran (D109), et non plus calé sur les bords du contenu */
.colophon__name {
  display: flex;
  justify-content: center;
  gap: 0.22em;
  width: 100%;
  max-width: none;
  margin: var(--sp-8) 0 0;
  padding-block-end: clamp(1.5rem, 3vw, 3rem);
  font-family: var(--ff-titre);
  font-size: min(11.6vw, 13rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--c-brun);
  user-select: none;
}

.colophon__name span {
  display: block;
}

.site-footer__body {
  position: relative;
}

/* Voile brun qui s'efface à l'arrivée du pied de page : prolonge le fond du contact */
.site-footer__veil {
  position: absolute;
  inset: 0;
  background-color: var(--c-brun);
  opacity: 0;
  pointer-events: none;
}

/* Trois colonnes : coordonnées à gauche, informations légales au centre, « Conçu avec » à droite */
@media (min-width: 48rem) {
  .colophon__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-8);
  }

  .colophon__col:nth-child(2) {
    justify-self: center;
    text-align: center;
  }

  .colophon__col:nth-child(2) .colophon__list {
    justify-items: center;
  }

  .colophon__col:nth-child(3) {
    justify-self: end;
    text-align: end;
  }

  .colophon__col:nth-child(3) .colophon__plain {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   6. Composants
   ========================================================================== */

/* Boutons --------------------------------------------------------------- */

/* Coins presque carrés. Au survol : un aplat monte en biais, le texte roule lettre par lettre
   et la flèche s'échange (structure ajoutée par main.js ; sans JS, bouton simple). */
.btn {
  --btn-ease: cubic-bezier(0.625, 0.05, 0, 1);
  --btn-shift: 1.7em;
  --btn-fill: var(--c-brun);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding-inline: 1.25rem;
  overflow: hidden;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 400ms var(--btn-ease);
}

.btn__fill {
  position: absolute;
  inset-inline-start: -10%;
  bottom: 0;
  z-index: -1;
  width: 120%;
  height: 100%;
  background-color: var(--btn-fill);
  transform: translate3d(0, 175%, 0) rotate(15deg);
  transition: transform 525ms var(--btn-ease);
}

.btn__mask {
  display: inline-flex;
  clip-path: inset(-10% 0);
}

.btn__char {
  display: inline-block;
  white-space: pre;
  text-shadow: 0 var(--btn-shift) currentColor;
  transition: transform 525ms var(--btn-ease);
  transition-delay: calc(var(--i) * 12ms);
}

.btn__icon {
  position: relative;
  flex: none;
  width: 0.9em;
  height: 0.9em;
  overflow: hidden;
}

.btn__arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 525ms var(--btn-ease);
}

.btn__arrow + .btn__arrow {
  transform: translate(-110%, 110%);
}

.btn:is(:hover, :focus-visible) .btn__fill {
  transform: none;
}

.btn:is(:hover, :focus-visible) .btn__char {
  transform: translateY(calc(-1 * var(--btn-shift)));
}

.btn:is(:hover, :focus-visible) .btn__arrow {
  transform: translate(110%, -110%);
}

.btn:is(:hover, :focus-visible) .btn__arrow + .btn__arrow {
  transform: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background-color: var(--c-sauge-fonce);
  color: var(--c-surface);
}

.btn--outline-light {
  --btn-fill: var(--c-sauge-clair);
  border-color: var(--c-sauge-clair);
  color: var(--c-surface);
}

.btn--outline-light:is(:hover, :focus-visible),
.surface-brun .btn--primary:is(:hover, :focus-visible) {
  color: var(--c-brun);
}

.surface-brun .btn--primary {
  --btn-fill: var(--c-creme);
}

.site-header__cta {
  min-height: var(--target-min);
  padding-inline: var(--sp-4);
  font-size: var(--fs-sm);
}

/* Petits écrans : sans flèche, pour que le bouton menu reste sur la même ligne */
@media (max-width: 29.99rem) {
  .site-header__cta .btn__icon {
    display: none;
  }
}

/* Bouton CV : cercle tracé au crayon ------------------------------------ */

@keyframes crayon {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.cv-circle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 5.25rem;
  height: 3.75rem;
  font-weight: 600;
  text-decoration: none;
}

.cv-circle__stroke {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cv-circle__stroke path {
  fill: none;
  stroke: var(--c-brun);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.cv-circle:is(:hover, :focus-visible) .cv-circle__stroke path {
  stroke: var(--c-sauge-profond);
  animation: crayon 700ms var(--ease) both;
}

.cv-circle__label {
  position: relative;
  letter-spacing: 0.04em;
}

.cv-circle:focus-visible {
  outline-offset: 4px;
}

.link-download {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--target-min);
  font-weight: 500;
}

.link-download svg {
  flex-shrink: 0;
}

.link-download__meta {
  color: var(--c-brun-doux);
  font-weight: 400;
}

.section-head {
  display: grid;
  gap: var(--sp-4);
  margin-block-end: var(--sp-12);
}

.section-head h2 {
  max-width: 22ch;
}

.section-head__intro {
  font-size: var(--fs-lg);
  max-width: 58ch;
}

/* Hero : le titre seul, centré ------------------------------------------ */

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(105%);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scroll-cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Le contenu est décalé d'un cran vers le bas (padding haut plus grand) : le titre paraît au centre optique. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--sp-24) + 8vh) var(--sp-24);
  text-align: center;
}

.hero__title {
  max-width: none;
  margin-inline: auto;
  font-family: var(--ff-titre);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__line {
  display: block;
  text-wrap: balance;
}

/* Révélation par masque : chaque mot monte de sous une ligne invisible (overflow) en passant
   de 0 à 100 % d'opacité, un mot après l'autre. Le débord vertical garde les jambages entiers. */
.hero__word {
  display: inline-block;
  overflow: hidden;
  padding-block: 0.06em 0.16em;
  margin-block: -0.06em -0.16em;
  vertical-align: top;
}

.hero__word > span {
  display: inline-block;
  animation: hero-in 1100ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(150ms + var(--i, 0) * 85ms);
}

@media (prefers-reduced-motion: reduce) {
  .hero__word > span {
    animation: none;
  }
}

/* Indicateur de défilement : un trait qui descend, sans texte visible. */
.hero__scroll {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: var(--sp-6);
  width: var(--target-min);
  height: 4.5rem;
  translate: -50% 0;
}

.hero__scroll::before,
.hero__scroll::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  inset-block: var(--sp-2);
  width: 1px;
  background-color: var(--c-bordure);
}

.hero__scroll::after {
  width: 1.5px;
  background-color: var(--c-brun);
  animation: scroll-cue 2.4s var(--ease) infinite;
}

/* Mots d'accent (marks() dans i18n.php) --------------------------------- */

.accent {
  color: var(--c-sauge-profond);
  font-weight: inherit;
}

.surface-brun .accent {
  color: var(--c-sauge-clair);
}

/* Titres : le serif Gilda, relevé d'un mot en Poppins gras coloré et d'un passage en Poppins italique */
:is(h1, h2) .accent,
:is(h1, h2) .ital {
  font-family: var(--ff-texte);
  font-size: 0.88em;
  letter-spacing: -0.035em;
}

:is(h1, h2) .accent {
  font-weight: 600;
}

.ital {
  font-style: italic;
  font-weight: 500;
}

:is(h1, h2) .ital {
  color: var(--c-brun-doux);
}

.surface-brun :is(h1, h2) .ital,
.parcours.is-dark :is(h1, h2) .ital {
  color: hsl(35 30% 82%);
}

.parcours.is-dark .accent {
  color: var(--c-sauge-clair);
}

/* Lettrine : première lettre des paragraphes isolés, plus grande et colorée */
.lettrine::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--ff-titre);
  font-size: 2.6em;
  line-height: 0.8;
  color: var(--c-sauge-profond);
}

.surface-brun .lettrine::first-letter,
.parcours.is-dark .lettrine::first-letter {
  color: var(--c-sauge-clair);
}

/* Profil ---------------------------------------------------------------- */

.profil {
  padding-block-end: 0;
}

.profil__inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

.profil__lead {
  max-width: 24ch;
  font-size: var(--fs-accroche);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.profil__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-6);
  margin-block-start: var(--sp-8);
}

/* Raconter, piloter, mesurer : la phrase se révèle au survol (voir main.js) */
.pillars {
  display: grid;
  gap: var(--sp-6);
  margin-block-start: var(--sp-12);
}

.pillar {
  display: grid;
  gap: var(--sp-1);
  max-width: none;
  border-radius: var(--r-sm);
}

.pillar__verb {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh-titre);
  letter-spacing: -0.02em;
}

.pillar__text {
  color: var(--c-brun-doux);
  font-size: var(--fs-lg);
}

.pillar__word {
  display: inline-block;
}

.pillars.is-interactive .pillar {
  cursor: default;
}

.pillars.is-interactive .pillar__word {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(0.4em);
  transition:
    opacity 450ms var(--ease),
    filter 450ms var(--ease),
    transform 450ms var(--ease);
  transition-delay: calc(var(--i) * 35ms);
}

.pillars.is-interactive .pillar:hover .pillar__word,
.pillars.is-interactive .pillar:focus .pillar__word {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Média : cadre, révélation au défilement, inclinaison 3D, parallaxe ----- */

.media {
  position: relative;
  margin: 0;
}

.media__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background-color: var(--c-surface);
}

/* Image plus haute que son cadre : la parallaxe la déplace sans laisser de vide. */
.media__frame img {
  position: absolute;
  inset-inline: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
}

/* Reflet de l'inclinaison, piloté par animations.js */
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), hsl(37 52% 95% / 0.35), transparent 55%);
  opacity: var(--glare, 0);
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}

.media__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: var(--sp-6);
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
  text-align: center;
}

.profil__portrait {
  width: min(100%, 26rem);
}

/* Bandeau défilant ------------------------------------------------------ */

@keyframes marquee {
  to {
    transform: translateX(var(--marquee-shift, -50%));
  }
}

/* Aligné sur la grille du site (même largeur que le contenu), bords fondus */
.marquee {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  margin-block-start: var(--section-space);
  padding-block: var(--sp-8);
  overflow: hidden;
  border-radius: var(--r-md);
  background-color: var(--c-bandeau);
}

.marquee.is-ready::before,
.marquee.is-ready::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 1;
  width: 6%;
  pointer-events: none;
}

.marquee.is-ready::before {
  left: 0;
  background: linear-gradient(90deg, var(--c-bandeau), transparent);
}

.marquee.is-ready::after {
  right: 0;
  background: linear-gradient(270deg, var(--c-bandeau), transparent);
}

/* Formes dans le bandeau : pastille brune, soulignement tracé à la main, accent sauge */
.marquee .pill {
  display: inline-block;
  margin-inline: 0.1em;
  padding: 0.18em 0.6em 0.22em;
  border-radius: var(--r-pill);
  background-color: var(--c-brun);
  color: var(--c-creme);
  font-family: var(--ff-texte);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.01em;
  vertical-align: 0.18em;
}

.scribble {
  position: relative;
  display: inline-block;
}

.scribble::after {
  content: "";
  position: absolute;
  inset-inline: -3%;
  bottom: -0.18em;
  height: 0.36em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 4 82 18 121 9s58-3 76 3' fill='none' stroke='%2356693F' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}

.marquee__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) 0;
  width: 100%;
  margin-inline: auto;
}

/* inline-block et non flex : les espaces autour des mots mis en forme doivent être conservés. */
.marquee__item {
  display: inline-block;
  max-width: none;
  padding-inline: var(--sp-6);
  font-family: var(--ff-titre);
  font-size: var(--fs-bandeau);
  line-height: 1.2;
  white-space: nowrap;
}

/* Séparateur : une pastille sauge, décorative */
.marquee__item::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 0.4rem;
  height: 0.4rem;
  margin-inline-start: var(--sp-12);
  border-radius: 50%;
  background-color: var(--c-sauge-profond);
}

.marquee.is-ready .marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 40s) linear infinite;
}

.marquee.is-ready .marquee__list {
  flex-wrap: nowrap;
  width: auto;
  margin: 0;
}

.marquee.is-ready .marquee__item {
  padding-inline: 0 var(--sp-12);
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track,
.marquee.is-paused .marquee__track {
  animation-play-state: paused;
}

.marquee__toggle {
  position: absolute;
  inset-inline-end: var(--gutter);
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  width: var(--target-min);
  height: var(--target-min);
  translate: 0 -50%;
  border: var(--border-action);
  border-radius: 50%;
  background-color: var(--c-bandeau);
}

.marquee__toggle[hidden] {
  display: none;
}

.marquee__icon-play,
.marquee.is-paused .marquee__icon-pause {
  display: none;
}

.marquee.is-paused .marquee__icon-play {
  display: inline;
}

@media (min-width: 48rem) {
  .pillar {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: baseline;
    gap: var(--sp-6);
  }
}

@media (min-width: 64rem) {
  .profil__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp-16);
  }

  .profil__portrait {
    width: 100%;
  }
}

/* Surfaces brunes ------------------------------------------------------- */

.surface-brun {
  background-color: var(--c-brun);
  color: var(--c-surface);
}

.surface-brun a {
  color: var(--c-surface);
  text-decoration-color: var(--c-sauge-clair);
}

.surface-brun :focus-visible {
  outline-color: var(--c-sauge-clair);
}

.surface-brun ::selection {
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
}

/* Apport, avec la transition par bandes --------------------------------- */

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

.apport__opening {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: var(--section-space) var(--sp-16);
  background-color: var(--c-brun);
}

.has-motion .apport__opening {
  min-height: 85vh;
  min-height: 85svh;
  place-items: start center;
  padding-block: 24vh var(--sp-16);
}

.stripes {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.has-motion .stripes {
  display: flex;
}

/* Léger chevauchement : évite un filet brun entre deux bandes à l'arrondi des pixels. */
.stripe {
  flex: 1 1 0;
  margin-inline-end: -1px;
  background-color: var(--c-creme);
  transform-origin: top center;
}

.apport__title {
  max-width: 16ch;
  margin-inline: auto;
  font-family: var(--ff-texte);
  font-size: var(--fs-titre-fort);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

.apport__body {
  display: grid;
  gap: var(--sp-12);
}

.apport__media {
  width: min(100%, 26rem);
}

.apport__intro {
  max-width: 30ch;
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.apport__intro em {
  font-style: italic;
}

.apport__intro .accent {
  font-weight: 600;
}

.apport__points {
  margin-block-start: var(--sp-12);
  padding: 0;
}

/* Chaque point : grand numéro Gilda, intitulé fort, faits clés en gras */
.apport__point {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  column-gap: var(--sp-6);
  max-width: none;
  padding-block: var(--sp-8);
  border-block-start: 1px solid hsl(89 22% 70% / 0.35);
}

.apport__number {
  grid-row: span 2;
  font-family: var(--ff-titre);
  font-size: var(--fs-h2);
  line-height: 0.9;
  color: var(--c-sauge-clair);
  transition: transform var(--dur-2) var(--ease);
}

.apport__point:hover .apport__number {
  transform: translateX(0.25rem);
}

.apport__point-title {
  margin-block-end: var(--sp-3);
  font-family: var(--ff-texte);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.apport__point p .accent {
  color: var(--c-surface);
  font-weight: 600;
}

.apport__point p {
  color: hsl(35 30% 82%);
}

@media (min-width: 64rem) {
  .apport__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 0;
  }

  /* L'image reste en place pendant la lecture des quatre points. */
  .apport__media {
    position: sticky;
    top: calc(var(--header-h) + 8vh);
    width: auto;
  }

  .apport__text {
    position: relative;
    padding-inline-start: var(--sp-16);
  }

  /* Filet sauge qui part du bord de l'image et aboutit à l'accroche, terminé par une pastille. */
  .apport__text::before,
  .apport__text::after {
    content: "";
    position: absolute;
    top: calc(var(--fs-accroche-sm) * 0.7);
    background-color: var(--c-sauge-clair);
  }

  .apport__text::before {
    inset-inline-start: 0;
    width: calc(var(--sp-16) - var(--sp-4));
    height: 1.5px;
  }

  .apport__text::after {
    inset-inline-start: calc(var(--sp-16) - var(--sp-4) - 0.35rem);
    width: 0.7rem;
    height: 0.7rem;
    margin-block-start: -0.3rem;
    border-radius: 50%;
  }
}

/* Méthode : boucle circulaire ----------------------------------------- */
/* Un cercle en trois segments, le titre au centre. --spin : rotation par étape (interactions.js),
   --drift : légère rotation liée au défilement (animations.js). Déclarées pour être animables. */

@property --spin {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@property --drift {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

@keyframes loop-turn {
  to {
    transform: rotate(360deg);
  }
}

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

.methode__inner {
  display: grid;
  gap: var(--sp-12);
}

.methode__intro {
  max-width: 46rem;
}

.methode__intro p {
  margin-block-start: var(--sp-4);
  color: hsl(35 30% 82%);
  font-size: var(--fs-lg);
}

.cycle {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}

.cycle__dial {
  position: relative;
  /* Marge pour les intitulés posés sur le bord du cercle */
  width: min(100% - 5rem, 22rem);
  aspect-ratio: 1;
  margin-inline: auto;
  container-type: size;
  transition: --spin 1.1s cubic-bezier(0.65, 0, 0.25, 1);
}

.cycle__rotor {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--spin) + var(--drift)));
}

.cycle__ring {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
}

.cycle__ticks line {
  stroke: hsl(35 30% 82% / 0.22);
  stroke-width: 1.2;
}

.cycle__segment {
  stroke: hsl(89 22% 70% / 0.26);
  stroke-width: 9;
  transition:
    stroke 600ms var(--ease),
    stroke-width 600ms var(--ease),
    filter 600ms var(--ease);
}

.cycle__segment.is-active {
  stroke: var(--c-sauge-clair);
  stroke-width: 14;
  filter: drop-shadow(0 0 10px hsl(89 45% 72% / 0.55));
}

.cycle__arrow {
  stroke: hsl(89 22% 70% / 0.5);
  stroke-width: 2;
  stroke-linejoin: round;
}

/* Le titre reste fixe, droit, au centre du cercle */
.cycle__center {
  position: absolute;
  inset: 24%;
  display: grid;
  place-content: center;
  gap: var(--sp-3);
  text-align: center;
}

.cycle__center-title {
  font-family: var(--ff-titre);
  font-size: clamp(1.25rem, 6.5cqw, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}

.cycle__center-step {
  color: var(--c-sauge-clair);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

/* Intitulés des segments : ils suivent la rotation du cercle mais restent droits */
.cycle__labels {
  position: absolute;
  inset: 0;
}

.cycle__label {
  --a: calc(var(--base) + var(--spin) + var(--drift));
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: var(--target-min);
  min-height: var(--target-min);
  padding: 0 var(--sp-4);
  border: 1px solid hsl(89 22% 70% / 0.35);
  border-radius: var(--r-pill);
  background-color: hsl(21 42% 16% / 0.85);
  color: hsl(35 30% 85%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-50cqw) rotate(calc(-1 * var(--a)));
  transition:
    background-color 500ms var(--ease),
    color 500ms var(--ease),
    border-color 500ms var(--ease);
}

.cycle__label:hover {
  border-color: var(--c-sauge-clair);
}

.cycle__label.is-active {
  border-color: var(--c-sauge-clair);
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
}

.cycle__panel + .cycle__panel {
  margin-block-start: var(--sp-12);
}

.cycle__number {
  font-family: var(--ff-titre);
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--c-sauge-clair);
}

.cycle__title {
  margin-block: var(--sp-4);
  font-family: var(--ff-texte);
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cycle__text {
  color: hsl(35 30% 82%);
  font-size: var(--fs-lg);
  line-height: 1.7;
}

.cycle__loop {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);
  color: var(--c-sauge-clair);
  font-weight: 600;
}

.cycle__loop-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  animation: loop-turn 4s linear infinite;
}

/* Avec JavaScript : une étape à la fois, en fondu, au même emplacement */
.cycle.is-ready .cycle__panels {
  display: grid;
}

.cycle.is-ready .cycle__panel {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease),
    visibility 0s linear 600ms;
}

.cycle.is-ready .cycle__panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 700ms var(--ease) 150ms,
    transform 700ms var(--ease) 150ms,
    visibility 0s;
}

.cycle__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-start: var(--sp-8);
}

.cycle__controls[hidden],
.cycle__hint[hidden] {
  display: none;
}

.cycle__nav {
  display: grid;
  place-items: center;
  width: var(--target-min);
  height: var(--target-min);
  border: 1px solid hsl(89 22% 70% / 0.45);
  border-radius: 50%;
  color: var(--c-sauge-clair);
  transition:
    background-color var(--dur-2) var(--ease),
    color var(--dur-2) var(--ease);
}

.cycle__nav:hover {
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
}

.cycle__hint {
  margin-inline-start: var(--sp-2);
  color: hsl(35 30% 75%);
  font-size: var(--fs-sm);
}

@media (min-width: 48rem) {
  .cycle__dial {
    width: min(100%, 30rem);
  }
}

@media (min-width: 64rem) {
  .cycle {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--sp-16);
  }

  .cycle__dial {
    width: min(100%, 34rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cycle__dial {
    transition: none;
  }

  .cycle__loop-icon {
    animation: none;
  }
}

/* Parcours : cartes empilées --------------------------------------------- */

.parcours {
  background-color: var(--parcours-bg, var(--c-creme));
  background-image: var(--grain);
  color: var(--parcours-fg, var(--c-brun));
  transition: color 300ms var(--ease);
}

.parcours.is-dark {
  --parcours-fg: var(--c-surface);
}

.parcours.is-dark :focus-visible {
  outline-color: var(--c-sauge-clair);
}

.parcours__inner {
  display: grid;
  gap: var(--sp-12);
}

.parcours__intro {
  margin-block-start: var(--sp-4);
  font-size: var(--fs-lg);
}

/* Relief du texte (§16) : mots clés en sauge et en semi-gras */
.parcours__intro .accent {
  font-weight: 600;
}

.parcours__timeline {
  display: none;
}

.parcours__cards {
  display: grid;
  gap: var(--sp-6);
  padding: 0;
}

.parcours-card {
  max-width: none;
  padding: var(--sp-8);
  border: var(--border-deco);
  border-radius: var(--r-md);
  background-color: var(--c-surface);
  color: var(--c-brun);
  box-shadow: 0 -12px 32px -16px hsl(21 42% 16% / 0.35);
  transform-origin: center top;
}

.parcours-card__period {
  font-family: var(--ff-titre);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--c-sauge-profond);
}

.parcours-card__role {
  margin-block-start: var(--sp-4);
  font-family: var(--ff-texte);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.parcours-card__meta {
  margin-block-start: var(--sp-1);
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
}

.parcours-card__items {
  display: grid;
  gap: var(--sp-2);
  margin-block-start: var(--sp-4);
  padding-inline-start: 1.1em;
  font-size: var(--fs-sm);
}

.parcours-card__items li::marker {
  color: var(--c-sauge-profond);
}

.parcours-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-6);
  margin-block-start: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.parcours-card__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}

/* Grand écran assez haut : la frise s'affiche et les cartes s'empilent */
@media (min-width: 64rem) and (min-height: 40rem) {
  .parcours__inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: var(--sp-16);
  }

  .parcours__aside {
    position: sticky;
    top: var(--aside-top, calc(var(--header-h) + var(--sp-12)));
  }

  /* La colonne reste collante : texte un cran plus petit pour que la frise tienne dans l'écran (§15). */
  .parcours__intro {
    font-size: var(--fs-base);
  }

  .parcours__timeline {
    position: relative;
    display: grid;
    gap: var(--sp-2);
    margin-block-start: var(--sp-6);
    padding-inline-start: var(--sp-6);
  }

  /* Ligne de la frise : rail discret, remplissage piloté par --progress */
  .parcours__timeline::before,
  .parcours__timeline::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0.3em;
    width: 2px;
    background-color: currentColor;
    opacity: 0.2;
  }

  .parcours__timeline::after {
    background-color: var(--c-sauge-clair);
    opacity: 1;
    transform: scaleY(var(--progress, 0));
    transform-origin: top;
  }

  .parcours:not(.is-dark) .parcours__timeline::after {
    background-color: var(--c-sauge-profond);
  }

  .parcours__period {
    font-family: var(--ff-titre);
    font-size: var(--fs-lg);
    line-height: 1.2;
    opacity: 0.45;
    transition:
      opacity var(--dur-2) var(--ease),
      transform var(--dur-2) var(--ease);
  }

  .parcours__period.is-active {
    opacity: 1;
    transform: translateX(0.35rem);
  }

  /* Grand espace sous la dernière fiche : elle reste en place le temps de finir son animation. */
  .parcours__cards {
    gap: 30vh;
  }

  /* Court bloc après la dernière fiche : elle se pose, puis la page reprend aussitôt son défilement
     et la section suivante apparaît (D95). Une marge intérieure ne prolongerait pas la zone collante. */
  .parcours__cards::after {
    content: "";
    height: 6vh;
  }

  .parcours {
    padding-block-end: var(--sp-16);
  }

  .parcours-card {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-8) + var(--n) * 0.75rem);
  }
}

/* Formation : bandeau de logos + liste compacte ------------------------ */

.formation .marquee {
  margin-block: 0 var(--sp-12);
}

.marquee__logo {
  display: inline-block;
  width: auto;
  height: 1.6em;
  margin-inline-end: var(--sp-3);
  vertical-align: middle;
  mix-blend-mode: multiply;
}

.marquee--logos .marquee__item {
  font-size: var(--fs-h3);
}

.credentials {
  display: grid;
  gap: var(--sp-12);
}

.credentials__title {
  margin-block-end: var(--sp-8);
  font-family: var(--ff-titre);
  font-size: var(--fs-h3);
}

.credentials__list {
  display: grid;
  gap: var(--sp-4);
}

/* Chaque diplôme : année en grand, intitulé fort, logo à droite ; la carte se soulève au survol */
.credential {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: var(--sp-2) var(--sp-6);
  align-items: start;
  max-width: none;
  padding: var(--sp-6);
  border: 1px solid hsl(34 35% 79% / 0.7);
  border-radius: var(--r-md);
  background-color: var(--c-surface);
  box-shadow: 0 14px 30px -22px hsl(21 42% 16% / 0.45);
  transition:
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}

.credential:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px hsl(21 42% 16% / 0.55);
}

.credential__year {
  font-family: var(--ff-titre);
  font-size: var(--fs-h3);
  line-height: 1;
  color: var(--c-sauge-profond);
}

/* Logo sur une pastille claire : le fond blanc des fichiers se fond dans la pastille, même sur le brun. */
.credential__logo {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  background-color: var(--c-surface);
  isolation: isolate;
}

.credential__logo img {
  width: auto;
  max-width: 6rem;
  height: 1.9rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Formation sur fond brun : cartes en relief, textes clairs */
.formation.surface-brun .credential {
  border-color: hsl(89 22% 70% / 0.25);
  background: linear-gradient(160deg, hsl(24 26% 27%), hsl(21 32% 21%));
  box-shadow: 0 24px 44px -26px hsl(21 60% 4% / 0.75);
}

.formation.surface-brun .credential:hover {
  box-shadow: 0 30px 54px -26px hsl(21 60% 4% / 0.85);
}

.formation.surface-brun .credential__year {
  color: var(--c-sauge-clair);
}

.formation.surface-brun .credential__meta,
.formation.surface-brun .credential__text {
  color: hsl(35 30% 82%);
}

/* Le bandeau reste beige : son texte repasse en brun */
.marquee {
  color: var(--c-brun);
}

.surface-brun .scribble::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 4 82 18 121 9s58-3 76 3' fill='none' stroke='%23B3C3A2' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Bandeau beige posé sur une section brune (formation) : mises en avant aux teintes du fond clair */
.surface-brun .marquee .accent {
  color: var(--c-sauge-profond);
}

.surface-brun .marquee .scribble::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14C40 4 82 18 121 9s58-3 76 3' fill='none' stroke='%2356693F' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Essai du §16 : trait « chemin » derrière le contenu (animations.js, grand écran seulement).
   La section isole ses calques : le trait passe au-dessus de son fond, sous son contenu. */
.has-trail {
  position: relative;
  isolation: isolate;
}

/* Deux sections isolées qui se touchent à une fraction de pixel laissent voir un filet clair :
   la seconde recouvre la première d'un pixel. */
.has-trail + .has-trail {
  margin-block-start: -1px;
}

/* L'ouverture de l'apport reprend le brun de sa section : sans fond propre, le trait reste visible. */
.has-trail .apport__opening {
  background: none;
}

.trail {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.trail__line {
  fill: none;
  stroke: var(--c-sauge-profond);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.75;
}

.trail__tip {
  fill: var(--c-sauge-profond);
}

.surface-brun .trail__line {
  stroke: var(--c-sauge-clair);
  opacity: 0.6;
}

.surface-brun .trail__tip {
  fill: var(--c-sauge-clair);
}

/* Volets entre beige et brun (animations.js) : des bandes horizontales de la couleur
   de la section suivante recouvrent la fin de la section, en partant du bas.
   Aucune ligne n'est visible entre les deux fonds. */
[data-shutter] {
  position: relative;
}

/* Espace de lecture avant les volets : ils recouvrent d'abord du vide. */
.has-motion [data-shutter] {
  padding-block-end: calc(var(--section-space) + 30vh);
}

.has-motion .methode[data-shutter] {
  padding-block-end: calc(var(--section-space) + 20vh);
}

.shutter {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  height: min(100vh, 100%);
  pointer-events: none;
}

.shutter__row {
  flex: 1 1 0;
  margin-block-start: -1px;
  background-image: var(--grain);
}

.shutter--creme .shutter__row {
  background-color: var(--c-creme);
}

.shutter--brun .shutter__row {
  background-color: var(--c-brun);
}

.credential__name {
  font-family: var(--ff-texte);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.credential__meta {
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
}

.credential__text {
  margin-block-start: var(--sp-2);
  font-size: var(--fs-sm);
}

@media (min-width: 48rem) {
  .credential {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }

  .credential__logo {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

@media (min-width: 64rem) {
  .credentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-12);
  }

  .credential {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .credential__logo {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
  }
}

/* Compétences : amas de bulles (modèle : elvalabs.ai) ------------------ */
/* Sans JavaScript ou en mouvement réduit : des cartes en grille, tout est visible. */

.bubbles {
  margin-block-start: var(--sp-12);
}

.bubbles__field {
  display: grid;
  gap: var(--sp-4);
}

.bubble {
  max-width: none;
  padding: var(--sp-6);
  border: 1px solid hsl(34 35% 79% / 0.7);
  border-radius: var(--r-md);
  background-color: var(--c-surface);
  color: var(--c-brun);
}

.bubble__heading {
  font-family: var(--ff-titre);
  font-size: var(--fs-h3);
  line-height: 1.15;
}

.bubble__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-block-start: var(--sp-4);
}

.bubble__tag {
  padding: 0.3em 0.85em;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
}

.bubbles__hint {
  max-width: none;
  margin-block-end: var(--sp-4);
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
  text-align: center;
}

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

@media (min-width: 64rem) {
  .bubbles__field {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Avec JavaScript : un champ où flottent les bulles, positionnées par interactions.js */
.bubbles.is-ready .bubbles__field {
  position: relative;
  display: block;
  height: clamp(28rem, 72vh, 42rem);
}

.bubbles.is-ready .bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: none;
  container-type: size;
  will-change: transform;
}

.bubbles.is-ready .bubble.is-open {
  z-index: 5;
}

/* Relief réaliste (D107) : lumière venue d'en haut à gauche.
   Dégradé de la couleur claire à la couleur sombre (assombrissement vers les bords),
   reflet spéculaire net et halo doux (::before), lumière renvoyée en bas à droite (::after),
   ombres internes, grain de matière et ombre portée au sol (.bubble::before). */
.bubbles.is-ready .bubble__ball {
  --hi: hsl(85 30% 86%);
  --tone: hsl(89 22% 64%);
  --lo: hsl(92 22% 41%);
  --deep: hsl(95 26% 24%);
  --ink: var(--c-brun);
  position: relative;
  isolation: isolate;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4cqw;
  width: 100%;
  height: 100%;
  padding: 16%;
  border-radius: 50%;
  background:
    var(--grain),
    radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--tone) 34%, var(--lo) 72%, var(--deep) 100%);
  background-blend-mode: soft-light, normal;
  box-shadow:
    inset -7cqw -9cqw 16cqw hsl(20 60% 5% / 0.38),
    inset 2cqw 3cqw 5cqw hsl(40 60% 98% / 0.18),
    inset 0 0 0 0.4cqw hsl(20 60% 5% / 0.08),
    0 3cqw 5cqw -1cqw hsl(20 60% 5% / 0.28),
    0 14cqw 22cqw -8cqw hsl(20 60% 5% / 0.42);
  overflow: hidden;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: scale 400ms var(--ease);
}

/* Reflet spéculaire : un point net dans un halo ovale, incliné comme une fenêtre qui se reflète */
.bubbles.is-ready .bubble__ball::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 17%;
  z-index: -1;
  width: 38%;
  height: 26%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 40% 45%, hsl(0 0% 100% / 0.95) 0%, hsl(0 0% 100% / 0.55) 16%, transparent 38%),
    radial-gradient(ellipse at 50% 50%, hsl(0 0% 100% / 0.32) 0%, transparent 70%);
  transform: rotate(-32deg);
}

/* Lumière renvoyée par le sol, sur le bord inférieur droit */
.bubbles.is-ready .bubble__ball::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 90%, hsl(40 60% 96% / 0.22) 0%, transparent 32%);
}

/* Ombre portée sous la bulle */
.bubbles.is-ready .bubble:not(.is-open)::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -11%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, hsl(20 60% 8% / 0.32) 0%, hsl(20 60% 8% / 0.12) 45%, transparent 72%);
  pointer-events: none;
}

.bubbles.is-ready button.bubble__ball:hover {
  scale: 1.05;
}

.bubbles.is-ready button.bubble__ball:focus-visible {
  outline: 3px solid var(--c-sauge-profond);
  outline-offset: 4px;
  border-radius: 50%;
}

.bubbles.is-ready .bubble--tone-1 .bubble__ball {
  --hi: hsl(24 30% 54%);
  --tone: hsl(21 36% 31%);
  --lo: hsl(20 42% 17%);
  --deep: hsl(20 50% 8%);
  --ink: var(--c-surface);
}

.bubbles.is-ready .bubble--tone-2 .bubble__ball {
  --hi: hsl(40 70% 98%);
  --tone: hsl(34 38% 85%);
  --lo: hsl(30 26% 64%);
  --deep: hsl(26 24% 42%);
}

.bubbles.is-ready .bubble--tone-3 .bubble__ball {
  --hi: hsl(85 26% 58%);
  --tone: hsl(87 26% 33%);
  --lo: hsl(90 30% 20%);
  --deep: hsl(95 35% 10%);
  --ink: var(--c-surface);
}

/* Textes clairs : une ombre légère les détache du dégradé */
.bubbles.is-ready :is(.bubble--tone-1, .bubble--tone-3) .bubble__ball {
  text-shadow: 0 1px 2px hsl(20 60% 5% / 0.45);
}

.bubble__icon {
  display: none;
}

.bubbles.is-ready .bubble__icon {
  display: block;
  width: 18cqw;
  height: 18cqw;
  opacity: 0.85;
}

.bubbles.is-ready .bubble__title {
  font-family: var(--ff-texte);
  font-size: clamp(0.625rem, 11cqw, 1.05rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Une bulle ouverte : son titre laisse la place au détail, les autres s'effacent un peu. */
.bubbles.is-ready .bubble.is-open .bubble__ball > * {
  opacity: 0;
}

.bubbles.is-ready .bubble__ball > * {
  position: relative;
  transition: opacity 300ms var(--ease);
}

.bubbles.is-ready.has-open .bubble:not(.is-open) {
  opacity: 0.55;
  transition: opacity 400ms var(--ease);
}

/* Réduites, les autres bulles ne gardent que leur pictogramme */
.bubbles.is-ready.has-open .bubble:not(.is-open) .bubble__title {
  display: none;
}

.bubbles.is-ready.has-open .bubble:not(.is-open) .bubble__icon {
  width: 34cqw;
  height: 34cqw;
}

.bubbles.is-ready .bubble__panel {
  position: absolute;
  inset: 14%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--sp-2);
  color: var(--c-brun);
  text-align: center;
  animation: bubble-in 500ms var(--ease) 150ms both;
}

.bubbles.is-ready .bubble--tone-1 .bubble__panel,
.bubbles.is-ready .bubble--tone-3 .bubble__panel {
  color: var(--c-surface);
}

.bubbles.is-ready .bubble__panel[hidden] {
  display: none;
}

.bubbles.is-ready .bubble__heading {
  font-size: clamp(1.25rem, 7cqw, 2.25rem);
}

.bubbles.is-ready .bubble__heading:focus {
  outline: none;
}

.bubbles.is-ready .bubble__tags {
  justify-content: center;
  margin-block-start: var(--sp-2);
}

.bubbles.is-ready .bubble__tag {
  font-size: clamp(0.6875rem, 3.4cqw, 0.9375rem);
  background-color: hsl(37 52% 95% / 0.18);
}

.bubble__close {
  margin-block-start: var(--sp-3);
  min-height: var(--target-min);
  padding-inline: var(--sp-4);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.bubble__close[hidden] {
  display: none;
}

.bubble__close:hover {
  background-color: hsl(37 52% 95% / 0.2);
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Mobile : la bulle ouverte peut dépasser la largeur, on garde un texte lisible */
@media (max-width: 47.99rem) {
  .bubbles.is-ready .bubble__panel {
    inset: 10%;
  }
}

/* Avis : la citation seule, qui s'éclaire au défilement ----------------- */

.recommandation__inner {
  display: grid;
  justify-items: center;
}

.quote {
  max-width: 62rem;
  margin: 0;
}

.quote__text p {
  max-width: none;
  font-family: var(--ff-titre);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.quote__text p + p {
  margin-block-start: var(--sp-6);
}

.quote__mark {
  color: var(--c-sauge-clair);
}

/* Lettres découpées par animations.js (copie décorative) */
.quote__char {
  color: var(--quote-dim, currentColor);
}

.quote__caption {
  display: grid;
  gap: var(--sp-1);
  margin-block-start: var(--sp-12);
  color: hsl(35 30% 82%);
  font-size: var(--fs-sm);
}

.quote__author {
  color: var(--c-surface);
  font-weight: 600;
}

.quote__source {
  opacity: 0.85;
}

/* FAQ : étiquette, grand titre, liste décalée à droite ------------------ */

.faq__inner {
  display: grid;
  gap: var(--sp-8);
}

.faq__title {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  line-height: 1.02;
}

.faq__item {
  border-block-end: 1px solid hsl(35 48% 90% / 0.18);
  transition: background-color var(--dur-2) var(--ease);
}

.faq__item[open] {
  background-color: hsl(21 30% 22%);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  min-height: var(--target-min);
  padding: var(--sp-6) var(--sp-4);
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question h3 {
  font-family: var(--ff-texte);
  font-size: var(--fs-lg);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

/* « + » fait de deux traits : le trait vertical pivote pour former « − » */
.faq__icon {
  position: relative;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.faq__icon span {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1.5px;
  margin-block-start: -0.75px;
  background-color: var(--c-sauge-clair);
  transition: transform 450ms var(--ease);
}

.faq__icon span + span {
  transform: rotate(90deg);
}

.faq__item[open] .faq__icon span + span {
  transform: rotate(0deg);
}

.faq__answer {
  padding: 0 var(--sp-4) var(--sp-6);
  color: hsl(35 30% 82%);
}

/* Ouverture en douceur (navigateurs récents ; ailleurs, ouverture instantanée) */
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 450ms var(--ease),
    content-visibility 450ms allow-discrete;
}

.faq__item[open]::details-content {
  block-size: auto;
}

@media (min-width: 64rem) {
  /* Titre aligné sur le bord gauche du contenu, comme les autres sections ; liste décalée à droite */
  .faq__inner {
    gap: var(--sp-12);
  }

  .faq__list {
    margin-inline-start: 30%;
  }
}

/* Contact --------------------------------------------------------------- */

.contact {
  background-color: var(--c-brun);
  color: var(--c-surface);
}

.contact a {
  color: var(--c-surface);
  text-decoration-color: var(--c-sauge-clair);
}

.contact a:hover {
  text-decoration-color: var(--c-sauge-clair);
}

.contact :focus-visible {
  outline-color: var(--c-sauge-clair);
}

.contact ::selection {
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
}

.contact__email {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
  margin-block: var(--sp-12);
}

.contact__email-link {
  font-family: var(--ff-titre);
  font-size: var(--fs-email);
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-underline-offset: 0.15em;
}

.contact__status {
  min-height: 1.65em;
  color: var(--c-sauge-clair);
  font-size: var(--fs-sm);
}

.contact__details {
  display: grid;
  gap: var(--sp-6);
  padding-block-start: var(--sp-8);
  border-block-start: 1px solid hsl(89 22% 70% / 0.35);
}

.contact__details dt {
  margin-block-end: var(--sp-1);
  color: var(--c-sauge-clair);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.contact__details dd {
  margin: 0;
}

/* inline-block et non flex : le libellé et la taille du fichier doivent rester dans le même flux de texte. */
.contact__details dd a {
  display: inline-block;
  padding-block: 0.6rem;
}

.contact__cvs {
  display: grid;
  gap: var(--sp-1);
}

.contact .link-download__meta {
  color: var(--c-sauge-clair);
}

@media (min-width: 48rem) {
  .contact__details {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-8);
  }
}

/* Contact : grand titre sur deux tons --------------------------------- */

.contact__title {
  max-width: 18ch;
  font-family: var(--ff-texte);
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.contact__title-muted {
  display: block;
  color: hsl(35 18% 64%);
}

/* Fenêtres modales des informations légales --------------------------- */

.legal-dialog {
  /* margin: auto rétablit le centrage natif, supprimé par le reset. */
  width: min(100% - 2rem, 52rem);
  margin: auto;
  max-height: min(88vh, 60rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  background-color: var(--c-surface);
  background-image: var(--grain);
  color: var(--c-brun);
  box-shadow: 0 40px 80px -30px hsl(21 42% 10% / 0.6);
}

.legal-dialog::backdrop {
  background-color: hsl(21 42% 10% / 0.6);
  backdrop-filter: blur(3px);
}

.legal-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 350ms var(--ease) both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.98);
  }
}

.legal-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-8);
  border-block-end: var(--border-deco);
}

.legal-dialog__title {
  font-size: var(--fs-h3);
}

.legal-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--target-min);
  height: var(--target-min);
  border: var(--border-action);
  border-radius: 3px;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}

.legal-dialog__close:hover {
  background-color: var(--c-brun);
  color: var(--c-surface);
}

.legal-dialog__body {
  padding: var(--sp-6) var(--sp-8) var(--sp-12);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.legal-dialog__part + .legal-dialog__part {
  margin-block-start: var(--sp-12);
  padding-block-start: var(--sp-8);
  border-block-start: var(--border-deco);
}

.legal-dialog__part-title {
  margin-block-end: var(--sp-2);
  font-size: var(--fs-h2);
}

.legal-dialog .legal__block h3,
.legal-dialog .legal__block h4 {
  margin-block: var(--sp-8) var(--sp-3);
  font-family: var(--ff-texte);
  font-size: var(--fs-lg);
  font-weight: 600;
}

/* Pages légales --------------------------------------------------------- */

.legal__back a,
.not-found__links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
}

.legal__title {
  margin-block-start: var(--sp-6);
  font-size: var(--fs-h2);
}

.legal__updated {
  margin-block-start: var(--sp-3);
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
}

.legal__intro {
  margin-block: var(--sp-6) var(--sp-12);
  font-size: var(--fs-lg);
}

.legal__block {
  padding-block: var(--sp-8);
  border-block-start: var(--border-deco);
}

.legal__block h2 {
  margin-block-end: var(--sp-4);
  font-size: var(--fs-h3);
}

.legal__block p + p,
.legal__block ul + p,
.legal__block p + ul {
  margin-block-start: var(--sp-3);
}

.legal__block ul {
  display: grid;
  gap: var(--sp-2);
  padding-inline-start: 1.25em;
}

.legal__block li::marker {
  color: var(--c-sauge-profond);
}

.legal__table {
  overflow-x: auto;
  margin-block: var(--sp-4);
}

.legal__table table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.legal__table th,
.legal__table td {
  padding: var(--sp-3);
  border-block-end: var(--border-deco);
  text-align: start;
  vertical-align: top;
}

.legal__table thead th {
  font-weight: 600;
}

.legal__table tbody th {
  font-weight: 500;
  white-space: nowrap;
}

/* Page 404 -------------------------------------------------------------- */

.not-found__inner {
  display: grid;
  gap: var(--sp-6);
  justify-items: start;
}

.not-found__text {
  font-size: var(--fs-lg);
}

.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--sp-6);
}

/* Bannière de consentement (Tarteaucitron) ------------------------------ */
/* Spécificité renforcée : la feuille de Tarteaucitron est injectée après celle-ci. */

html body #tarteaucitronRoot {
  font-family: var(--ff-texte);
}

html body #tarteaucitronRoot #tarteaucitronAlertBig {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: var(--sp-6) var(--gutter);
  white-space: normal;
  background-color: var(--c-brun);
  color: var(--c-surface);
  font-family: var(--ff-texte);
  font-size: var(--fs-sm);
  box-shadow: var(--sh-2);
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronDisclaimerAlert {
  color: var(--c-surface);
  font-family: var(--ff-texte);
  font-size: var(--fs-sm);
  line-height: var(--lh-texte);
}

/* « Tout accepter » et « Tout refuser » strictement identiques : aucun choix n'est mis en avant. */
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronPersonalize2,
html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronAllDenied2 {
  min-height: var(--target-min);
  padding: 0 var(--sp-6);
  background-color: var(--c-sauge-clair);
  color: var(--c-brun);
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--ff-texte);
  font-size: var(--fs-sm);
  font-weight: 500;
}

html body #tarteaucitronRoot #tarteaucitronAlertBig #tarteaucitronCloseAlert {
  min-height: var(--target-min);
  padding: 0 var(--sp-6);
  background-color: transparent;
  color: var(--c-surface);
  border: 1.5px solid var(--c-sauge-clair);
  border-radius: var(--r-pill);
  font-family: var(--ff-texte);
  font-size: var(--fs-sm);
}

html body #tarteaucitronRoot button:focus-visible,
html body #tarteaucitronRoot a:focus-visible {
  outline: 2px solid var(--c-sauge-clair);
  outline-offset: 3px;
}

/* ==========================================================================
   7. Utilitaires
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: absolute;
  inset-block-start: var(--sp-2);
  inset-inline-start: var(--sp-2);
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
  background-color: var(--c-brun);
  color: var(--c-surface);
  border-radius: var(--r-md);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  outline-color: var(--c-sauge-clair);
}

.link-button {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-brun-doux);
  text-underline-offset: 0.2em;
  text-align: start;
}

.link-button:hover {
  text-decoration-color: var(--c-sauge-profond);
  text-decoration-thickness: 2px;
}

/* Page figée derrière une fenêtre modale ouverte */
html:has(dialog[open]) {
  overflow: hidden;
}

.quote__word {
  white-space: nowrap;
}

/* ==========================================================================
   Retouches du §13 : changement de couleur, réalisations
   ========================================================================== */

/* Changement de couleur entre formation, compétences et avis (animations.js, D99) :
   les trois sections prennent ensemble la couleur de celle qui passe le milieu de l'écran. */
.has-tones [data-tone],
.has-tones [data-tone] :is(.credential, .credential__meta, .credential__text, .credential__year, .quote__caption, .quote__author, .bubbles__hint, .section-head__intro) {
  transition:
    background-color 1s ease,
    color 1s ease,
    border-color 1s ease;
}

.has-tones .competences.surface-brun .bubbles__hint {
  color: hsl(35 30% 78%);
}

.recommandation:not(.surface-brun) .quote__caption {
  color: var(--c-brun-doux);
}

.recommandation:not(.surface-brun) .quote__author {
  color: var(--c-brun);
}

.recommandation:not(.surface-brun) .quote__mark {
  color: var(--c-sauge-profond);
}

/* Réalisations : vitrine (modèle : breedlove.xyz, « Now showing ») ---- */

.realisations__head {
  display: grid;
  gap: var(--sp-6);
  margin-block-end: var(--sp-12);
}

.realisations__head h2 {
  max-width: 20ch;
}

.realisations__intro {
  max-width: 26rem;
  color: var(--c-brun-doux);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}

.showcase__stage {
  display: grid;
  gap: var(--sp-6);
}

.showcase__panel {
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  border-radius: 1.5rem;
  background-color: var(--plate-bg);
  background-image: var(--grain);
  color: var(--c-surface);
  box-shadow: 0 30px 70px -40px hsl(21 60% 4% / 0.85);
}

.showcase__copy {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: var(--sp-4);
  padding: var(--sp-8);
}

.showcase__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.showcase__code {
  margin-inline-end: var(--sp-2);
  color: var(--plate-accent);
}

.showcase__name {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.showcase__tagline {
  color: var(--plate-accent);
  font-family: var(--ff-titre);
  font-size: var(--fs-accroche-sm);
  font-style: italic;
  line-height: 1.25;
}

.showcase__text {
  max-width: 40ch;
  color: hsl(35 30% 88%);
}

.showcase__status {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Pastille d'état : fixe tant que les sites ne sont pas officiellement en ligne (§14) */
.showcase__dot {
  position: relative;
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--plate-accent);
}

.showcase__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--plate-accent);
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.showcase__actions {
  padding-block-start: var(--sp-2);
}

.btn--plate {
  --btn-fill: var(--plate-accent);
  background-color: var(--c-surface);
  color: var(--plate-bg);
}

.showcase__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Rail : bouton pause et onglets avec vignette et barre de progression */
.showcase__rail {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-block-start: var(--sp-4);
}

.showcase__rail[hidden] {
  display: none;
}

.showcase__toggle {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 3.25rem;
  min-height: var(--target-min);
  border: 1px solid hsl(21 42% 16% / 0.18);
  border-radius: 1rem;
  background-color: var(--c-surface);
  transition: border-color var(--dur-2) var(--ease);
}

.showcase__toggle:hover {
  border-color: var(--c-brun);
}

.showcase__toggle[hidden],
.showcase__icon-play,
.showcase.is-paused .showcase__icon-pause {
  display: none;
}

.showcase.is-paused .showcase__icon-play {
  display: block;
}

.showcase__tabs {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

.showcase__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-3);
  min-width: 0;
  padding: var(--sp-2) var(--sp-2) var(--sp-4);
  overflow: hidden;
  border: 1px solid hsl(21 42% 16% / 0.14);
  border-radius: 1rem;
  background-color: hsl(37 52% 95% / 0.6);
  text-align: start;
  transition:
    border-color var(--dur-2) var(--ease),
    background-color var(--dur-2) var(--ease);
}

.showcase__tab:hover,
.showcase__tab.is-active {
  border-color: hsl(21 42% 16% / 0.4);
  background-color: var(--c-surface);
}

.showcase__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: top center;
}

.showcase__tab-text {
  display: grid;
  min-width: 0;
}

.showcase__tab-name {
  overflow: hidden;
  font-family: var(--ff-titre);
  font-size: var(--fs-lg);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase__tab-role {
  overflow: hidden;
  color: var(--c-brun-doux);
  font-size: 0.8125rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase__progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background-color: hsl(21 42% 16% / 0.1);
}

.showcase__progress span {
  display: block;
  height: 100%;
  background-color: var(--c-sauge-profond);
  transform: scaleX(0);
  transform-origin: left center;
}

/* Avec JavaScript : un panneau à la fois, en fondu */
.showcase.is-ready .showcase__stage {
  gap: 0;
}

/* Le panneau qui arrive se fond par-dessus l'ancien, qui reste opaque jusqu'à la fin du fondu. */
.showcase.is-ready .showcase__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0s linear 750ms,
    visibility 0s linear 750ms;
}

.showcase.is-ready .showcase__panel.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 700ms var(--ease),
    visibility 0s;
}

.showcase.is-ready .showcase__panel .showcase__copy {
  opacity: 0;
  transition: opacity 500ms var(--ease);
}

.showcase.is-ready .showcase__panel.is-active .showcase__copy {
  opacity: 1;
  transition-delay: 250ms;
}

/* L'aperçu se rapproche lentement tant qu'il est affiché */
@keyframes showcase-zoom {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1);
  }
}

.has-motion .showcase.is-ready .showcase__panel.is-active .showcase__media img {
  animation: showcase-zoom 8s ease-out both;
}

@media (min-width: 48rem) {
  .showcase__rail {
    flex-direction: row;
    align-items: stretch;
  }

  .showcase__tab {
    flex-direction: row;
    align-items: center;
    padding: var(--sp-2) var(--sp-3) var(--sp-3);
  }

  .showcase__thumb {
    flex: none;
    width: 6rem;
  }
}

@media (min-width: 64rem) {
  .realisations__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .showcase__panel {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .showcase__copy {
    padding: var(--sp-12) var(--sp-8);
  }

  .showcase__media {
    aspect-ratio: auto;
    min-height: 30rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__dot::after {
    animation: none;
  }
}

/* Mobile et tablette : le rail est en bas de l'écran, le nom du pied de page doit rester visible au-dessus */
@media (max-width: 63.99rem) {
  .site-footer {
    padding-block-end: 4.5rem;
  }
}

/* Ligne du bas du pied de page calée sur les trois colonnes : gauche, centre, droite */
@media (min-width: 48rem) {
  .colophon__bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .colophon__bottom > :nth-child(2) {
    justify-self: center;
  }

  .colophon__bottom > :nth-child(3) {
    justify-self: end;
  }
}
