/* ==========================================================
   Portfolio Raphael Katz : feuille de style commune
   Extraite de la page Flash (portfolio_flash.html, 16/10/2026).
   Toute page du site la charge ; une page projet n'ajoute
   que ses éventuels styles spécifiques.
   ========================================================== */

:root {
  /* Deux rayons pour la page (Impeccable 26/10) : --radius pour les cadres, 999px pour les pilules ; les appareils gardent le leur */
  --radius: 14px;
  /* Six tailles de texte (Impeccable 26/10) : légende, corps, sous-titre, titre de section, grand titre, hero */
  --fs-1: 13px; --fs-2: 16px; --fs-3: 20px; --fs-4: 28px; --fs-5: 40px; --fs-6: 56px;
  --bg: #0A0A0C;
  --text: #E8E8E8;
  --text-strong: #FFFFFF;
  --text-muted: #9A9A9A;
  --text-dim: #808080; /* 5:1 sur le fond, au-dessus du seuil AA */
  /* Trois accents sémantiques, jamais en fond plein (ligne directrice 7.5) */
  --accent-retained: #5BB8B0;   /* A : choix retenu */
  --accent-discarded: #C98BB9;  /* choix écarté (prune, distincte des accents projets) */
  --accent-result: #6BBF6B;     /* C : résultat, métrique clé */
  --border: #1E1E22;
  --border-strong: #2A2A30;
  --surface: #131316;
  --max-width: 740px;
  --font-display: 'Funnel Display', sans-serif;
  --font-body: 'Funnel Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: var(--fs-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }

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

/* ----------------------------------------------------------
   Navigation globale : bouton retour + pill en verre dépoli
   ---------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
/* Un seul menu flottant à la fois : la pilule du haut s'efface quand le menu des parties apparaît (revue UI 21/10) */
.site-nav-off .site-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -16px);
}
.nav-back,
.nav-pill {
  background: rgba(20,20,24,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.nav-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-2);
  transition: border-color 0.3s;
}
.nav-back:hover { border-color: var(--text-dim); }
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 6px;
}
.nav-pill a,
.nav-pill span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: var(--fs-1);
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  white-space: nowrap;
}
.nav-pill a:hover { color: var(--text); }
.nav-pill .active { color: var(--text-strong); }
.nav-pill .active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--text-strong);
}
/* Pages pas encore construites */
.nav-pill .soon {
  color: var(--text-dim);
  cursor: default;
}

/* ----------------------------------------------------------
   Scroll-spy intra-page (généré par site.js depuis [data-spy])
   ---------------------------------------------------------- */
.scroll-spy {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.scroll-spy a {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}
.scroll-spy a::before {
  /* zone de clic plus large que le point */
  content: '';
  position: absolute;
  inset: -6px;
}
.scroll-spy a span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-1);
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-spy a:hover span,
.scroll-spy a:focus-visible span { opacity: 1; }
.scroll-spy a:hover,
.scroll-spy a.active {
  background: var(--text);
  transform: scale(1.4);
}

/* ----------------------------------------------------------
   Mise en page
   ---------------------------------------------------------- */
/* Les ancres ne passent pas sous la navigation fixe */
section[id] { scroll-margin-top: 96px; }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-spacer { height: 140px; }
.section-spacer-sm { height: 80px; }

/* — Hero — */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text-strong);
}
.hero .subtitle {
  font-size: var(--fs-3);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
}

/* — Fiche identité — */
.fiche {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.fiche-item { padding-right: 20px; }
.fiche-label {
  font-size: var(--fs-1);
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.fiche-value {
  font-size: var(--fs-2);
  color: var(--text);
  line-height: 1.5;
}

/* — Titres — */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  color: var(--text-strong);
}
.section-intro {
  font-size: var(--fs-2);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 620px;
}
h3 {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
  line-height: 1.3;
}
p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: var(--fs-2);
  max-width: 620px;
}

/* — Visuels — */
.image-placeholder {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: var(--fs-1);
  text-align: center;
  padding: 20px;
  margin: 48px 0;
}
.image-placeholder.tall { min-height: 420px; }
.image-placeholder.medium { min-height: 300px; }
.image-placeholder.short { min-height: 180px; }

.image-placeholder-full {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: var(--fs-1);
  text-align: center;
  padding: 20px;
  min-height: 480px;
}

/* Visuel réel : image + légende qui explique le pourquoi (section 7) */
.visual { margin: 48px 0; }
.visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.visual figcaption,
.diagram figcaption {
  font-size: var(--fs-1);
  color: var(--text-dim);
  margin-top: 20px;
}
/* Mention « données fictives », à placer près des écrans (7.6) */
.data-note {
  display: block;
  font-size: var(--fs-1);
  line-height: 1.5;
  color: var(--text-dim);
  margin-top: 12px;
}

/* — Blocs de choix : retenu / écarté — */
.choice-block {
  border-left: 3px solid var(--accent-retained);
  padding: 28px 0 28px 28px;
  margin-bottom: 40px;
}
.choice-block.discarded { border-left-color: var(--accent-discarded); }
.choice-tag {
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.choice-tag.retained { color: var(--accent-retained); }
.choice-tag.discarded { color: var(--accent-discarded); }
.choice-block h3 { margin-bottom: 12px; }
.choice-block p { margin-bottom: 0; }

/* — Résultats — */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  margin-bottom: 48px;
}
.result-item .result-number {
  font-family: var(--font-display);
  font-size: var(--fs-5);
  font-weight: 700;
  color: var(--accent-result);
  line-height: 1;
  margin-bottom: 8px;
}
.result-item .result-label {
  font-size: var(--fs-2);
  color: var(--text-muted);
  line-height: 1.5;
}

/* — Apprentissages — */
.learning-text {
  font-size: var(--fs-3);
  color: var(--text);
  line-height: 1.7;
  max-width: 620px;
}
.learning-text + .learning-text { margin-top: 20px; }

/* — Séparateur — */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* — Sortie de page — */
.next-case {
  padding: 80px 0 120px;
  text-align: center;
}
.next-case .label {
  font-size: var(--fs-1);
  color: var(--text-dim);
  margin-bottom: 16px;
}
.next-case .next-link {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 8px;
  transition: text-decoration-color 0.3s;
}
a.next-link:hover { text-decoration-color: var(--text); }
/* Pas de filet ni de grand blanc avant « Projet suivant » : le retour au fond sombre suffit */
.section-spacer:has(+ .section > .next-case),
.section:has(> .next-case) > .divider { display: none; }
.next-case .next-link.soon { color: var(--text-dim); }
.next-case .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  font-size: var(--fs-1);
  color: var(--text-muted);
  text-decoration: none;
}
.next-case .back-link:hover { color: var(--text); }

/* — Sous-sections — */
.subsections {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 12px;
}

/* — Retours de test — */
.finding {
  padding: 28px 0 28px 28px;
  border-left: 2px solid var(--border);
  margin-bottom: 32px;
}
.finding h3 { font-size: var(--fs-2); }

/* — Citation — */
.quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.3;
  margin: 48px 0 40px;
  padding-left: 24px;
  border-left: 2px solid var(--border);
}
.quote span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-1);
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 12px;
}

/* — Schémas SVG — */
.diagram { margin: 56px 0 0; }
.diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.diagram text { font-family: var(--font-body); }
.d-title { fill: var(--text); font-size: 14px; font-weight: 500; }
.d-sub { fill: var(--text-muted); font-size: 12px; }
.d-label { fill: var(--text-dim); font-size: 13px; }
.d-teal { fill: var(--accent-retained); }
.d-bar-text { fill: var(--text); font-size: 12px; }
.d-bar-text-dim { fill: var(--text-muted); font-size: 12px; }

/* Visuel plus large que la colonne de texte (planches, showcase) */
.visual-wide {
  width: min(1120px, 100vw - 48px);
  margin: 56px 0;
  margin-left: 50%;
  transform: translateX(-50%);
}
.visual-wide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.visual-wide figcaption {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: var(--fs-1);
  color: var(--text-dim);
}

/* Rangée d'écrans mobiles, chacun avec sa légende */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.screens figure { margin: 0; }
.screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.screens figcaption {
  font-size: var(--fs-1);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 14px;
}
.screens figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

/* Chiffres de constat : neutres (l'accent vert est réservé aux résultats) */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 60px;
  margin: 40px 0 48px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-5);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: var(--fs-1);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Liste numérotée de niveaux ou d'étapes */
.levels {
  list-style: none;
  counter-reset: lvl;
  margin: 8px 0 32px;
  max-width: 620px;
}
.levels li {
  counter-increment: lvl;
  position: relative;
  padding: 16px 0 16px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-2);
  line-height: 1.55;
}
.levels li:last-child { border-bottom: 1px solid var(--border); }
.levels li::before {
  content: counter(lvl);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 600;
  color: var(--text-dim);
}
.levels li strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}

/* Prototype interactif intégré */
.embed {
  display: block;
  width: 100%;
  height: 864px;
  border: 0;
  margin: 48px 0;
}

/* Emplacement à compléter, visible tant que l'info manque */
.todo {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
  font-size: var(--fs-1);
  color: var(--text-dim);
  max-width: 620px;
}
.todo::before {
  content: 'À compléter · ';
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------
   Accueil
   ---------------------------------------------------------- */
.home-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 64px;
}
.home-hero .eyebrow {
  text-transform: none;
  font-size: var(--fs-1);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin-bottom: 28px;
}
.home-hero .pitch {
  font-size: var(--fs-3);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.project-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.project-list li { border-bottom: 1px solid var(--border); }
.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 32px 0;
  text-decoration: none;
  color: inherit;
}
.project-card .project-title {
  font-family: var(--font-display);
  font-size: var(--fs-3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-strong);
}
.project-card .project-meta {
  font-size: var(--fs-1);
  color: var(--text-dim);
  grid-column: 1;
}
.project-card .project-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--text-muted);
  transition: transform 200ms var(--ease-out), color 0.3s;
}
@media (hover: hover) and (pointer: fine) {
  a.project-card:hover .project-arrow {
    transform: translateX(4px);
    color: var(--text);
  }
}
.project-card.soon .project-title { color: var(--text-muted); }
.project-card.soon .project-arrow { font-size: var(--fs-1); color: var(--text-dim); }

.site-footer {
  padding-block: 120px 64px;
  font-size: var(--fs-1);
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
.diagram-hint, .diagram > svg.svg-mobile { display: none; }

@media (max-width: 640px) {
  .site-nav { top: 16px; gap: 6px; }
  .nav-back { width: 36px; height: 36px; }
  .nav-pill a,
  .nav-pill span { min-height: 44px; padding: 0 10px; font-size: var(--fs-1); }
  .nav-pill { padding: 0 6px; }
  /* Titres un cran plus petits sur mobile ; le texte courant reste à 16 px (revue UI 21/10) */
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 24px; }

  .fiche {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .scroll-spy { display: none; }
  .section-spacer { height: 100px; }

  /* Les schémas restent lisibles : défilement horizontal plutôt que texte à 5 px */
  .diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .diagram svg {
    min-width: 600px;
    overflow: hidden;
  }
  /* la légende et l'indice restent sous les yeux pendant qu'on fait glisser le schéma */
  .diagram figcaption, .diagram .diagram-hint { position: sticky; left: 0; max-width: calc(100vw - 48px); }
  .diagram .diagram-hint { display: block; margin: 0 0 10px; font-size: 13px; color: var(--text-muted, #6b6b70); }
  /* un schéma redessiné pour le téléphone remplace la version large */
  .diagram:has(> .svg-mobile) { overflow-x: visible; }
  .diagram:has(> .svg-mobile) > svg:not(.svg-mobile) { display: none; }
  .diagram > svg.svg-mobile { display: block; min-width: 0; width: 100%; height: auto; }

  .image-placeholder-full { min-height: 320px; }
  .stat-grid { grid-template-columns: 1fr; gap: 28px; }
  .screens {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .screens figure { scroll-snap-align: start; }
  .next-case .next-link { font-size: var(--fs-3); }
}

/* Moins d'animations : plus aucun déplacement, mais les fondus et changements de couleur restent (audit 25/10, n° 20) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: opacity, color, background-color, border-color, text-decoration-color, fill, stroke !important; }
}

/* ==========================================================
   Composants de récit (gabarit v2, validé par Raph le 17/10/2026)
   Repris de la page INTI, où ils ont été mis au point.
   Tout mouvement est coupé si le visiteur préfère moins d'animations,
   et tout reste lisible sans JavaScript (la classe .js est posée par site.js).
   ========================================================== */

:root {
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Réponse plus franche, pour les retours d'action (audit 25/10, n° 20) */
  --guided-ease: cubic-bezier(.23, 1, .32, 1);
  /* Couleur du projet : une seule teinte, pour guider la lecture
     (chiffres, mots clés, numéros de partie, menu). Elle ne remplace pas
     les trois accents sémantiques (retenu, écarté, résultat).
     Chaque page projet la redéfinit dans sa propre feuille ; par défaut, neutre. */
  --project-accent: var(--text-strong);
  --project-accent-soft: rgba(255, 255, 255, 0.08);
}


/* ----------------------------------------------------------
   Repères de lecture : numéro de partie, mots clés, chiffres
   ---------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: none;
  margin-bottom: 14px;
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow-num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  letter-spacing: 0;
  color: var(--project-accent);
}
.eyebrow-num::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--project-accent);
  opacity: 0.6;
}
.hl {
  color: var(--project-accent);
  font-weight: 500;
}
/* Les chiffres clés prennent la couleur du projet */
.stat-number { color: var(--project-accent); }
.kicker { color: var(--project-accent); }

/* ----------------------------------------------------------
   Apparition au scroll : [data-reveal], ou [data-reveal-stagger]
   sur un parent pour faire apparaître ses enfants l'un après l'autre.
   La classe .js est posée par le script : sans JS, tout est visible.
   ---------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* Le texte se lit sans attendre : l'apparition reste sur les images, schémas et blocs (revue UI 21/10) */
.js p[data-reveal],
.js h2[data-reveal],
.js h3[data-reveal],
.js blockquote[data-reveal],
.js ul[data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ----------------------------------------------------------
   Hero en deux colonnes : le texte d'un côté, de l'autre
   deux objets côte à côte reliés par une flèche (avant / après).
   ---------------------------------------------------------- */
.hero.hero--split {
  max-width: 1200px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 48px;
}
/* Le texte du hero démarre à la même hauteur sur toutes les pages ; le visuel reste centré (revue UI 21/10) */
.hero--split > .hero-text { align-self: start; margin-top: clamp(48px, 12vh, 140px); }
.kicker {
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero--split .kicker,
.hero--split h1,
.hero--split .subtitle {
  animation: rise 0.9s var(--ease-out) both;
}
.hero--split h1 { animation-delay: 0.08s; }
.hero--split .subtitle { animation-delay: 0.18s; }

/* Lien d'action sous le sous-titre (vers le prototype, par exemple) */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 20px;
  border: 1px solid var(--project-accent);
  border-radius: 999px;
  background: var(--project-accent-soft);
  color: var(--text-strong);
  font-size: var(--fs-1);
  text-decoration: none;
  animation: rise 0.9s var(--ease-out) 0.28s both;
  transition: scale 160ms var(--guided-ease), background 0.3s, color 0.3s;
}
.hero-cta span { transition: transform 0.3s var(--ease-out); }
.hero-cta:hover,
.hero-cta:focus-visible { background: var(--project-accent); color: #0A0A0C; }
.hero-cta:hover span { transform: translateY(3px); }

.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.duo-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.duo-item img {
  display: block;
  height: min(68vh, 600px);
  width: auto;
  transition: transform 0.6s var(--ease-out);
}
.duo-item .paper {
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.6));
  transform: rotate(-2deg);
  animation: print 1.4s var(--ease-out) 0.3s both;
}
.duo-item .screen-shot {
  border-radius: clamp(18px, 2.4vw, 34px);
  border: 1px solid var(--border-strong);
  animation: rise 1s var(--ease-out) 1.25s both;
}
@media (hover: hover) and (pointer: fine) {
  .duo-item:hover .paper { transform: rotate(0) translateY(-8px); }
  .duo-item:hover .screen-shot { transform: translateY(-8px); }
}
.duo-item figcaption {
  margin-top: 20px;
  font-size: var(--fs-1);
  color: var(--text-muted);
  animation: rise 0.9s var(--ease-out) 1.5s both;
}
.duo-link {
  flex: 0 0 auto;
  width: clamp(24px, 4vw, 48px);
  height: 1px;
  margin-bottom: 40px;
  background: var(--border-strong);
  position: relative;
  transform-origin: left center;
  animation: draw 0.6s var(--ease-out) 0.95s both;
}
.duo-link::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
/* Un ticket qui sort de l'imprimante, de haut en bas */
@keyframes print {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes draw {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ----------------------------------------------------------
   Trois cartes côte à côte (profils, options...)
   ---------------------------------------------------------- */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 8px;
}
.trio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .trio-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
  }
}
.trio-name {
  font-family: var(--font-display);
  font-size: var(--fs-2);
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.trio-text {
  font-size: var(--fs-2);
  line-height: 1.5;
  color: var(--text-muted);
}

/* Titre d'un temps du récit dans une partie (par exemple « 2019 : en équipe »,
   « 2026 : la refonte » dans La démarche). Sur un h3 enfant direct de .section. */
.section > h3.chapter {
  font-size: var(--fs-4);
  margin-top: 72px;
  margin-bottom: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}
.section > .section-title + h3.chapter { margin-top: 32px; }
/* Sous-parties d'un chapitre : décalées sous un filet, titre plus petit que le chapitre */
.subsections > div { padding-left: 20px; border-left: 2px solid var(--border-strong); }
.subsections h3 { font-size: var(--fs-2); margin-bottom: 6px; }
.subsections p { margin-bottom: 0; }

/* Respiration après une source chiffrée */
.data-note + p { margin-top: 40px; }

/* Phrase de conclusion d'une section, mise en avant */
.takeaway {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.4;
  color: var(--text-strong);
  margin-top: 40px;
}

/* ----------------------------------------------------------
   Étapes en tiroirs au scroll : [data-steps]
   Par défaut (mobile, sans JS, moins d'animations) : liste ouverte,
   chaque étape suivie de son exemple.
   En mode .steps--live (posé par le script sur grand écran) :
   la zone reste fixe, une étape s'ouvre à la fois, l'exemple à droite.
   ---------------------------------------------------------- */
/* Mode d'emploi du défilement, affiché seulement quand les tiroirs sont actifs
   (mêmes conditions que dans le script) */
.steps-hint {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: -16px;
  font-size: var(--fs-1);
  color: var(--text-dim);
}
.steps-hint::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 22px;
  border: 1.5px solid var(--text-dim);
  border-radius: var(--radius);
  background: linear-gradient(var(--text-dim), var(--text-dim)) center 5px / 2px 5px no-repeat;
}
@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .js .steps-hint { display: flex; }
}

.steps-wrap { padding: 0 24px; }
.steps {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
}
.steps-sticky { position: relative; }
.steps-list { list-style: none; }
.steps-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.steps-item:last-child { border-bottom: 1px solid var(--border); }
.steps-head {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Numéro d'étape dans une pastille ronde : un autre style que les numéros de partie */
.steps-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-1);
  color: var(--text-dim);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.steps-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-strong);
  transition: color 0.4s;
}
.steps-body-inner { padding-left: 46px; }
.steps-body p {
  margin-top: 14px;
  color: var(--text-muted);
}
.steps-body .steps-what { color: var(--text); }
.steps-why strong {
  display: block;
  font-size: var(--fs-1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.steps-quote {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: var(--fs-2);
  line-height: 1.45;
  color: var(--text);
}
.steps-quote-src {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-1);
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.steps-bar { display: none; }
.steps-figure { margin: 24px 0 6px 46px; }
.steps-figure img {
  display: block;
  width: min(240px, 70%);
  height: auto;
}
.steps-figure .screen-shot {
  border-radius: 22px;
  border: 1px solid var(--border-strong);
}
.steps-figure .paper { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }
.steps-count { display: none; }

.steps--live { height: calc(var(--n, 5) * 80vh + 100vh); }
.steps--live .steps-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 72px;
  align-items: center;
  padding-top: 72px;
}
.steps--live .steps-list { grid-column: 1; }
.steps--live .steps-item { padding: 18px 0; }
.steps--live .steps-num,
.steps--live .steps-title { color: var(--text-dim); }
.steps--live .steps-item.is-active .steps-title { color: var(--text-strong); }
.steps--live .steps-item.is-active .steps-num {
  color: var(--project-accent);
  border-color: var(--project-accent);
  background: var(--project-accent-soft);
}
.steps--live .steps-head:hover .steps-title { color: var(--text-muted); }
.steps--live .steps-item.is-active .steps-head:hover .steps-title { color: var(--text-strong); }
.steps--live .steps-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s var(--ease-out), opacity 0.4s ease;
}
.steps--live .steps-body > div { overflow: hidden; }
.steps--live .steps-item.is-active .steps-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transition-delay: 0.08s;
}
.steps--live .steps-bar {
  display: block;
  height: 2px;
  margin: 22px 0 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.steps--live .steps-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--project-accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}
.steps--live .steps-figure {
  position: absolute;
  top: calc(50% + 36px);
  left: calc(50% + 36px);
  right: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(-46%) scale(0.95);
  transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
  pointer-events: none;
}
.steps--live .steps-item.is-past .steps-figure { transform: translateY(-54%) scale(0.97); }
.steps--live .steps-item.is-active .steps-figure {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.steps--live .steps-item.is-active .steps-figure .paper {
  animation: print 1.1s var(--ease-out) 0.1s both;
}
.steps--live .steps-figure img {
  width: auto;
  height: min(70vh, 640px);
}
.steps--live .steps-count {
  display: block;
  position: absolute;
  top: 104px;
  right: 0;
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ----------------------------------------------------------
   Mur d'objets légèrement de travers, redressés au survol.
   Sur mobile : une rangée qui défile horizontalement.
   ---------------------------------------------------------- */
.object-wall {
  width: min(1120px, calc(100vw - 48px));
  margin: 56px 0 0 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 28px;
}
.object-wall figure { margin: 0; }
.object-wall img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(var(--r, -1.5deg));
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s var(--ease-out);
}
.object-wall figure:nth-child(2n) img { --r: 1.4deg; }
.object-wall figure:nth-child(3n) img { --r: -0.8deg; }
.object-wall figure:nth-child(5n) img { --r: 1.9deg; }
@media (hover: hover) and (pointer: fine) {
  .object-wall figure:hover img { transform: rotate(0) translateY(-10px) scale(1.04); }
}
.wall-hint {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: var(--fs-1);
  color: var(--text-dim);
}
.wall-hint .on-touch { display: none; }

/* Images d'écran : coins arrondis et léger survol */
.screens img { transition: transform 0.5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .screens figure:hover img { transform: translateY(-6px); }
}

/* ----------------------------------------------------------
   Avant / après : un écran d'une version à l'autre.
   Chaque .compare montre l'ancien côté (un ou plusieurs écrans),
   une flèche, le nouveau, puis une légende courte.
   .compare--wide prend toute la largeur (plusieurs écrans avant).
   ---------------------------------------------------------- */
.compare-list {
  --shot-w: clamp(132px, 15vw, 200px);
  width: min(1120px, calc(100vw - 48px));
  margin: 48px 0 0 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px 48px;
}
.compare { margin: 0; }
.compare--wide { grid-column: 1 / -1; }
.compare-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}
.compare-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.compare-tag {
  font-size: var(--fs-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.compare-side--after .compare-tag { color: var(--project-accent); }
.compare-shots {
  display: flex;
  gap: 12px;
}
.compare-shots img {
  display: block;
  width: var(--shot-w);
  height: auto;
  aspect-ratio: 780 / 1690;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .compare-shots img:hover { transform: translateY(-6px); }
}
.compare-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 1px;
  margin-top: 26px;
  background: var(--text-dim);
  position: relative;
  transform-origin: left center;
}
.compare-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--text-dim);
  border-right: 1px solid var(--text-dim);
  transform: rotate(45deg);
}
.compare figcaption {
  max-width: 520px;
  margin: 24px auto 0;
  text-align: center;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--text-muted);
}
.compare figcaption strong {
  color: var(--text);
  font-weight: 500;
}
/* À l'apparition : l'ancien, puis la flèche, puis le nouveau */
@media (prefers-reduced-motion: no-preference) {
  .js .compare .compare-arrow { transform: scaleX(0); opacity: 0; }
  .js .compare .compare-side--after { opacity: 0; }
  .js .compare.is-in .compare-arrow { animation: draw 0.6s var(--ease-out) 0.45s both; }
  .js .compare.is-in .compare-side--after { animation: rise 0.8s var(--ease-out) 0.75s both; }
}

/* ----------------------------------------------------------
   Menu flottant des parties : [data-parts-nav], rempli par le script
   à partir des sections numérotées (.eyebrow-num). Il apparaît après
   le hero, suit la lecture et s'efface devant [data-parts-avoid]
   (un prototype intégré, par exemple). Il remplace les points latéraux.
   ---------------------------------------------------------- */
.parts-nav {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 90;
  max-width: calc(100vw - 24px);
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(16, 16, 20, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
  transition: transform 0.55s var(--ease-out), opacity 0.35s ease;
}
.parts-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.parts-nav.is-visible.is-tucked {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
}
.parts-list {
  position: relative;
  z-index: 1;
  display: flex;
  list-style: none;
}
.parts-link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--fs-1);
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.parts-num {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  color: var(--text-dim);
  transition: color 0.3s;
}
.parts-link:hover,
.parts-link:focus-visible,
.parts-link.is-current { color: var(--text-strong); }
.parts-link.is-current .parts-num { color: var(--project-accent); }
/* Séparateur entre la version courte (fond sombre) et la version expliquée (fond papier) */
.parts-step {
  display: none;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-strong);
  font-size: var(--fs-3);
  line-height: 1;
  cursor: pointer;
}
.parts-step:disabled { color: var(--text-dim); opacity: 0.4; cursor: default; }
.parts-sep {
  align-self: center;
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--border-strong);
}
.parts-indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--ind-w, 0);
  border-radius: 999px;
  background: var(--project-accent-soft);
  transform: translateX(var(--ind-x, 0));
  transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out), opacity 0.3s;
}
.has-parts-nav .scroll-spy { display: none; }
/* Les tiroirs gardent une marge pour ne pas passer sous le menu */
.has-parts-nav .steps--live .steps-sticky { padding-bottom: 88px; }
.has-parts-nav .steps--live .steps-figure { top: calc(50% - 8px); }
.has-parts-nav .steps--live .steps-figure img { height: min(64vh, 620px); }
@media (max-height: 820px) {
  .steps--live .steps-item { padding: 12px 0; }
  .steps--live .steps-title { font-size: var(--fs-3); }
  .steps--live .steps-body p { margin-top: 10px; font-size: var(--fs-2); }
  .steps--live .steps-quote { font-size: var(--fs-2); }
  .steps--live .steps-bar { margin-top: 16px; }
}
.has-parts-nav body { padding-bottom: 96px; }

/* ----------------------------------------------------------
   Petits écrans
   ---------------------------------------------------------- */
@media (max-width: 860px) {
  .trio { grid-template-columns: 1fr; }
  .hero.hero--split {
    min-height: auto;
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding-top: 104px;
  }
  /* Sur une colonne, le texte suit le menu sans le vide de 170 px du bureau (audit dossier 25/10) */
  .hero--split > .hero-text { margin-top: 0; }
  .duo-item img { height: min(80vw, 480px); }
}
@media (max-width: 760px) {
  .object-wall {
    width: 100vw;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    padding: 8px 24px 28px;
    scrollbar-width: none;
  }
  .object-wall::-webkit-scrollbar { display: none; }
  .object-wall figure {
    flex: 0 0 58vw;
    scroll-snap-align: center;
  }
  .wall-hint .on-hover { display: none; }
  .wall-hint .on-touch { display: inline; }
  .compare-list {
    --shot-w: calc((100vw - 104px) / 2);
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .compare-row { gap: 14px; }
  .compare-arrow { width: 22px; }
  /* Plusieurs écrans avant : ils passent au-dessus, la flèche pointe vers le bas */
  .compare--wide .compare-row {
    flex-direction: column;
    align-items: center;
  }
  .compare--wide .compare-side--before .compare-shots img { width: calc((100vw - 72px) / 3); }
  .compare--wide .compare-arrow,
  .js .compare--wide.is-in .compare-arrow {
    margin-top: 0;
    transform: rotate(90deg);
    transform-origin: center;
    animation: none;
    opacity: 1;
  }
  .duo { gap: 10px; }
  .duo-link { width: 20px; }
  .parts-nav { bottom: 14px; }
  .parts-link { min-height: 44px; align-items: center; padding: 0 13px; }
  .parts-label { display: none; }
  .parts-link.is-current .parts-label { display: inline; }
  /* Sur mobile, seule la partie en cours, avec des flèches vers la précédente et la suivante (choix de Raph, 21/10) */
  .parts-nav { display: flex; align-items: center; }
  .parts-list li:not(.is-shown), .parts-sep { display: none; }
  .parts-label { display: inline; }
  .parts-step { display: inline-flex; }
}

/* ----------------------------------------------------------
   Moins d'animations : tout est visible, rien ne bouge
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .parts-nav,
  .parts-indicator { transition: none; }
  .hero--split .kicker,
  .hero--split h1,
  .hero--split .subtitle,
  .hero-cta,
  .duo-item .paper,
  .duo-item .screen-shot,
  .duo-item figcaption,
  .duo-link,
  .steps-figure .paper { animation: none; }
  .duo-item img,
  .object-wall img,
  .screens img,
  .compare-shots img,
  .trio-card { transition: none; }
  .duo-item:hover .screen-shot,
  .object-wall figure:hover img,
  .screens figure:hover img,
  .compare-shots img:hover,
  .trio-card:hover { transform: none; }
  .duo-item:hover .paper { transform: rotate(-2deg); }
  .object-wall figure:hover img { transform: rotate(var(--r, -1.5deg)); }
}

/* ----------------------------------------------------------
   Bande de photos : trois photos 4:3 côte à côte, une légende
   commune. Sur mobile, deux par ligne, la troisième en entier.
   Variante .compare--paper : des tickets papier dans un avant /
   après, à leur format au lieu du format écran.
   ---------------------------------------------------------- */
.photo-strip { margin: 40px 0 56px; }
.photo-strip-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.photo-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.photo-strip figcaption {
  margin-top: 16px;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--text-muted);
}
.photo-strip figcaption strong {
  color: var(--text);
  font-weight: 500;
}
.compare--paper { --paper-h: clamp(240px, 30vw, 420px); }
.compare--paper .compare-shots { align-items: flex-end; }
.compare--paper .compare-shots img {
  width: auto;
  height: var(--paper-h);
  aspect-ratio: auto;
  border-radius: 4px;
}
@media (max-width: 760px) {
  .photo-strip-row { grid-template-columns: 1fr 1fr; }
  .photo-strip-row img:last-child { grid-column: 1 / -1; }
  .compare--paper { --paper-h: calc(100vw - 72px); }
  .compare--paper .compare-side--before .compare-shots img { width: auto; height: calc((100vw - 72px) / 1.3); }
}

/* ----------------------------------------------------------
   Variante du mur d'objets pour des esquisses de formats mêlés :
   toutes à la même hauteur (--sketch-h), pour que la plus large ne
   paraisse pas plus petite. .is-full prend une ligne entière.
   Légende courte en dessous avec .wall-caption.
   ---------------------------------------------------------- */
.object-wall--sketches {
  --sketch-h: clamp(180px, 23vw, 335px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
  gap: 48px 28px;
}
.object-wall--sketches img {
  width: auto;
  height: var(--sketch-h);
  border-radius: 3px;
}
.object-wall--sketches .is-full {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
}
.object-wall--sketches .is-full img { width: 70%; height: auto; }
.wall-caption {
  margin: 36px 0 64px;
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--text-muted);
}
.wall-caption strong {
  color: var(--text);
  font-weight: 500;
}
@media (max-width: 760px) {
  .object-wall--sketches {
    --sketch-h: min(112vw, 460px);
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .object-wall--sketches figure { flex: 0 0 auto; }
  .object-wall--sketches .is-full { flex: 0 0 88vw; }
  .object-wall--sketches .is-full img { width: 100%; }
}

/* ----------------------------------------------------------
   PAGE EN DEUX TEMPS (validée par Raph le 20/10/2026)
   Partie 1, la version courte, sur fond sombre : hero avec le résultat, Constat, Solution
   (écrans clés + démo), Résultats. Partie 2, la version expliquée, dans .part-detail sur
   fond papier : Démarche, Arbitrages, Leçons. Le changement de couleur annonce le changement
   de lecture ; tout passe par les variables, les composants se recolorent seuls.
   ---------------------------------------------------------- */

/* Le résultat, dès le hero */
.hero-result {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hero-result-item { display: flex; align-items: baseline; gap: 10px; }
.hero-result-number { white-space: nowrap; }
.hero-result-number {
  font-family: var(--font-display);
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-result);
}
.hero-result-label { font-size: var(--fs-1); line-height: 1.4; color: var(--text-muted); max-width: 200px; }

/* La solution en un coup d'œil : 3 à 6 écrans clés, une ligne chacun */
.key-screens {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--key-cols, 6), minmax(0, 1fr));
  gap: 20px;
  width: min(1120px, calc(100vw - 48px));
  margin: 40px 0 0 calc(50% - min(560px, 50vw - 24px));
  padding: 0;
}
.key-screens--3 { --key-cols: 3; }
.key-screens--4 { --key-cols: 4; }
.key-screens--5 { --key-cols: 5; }
.key-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.key-screens h3 { margin: 14px 0 4px; font-size: var(--fs-2); line-height: 1.3; }
.key-screens p { margin: 0; font-size: var(--fs-2); line-height: 1.45; color: var(--text-muted); }
.key-num { font-family: var(--font-display); color: var(--project-accent); margin-right: 6px; }

/* La démo, juste sous les écrans clés */
.try-title { margin-top: 64px; }

/* Partie 2, la version expliquée : couleurs inversées, pleine largeur */
.part-detail {
  --bg: #F3F1EC;
  --text: #2A2A2E;
  --text-strong: #0A0A0C;
  --text-muted: #55555C;
  --text-dim: #66666E;
  --border: #DDD9D0;
  --border-strong: #C9C4B8;
  --surface: #FFFFFF;
  --accent-retained: #2A736D;
  --accent-discarded: #7A3B69;
  --accent-result: #2F7D32;
  /* La couleur du projet passe à sa teinte foncée : chaque projet définit --project-accent-on-light dans son CSS. */
  --project-accent: var(--project-accent-on-light);
  background: var(--bg);
  color: var(--text);
  padding: 96px 0 40px;
}
.part-detail-head { padding-bottom: 8px; border-bottom: 1px solid var(--border-strong); }
.part-kicker {
  font-family: var(--font-display);
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--project-accent);
  margin-bottom: 10px;
}
.part-detail-head h2 { margin-bottom: 10px; }
.part-detail-head p { color: var(--text-muted); }
.more-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 32px; }
.more-links a { color: var(--text-strong); }

@media (max-width: 1000px) {
  .key-screens { --key-cols: 3; gap: 28px 16px; }
}
@media (max-width: 760px) {
  .key-screens {
    display: flex;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 24px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    scrollbar-width: none;
  }
  .key-screens::-webkit-scrollbar { display: none; }
  .key-screens li { flex: 0 0 46vw; scroll-snap-align: start; }
  .part-detail { padding-top: 64px; }
}


/* Revue UI 21/10 : chiffres du hero sur mobile, libellé sous le chiffre */
@media (max-width: 640px) {
  .hero-result { gap: 16px 28px; }
  .hero-result-item { flex-direction: column; gap: 4px; }
  .hero-result-number { font-size: var(--fs-4); }
}
/* Schémas qui défilent sur mobile : un fondu à droite montre que la suite existe */
@media (max-width: 640px) {
  .diagram:not(.is-end) {
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
    mask-image: linear-gradient(to right, #000 82%, transparent);
  }
}
/* Fondu enchaîné entre les pages (Firefox l'ignore sans dommage) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 250ms; animation-timing-function: var(--ease-out); }
/* Le titre de la carte (accueil ou « Projet suivant ») glisse jusqu'au titre du projet (audit 25/10, n° 7) */
::view-transition-group(*) { animation-duration: 400ms; animation-timing-function: var(--guided-ease); }
::view-transition-group(root) { animation-duration: 250ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) { animation-duration: 0s; }
  ::view-transition-old(*),
  ::view-transition-new(*) { animation-duration: 150ms; }
}

/* ==========================================================
   Solution en démo guidée (validée par Raph le 21/10/2026)
   La Solution et « À vous d'essayer » ne font qu'un : les étapes
   à gauche, un seul grand appareil à droite qui est la démo du projet.
   Balisage et protocole avec la démo : voir LISEZMOI.md.
   ========================================================== */
.guided {
  --guided-ease: cubic-bezier(.23, 1, .32, 1);
  --device-w: 300px;          /* largeur de l'appareil sur grand écran */
  --device-ratio: 480 / 1013; /* proportions de l'écran (téléphone par défaut) */
  --device-radius: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--device-w));
  /* Les étapes et les boutons, centrés en hauteur à côté de l'appareil */
  grid-template-areas: ". device" "list device" "ctrl device" ". device";
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 56px;
  align-items: start;
  width: min(1120px, calc(100vw - 48px));
  margin: 40px 0 0 calc(50% - min(560px, 50vw - 24px));
  padding: 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
/* Écran de borne, en paysage */
.guided--landscape { --device-w: 620px; --device-ratio: 1280 / 800; --device-radius: 18px; column-gap: 40px; }

.guided-list { grid-area: list; position: relative; list-style: none; margin: 0; padding: 0; }
.guided-list > li + li { margin-top: 4px; }
.guided-list h3 { margin: 0; font-size: var(--fs-3); line-height: 1.3; }
.guided-list p { margin: 4px 0 0; font-size: var(--fs-2); line-height: 1.5; color: var(--text-muted); }

/* Avec JavaScript : pastilles numérotées, ligne de progression, une seule description ouverte */
.js .guided-list::before,
.guided-fill {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 2px;
  background: var(--border-strong);
}
.js .guided-list::before { bottom: 16px; }
.guided-fill { height: 0; background: var(--project-accent); transition: height .45s var(--guided-ease); }
.guided-step {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 8px 8px 8px 0;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-dim);
}
.guided-step:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* Libellé d'un groupe d'étapes (data-group), aligné sur les titres ; il ne compte pas comme une étape */
.guided-group { display: block; padding-left: 48px; margin: 0 0 2px; font: 600 14px/1.3 var(--font-display); color: var(--project-accent); }
.guided-list > li + li > .guided-group { margin-top: 18px; }
.guided-dot {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  font: 600 13px/1 var(--font-display);
  color: var(--text-dim);
  transition: background .3s var(--guided-ease), border-color .3s var(--guided-ease), color .3s, transform .3s var(--guided-ease);
}
.guided-step h3 { align-self: center; padding-top: 4px; color: var(--text-dim); transition: color .3s; }
.js .guided-list p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--guided-ease), opacity .3s; }
.guided-list li.is-done .guided-dot { border-color: var(--project-accent); color: var(--text); }
.guided-list li.is-current .guided-dot { background: var(--project-accent); border-color: var(--project-accent); color: var(--bg); transform: scale(1.08); }
.guided-list li.is-current h3 { color: var(--text-strong); }
.js .guided-list li.is-current p { max-height: 96px; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .guided-step:hover h3 { color: var(--text-strong); }
}

.guided-ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.guided-ctrl button {
  all: unset;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: var(--fs-1);
  color: var(--text);
  cursor: pointer;
  transition: transform .16s var(--guided-ease), border-color .2s;
}
.guided-ctrl button:active { transform: scale(.97); }
.guided-ctrl button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.guided-ctrl button[disabled] { opacity: .35; cursor: default; }
.guided-count { margin-left: 6px; font-size: var(--fs-1); color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* L'appareil : un cadre noir, la démo dedans */
.guided-device {
  grid-area: device;
  position: relative;
  width: 100%;
  aspect-ratio: var(--device-ratio);
  box-sizing: content-box;
  margin: 0 -8px;
  padding: 8px;
  border-radius: var(--device-radius);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--border-strong);
}
.guided-device > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(var(--device-radius) - 7px);
  background: #fff;
}
/* Ancre du bouton « Essayer » du hero : le bloc ne passe pas sous la navigation */
.guided[id] { scroll-margin-top: 96px; }
/* Légende sous le bloc (sources des photos de la démo), alignée sur son bord gauche */
.guided-caption {
  width: min(1120px, calc(100vw - 48px));
  margin: 16px 0 0 calc(50% - min(560px, 50vw - 24px));
  padding: 0 4px;
  font-size: var(--fs-1);
  line-height: 1.5;
  color: var(--text-dim);
}
/* Démo à taille fixe (data-screen-size) : site.js règle la taille et l'échelle de l'iframe */
.guided-device.is-scaled > iframe { position: absolute; left: 8px; top: 8px; max-width: none; transform-origin: 0 0; }
/* Étape montrée par une image fixe (data-image) : l'appareil s'efface, l'image prend sa place */
.guided-device.is-still { background: transparent; box-shadow: none; }
.guided-device.is-still > iframe { visibility: hidden; }
.guided-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.guided-still[hidden] { display: none; }
.guided-ring,
.guided-tap {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.guided-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 3px solid var(--project-accent); }
.guided-tap { width: 26px; height: 26px; margin: -13px 0 0 -13px; background: rgba(255, 255, 255, .75); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.guided-ring.is-go { animation: guided-ring 1.1s var(--guided-ease) .25s both; }
.guided-tap.is-go { animation: guided-tap .9s var(--guided-ease) .2s both; }
@keyframes guided-ring { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes guided-tap { 0% { opacity: 0; transform: scale(1.4); } 35% { opacity: 1; transform: scale(1); } 60% { transform: scale(.8); } 100% { opacity: 0; transform: scale(1); } }

@media (max-width: 900px) {
  .guided--landscape { grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "device" "ctrl"; grid-template-rows: none; row-gap: 24px; }
  .guided--landscape .guided-device { justify-self: center; width: min(var(--device-w), calc(100% - 16px)); }
  .guided--landscape .guided-ctrl { margin-top: 0; }
}
/* Barre de l'étape en cours, pour le mobile seulement */
.guided-now { display: none; grid-area: now; }
.guided-now-bar { display: flex; align-items: center; gap: 8px; }
.guided-now-arrow {
  all: unset;
  box-sizing: border-box;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: var(--fs-3);
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}
.guided-now-arrow:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.guided-now-arrow[disabled] { opacity: .35; cursor: default; }
.guided-now-title { flex: 1; min-width: 0; margin: 0; text-align: center; line-height: 1.25; }
.guided-now-title strong { display: block; font-family: var(--font-display); font-size: var(--fs-2); font-weight: 600; color: var(--text-strong); }
.guided-now-count { display: block; margin-bottom: 2px; font-size: var(--fs-1); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.guided-now-text { margin: 8px 0 0; text-align: center; font-size: var(--fs-2); line-height: 1.45; color: var(--text-muted); }

/* Mobile : l'appareil d'abord, puis l'étape en cours entre deux flèches ; la liste complète est masquée */
@media (max-width: 760px) {
  .guided { --device-w: 250px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "list" "device" "ctrl"; grid-template-rows: none; row-gap: 24px; padding: 22px; }
  .guided--landscape { --device-w: 620px; }
  .guided-device { justify-self: center; width: min(var(--device-w), calc(100% - 16px)); margin: 0; }
  .guided-ctrl { justify-content: center; margin-top: 0; }
  .js .guided { grid-template-areas: "device" "now"; row-gap: 16px; padding: 16px; }
  .js .guided-list, .js .guided .guided-ctrl { display: none; }
  .js .guided-now { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .guided *, .guided *::before { transition: none !important; animation: none !important; }
  .guided-ring, .guided-tap { display: none; }
}

/* ==========================================================
   Plan du parcours (Flash ; refait le 22/10/2026 à la demande de Raph)
   À gauche le plan avec ses points ; à droite une colonne fixe :
   visuel (hauteur fixe, posé sur la même ligne de base), étape n sur N,
   titre, phrase, flèches + segments. « En coulisses » ferme la colonne.
   ========================================================== */
.route-map {
  --guided-ease: cubic-bezier(.23, 1, .32, 1);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: stretch;
  width: min(1120px, calc(100vw - 48px));
  margin: 40px 0 0 calc(50% - min(560px, 50vw - 24px));
  padding: 40px 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.route-map-plan { position: relative; align-self: center; }
.route-map-plan > img { display: block; width: 100%; height: auto; }
.route-map-plan > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.route-map-plan path {
  fill: none;
  stroke: var(--project-accent);
  stroke-width: .5;
  stroke-linecap: round;
  stroke-dasharray: 1.2 1.6;
  opacity: .9;
}
.js .route-map-plan path { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--guided-ease); }
.js .route-map-plan path.is-drawn { clip-path: inset(0 0 0 0); }
.route-map-point {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  border: 1.5px solid var(--project-accent);
  background: var(--bg);
  font: 700 13px/1 var(--font-display);
  color: var(--text-strong);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45);
  transition: transform .2s var(--guided-ease), background .2s, color .2s;
}
/* zone tactile de 44 px autour d'un point de 32 px */
.route-map-point::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.route-map-point:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.route-map-point.is-current { background: var(--project-accent); color: var(--bg); transform: scale(1.12); }
/* Le halo pulse trois fois, puis reste posé : rien ne tourne sans fin */
.route-map-point.is-current::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--project-accent);
  opacity: .45;
  animation: route-halo 1.6s var(--guided-ease) 3;
}
@keyframes route-halo { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
@media (hover: hover) and (pointer: fine) {
  .route-map-point:not(.is-current):hover { transform: scale(1.1); }
}

/* Colonne de droite : tout est à la même place d'une étape à l'autre */
.route-map > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.route-map-steps { list-style: none; margin: 0; padding: 0; }
.route-map-steps > li + li { margin-top: 32px; }
.js .route-map-steps { display: grid; }
.js .route-map-steps > li {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--guided-ease), visibility 0s .3s;
}
.js .route-map-steps > li.is-current { opacity: 1; visibility: visible; transition-delay: 0s; }
.js .route-map-steps > li .route-map-visual img { transform: translateY(10px) scale(.98); transition: transform .45s var(--guided-ease); }
.js .route-map-steps > li.is-current .route-map-visual img { transform: none; }
.route-map-visual { display: flex; align-items: flex-end; justify-content: flex-start; height: 320px; margin-bottom: 28px; }
.route-map-visual img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius); border: 1px solid var(--border-strong); }
/* Les 3D de Raph n'ont ni cadre ni coin arrondi, et prennent toute la hauteur */
.route-map-visual--3d img { height: 100%; border: 0; border-radius: 0; object-fit: contain; object-position: left bottom; }
.route-map-visual--phone img { border: 0; border-radius: 14px; box-shadow: 0 0 0 6px #000; }
.route-map-kicker { display: block; font: 600 13px var(--font-display); letter-spacing: .02em; color: var(--project-accent); }
.route-map-steps h3 { margin: 6px 0 8px; font-size: var(--fs-4); line-height: 1.15; }
.route-map-steps p { margin: 0; color: var(--text-muted); max-width: 40ch; }

/* Flèches rondes + un segment par étape (le segment courant se remplit pendant la lecture automatique) */
.route-map-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.route-map-ctrl .route-map-arrow {
  all: unset;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: var(--fs-3);
  color: var(--text-strong);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.route-map-ctrl .route-map-arrow:active { transform: scale(.95); }
.route-map-ctrl .route-map-arrow:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.route-map-ctrl .route-map-arrow[disabled] { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .route-map-ctrl .route-map-arrow:not([disabled]):hover { border-color: var(--project-accent); }
}
.route-map-ctrl .route-map-arrow[data-next]:not([disabled]) { background: var(--project-accent); border-color: var(--project-accent); color: var(--bg); }
.route-map-segs { display: flex; gap: 6px; margin-left: 14px; }
.route-map-segs i { position: relative; width: 28px; height: 3px; border-radius: 3px; background: var(--border-strong); overflow: hidden; }
.route-map-segs i::after { content: ""; position: absolute; inset: 0; background: var(--project-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--guided-ease); }
.route-map-segs i.is-done::after, .route-map-segs i.is-current::after { transform: scaleX(1); }
.route-map-segs i.is-current.is-running::after { transform: scaleX(0); animation: route-progress var(--route-step, 4s) linear forwards; }
@keyframes route-progress { to { transform: scaleX(1); } }
.route-map-ctrl .guided-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.route-map-off { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: var(--fs-1); color: var(--text-dim); }
.route-map-ctrl + .route-map-off { margin-top: 32px; }
.route-map-off button {
  all: unset;
  cursor: pointer;
  color: var(--project-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.route-map-off button::after { content: " →"; }
.route-map-off button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
@media (max-width: 760px) {
  .route-map { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 16px; }
  .route-map-visual { height: 240px; margin-bottom: 20px; }
  .route-map-steps h3 { font-size: var(--fs-3); }
  .route-map-ctrl { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .route-map *:not(.route-map-visual--3d img), .route-map *::after { transition: none !important; animation: none !important; }
  .js .route-map-plan path { clip-path: none; }
}

/* Version défilement (data-route-scroll, refaite le 22/10 à la demande de Raph) : un bloc de la hauteur
   de l'écran reste collé (.route-map-stage) ; le plan à gauche, un accordéon à droite où seule l'étape
   en cours est ouverte. Le bloc parent fait défiler une part d'écran par étape. */
.route-map--pinned {
  --stage-h: min(720px, calc(100vh - 160px));
  display: block;
  height: calc(var(--stage-h) + (var(--route-n, 5) - 1) * 45vh);
  padding: 0;
  border: 0;
  background: none;
}
.route-map-stage {
  position: sticky;
  top: max(72px, calc((100vh - var(--stage-h)) / 2 - 24px));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  height: var(--stage-h);
  padding: 28px 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.route-map.route-map--pinned > .route-map-stage { display: grid; }
.route-map-stage > div:last-child { min-width: 0; }
.route-map--pinned .route-map-plan { max-height: 100%; aspect-ratio: 1; justify-self: center; width: min(100%, calc(var(--stage-h) - 56px)); }
.route-map--pinned .route-map-steps { display: block; }
.route-map--pinned .route-map-steps > li { margin: 0; opacity: 1; visibility: visible; border-top: 1px solid var(--border); }
.route-map--pinned .route-map-steps > li:last-child { border-bottom: 1px solid var(--border); }
.route-map--pinned .route-map-steps h3 { margin: 0; font-size: var(--fs-3); line-height: 1.2; }
.route-map-head {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .3s, font-size .3s var(--guided-ease);
}
.route-map-head:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.route-map--pinned li.is-current .route-map-head { color: var(--text-strong); font-size: var(--fs-4); }
@media (hover: hover) and (pointer: fine) {
  .route-map--pinned li:not(.is-current) .route-map-head:hover { color: var(--text); }
}
/* Le corps de l'étape se déplie (hauteur et fondu) ; replié, il ne reste que la ligne du titre */
.route-map-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--guided-ease), opacity .3s; }
.route-map-body > div { min-height: 0; overflow: hidden; }
.route-map--pinned li.is-current .route-map-body { grid-template-rows: 1fr; opacity: 1; }
.route-map--pinned .route-map-body p { margin: 0 0 16px; }
.route-map--pinned .route-map-visual { height: clamp(120px, calc(var(--stage-h) - 400px), 300px); margin: 0 0 18px; }
.route-map--pinned .route-map-steps > li .route-map-visual img { transform: none; }
/* Point en cours : le jaune de l'éclair Flash, net à côté des autres points */
.route-map--pinned .route-map-point.is-current { background: #FFC629; border-color: #FFC629; color: #0A0A0C; transform: scale(1.18); }
.route-map--pinned .route-map-point.is-current::after { border-color: #FFC629; }
/* le plan pâlit quand l'étape lue n'est pas sur le plan (« En coulisses ») */
.route-map--pinned .route-map-plan > img, .route-map--pinned .route-map-plan > svg { transition: opacity .45s var(--guided-ease); }
.route-map--pinned.is-off-plan .route-map-plan > img, .route-map--pinned.is-off-plan .route-map-plan > svg { opacity: .35; }
@media (max-width: 760px) {
  /* Sur téléphone : le plan en haut du bloc, l'accordéon dessous */
  .route-map--pinned { --stage-h: calc(100vh - 140px); }
  .route-map-stage { top: 70px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 16px; }
  .route-map--pinned .route-map-plan { width: min(62%, 30vh); }
  .route-map--pinned .route-map-steps h3 { font-size: var(--fs-2); }
  .route-map-head { padding: 10px 0; }
  .route-map--pinned li.is-current .route-map-head { font-size: var(--fs-3); }
  .route-map--pinned .route-map-body p { font-size: var(--fs-2); margin-bottom: 12px; }
  .route-map--pinned .route-map-visual { height: clamp(90px, calc(var(--stage-h) - 30vh - 330px), 200px); margin-bottom: 12px; }
  .route-map--pinned .route-map-point { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 11px; }
  .route-map--pinned .route-map-point::before { inset: -9px; }
}

/* ----------------------------------------------------------
   Habillage sans modèle (Raph, 22/10, maquette https://claude.ai/artifact/48F5SJxGkpb8uuWqSx3K4P)
   Étiquettes en minuscules, le nom de la partie dans la marge ; chiffres en couleur de texte
   avec un trait à la couleur du projet, dans la marge pour ne pas décaler l'alignement.
   ---------------------------------------------------------- */
.kicker { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: var(--fs-2); font-weight: 500; }
.eyebrow { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: var(--fs-1); font-weight: 600; color: var(--project-accent); }
.eyebrow-num { display: none; }
.home-hero .eyebrow { font-family: inherit; font-weight: inherit; }
.choice-tag,
.steps-why strong,
.steps--live .steps-count,
.compare-tag,
.part-kicker { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: var(--fs-1); font-weight: 600; }
@media (min-width: 1101px) {
  .section { position: relative; }
  .section > .eyebrow { position: absolute; right: calc(100% + 40px); width: 140px; justify-content: flex-end; text-align: right; margin: 0; transform: translateY(10px); }
  /* L'accueil garde sa ligne d'intro au-dessus du titre */
  .home-hero > .eyebrow { position: static; width: auto; justify-content: flex-start; text-align: left; margin: 0 0 20px; transform: none; }
}
.hero-result-number,
.stat-number,
.result-item .result-number { color: var(--text-strong); }
.hero-result-number { position: relative; }
.hero-result-number::before { content: ''; position: absolute; left: -14px; top: 1px; bottom: 1px; width: 2px; background: var(--project-accent); }

/* Polices Funnel (Raph, 22/10, choix H) : graisses de la maquette, titres équilibrés */
.hero h1,
.home-hero h1 { font-weight: 800; letter-spacing: -0.02em; }
.section-title { font-weight: 700; letter-spacing: -0.015em; }
h1, h2, h3 { text-wrap: balance; }

/* Démo guidée, mode défilement (data-guided-scroll, Raph 22/10 : même système que le plan de Flash).
   site.js place le bloc dans .guided-pin, plus haut d'une part d'écran par étape ; le bloc reste collé,
   garde sa taille (l'appareil se réduit s'il le faut) et seule l'étape en cours est ouverte. */
.guided-pin { position: relative; width: min(1120px, calc(100vw - 48px)); margin: 40px 0 0 calc(50% - min(560px, 50vw - 24px)); }
.guided.guided--scroll { position: sticky; width: 100%; margin: 0; }
.guided--scroll .guided-ctrl { display: none; }

/* ==========================================================
   Audit du 25/10, points validés par Raph le 26/10
   (rapport : portfolio/audits/seloger_dossier_2026-10-25/rapport_D.md)
   ========================================================== */

/* n° 29 : barre de défilement et sélection aux teintes du projet */
html { scrollbar-color: color-mix(in srgb, var(--project-accent) 40%, var(--bg)) var(--bg); }
::selection { background: color-mix(in srgb, var(--project-accent) 35%, transparent); color: var(--text-strong); }

/* n° 30 : lignes du corps autour de 75 caractères */
p, .learning-text, .section-intro { max-width: min(620px, 68ch); }

/* n° 18 : les pilules se tassent à l'appui (propriété scale : .hero-cta garde son animation d'entrée) */
.duo-switch button,
.parts-step,
.guided-now-arrow { transition: scale 160ms var(--guided-ease), background .3s, color .3s; }
.hero-cta:active,
.duo-switch button:active,
.parts-step:active:not(:disabled),
.guided-now-arrow:active:not([disabled]) { scale: .97; }
@media (prefers-reduced-motion: reduce) {
  .hero-cta:active, .duo-switch button:active, .parts-step:active, .guided-now-arrow:active { scale: none; opacity: .8; }
}

/* Teinte, accent et visuel de chaque projet, pour ses cartes (accueil et « Projet suivant ») */
[href*="flash/index"] { --card-bg: #041517; --card-border: #1A3D42; --card-accent: #00AEC3; --card-visual: url("../../projets/flash/images/sortie-flash-3d.webp"); --vis-w: 46%; --vis-r: -6%; --vis-b: -22%; }
[href*="seloger/index"] { --card-bg: #170A0C; --card-border: #402226; --card-accent: #F5303C; --card-visual: url("../../projets/seloger/images/ecran-apercu.webp"); --vis-w: 26%; --vis-r: 8%; --vis-b: -58%; --vis-rot: 4deg; --vis-radius: 14px; }
[href*="seloger-dossier/index"] { --card-bg: #170A0C; --card-border: #402226; --card-accent: #F5303C; --card-visual: url("../../projets/seloger-dossier/demo-parcours/img/dossier_valide.webp"); --vis-w: 34%; --vis-r: 2%; --vis-b: -12%; }
[href*="inti/index"] { --card-bg: #060C1C; --card-border: #1F2C47; --card-accent: #3d88f6; --card-visual: url("../../projets/inti/images/tickets/01-courges.webp"); --vis-w: 24%; --vis-r: 8%; --vis-b: -64%; --vis-rot: -5deg; }

/* n° 8 : l'accueil en cartes teintées, avec un visuel du projet qui dépasse du cadre */
.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, calc(100vw - 48px));
  margin-left: calc(50% - min(560px, 50vw - 24px));
  border-top: 0;
}
.project-list li { border-bottom: 0; display: flex; }
.project-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  padding: 28px 28px 24px;
  border: 1px solid var(--card-border, var(--border-strong));
  border-radius: 16px;
  background: var(--card-bg, var(--surface));
  transition: scale 120ms var(--guided-ease), border-color .3s;
}
.project-card .project-title,
.project-card .project-meta { max-width: 64%; }
.project-card .project-arrow { margin-top: auto; align-self: flex-start; padding-top: 16px; color: var(--card-accent, var(--text-muted)); }
.project-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: var(--vis-r, 0);
  bottom: var(--vis-b, 0);
  width: var(--vis-w, 40%);
  aspect-ratio: var(--vis-ratio, 1);
  background: var(--card-visual) center top / contain no-repeat;
  border-radius: var(--vis-radius, 0);
  rotate: var(--vis-rot, 0deg);
  pointer-events: none;
}
[href*="seloger/index"].project-card::after,
[href*="inti/index"].project-card::after { --vis-ratio: 9 / 19; }
.project-card:active { scale: .985; }
@keyframes card-rebond { 0% { translate: 0 0; } 60% { translate: 0 -8px; } 100% { translate: 0 -6px; } }
@media (hover: hover) and (pointer: fine) {
  a.project-card:hover { border-color: color-mix(in srgb, var(--card-accent, var(--text)) 45%, transparent); }
  a.project-card:hover::after { animation: card-rebond 420ms var(--guided-ease) forwards; }
}
/* Les cartes arrivent l'une après l'autre au premier chargement */
.project-list li { animation: rise .7s var(--ease-out) both; }
.project-list li:nth-child(1) { animation-delay: .1s; }
.project-list li:nth-child(2) { animation-delay: .16s; }
.project-list li:nth-child(3) { animation-delay: .22s; }
.project-list li:nth-child(4) { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .project-list li { animation: none; }
  a.project-card:hover::after { animation: none; }
  .project-card:active { scale: none; opacity: .85; }
}
@media (max-width: 899px) {
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project-card { min-height: 200px; padding: 22px 20px 20px; }
  .project-card .project-title { font-size: var(--fs-3); }
  /* Sur téléphone le titre prend toute la largeur ; le visuel se range dans la ligne de la flèche */
  .project-card .project-title, .project-card .project-meta { max-width: none; }
  .project-card .project-arrow { padding-top: 64px; }
  .project-card::after { width: auto; height: 104px; right: 16px; bottom: -8px; aspect-ratio: var(--vis-ratio, 1); }
  [href*="seloger/index"].project-card::after,
  [href*="inti/index"].project-card::after { height: 150px; bottom: -64px; }
}

/* n° 7 : le titre de la carte glisse jusqu'au titre du projet (site.js pose data-page sur <html>) */
.project-card[href*="flash/index"] .project-title, .next-link[href*="flash/index"] .next-title, html[data-page="flash"] .hero h1 { view-transition-name: titre-flash; }
.project-card[href*="seloger/index"] .project-title, .next-link[href*="seloger/index"] .next-title, html[data-page="seloger"] .hero h1 { view-transition-name: titre-seloger; }
.project-card[href*="seloger-dossier/index"] .project-title, .next-link[href*="seloger-dossier/index"] .next-title, html[data-page="seloger-dossier"] .hero h1 { view-transition-name: titre-dossier; }
.project-card[href*="inti/index"] .project-title, .next-link[href*="inti/index"] .next-title, html[data-page="inti"] .hero h1 { view-transition-name: titre-inti; }

/* « Projet suivant » en bande pleine largeur (Impeccable 26/10, Raph : cartes et visuels rognés « pas du tout corrects »).
   La bande prend le fond du projet suivant et monte sur la page comme la partie papier. Le nom du projet est
   dans la marge, sa promesse en titre de section, son visuel entier à droite. Toute la bande est le lien. */
.next-case { padding: 64px 0 0; text-align: left; }
.next-case .next-link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 32px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-block: 56px;
  padding-inline: max(24px, calc(50vw - var(--max-width) / 2 + 24px));
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 var(--card-border, var(--border-strong));
  background: var(--card-bg, var(--surface));
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  text-decoration: none;
  transition: background-color .3s;
}
.next-case .next-head { grid-column: 1; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; font-family: var(--font-body); letter-spacing: 0; }
.next-case .next-kicker { font-size: var(--fs-1); font-weight: 400; color: var(--text-dim); }
.next-case .next-name { font-family: var(--font-display); font-size: var(--fs-2); font-weight: 600; color: var(--card-accent, var(--text)); }
.next-case .next-title { grid-column: 1; max-width: 18ch; text-wrap: balance; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: transparent; text-underline-offset: 8px; transition: text-decoration-color .3s; }
/* Le visuel du projet, entier, à sa vraie proportion */
.next-case .next-link::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  height: 248px;
  aspect-ratio: var(--vis-ratio, 1);
  background: var(--card-visual) center / contain no-repeat;
  pointer-events: none;
  transition: translate .42s var(--guided-ease);
}
.next-case .next-link[href*="seloger/index"]::after,
.next-case .next-link[href*="inti/index"]::after { --vis-ratio: 9 / 19; height: 280px; }
.next-case .next-link:active { scale: none; opacity: .92; }
@media (hover: hover) and (pointer: fine) {
  a.next-link:hover .next-title { text-decoration-color: var(--card-accent, var(--text)); }
  a.next-link:hover::after { translate: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) { a.next-link:hover::after { translate: none; } }
/* Le retour à la sélection, sous la bande, sur son fond */
.next-case .next-link + div { width: 100vw; margin-left: calc(50% - 50vw); padding: 8px max(24px, calc(50vw - var(--max-width) / 2 + 24px)) 40px; background: var(--card-bg, var(--surface)); }
.next-case .next-link + div .back-link { margin-top: 0; }
.next-case:has(.next-link[href*="flash/index"]) .next-link + div { --card-bg: #041517; }
.next-case:has(.next-link[href*="seloger/index"]) .next-link + div,
.next-case:has(.next-link[href*="seloger-dossier/index"]) .next-link + div { --card-bg: #170A0C; }
.next-case:has(.next-link[href*="inti/index"]) .next-link + div { --card-bg: #060C1C; }
@media (min-width: 1101px) {
  /* Dans une grille, l'élément placé en absolu se repère sur sa case : la marge est donc à 40 px à gauche de la colonne du texte */
  .next-case .next-head { position: absolute; grid-row: 1; top: 6px; right: calc(100% + 40px); width: 140px; margin: 0; text-align: right; align-items: flex-end; }
  .next-case .next-title { grid-row: 1; }
  .next-case .next-link { align-items: center; }
}
@media (max-width: 760px) {
  .next-case .next-link { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 40px 32px; border-radius: 20px 20px 0 0; font-size: var(--fs-4); }
  .next-case .next-link::after { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 28px; height: 168px; }
  .next-case .next-link[href*="seloger/index"]::after,
  .next-case .next-link[href*="inti/index"]::after { height: 220px; }
}

/* n° 12 : les leçons, plus présentes, numérotées dans la marge */
.learning-text {
  counter-increment: lecon;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-3);
  line-height: 1.4;
  color: var(--text-strong);
}
.learning-text::before {
  content: counter(lecon, decimal-leading-zero);
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--project-accent);
  font-variant-numeric: tabular-nums;
}
.learning-text + .learning-text { margin-top: 28px; }
*:has(> .learning-text) { counter-reset: lecon; }
@media (min-width: 1101px) {
  .learning-text::before { position: absolute; right: calc(100% + 40px); top: 6px; margin: 0; }
}
@media (max-width: 640px) { .learning-text { font-size: var(--fs-3); } }

/* Raph 26/10 : les visuels ne sont plus coupés par le bas des cartes. Ils tiennent entiers dans le coin,
   sous la même marge que le texte ; écrans et ticket (formats hauts) prennent la hauteur de la carte. */
.project-card::after {
  right: 24px; bottom: 20px; width: auto; height: 168px; rotate: 0deg;
  background-position: center bottom;
}
[href*="seloger/index"].project-card::after, [href*="inti/index"].project-card::after {
  height: calc(100% - 40px); border-radius: 0;
}
.project-card .project-title, .project-card .project-meta { max-width: 58%; }
@media (max-width: 899px) {
  .project-card::after { right: 16px; bottom: 16px; height: 96px; }
  [href*="seloger/index"].project-card::after, [href*="inti/index"].project-card::after { height: 120px; bottom: 16px; }
  .project-card .project-title, .project-card .project-meta { max-width: none; }
  .project-card .project-arrow { padding-top: 88px; }
}

/* Résultats sans boîte (Impeccable 26/10) : le chiffre blanc, un trait d'accent dans la marge, comme les chiffres du hero */
.results-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 40px; }
.result-item { position: relative; padding-left: 16px; }
.result-item::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--project-accent); }
.result-item .result-number { white-space: nowrap; color: var(--text-strong); }
@media (max-width: 640px) { .results-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* Arbitrages en registre (Raph 26/10, choix parmi les pistes Impeccable) : une ligne par décision, sans carte ni picto.
   Le verdict en minuscules dans la marge ; un titre écarté est barré d'un trait fin. Dans une paire écarté → retenu,
   un trait dans la marge relie les deux lignes ; un filet sépare les paires. site.js convertit les anciens .choice-block. */
.ledger { margin: 40px 0; display: grid; border-bottom: 1px solid var(--border-strong); }
.ledger-group { border-top: 1px solid var(--border-strong); }
.ledger-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); padding: 22px 0 24px; }
.ledger-row + .ledger-row { padding-top: 4px; }
.ledger-row:has(+ .ledger-row) { padding-bottom: 20px; }
.ledger-row:has(+ .ledger-row) .ledger-verdict { position: relative; }
.ledger-row:has(+ .ledger-row) .ledger-verdict::after { content: ""; position: absolute; left: 3px; top: 30px; bottom: -16px; width: 1px; background: var(--border-strong); }
.ledger-verdict { margin: 0; padding-top: 4px; font-size: var(--fs-1); color: var(--text-dim); }
.ledger-row.is-kept .ledger-verdict { color: var(--text-strong); font-weight: 600; }
.ledger-body h3 { margin: 0 0 8px; text-wrap: balance; }
.ledger-body p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.ledger-row.is-dropped h3 { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--text-dim); }
/* Raph 26/10 (fil Flash) : la ligne retenue commence par « Parce que » + la cause, et l'option écartée qu'elle a
   remplacée apparaît dedans, barrée, avec son étiquette « écarté ». Un écarté sans remplaçant garde sa ligne .is-dropped. */
.ledger-body p + p { margin-top: 12px; }
.ledger-body strong { color: var(--text-strong); font-weight: 600; }
.ledger-body .ledger-alt { margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--accent-discarded); color: var(--text-muted); }
.ledger-alt-tag { display: inline-block; margin-right: 6px; font: 600 var(--fs-1) var(--font-display); color: var(--accent-discarded); }
.ledger-body .ledger-alt strong { color: var(--text); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--text-dim); }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); row-gap: 6px; padding: 18px 0 20px; }
  .ledger-verdict { padding-top: 0; }
  .ledger-row:has(+ .ledger-row) .ledger-verdict::after { display: none; }
  .ledger-row + .ledger-row { padding-top: 0; }
}
.js .ledger > [data-reveal] { transition-delay: calc(var(--i, 0) * 100ms); }

/* La fiche en lignes de formulaire (Impeccable 26/10) : pas de boîte, un filet en haut et en bas,
   l'étiquette à gauche, la valeur sur une ligne pointillée, une rubrique par ligne, à la largeur du texte */
.fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0; border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.fiche-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding: 12px 0; min-width: 0; }
.fiche-item + .fiche-item { border-left: 0; padding-left: 0; }
.fiche-label { margin: 0; }
.fiche-value { overflow-wrap: break-word; padding-bottom: 6px; border-bottom: 1px dotted var(--border-strong); }
.fiche-item:last-child .fiche-value { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 640px) {
  .fiche-item { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
  /* Texte agrandi à 200 % : la pilule du menu défile au lieu de sortir de l'écran */
  .site-nav { max-width: calc(100vw - 32px); }
  .nav-pill { overflow-x: auto; scrollbar-width: none; }
}

/* n° 13 : la partie papier, une feuille aux coins arrondis posée sur la fin de la partie sombre */
.part-detail { position: relative; border-radius: 28px 28px 0 0; margin-top: -28px; box-shadow: 0 -1px 0 var(--border-strong); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .part-detail-head { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 70%; }
  }
}
@media (max-width: 760px) { .part-detail { border-radius: 20px 20px 0 0; margin-top: -20px; } }

/* n° 31 : un lien discret pour passer un bloc épinglé */
.pin-skip {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 4px;
  font-size: var(--fs-1);
  color: var(--text-dim);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}
.pin-skip:hover, .pin-skip:focus-visible { color: var(--text); }
/* Sur téléphone le lien passe au-dessus de l'image : une pastille le garde lisible */
@media (max-width: 760px) {
  .pin-skip { top: 8px; right: 8px; min-height: 28px; padding: 0 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 78%, transparent); text-decoration: none; backdrop-filter: blur(6px); }
}
