/* Portfolio de Théo Drussant
   Palette : papier, voile, encre, ardoise, filet, laiton.
   Typographies libres (SIL OFL 1.1), hébergées avec le site : Noto Serif Display (titres), Albert Sans (texte). */

@font-face {
  font-family: "Noto Serif Display";
  src: url("../fonts/noto-serif-display-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Albert Sans";
  src: url("../fonts/albert-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #fbfbf9;
  --voile: #f1f1ee;
  --encre: #16171a;
  --ardoise: #5e6066;
  --filet: #dcdcd6;
  --laiton: #80621a;

  --serif: "Noto Serif Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --marge: clamp(1.25rem, 5.5vw, 6rem);
  --largeur: 84rem;
  --gouttiere: clamp(1.25rem, 2.4vw, 2.5rem);
  --rythme: clamp(4.5rem, 8.5vw, 8rem);
  --mesure: 38rem;

  color-scheme: light;
}

/* Base */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.125rem;
  }
}

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

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 360;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: 0.42em;
}

/* Liens et focus */

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--encre) 45%, transparent);
  transition: text-decoration-color 160ms ease, text-decoration-thickness 160ms ease;
}

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

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

.evitement {
  position: absolute;
  left: var(--marge);
  top: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--papier);
  text-decoration: none;
  transform: translateY(-200%);
}

.evitement:focus {
  transform: none;
}

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

/* Gabarit */

.page {
  width: 100%;
  max-width: calc(var(--largeur) + 2 * var(--marge));
  margin-inline: auto;
  padding-inline: var(--marge);
}

.grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
}

/* En-tête */

.entete {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--filet);
}

.entete__nom {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
}

.entete__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.entete__nav a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.9375rem;
  text-decoration-color: transparent;
}

.entete__nav a:hover,
.entete__nav a[aria-current] {
  text-decoration-color: var(--laiton);
}

@media (max-width: 40rem) {
  .entete__nav ul {
    gap: 0.25rem 1rem;
  }

  .entete__nav a {
    font-size: 0.875rem;
  }
}

/* Ouverture (accueil) */

.ouverture {
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}

.ouverture__nom {
  grid-column: 1 / -1;
  font-weight: 300;
  font-size: clamp(3.4rem, 10.5vw, 9.25rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
}

.ouverture__nom span {
  display: block;
}

.ouverture__filet {
  grid-column: 1 / -1;
  height: 1px;
  margin-block: clamp(2.25rem, 5vw, 3.75rem);
  background: var(--encre);
  transform-origin: left center;
}

.ouverture__phrase {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.28;
  max-width: 26ch;
}

.ouverture__infos {
  grid-column: 9 / span 4;
  display: grid;
  gap: 1rem;
  align-content: start;
  padding-top: 0.45rem;
}

.ouverture__infos .lieu {
  color: var(--ardoise);
}

.ouverture__portrait {
  display: none;
}

/* Emplacement de portrait : dans index.html, décommenter la figure .ouverture__portrait
   et ajouter la classe ouverture--portrait sur la section .ouverture pour l'afficher. */
.ouverture--portrait .ouverture__nom {
  grid-column: 1 / span 8;
}

.ouverture--portrait .ouverture__portrait {
  display: block;
  grid-column: 10 / span 3;
  grid-row: 1 / span 2;
  align-self: end;
}

.ouverture--portrait .ouverture__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
}

@media (max-width: 56rem) {
  .ouverture__phrase,
  .ouverture__infos {
    grid-column: 1 / -1;
  }

  .ouverture__infos {
    margin-top: 2rem;
    padding-top: 0;
  }

  .ouverture--portrait .ouverture__nom {
    grid-column: 1 / -1;
  }

  .ouverture--portrait .ouverture__portrait {
    grid-column: 1 / span 6;
    grid-row: auto;
    margin-bottom: 2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ouverture__nom span {
    animation: monter 900ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
  }

  .ouverture__nom span + span {
    animation-delay: 110ms;
  }

  .ouverture__filet {
    animation: tracer 1100ms 260ms cubic-bezier(0.3, 0.7, 0.1, 1) both;
  }

  .ouverture__phrase,
  .ouverture__infos {
    animation: apparaitre 700ms 520ms ease-out both;
  }
}

@keyframes monter {
  from {
    opacity: 0;
    transform: translateY(0.18em);
  }
}

@keyframes tracer {
  from {
    transform: scaleX(0);
  }
}

@keyframes apparaitre {
  from {
    opacity: 0;
  }
}

/* Sections */

.section {
  padding-bottom: var(--rythme);
}

/* Filet de section tracé dans les marges de la page, comme celui de l'en-tête */
.section > .page::before {
  content: "";
  display: block;
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: var(--rythme);
  background: var(--filet);
}

.section__titre {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 330;
}

.section__intro {
  max-width: var(--mesure);
  margin-top: 1.25rem;
  color: var(--ardoise);
}

/* Sommaire des réalisations */

.sommaire__liste {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--encre);
}

.sommaire__liste li {
  border-bottom: 1px solid var(--filet);
}

.sommaire__lien {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  align-items: baseline;
  padding-block: 1.15rem;
  text-decoration: none;
}

.sommaire__nom {
  grid-column: 1 / span 4;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 380;
  line-height: 1.2;
  text-decoration: underline 1px transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 160ms ease;
}

.sommaire__quoi {
  grid-column: 5 / span 5;
}

.sommaire__quand {
  grid-column: 10 / span 3;
  color: var(--ardoise);
  font-size: 0.9375rem;
  text-align: right;
}

.sommaire__lien:hover .sommaire__nom {
  text-decoration-color: var(--laiton);
}

@media (max-width: 48rem) {
  .sommaire__lien {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .sommaire__nom,
  .sommaire__quoi,
  .sommaire__quand {
    grid-column: 1;
    text-align: left;
  }
}

/* Projet (accueil) */

.projet {
  row-gap: 2.5rem;
}

.projet__cartel {
  grid-column: 1 / span 4;
  align-self: start;
}

@media (min-width: 56rem) {
  .projet__cartel {
    position: sticky;
    top: 2.5rem;
  }
}

.projet__corps {
  grid-column: 6 / span 7;
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem);
  align-content: start;
}

.projet__titre {
  font-size: clamp(2.4rem, 4.8vw, 3.9rem);
  font-weight: 320;
  line-height: 1.04;
}

.faits {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.faits dt {
  color: var(--ardoise);
}

.faits dd {
  margin: 0.1rem 0 0;
}

.liens {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9375rem;
}

.liens a {
  display: inline-block;
  padding-block: 0.15rem;
}

.liens .liens__principal {
  font-weight: 600;
}

.chapeau {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 350;
  line-height: 1.38;
  max-width: 34ch;
}

.texte {
  max-width: var(--mesure);
}

.texte > * + * {
  margin-top: 1em;
}

.note {
  max-width: var(--mesure);
  color: var(--ardoise);
  font-size: 0.9375rem;
}

.resultat {
  max-width: var(--mesure);
  padding-top: 1.25rem;
  border-top: 1px solid var(--encre);
}

.resultat strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 380;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.4rem;
}

@media (max-width: 56rem) {
  .projet__cartel,
  .projet__corps {
    grid-column: 1 / -1;
  }
}

/* Chaîne d'étapes (séquences réelles : Revalio, Impulsion Locale) */

.chaine {
  display: grid;
  grid-template-columns: repeat(var(--etapes, 4), minmax(0, 1fr));
  counter-reset: etape;
}

.chaine__etape {
  position: relative;
  padding: 1.35rem 1.1rem 0 0;
  counter-increment: etape;
  border-top: 1px solid var(--encre);
}

.chaine__etape::before {
  content: counter(etape);
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--laiton);
  font-variant-numeric: lining-nums;
}

.chaine__etape h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 0.45rem;
}

.chaine__etape p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Revalio : la chaîne se lit comme une bande prédécoupée, en écho à la bande détachable du bon d'expédition. */
.chaine--perforee .chaine__etape {
  border-top: 0;
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--laiton) 1.1px, transparent 1.4px);
  background-size: 7px 3px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.chaine__etape + .chaine__etape {
  padding-left: 1.1rem;
  border-left: 1px solid var(--filet);
}

@media (max-width: 40rem) {
  .chaine {
    grid-template-columns: 1fr;
  }

  .chaine__etape,
  .chaine__etape + .chaine__etape {
    padding: 1.1rem 0 1.25rem;
    border-left: 0;
  }
}

/* Preuves : figures et cartels */

.preuves {
  display: grid;
  grid-template-columns: repeat(var(--colonnes, 2), minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.preuves--une {
  --colonnes: 1;
}

.preuves--large {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.preuves--telephone {
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr);
}

@media (max-width: 40rem) {
  .preuves {
    grid-template-columns: 1fr;
  }
}

.preuve__cadre {
  background: var(--voile);
  padding: clamp(0.75rem, 1.8vw, 1.5rem);
}

.preuve__cadre img {
  width: 100%;
  border: 1px solid var(--filet);
  background: #fff;
}

.preuve--telephone .preuve__cadre img,
.preuve--portrait .preuve__cadre img {
  max-width: 17rem;
  margin-inline: auto;
}

@media (max-width: 40rem) {
  .preuve--telephone .preuve__cadre img {
    max-width: 13rem;
  }
}

/* Document montré à taille de lecture (bon d'expédition fictif) */
.preuve--document .preuve__cadre img {
  max-width: 26rem;
  margin-inline: auto;
}

.preuve figcaption {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ardoise);
  max-width: 44ch;
}

.preuve__titre {
  display: block;
  color: var(--encre);
}

/* Schéma EpsiMaths */

.schema {
  background: var(--voile);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.schema__question {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 380;
}

.schema__question span {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ardoise);
  margin-bottom: 0.3rem;
}

.schema__etapes {
  counter-reset: etape;
  margin-top: 1.25rem;
  display: grid;
  gap: 0;
}

.schema__etapes li {
  counter-increment: etape;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0 0.75rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--filet);
}

.schema__etapes li::before {
  content: counter(etape);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--laiton);
}

.schema__etapes strong {
  display: block;
  font-weight: 600;
}

.schema__etapes p {
  font-size: 0.9375rem;
  color: var(--ardoise);
}

.schema__appui {
  margin-top: 0.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--encre);
  font-size: 0.9375rem;
}

/* Pièces reconstituées (TwazStudio) */

.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.pieces__une {
  grid-column: 1 / -1;
}

/* Les planches ont leur propre fond : pas de passe-partout autour. */
.pieces .preuve__cadre {
  padding: 0;
  background: none;
}

@media (max-width: 40rem) {
  .pieces {
    grid-template-columns: 1fr;
  }
}

.mention {
  max-width: var(--mesure);
  padding-left: 1rem;
  border-left: 1px solid var(--laiton);
  font-size: 0.9375rem;
}

/* Premier mois */

.mois {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gouttiere);
  border-top: 1px solid var(--encre);
}

.mois__point {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0rem, 2vw, 2rem) clamp(1.75rem, 3vw, 2.75rem) 0;
  border-bottom: 1px solid var(--filet);
}

.mois__point h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  font-weight: 360;
  margin-bottom: 0.75rem;
}

.mois__point p {
  max-width: 36rem;
}

.mois__preuve {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--ardoise);
}

@media (max-width: 48rem) {
  .mois {
    grid-template-columns: 1fr;
  }
}

/* Parcours */

.parcours {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  row-gap: 3rem;
}

.parcours__bloc {
  grid-column: span 6;
}

.parcours__bloc h3 {
  font-size: 1.5rem;
  font-weight: 380;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--encre);
}

.parcours__ligne {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.25rem 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--filet);
}

.parcours__date {
  color: var(--ardoise);
  font-size: 0.9375rem;
  padding-top: 0.1rem;
}

.parcours__quoi {
  font-weight: 600;
}

.parcours__detail {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--ardoise);
}

.parcours__autres {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.5rem;
  max-width: 48rem;
  font-size: 0.9375rem;
}

@media (max-width: 56rem) {
  .parcours__bloc {
    grid-column: 1 / -1;
  }
}

@media (max-width: 30rem) {
  .parcours__ligne {
    grid-template-columns: 1fr;
  }

  .parcours__detail {
    grid-column: 1;
  }
}

/* Contact */

.contact__adresse {
  display: inline-block;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(1.6rem, 5.2vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.contact__texte {
  margin-top: 1.5rem;
  max-width: var(--mesure);
}

.contact__detail {
  margin-top: 1rem;
  max-width: var(--mesure);
  color: var(--ardoise);
  font-size: 0.9375rem;
}

/* Pied de page */

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--filet);
  font-size: 0.875rem;
  color: var(--ardoise);
}

.pied ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Études de cas */

.fil {
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--ardoise);
}

.fil ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.fil li + li::before {
  content: "/";
  margin-inline: 0.5rem 0.4rem;
  color: var(--ardoise);
}

.etude__tete {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.etude__titre {
  grid-column: 1 / -1;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.015em;
}

.etude__chapeau {
  grid-column: 1 / span 8;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.32;
  max-width: 34ch;
}

.etude__faits {
  grid-column: 1 / -1;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem var(--gouttiere);
  padding-top: 1.25rem;
  border-top: 1px solid var(--encre);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.etude__faits dt {
  color: var(--ardoise);
  margin-bottom: 0.2rem;
}

@media (max-width: 56rem) {
  .etude__chapeau {
    grid-column: 1 / -1;
  }

  .etude__faits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 30rem) {
  .etude__faits {
    grid-template-columns: 1fr;
  }
}

.etude__corps {
  padding-bottom: var(--rythme);
  border-top: 1px solid var(--filet);
}

.sommaire-local {
  grid-column: 1 / span 3;
  align-self: start;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.9375rem;
}

.sommaire-local h2 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ardoise);
  margin-bottom: 0.75rem;
}

.sommaire-local ol {
  display: grid;
  gap: 0.15rem;
}

.sommaire-local a {
  display: inline-block;
  padding-block: 0.2rem;
  text-decoration-color: transparent;
}

.sommaire-local a:hover {
  text-decoration-color: var(--laiton);
}

@media (min-width: 64rem) {
  .sommaire-local {
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
  }
}

.etude__sections {
  grid-column: 5 / span 8;
}

@media (max-width: 64rem) {
  .sommaire-local,
  .etude__sections {
    grid-column: 1 / -1;
  }

  .sommaire-local {
    padding-bottom: 0.5rem;
  }
}

.bloc {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.bloc + .bloc {
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.bloc > h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 340;
  margin-bottom: 1.25rem;
}

.bloc > h3,
.sous-bloc > h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 380;
  margin-bottom: 0.75rem;
}

.bloc > * + .preuves,
.bloc > * + .preuve,
.bloc > * + .chaine,
.bloc > * + .schema,
.bloc > * + figure,
.bloc > * + .roles,
.bloc > * + .liste,
.sous-bloc > * + .preuves,
.sous-bloc > * + .preuve {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.sous-bloc {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--filet);
}

.etape-detaillee {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--laiton) 1.1px, transparent 1.4px);
  background-size: 7px 3px;
  background-repeat: repeat-x;
}

.etape-detaillee h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 380;
  margin-bottom: 0.75rem;
}

.etape-detaillee h3 .num {
  display: inline-block;
  min-width: 1.6rem;
  color: var(--laiton);
}

.etape-detaillee > * + * {
  margin-top: 1rem;
}

.etape-detaillee > * + .preuves,
.etape-detaillee > * + .preuve {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.roles {
  display: grid;
  gap: 0;
  max-width: 44rem;
  border-top: 1px solid var(--encre);
}

.roles > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.25rem 1.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--filet);
}

.roles dt {
  font-weight: 600;
}

@media (max-width: 30rem) {
  .roles > div {
    grid-template-columns: 1fr;
  }
}

.liste {
  max-width: var(--mesure);
  display: grid;
  gap: 0.6rem;
}

.liste li {
  position: relative;
  padding-left: 1.25rem;
}

.liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.55rem;
  height: 1px;
  background: var(--encre);
}

.suite {
  border-top: 1px solid var(--filet);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.suite__lien {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 320;
  line-height: 1.1;
}

.suite__libelle {
  color: var(--ardoise);
  font-size: 0.9375rem;
}

.citation {
  margin: 0;
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  font-weight: 340;
  line-height: 1.36;
}

.resultat + .note,
.citation + .note {
  margin-top: 1rem;
}

/* Mentions légales et 404 */

.simple {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--rythme);
}

.simple h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
}

.simple h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 380;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filet);
}

.simple .texte {
  margin-top: 1rem;
}

.simple .intro {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  max-width: 34ch;
}

.simple .liste {
  margin-top: 1.75rem;
}

.simple .note {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

/* Impression */

@media print {
  :root {
    --papier: #fff;
    --voile: #fff;
  }

  body {
    font-size: 10.5pt;
  }

  .entete__nav,
  .evitement,
  .sommaire-local,
  .suite {
    display: none;
  }

  .section,
  .etude__corps {
    padding-block: 1.5rem;
  }

  .preuve,
  .mois__point,
  .parcours__ligne,
  .chaine__etape {
    break-inside: avoid;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: var(--ardoise);
  }
}

.chaine--trois {
  --etapes: 3;
}

.section > .projet::before {
  margin-bottom: calc(var(--rythme) - 2.5rem);
}
