/* =========================================================================
   Le Campus — candidature de Baptiste Gourgouillon
   Responsable Communication f/h, Campus d'Orléans, Parfums Christian Dior

   SOCLE UNIQUE. Une seule feuille de style pour les cinq univers publiés.
   Aucune reproduction d'identité de marque : ni logotype, ni monogramme,
   ni cannage, ni les fontes maison (AtacamaVF, Hellix). Ce qui est repris
   ici relève du registre — fond clair, sérif de titre en graisse légère et
   centré, sans-sérif gris en labeur, blanc très généreux — et non de la
   marque elle-même.
   ========================================================================= */

/* ---- 1. Fontes ---------------------------------------------------------- */

@font-face {
  font-family: 'Brygada';
  src: url('./assets/fonts/Brygada1918-Variable-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Brygada';
  src: url('./assets/fonts/Brygada1918-Italic-Variable-latin.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('./assets/fonts/Montserrat-Variable-latin.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---- 2. Jetons ---------------------------------------------------------- */

:root {
  --ground: #f8f8f8;
  --white: #ffffff;
  --ink: #33383c;
  --body: #5a6165;
  /* Adaptation accessible du gris Dior observé #7B8487 : contraste AA
     conservé jusque sur le fond sable (#F0ECE6). */
  --muted: #646c70;
  --line: #e4e4e4;
  --line-soft: #eeeeee;
  --sand: #d8d2c8;
  --sand-pale: #f0ece6;

  --serif: 'Brygada', Georgia, 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* --measure est la largeur du TEXTE, pas celle de la boîte : .colonne y
     rajoute les gouttières, sinon la marge intérieure mange 112 px et la
     ligne retombe à une soixantaine de signes. Cible : 70 à 75 signes. */
  --measure: 44rem;

  /* La page doit grandir avec l'écran. Figée à 72rem, elle n'occupait que
     26 % d'une fenêtre de 2 544 px : en-tête comprimé au centre, grilles
     minuscules, immense vide de part et d'autre — la page se lisait comme
     une maquette de téléphone posée au milieu du bureau. */
  --page: min(94rem, 100%);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --step: 1.5rem;
  --rythme: clamp(3.5rem, 9vw, 7rem);   /* respiration entre sections */
}

/* ---- 3. Réinitialisation ------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scrollbar-gutter: stable;   /* évite le saut de mise en page au chargement */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  /* Le corps grandit avec la fenêtre : 17 px sur portable, 18,5 px au-delà
     de 1400 px. Sans cela, le texte paraît minuscule sur un grand écran. */
  font-size: clamp(1.0625rem, 0.98rem + 0.28vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- 4. Titres ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.25; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.35; }

/* Sur-titre : le seul endroit où l'on emploie la capitale et la sans-sérif */
.surtitre {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--ink); }

/* ---- 5. Trames ---------------------------------------------------------- */

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Colonne de lecture. On ajoute les gouttières à la mesure : sans cela la
   marge intérieure héritée de .page les prélève sur le texte lui-même. */
.colonne {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
}

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

.section--blanc { background: var(--white); }
.section--sable { background: var(--sand-pale); }

/* L'atelier est travaillé comme une feuille unique : aucun changement de
   fond ne vient interrompre le passage du blanc au dessin. */
.page-atelier,
.page-atelier .section--blanc,
.page-atelier .section--sable,
.page-atelier .ouverture,
.page-atelier .illustration,
.page-atelier .croquis,
.page-atelier .suite,
.page-atelier .pied {
  background: #fff;
}

.section-tete {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}
.section-tete p {
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Filet fin, employé seul comme séparateur */
.filet {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: var(--rythme);
}

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

.entete {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 40;
}

.entete-inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 1.125rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.entete-marque {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.entete-marque span {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.75rem;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}
.nav a {
  font-size: 0.78125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---- 7. Ouverture de page ----------------------------------------------- */

.ouverture {
  background: var(--white);
  text-align: center;
  padding-block: clamp(4rem, 11vw, 8.5rem);
  border-bottom: 1px solid var(--line-soft);
}
.ouverture .chapeau {
  max-width: 36rem;
  margin: 2rem auto 0;
  color: var(--muted);
  font-size: 1.0625rem;
}
.ouverture .mention {
  margin-top: 2.5rem;
  font-size: 0.78125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- 8. Cartes des espaces ---------------------------------------------- */

/* Bordure portée par chaque carte, jamais par la grille : une rangée
   incomplète ne laisse alors aucune cellule grise derrière elle. */
.espaces {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 1.25rem;
}

.espace {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s, border-color 0.25s;
}
.espace:hover { border-color: var(--sand); }
.espace:hover { background: var(--sand-pale); }

.espace-num {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.espace-titre {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  line-height: 1.2;
}
.espace-texte {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}
.espace-lire {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 0.5rem;
}

/* ---- 9. Chiffres -------------------------------------------------------- */

.chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  text-align: center;
}
.chiffre-valeur {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.chiffre-valeur sup {
  font-size: 0.4em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 0.1em;
}
.chiffre-libelle {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- 10. Citation ------------------------------------------------------- */

.citation {
  margin: 0;
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.citation p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  letter-spacing: -0.01em;
}
.citation footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- 11. Lecture du poste : mission en regard --------------------------- */

.regards { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }

.regard {
  background: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem);
}

.regard-annonce blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
}
.regard-annonce .source {
  display: block;
  margin-top: 0.875rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.regard-preuve p { font-size: 0.9375rem; line-height: 1.7; }
.regard-preuve .surtitre { margin-bottom: 0.75rem; }

/* ---- 12. Dépliables ----------------------------------------------------- */

.depliable {
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: -1px;
}
.depliable > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
}
.depliable > summary::-webkit-details-marker { display: none; }
.depliable > summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--muted);
  flex-shrink: 0;
}
.depliable[open] > summary::after { content: '–'; }
.depliable > summary:hover { background: var(--sand-pale); }

.depliable-corps {
  padding: 0 clamp(1.25rem, 3vw, 2rem) 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.depliable-corps ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.depliable-corps li { margin-bottom: 0.5rem; }

.depliable-corps .outillage {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.depliable-corps .outillage strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---- 13. Fiches projet -------------------------------------------------- */

.fiches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1.25rem;
}
.fiche {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.fiche h3 { font-size: 1.25rem; }
.fiche p { font-size: 0.9375rem; line-height: 1.7; margin: 0; }
.fiche .meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.fiches--duo {
  max-width: 68rem;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.projet-lien a {
  color: var(--ink);
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

@media (max-width: 42rem) {
  .fiches--duo { grid-template-columns: minmax(0, 1fr); }
}

/* Les créations numériques de l’Atelier sont montrées comme des plans de
   travail, pas comme des produits finis surchargés. Chaque wireframe traduit
   la logique réelle de l’outil avec un vocabulaire commun de filets. */
.fiches--outils {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cinq créations personnelles : trois cartes puis deux cartes centrées.
   Sept créations professionnelles : la dernière referme seule la grille. */
.fiches--personnelles {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fiches--personnelles > .fiche { grid-column: span 2; }
.fiches--personnelles > .fiche:nth-last-child(2) { grid-column: 2 / span 2; }
.fiches--professionnelles > .fiche:last-child { grid-column: 2; }

.fiche--outil {
  transition: border-color .35s ease, transform .35s ease;
}

.outil-wireframe {
  margin: -.25rem 0 .75rem;
  aspect-ratio: 36 / 17;
}

.outil-wireframe svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.outil-wireframe :is(line, rect, circle, polyline, path) {
  vector-effect: non-scaling-stroke;
  transition: stroke .35s ease, fill .35s ease;
}

.wf-paper,
.wf-line,
.wf-quiet,
.wf-strong,
.wf-accent,
.wf-dash,
.wf-accent-box {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wf-paper { fill: #fdfcfb; stroke: #d9d7d3; stroke-width: 1; }
.wf-line { stroke: #c8c7c4; stroke-width: .9; }
.wf-quiet { stroke: #e8e6e2; stroke-width: .8; }
.wf-strong { stroke: #777d80; stroke-width: 1.1; }
.wf-accent { stroke: #b9afa1; stroke-width: 1.25; }
.wf-dash { stroke: #aaa6a0; stroke-width: 1; stroke-dasharray: 4 4; }
.wf-fill { fill: #f2f0ec; stroke: #d3d0cb; stroke-width: .8; }
.wf-dot { fill: #fff; stroke: #8a8f91; stroke-width: 1; }
.wf-accent-box { fill: #f5f1eb; stroke: #b9afa1; stroke-width: 1.1; }

@media (hover: hover) {
  .fiche--outil:hover { border-color: #cbc8c2; transform: translateY(-2px); }
  .fiche--outil:hover .wf-strong { stroke: var(--ink); }
  .fiche--outil:hover .wf-accent,
  .fiche--outil:hover .wf-accent-box { stroke: #918474; }
}

@media (max-width: 68rem) {
  .fiches--outils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiches--personnelles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiches--personnelles > .fiche,
  .fiches--personnelles > .fiche:nth-last-child(2),
  .fiches--professionnelles > .fiche:last-child { grid-column: auto; }
}

@media (max-width: 42rem) {
  .fiches--outils { grid-template-columns: minmax(0, 1fr); }
}

.note-confidentialite {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Citation source, reprise mot pour mot — anglais compris, puisque le rapport
   est publié dans cette langue. Signalée par le filet et la sérif italique. */
.verbatim {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
  border-left: 2px solid var(--sand);
  padding-left: 1rem;
  margin: 0;
}

/* ---- 14. Parcours : folios professionnels ------------------------------
   Chaque création se lit dans le même ordre : objet, représentation,
   preuves, rôle. Le dessin n'imite pas l'interface livrée ; il rend visible
   sa nature sans exposer de contenu appartenant aux employeurs.
   ------------------------------------------------------------------------- */

.projets-pro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.projet-pro {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

.projet-pro-meta {
  margin: 0 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.projet-pro-entete h3 {
  max-width: 30rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.projet-pro-role {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.projet-pro-plan {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
}

.projet-pro-plan svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fdfcfb;
}

.projet-pro-plan :is(line, rect, circle, polyline, path) {
  vector-effect: non-scaling-stroke;
}

.projet-pro-plan figcaption {
  padding: 0.75rem 0 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.projet-pro-preuves {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
  border-block: 1px solid var(--line);
}

.projet-pro-preuves p {
  min-width: 0;
  margin: 0;
  padding: 1.125rem clamp(0.625rem, 1.5vw, 1rem);
  border-left: 1px solid var(--line-soft);
}

.projet-pro-preuves p:first-child {
  padding-left: 0;
  border-left: 0;
}

.projet-pro-preuves strong,
.projet-pro-preuves span {
  display: block;
}

.projet-pro-preuves strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}

.projet-pro-preuves span {
  margin-top: 0.5rem;
  font-size: 0.625rem;
  line-height: 1.45;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--muted);
}

.projet-pro-fonction {
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.projet-pro-detail {
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
}

.projet-pro-detail > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

.projet-pro-detail > summary::-webkit-details-marker { display: none; }

.projet-pro-detail > summary::after {
  content: '+';
  margin-left: auto;
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.projet-pro-detail[open] > summary::after { content: '–'; }

.projet-pro-detail > div {
  padding-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.projet-pro-detail > div p { margin-bottom: 0.75rem; }

@media (hover: hover) {
  .projet-pro { transition: border-color .3s ease; }
  .projet-pro:hover { border-color: #c9c4bc; }
  .projet-pro-detail > summary:hover { color: var(--body); }
}

@media (max-width: 68rem) {
  .projets-pro { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 32rem) {
  .projet-pro-meta { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .projet-pro-preuves { grid-template-columns: minmax(0, 1fr); }
  .projet-pro-preuves p,
  .projet-pro-preuves p:first-child {
    padding: 0.875rem 0;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }
  .projet-pro-preuves p:first-child { border-top: 0; }
}

/* ---- 14 bis. Croquis ----------------------------------------------------
   Une seule respiration illustrée par univers. Le papier du dessin reste
   visible : aucune bordure, aucun filtre ni effet décoratif ne vient
   transformer le croquis en bannière publicitaire.
   ------------------------------------------------------------------------- */

.illustration {
  background: var(--white);
  padding-block: clamp(1.75rem, 4.5vw, 3.75rem);
}

.croquis {
  margin: 0;
  overflow: hidden;
  background: #f7f3eb;
}

.croquis--bande { aspect-ratio: 21 / 9; }

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

/* ---- 15. Bouton --------------------------------------------------------- */

.bouton {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.9375rem 2rem;
  transition: background 0.2s, color 0.2s;
}
.bouton:hover { background: var(--ink); color: var(--white); }

.bouton-rangee {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ---- 16. Suite ---------------------------------------------------------- */

.suite {
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.suite .surtitre { margin-bottom: 0.75rem; }
.suite h2 { margin-bottom: 1.5rem; }

/* ---- 17. Pied de page --------------------------------------------------- */

.pied {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.875rem;
}
.pied-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.pied h3 { font-size: 1.125rem; margin-bottom: 1rem; }
.pied h4 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 0.625rem; }
.pied a { color: var(--body); text-decoration: none; }
.pied a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.pied-bas {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

/* La mention légale n'est pas une formalité : elle neutralise l'argument de
   confusion, le seul qui compte en droit des marques. Elle reste lisible. */
.mention-legale {
  max-width: var(--page);
  margin: 1.5rem auto 0;
  padding-inline: var(--gutter);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---- 18. Points de rupture ---------------------------------------------- */

@media (max-width: 46rem) {
  .regard { grid-template-columns: minmax(0, 1fr); }
  .entete { position: static; }
  .entete-inner { flex-direction: column; align-items: flex-start; gap: 0.875rem; }
  .croquis--bande { aspect-ratio: 16 / 9; }
}

@media (max-width: 24rem) {
  .entete-marque span {
    display: block;
    margin: 0.25rem 0 0;
  }
  .nav { column-gap: 1rem; row-gap: 0.5rem; }
  .bouton { width: 100%; padding-inline: 1rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---- 19. Impression ----------------------------------------------------- */

@media print {
  .entete, .suite, .espaces { display: none; }
  body { background: #fff; font-size: 10.5pt; }
  .section { padding-block: 1.5rem; }
  .depliable { border: 0; }
  .depliable-corps { display: block !important; }
}

/* ---- 20. Tracé des croquis (ajouté le 5 août 2026) ----------------------
   Les croquis sont du graphite texturé en bitmap : un tracé chemin par
   chemin (DrawSVG) est impossible sans versions vectorielles. On obtient
   la naissance du dessin par un masque en dégradé qui balaye l'image,
   bord adouci, légèrement incliné pour éviter l'effet de store.
   L'avancement est piloté par GSAP au défilement — voir js/site.js.
   Comparatif des trois procédés : /comparatif-animation/ (hors dossier).
   ------------------------------------------------------------------------ */

@property --trace {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;      /* 100% = dessin entier : sans JS, rien n'est masqué */
}

.croquis--trace img {
  --trace: 0%;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 var(--trace),
            rgba(0, 0, 0, .18) calc(var(--trace) + 7%), transparent calc(var(--trace) + 16%));
          mask-image: linear-gradient(100deg, #000 0%, #000 var(--trace),
            rgba(0, 0, 0, .18) calc(var(--trace) + 7%), transparent calc(var(--trace) + 16%));
}

@media (prefers-reduced-motion: reduce) {
  .croquis--trace img { --trace: 116%; }
}

/* Croquis révélé par shader WebGL. Le canevas se superpose à l'image, qui
   reste dans le document — opacité nulle et non `visibility`, afin que son
   texte de remplacement demeure dans l'arbre d'accessibilité. */
.croquis--webgl { position: relative; }
.croquis--webgl img { opacity: 0; }
.croquis--preparation { position: relative; }
.croquis--preparation img { opacity: 0; }
.croquis--webgl canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Le canvas est un atelier, jamais l'œuvre finale. Une fois son dernier
   pixel devenu identique au bitmap source, l'image statique prend sa place.
   Aucune transition d'opacité : deux couches semi-transparentes trahiraient
   la passation par un éclaircissement du papier. */
.croquis--webgl.croquis--resolu img { opacity: 1; }
.croquis--webgl.croquis--resolu canvas { opacity: 0; }

/* ---- 21. Croquis dans le fil d’un chapitre -----------------------------
   Une illustration placée entre deux paragraphes conserve la même quantité
   d’air avant et après. La marge appartient au récit ; le dessin lui-même
   reste sans cadre ni padding décoratif. */

.croquis--dans-texte {
  margin-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* ---- 22. Captures de projets personnels ---------------------------------
   Les croquis illustrent, les captures prouvent. Ce sont des images de mon
   propre travail — donc légitimes ici, contrairement aux photographies du
   rapport, qui sont créditées et protégées. Traitement conforme au système :
   un filet fin pour seul cadre, aucune ombre, aucune couleur ajoutée. */

.capture {
  margin: 1.5rem 0 0;
  border: 1px solid var(--filet, #DCDCDC);
  background: #fff;
  overflow: hidden;
}

.capture img {
  display: block;
  width: 100%;
  height: auto;
}

.capture-note {
  margin: .55rem 0 0;
  font-size: .8125rem;
  line-height: 1.5;
  color: #646C70;
}

/* ---- 23. Visionneuse des captures ---------------------------------------
   Le bouton n'ajoute aucune décoration : la capture reste une image, elle
   devient seulement cliquable, avec le curseur et l'anneau de focus pour
   seuls signaux. Le dialogue suit le système : fond de page, filet fin,
   aucune couleur. */

.capture-ouvrir {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
  font: inherit;
  color: inherit;
}

.capture-ouvrir:focus-visible {
  outline: 2px solid #33383C;
  outline-offset: 3px;
}

.visionneuse {
  width: min(58rem, 92vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--filet, #DCDCDC);
  background: #F8F8F8;
  color: #33383C;
  overflow: auto;
}

.visionneuse::backdrop {
  background: rgba(24, 24, 24, .58);
}

.visionneuse__tete {
  position: sticky;
  top: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #F8F8F8;
  border-bottom: 1px solid var(--filet, #DCDCDC);
}

.visionneuse__titre {
  margin: 0;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #646C70;
}

.visionneuse__fermer {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #33383C;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.visionneuse__corps { padding: 1.5rem; }

.visionneuse figure { margin: 0 0 1.5rem; }
.visionneuse figure:last-child { margin-bottom: 0; }

.visionneuse img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--filet, #DCDCDC);
  background: #fff;
}

.visionneuse figcaption {
  margin-top: .55rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: #646C70;
}

/* ---- 24. La première année, mise en rythme ------------------------------
   L'annonce confie au poste le schéma directeur du Campus. On en esquisse
   un : douze mois, des chantiers bornés, des rythmes installés, des temps
   forts aux dates de la Maison. Traitement conforme au système — filets,
   beige de bande, aucune couleur. */

.annee { margin-top: 2.5rem; border-top: 1px solid var(--line-soft, #DCDCDC); }

.annee-ligne {
  display: grid;
  grid-template-columns: minmax(11rem, 17rem) 1fr;
  gap: 0 1.25rem;
  border-bottom: 1px solid var(--line-soft, #DCDCDC);
}

.annee-libelle {
  padding: .7rem 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--ink, #33383C);
  align-self: center;
}

.annee-libelle small {
  display: block;
  font-size: .71rem;
  color: var(--muted, #646C70);
}

.annee-piste {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  min-height: 2.4rem;
  /* repères de trimestre : trois filets verticaux, rien de plus */
  background:
    linear-gradient(var(--line-soft, #E3E1DC), var(--line-soft, #E3E1DC)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-soft, #E3E1DC), var(--line-soft, #E3E1DC)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(var(--line-soft, #E3E1DC), var(--line-soft, #E3E1DC)) 75% 0 / 1px 100% no-repeat;
}

.annee-tete .annee-piste {
  grid-template-columns: repeat(4, 1fr);
  min-height: 2rem;
}

.annee-tete .annee-piste span {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted, #646C70);
  justify-self: center;
}

.annee-barre {
  grid-row: 1;
  height: .8rem;
  margin: 0 2px;
}

/* Un chantier borné se remplit ; un rythme installé ne se signale que par
   son filet. Le beige est le seul écart chromatique que la Maison connaît. */
.annee-barre--chantier { background: #EFE9E0; border: 1px solid #CFC5B4; }
.annee-barre--rythme   { background: none;    border: 1px solid var(--muted, #9AA0A3); }

.annee-jalon {
  grid-row: 1;
  justify-self: center;
  width: .55rem;
  height: .55rem;
  transform: rotate(45deg);
  background: #fff;
  border: 1px solid var(--ink, #33383C);
}

.annee-legende {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  margin-top: 1rem;
  font-size: .74rem;
  color: var(--muted, #646C70);
}

.annee-legende span { display: inline-flex; align-items: center; gap: .5rem; }
.annee-legende i { width: 1.35rem; height: .7rem; flex: none; }
.annee-legende .l-chantier { background: #EFE9E0; border: 1px solid #CFC5B4; }
.annee-legende .l-rythme   { border: 1px solid var(--muted, #9AA0A3); }
.annee-legende .l-jalon {
  width: .5rem; height: .5rem;
  transform: rotate(45deg);
  border: 1px solid var(--ink, #33383C);
  background: #fff;
}

@media (max-width: 42rem) {
  .annee-ligne { grid-template-columns: 1fr; }
  .annee-libelle { padding-bottom: .15rem; }
  .annee-piste { margin-bottom: .7rem; }
  .annee-tete { display: none; }
}

/* ---- 25. La mesure, instrument par instrument ---------------------------
   Huit instruments, un par point de contact : la matière des rendez-vous
   trimestriels du calendrier. Une liste à filets, rien de plus. */

.mesures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: 1.5rem;
}

.mesures p {
  margin: 0;
  padding: .65rem 0;
  border-top: 1px solid var(--line-soft, #DCDCDC);
  font-size: .8425rem;
  line-height: 1.5;
  color: var(--muted, #646C70);
}

.mesures strong {
  font-weight: 600;
  color: var(--ink, #33383C);
}

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

/* ---- 26. Pictogrammes du calendrier -------------------------------------
   Un signe par support, au trait fin et monochrome — jamais un logo de
   marque : les logos sont des couleurs, et ce dossier n'en a pas. */

.annee-libelle { display: flex; gap: .6rem; align-items: flex-start; }

.annee-ico {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: .12rem;
  stroke: var(--muted, #8A8F91);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
