/* Base commune V2 : accueil, études de cas et pages annexes.
   Graphite, ivoire, un seul rouge. Barlow Condensed pour la voix, Bodoni
   Moda italique pour l'accent (écho à la carte d'invitation), Archivo pour
   le texte. Les états cachés du mouvement n'existent que sous .motion-ok. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Archivo;
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --fond: #151618;
  --fond-haut: #1c1d20;
  --fond-bas: #0f1012;
  --encre: #f2efe9;
  --encre-douce: #f2efe9b8;
  --muted: #9ea2a8;
  --ligne: #eee9e01c;
  --ligne-forte: #eee9e03d;
  --rouge: #c9181b;
  --bordeaux: #6b0f13;
  --cramoisi: #a51c30;
  --display: "Barlow Condensed", Archivo, sans-serif;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --texte: Archivo, system-ui, sans-serif;
  --largeur: 1360px;
  /* viewport-fit=cover : encoche et barre d'accueil entrent dans les marges.
     La gouttière s'élargit en paysage pour ne jamais passer sous l'encoche. */
  --zone-haut: env(safe-area-inset-top, 0px);
  --zone-bas: env(safe-area-inset-bottom, 0px);
  --gouttiere: max(
    clamp(20px, 4.4vw, 72px),
    env(safe-area-inset-left, 0px),
    env(safe-area-inset-right, 0px)
  );
  --header: calc(68px + var(--zone-haut));
  --section: clamp(96px, 12vw, 180px);
  --sortie: cubic-bezier(0.16, 1, 0.3, 1);
  --douce: cubic-bezier(0.65, 0, 0.35, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
@view-transition {
  navigation: auto;
}
html {
  background: var(--fond);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Le retour tactile est dessiné en :active, pas par le voile gris natif. */
  -webkit-tap-highlight-color: transparent;
}
/* Safari < 16 ignore overflow: clip ; hidden sur la racine seule garde
   position: sticky intact. */
@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}
/* Menu mobile ouvert : la page dessous ne défile plus (le dialog modal ne
   le garantit pas sur iOS). */
html.navigation-open {
  overflow: hidden;
}
html.lenis,
html.lenis body {
  height: auto;
}
/* Lenis seul pilote le défilement : le lissage natif s'y ajouterait et
   ferait saccader les sauts d'ancre, et la marge d'ancrage doublerait. */
html.lenis {
  scroll-behavior: auto !important;
  scroll-padding-top: 0;
}
.lenis.lenis-stopped {
  overflow: clip;
}
body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 100% 0%, #6b0f1324, transparent 62%),
    radial-gradient(90% 50% at 0% 100%, #6b0f1314, transparent 60%), var(--fond);
  color: var(--encre);
  font: 16px/1.6 var(--texte);
  font-variant-numeric: tabular-nums;
  /* Barlow n'existe qu'en 600 : jamais de faux gras ni de faux italique. */
  font-synthesis: none;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px;
}
::selection {
  background: var(--encre);
  color: var(--fond);
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 2px solid var(--encre);
  outline-offset: 4px;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.enveloppe {
  width: min(calc(100% - var(--gouttiere) * 2), var(--largeur));
  margin-inline: auto;
}
.saut {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  background: var(--encre);
  color: var(--fond);
  transform: translateY(-180%);
}
.saut:focus {
  transform: none;
}
main {
  overflow-x: clip;
}

/* Typographie commune */
.etiquette {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--texte);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.etiquette::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--rouge);
}
.section-tete {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 20px 48px;
  align-items: end;
}
.section-tete .etiquette {
  grid-column: 1 / -1;
}
.section-tete h2,
.atelier h2,
.methode h2,
.index h2 {
  font-family: var(--display);
  font-size: clamp(54px, 7.4vw, 124px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-tete h2 em,
.atelier h2 em,
.methode h2 em {
  display: block;
  margin-top: 0.06em;
  color: var(--encre-douce);
  font-size: 0.82em;
  line-height: 1;
}
.section-chapeau {
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* En-tête */
.entete {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  padding-top: var(--zone-haut);
  border-bottom: 1px solid transparent;
  transition:
    transform 560ms var(--sortie),
    background-color 300ms,
    border-color 300ms;
}
html.entete-pleine .entete {
  background: #141517d9;
  border-color: var(--ligne);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
html.entete-cachee .entete {
  transform: translate3d(0, -101%, 0);
}
.entete-ligne {
  display: flex;
  align-items: center;
  gap: 28px;
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.monogramme {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}
.menu {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 26px;
  font-size: 13px;
}
.menu > a:not(.bouton) {
  position: relative;
  padding-block: 6px;
  color: var(--encre-douce);
  transition: color 200ms;
}
.menu > a:not(.bouton)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--sortie);
}
@media (hover: hover) {
  .menu > a:not(.bouton):hover {
    color: var(--encre);
  }
  .menu > a:not(.bouton):hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.bouton {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Pastille d'action, la même partout : ni trait ni flèche. Au survol, une
   nappe monte du bas et inverse les couleurs ; au doigt, elle s'enfonce. */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  color: var(--encre);
  font-family: var(--texte);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 100%;
  transition:
    color 520ms var(--sortie),
    border-color 520ms var(--sortie),
    transform 320ms var(--sortie);
}
.cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--encre);
  transform: translateY(102%);
  transition: transform 640ms var(--sortie);
}
.cta--plein {
  border-color: var(--encre);
  background: var(--encre);
  color: var(--fond);
}
.cta--plein::before {
  background: var(--rouge);
}
.cta--petit {
  min-height: 38px;
  padding: 0 18px;
  font-size: 10.5px;
}
@media (hover: hover) {
  .cta:hover,
  a:hover .cta {
    border-color: var(--encre);
    color: var(--fond);
  }
  .cta--plein:hover {
    border-color: var(--rouge);
    color: var(--encre);
  }
  .cta:hover::before,
  a:hover .cta::before {
    transform: translateY(0);
  }
}
.cta:focus-visible {
  outline: 1px solid var(--encre);
  outline-offset: 4px;
}
.cta:active,
a:active .cta {
  transform: scale(0.97);
}
@media (pointer: coarse) {
  .cta,
  .cta--petit {
    min-height: 44px;
  }
}
.progression {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--rouge);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Menu mobile (construit par navigation.js) */
.navigation-toggle {
  display: none;
}
@media (max-width: 767px) {
  :root {
    --header: calc(60px + var(--zone-haut));
  }
  .navigation-ready .menu {
    display: none;
  }
  .navigation-ready .navigation-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-left: auto;
    margin-right: -8px;
    padding: 0 8px 0 18px;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
}
.navigation-icon {
  position: relative;
  width: 24px;
  height: 8px;
  border-block: 1px solid currentColor;
}
/* Plein écran, calé sur l'en-tête : « Fermer » prend la place de « Menu ».
   100dvh suit la barre d'adresse ; les zones sûres gardent encoche et
   barre d'accueil libres. */
.navigation-dialog {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: var(--zone-haut) var(--gouttiere) max(24px, var(--zone-bas));
  border: 0;
  background:
    radial-gradient(120% 50% at 100% 0%, #6b0f1330, transparent 62%),
    var(--fond);
  color: var(--encre);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.navigation-dialog[open] {
  display: flex;
  flex-direction: column;
}
.navigation-dialog::backdrop {
  background: #0008;
}
.navigation-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  border-bottom: 1px solid var(--ligne);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.navigation-top button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-right: -8px;
  padding: 0 8px 0 18px;
  border: 0;
  background: none;
  color: var(--encre);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.navigation-top button span {
  font-size: 22px;
  line-height: 1;
}
/* Les rubriques descendent vers le pouce ; le noir au-dessus fait le cadre. */
.navigation-dialog nav {
  display: grid;
  margin-block: auto 0;
  padding-top: clamp(16px, 4dvh, 44px);
}
.navigation-lien {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--display);
  /* « Certifications » tient sur une ligne jusqu'à 320 px. */
  font-size: clamp(40px, 13.4vw, 60px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  transition:
    color 200ms,
    transform 300ms var(--sortie);
}
.navigation-lien:active {
  color: var(--encre-douce);
  transform: translateX(4px);
}
.navigation-numero {
  flex: none;
  min-width: 2.4em;
  color: var(--rouge);
  font-family: var(--texte);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.navigation-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 28px;
}
.navigation-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: balance;
}
.navigation-langue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  color: var(--encre-douce);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    border-color 200ms,
    transform 200ms var(--sortie);
}
.navigation-langue:active {
  border-color: var(--encre);
  transform: scale(0.97);
}
/* Téléphone couché : deux colonnes, sinon le menu déborde de 375 px. */
@media (orientation: landscape) and (max-height: 500px) {
  .navigation-dialog nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    padding-top: 8px;
  }
  .navigation-lien {
    padding-block: 10px 8px;
    font-size: 32px;
  }
  .navigation-pied {
    padding-top: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .navigation-dialog[open] .navigation-lien,
  .navigation-dialog[open] .navigation-pied {
    animation: navigation-entree 720ms var(--sortie) backwards;
  }
  .navigation-dialog[open] .navigation-lien:nth-child(2) {
    animation-delay: 45ms;
  }
  .navigation-dialog[open] .navigation-lien:nth-child(3) {
    animation-delay: 90ms;
  }
  .navigation-dialog[open] .navigation-lien:nth-child(4) {
    animation-delay: 135ms;
  }
  .navigation-dialog[open] .navigation-lien:nth-child(5) {
    animation-delay: 180ms;
  }
  .navigation-dialog[open] .navigation-pied {
    animation-delay: 220ms;
  }
}
@keyframes navigation-entree {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* 8. Contact */
.contact {
  padding-block: var(--section) calc(var(--section) * 0.6);
  border-top: 1px solid var(--ligne);
}
.contact h2 {
  margin-top: 28px;
}
.contact-grand {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(64px, 11.2vw, 196px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  background: linear-gradient(var(--rouge), var(--rouge)) 0 100% / 0% 2px
    no-repeat;
  transition: background-size 900ms var(--sortie);
}
.contact-grand em {
  display: block;
  color: var(--encre-douce);
  font-size: 0.84em;
  line-height: 1.05;
}
.contact-grand:focus-visible {
  background-size: 100% 2px;
}
@media (hover: hover) {
  .contact-grand:hover {
    background-size: 100% 2px;
  }
}
.contact-bas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: end;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--ligne);
}
.contact-note {
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.copier {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 8px 0 22px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  background: none;
  font-size: 15px;
  transition:
    border-color 240ms,
    transform 200ms var(--sortie);
}
.copier-adresse {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (hover: hover) {
  .copier:hover {
    border-color: var(--encre);
  }
}
.copier-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--fond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-lien {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--ligne);
  border-radius: 999px;
  font-size: 14px;
  transition:
    border-color 240ms,
    transform 200ms var(--sortie);
}
@media (hover: hover) {
  .contact-lien:hover {
    border-color: var(--ligne-forte);
  }
}
/* Retour tactile : un léger enfoncement, rien de plus. */
.bouton:active,
.copier:active,
.contact-lien:active {
  transform: scale(0.97);
}
.copier:active,
.contact-lien:active {
  border-color: var(--encre);
}
.copier-retour {
  grid-column: 1 / -1;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* Pied */
.pied {
  padding-block: 28px calc(36px + var(--zone-bas));
  border-top: 1px solid var(--ligne);
  color: var(--muted);
  font-size: 12px;
}
.pied-ligne {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
@media (hover: hover) {
  .pied-ligne a:hover {
    color: var(--encre);
  }
}
.pied-ligne span:first-child {
  margin-right: auto;
}

@media (max-width: 767px) {
  .contact-bas {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Le mot le plus large (lettres de la finale élargies par la vague)
     tient dans la colonne, de 320 à 767 px. */
  .contact-grand {
    font-size: min(calc((100vw - var(--gouttiere) * 2) / 5.1), 96px);
  }

  .copier {
    width: 100%;
    justify-content: space-between;
    font-size: 14px;
  }

  /* WhatsApp et téléphone se partagent la ligne, à parts égales. */
  .contact-lien {
    flex: 1 1 auto;
    justify-content: center;
  }

  .copier-retour {
    text-align: left;
  }

  /* Pied en deux colonnes : identité à gauche, repères à droite. */
  .pied-ligne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    align-items: center;
  }

  .pied-ligne span:first-child {
    margin-right: 0;
  }

  /* Le nom sur sa ligne, puis les deux liens de part et d'autre. */
  .pied-ligne > :first-child {
    grid-column: 1 / -1;
  }

  .pied-ligne > :nth-child(2) {
    justify-self: start;
  }

  .pied-ligne > :nth-child(3) {
    justify-self: end;
    text-align: right;
  }
}
/* 320 px : l'adresse entière et « Copier » tiennent dans la pastille. */
@media (max-width: 380px) {
  .copier {
    gap: 8px;
    padding-left: 16px;
    font-size: 13px;
  }
  .copier-action {
    padding: 0 11px;
    letter-spacing: 0.06em;
  }
}

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

/* Transition native entre pages : la page quittée s'efface et recule à
   peine, la suivante arrive en fondu lent avec une montée de 10 px. Les deux
   se chevauchent : pas de flash entre elles. */
::view-transition-old(root) {
  animation: 560ms cubic-bezier(0.4, 0, 0.2, 1) both vt-sortie;
}
::view-transition-new(root) {
  animation: 900ms cubic-bezier(0.22, 1, 0.36, 1) 140ms both vt-entree;
}
@keyframes vt-sortie {
  to {
    opacity: 0;
    transform: scale(0.985);
  }
}
@keyframes vt-entree {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* Chapitre en cours, à côté de la marque */
.entete-chapitre {
  display: inline-flex;
  overflow: clip;
  margin-left: -10px;
  padding-left: 14px;
  border-left: 1px solid var(--ligne-forte);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.entete-chapitre span {
  display: block;
  min-width: 1px;
}
.entete-chapitre:has(span:empty) {
  border-left-color: transparent;
}
@media (max-width: 900px) {
  .entete-chapitre {
    display: none;
  }
}
/* Tablette : la marque et le menu tiennent chacun sur une ligne. */
@media (max-width: 1023px) {
  .marque {
    white-space: nowrap;
  }
}

/* Titre de projet partagé entre l'accueil et l'étude */
::view-transition-group(titre-projet) {
  animation-duration: 900ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
::view-transition-old(titre-projet),
::view-transition-new(titre-projet) {
  height: 100%;
  object-fit: contain;
  object-position: 0 50%;
}

/* Pages annexes : 404 et mentions légales */
.page-annexe main {
  padding-top: var(--header);
}
.annexe {
  padding-block: clamp(64px, 10vw, 140px) var(--section);
}
.annexe-texte h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 140px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.annexe-texte h1 em {
  display: block;
  color: var(--encre-douce);
  font-size: 0.82em;
}
.annexe-texte > p {
  max-width: 44ch;
  margin-top: 24px;
  color: var(--encre-douce);
  font-size: 16px;
  line-height: 1.7;
}
.annexe-texte > p a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-color: var(--ligne-forte);
  text-underline-offset: 3px;
}
.annexe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.annexe-actions .bouton {
  min-height: 52px;
  padding: 0 22px;
}
.erreur {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.erreur-numero {
  color: transparent;
  font-family: var(--display);
  font-size: clamp(160px, 26vw, 420px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1px var(--ligne-forte);
}
.mentions-texte {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  margin-top: clamp(48px, 6vw, 88px);
}
.mentions-texte > div {
  padding-block: 24px 28px;
  border-top: 1px solid var(--ligne);
}
.mentions-texte h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  text-transform: uppercase;
}
.mentions-texte p {
  color: var(--encre-douce);
  font-size: 15px;
  line-height: 1.75;
}
.mentions-texte a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-color: var(--ligne-forte);
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  .erreur,
  .mentions-texte {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Chiffres à rouleaux */
.roue {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  vertical-align: top;
}
.roue-piste {
  display: block;
}
.roue-piste span {
  display: block;
  height: 1em;
}

/* Signature géante en pied de page, qui s'encre à l'arrivée */
.pied-signature {
  --remplir: 100%;
  margin: 0 0 clamp(18px, 2.4vw, 32px);
  overflow: hidden;
  padding-top: clamp(32px, 5vw, 72px);
  padding-bottom: 0.04em;
  color: transparent;
  font-family: var(--display);
  font-size: calc((100vw - var(--gouttiere) * 2) / 5.24);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px var(--ligne-forte);
  background: linear-gradient(
      90deg,
      var(--encre) var(--remplir),
      transparent var(--remplir)
    )
    no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
html.motion-ok .pied-signature {
  --remplir: 0%;
}

/* Sélecteur de langue */
.menu .langue {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--ligne-forte);
  border-radius: 999px;
  color: var(--encre-douce);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.menu .langue::after {
  content: none;
}
@media (hover: hover) {
  .menu .langue:hover {
    border-color: var(--encre);
    color: var(--encre);
  }
}

/* Écrans tactiles : chaque cible fait au moins 44 px, sans toucher au
   dessin des écrans à souris. Placé en fin de fichier pour primer. */
@media (pointer: coarse) {
  .marque {
    min-height: 44px;
  }
  .pied-ligne a,
  .menu > a:not(.bouton) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .menu .langue {
    min-width: 44px;
    min-height: 44px;
  }
  .menu .bouton {
    min-height: 44px;
  }
  .menu .langue:active {
    border-color: var(--encre);
  }
}
