/* =========================================================
   Ethan Jung — Portfolio Systèmes & Réseaux
   Direction artistique : « fiche technique »
   Papier chaud, encre, un seul signal orange.
   Archivo (grotesk variable) · Instrument Serif (accents) · IBM Plex Mono (données)
   ========================================================= */

/* -------------------- Polices auto-hébergées -------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('assets/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */

:root {
  /* Palette */
  --paper: #EFEDE8;
  --paper-2: #E6E3DC;
  --paper-3: #D9D5CC;
  --ink: #0F0F0E;
  --ink-2: #181816;
  --ink-3: #242421;
  --muted: #64625C;
  --faint: #7A776F;
  --signal: #FF4D00;
  --on-dark: #EFEDE8;
  --on-dark-muted: #8E8B84;
  --on-dark-faint: #5E5C57;

  /* Thème courant (surchargé par .theme-*) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --fg-faint: var(--faint);
  --line: rgba(15, 15, 14, 0.14);
  --line-strong: var(--ink);
  --surface: var(--paper-2);
  --accent: var(--signal);
  --accent-text: #B83300;
  --on-accent: var(--ink);

  /* Typographie */
  --f-sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;

  /* Mise en page */
  --gutter: clamp(20px, 3.4vw, 56px);
  --gap: clamp(14px, 1.7vw, 28px);
  --max: 1680px;
  --header-h: 76px;
  --section-y: clamp(88px, 9.5vw, 156px);

  /* Mouvement */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --fg-faint: var(--faint);
  --line: rgba(15, 15, 14, 0.14);
  --line-strong: var(--ink);
  --surface: var(--paper-2);
  --accent: var(--signal);
  --on-accent: var(--ink);
}

.theme-alt {
  --bg: var(--paper-2);
  --surface: var(--paper);
  --line: rgba(15, 15, 14, 0.16);
}

.theme-dark {
  --accent-text: var(--signal);
  --bg: var(--ink);
  --fg: var(--on-dark);
  --fg-muted: var(--on-dark-muted);
  --fg-faint: var(--on-dark-faint);
  --line: rgba(239, 237, 232, 0.13);
  --line-strong: var(--on-dark);
  --surface: var(--ink-2);
  --accent: var(--signal);
  --on-accent: var(--ink);
}

.theme-signal {
  --accent-text: var(--ink);
  --bg: var(--signal);
  --fg: var(--ink);
  --fg-muted: rgba(15, 15, 14, 0.8);
  --fg-faint: rgba(15, 15, 14, 0.6);
  --line: rgba(15, 15, 14, 0.24);
  --line-strong: var(--ink);
  --surface: #F06A2C;
  --accent: var(--ink);
  --on-accent: var(--signal);
}

.theme-light,
.theme-dark,
.theme-signal {
  background-color: var(--bg);
  color: var(--fg);
}

/* -------------------- Base -------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Grain papier, très léger */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}

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

.theme-signal :focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 13px;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* -------------------- Typographie -------------------- */

.label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dim {
  color: var(--fg-muted);
}

h1,
h2,
h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 em,
h2 em,
.project-kicker em,
.hero-statement em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

.btn {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-bd: var(--fg);
  --btn-bg-h: var(--signal);
  --btn-fg-h: var(--ink);
  --btn-bd-h: var(--signal);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 26px 0 28px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

/* remplissage qui monte au survol */
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-bg-h);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-fg-h);
  border-color: var(--btn-bd-h);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn-label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.3;
}

.btn-label > span {
  display: inline-block;
  transition: transform 0.55s var(--ease-out);
}

.btn-label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  transition: transform 0.55s var(--ease-out);
}

.btn:hover .btn-label > span,
.btn:hover .btn-label::after,
.btn:focus-visible .btn-label > span,
.btn:focus-visible .btn-label::after {
  transform: translateY(-100%);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.55s var(--ease-out);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.btn[download]:hover .btn-icon {
  transform: translateY(3px);
}

.btn-ink {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-bd: var(--fg);
}

.theme-signal .btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  --btn-bg-h: var(--paper);
  --btn-fg-h: var(--ink);
  --btn-bd-h: var(--paper);
}

.btn-line {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--line);
  --btn-bg-h: var(--fg);
  --btn-fg-h: var(--bg);
  --btn-bd-h: var(--fg);
}

.btn-signal {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-bd: var(--signal);
  --btn-bg-h: var(--on-dark);
  --btn-fg-h: var(--ink);
  --btn-bd-h: var(--on-dark);
}

.btn-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

/* -------------------- Éléments signature -------------------- */

/* Carré orange qui « clignote » comme une LED de port */
.sq-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--signal);
  vertical-align: 1px;
  animation: led 2.2s steps(1) infinite;
}

.theme-signal .sq-pulse {
  background: var(--ink);
}

@keyframes led {
  0%, 62%, 100% { opacity: 1; }
  64%, 70% { opacity: 0.2; }
  72%, 76% { opacity: 1; }
  78%, 82% { opacity: 0.2; }
}

/* Curseur de terminal, en bloc */
.cursor {
  display: inline-block;
  width: 0.36em;
  height: 0.7em;
  margin-left: 0.06em;
  background: var(--signal);
  vertical-align: baseline;
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* Puces / tags */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1;
  color: var(--fg);
  white-space: nowrap;
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

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

.site-header {
  --hd-bg: rgba(239, 237, 232, 0.82);
  --hd-fg: var(--ink);
  --hd-muted: var(--muted);
  --hd-line: rgba(15, 15, 14, 0.12);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--hd-fg);
  transition: transform 0.6s var(--ease-out), color 0.4s ease;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hd-bg);
  border-bottom: 1px solid var(--hd-line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.4s ease;
}

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

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header[data-on='dark'] {
  --hd-bg: rgba(15, 15, 14, 0.78);
  --hd-fg: var(--on-dark);
  --hd-muted: var(--on-dark-muted);
  --hd-line: rgba(239, 237, 232, 0.1);
}

.site-header[data-on='signal'] {
  --hd-bg: rgba(255, 77, 0, 0.86);
  --hd-fg: var(--ink);
  --hd-muted: rgba(15, 15, 14, 0.75);
  --hd-line: rgba(15, 15, 14, 0.18);
}

.header-row {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--signal);
  transition: transform 0.6s var(--ease-out);
}

.site-header[data-on='signal'] .brand-mark {
  background: var(--ink);
}

.brand:hover .brand-mark {
  transform: rotate(90deg);
}

.main-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.main-nav sup {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--hd-muted);
  line-height: 1;
  margin-top: 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.main-nav a:hover::after,
.main-nav a[aria-current='true']::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 1560px) {
  .site-header:has(.nav-back) .header-clock {
    display: none;
  }
}

.main-nav li:has(.nav-back) {
  padding-right: clamp(14px, 2vw, 32px);
  border-right: 1px solid var(--hd-line);
}

.main-nav .nav-back {
  align-items: center;
  gap: 6px;
  color: var(--hd-muted);
  transition: color 0.3s ease;
}

.main-nav .nav-back::after {
  display: none;
}

.main-nav .nav-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.5s var(--ease-out);
}

.main-nav .nav-back:hover {
  color: var(--hd-fg);
}

.main-nav .nav-back:hover svg {
  transform: translateX(-3px);
}

.header-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.header-clock {
  color: var(--hd-muted);
  white-space: nowrap;
}

.header-clock [data-clock] {
  color: var(--hd-fg);
}

.site-header .btn-ink {
  --btn-bg: var(--hd-fg);
  --btn-fg: var(--paper);
  --btn-bd: var(--hd-fg);
}

.site-header[data-on='dark'] .btn-ink {
  --btn-fg: var(--ink);
}

.site-header[data-on='signal'] .btn-ink {
  --btn-bg-h: var(--paper);
  --btn-bd-h: var(--paper);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 4px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}

.menu-toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.menu-toggle-icon span:first-child { top: 0; }
.menu-toggle-icon span:last-child { top: 8.5px; }

.menu-toggle[aria-expanded='true'] .menu-toggle-icon span:first-child {
  top: 4.25px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-icon span:last-child {
  top: 4.25px;
  transform: rotate(-45deg);
}

/* Menu plein écran */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  padding-top: var(--header-h);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-io);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel.is-open {
  clip-path: inset(0 0 0 0);
}

.menu-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 40px 32px;
}

.menu-links li {
  border-top: 1px solid var(--line);
}

.menu-links li:last-child {
  border-bottom: 1px solid var(--line);
}

.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  font-size: clamp(2.4rem, 11vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out), color 0.3s ease;
}

.menu-links .label {
  color: var(--signal);
}

.menu-panel.is-open .menu-links a {
  transform: none;
  opacity: 1;
}

.menu-panel.is-open .menu-links li:nth-child(1) a { transition-delay: 0.18s; }
.menu-panel.is-open .menu-links li:nth-child(2) a { transition-delay: 0.23s; }
.menu-panel.is-open .menu-links li:nth-child(3) a { transition-delay: 0.28s; }
.menu-panel.is-open .menu-links li:nth-child(4) a { transition-delay: 0.33s; }
.menu-panel.is-open .menu-links li:nth-child(5) a { transition-delay: 0.38s; }
.menu-panel.is-open .menu-links li:nth-child(6) a { transition-delay: 0.43s; }

.menu-links a:hover {
  color: var(--signal);
}

.menu-links .menu-back {
  color: var(--fg-muted);
}

.menu-panel.is-open .menu-links li:nth-child(7) a { transition-delay: 0.48s; }

.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--fg-muted);
}

.menu-foot a:hover {
  color: var(--fg);
}

/* -------------------- Hero (accueil) -------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(16px, 2vw, 32px));
  padding-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  overflow: hidden;
}

.hero > .wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Repères de colonnes, façon calque technique */
.guides {
  position: absolute;
  inset: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  pointer-events: none;
  z-index: 0;
}

.guides span {
  border-inline: 1px solid rgba(15, 15, 14, 0.045);
}

.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.hero-avail {
  justify-self: end;
  display: inline-flex;
  align-items: center;
}

.hero-main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  align-content: center;
  padding-block: clamp(28px, 4vw, 64px);
}

.hero-name {
  display: contents;
}

.hero-word {
  display: block;
  font-size: clamp(5.2rem, 19.6vw, 21rem);
  font-weight: 700;
  font-stretch: 100%;
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.hero-word--1 {
  grid-column: 1 / 9;
  grid-row: 1;
  margin-left: -0.05em;
}

.hero-word--2 {
  grid-column: 4 / 13;
  grid-row: 2;
  justify-self: end;
}

.mask {
  display: inline-block;
  overflow: hidden;
  padding: 0.04em 0.06em 0.24em;
  margin: -0.04em -0.06em -0.24em;
}

.mask-in {
  display: inline-block;
}

.hero-statement {
  grid-column: 9 / 13;
  grid-row: 1;
  align-self: end;
  max-width: 30ch;
  margin-bottom: 0.4em;
  font-size: clamp(1.15rem, 1.55vw, 1.6rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-statement em {
  font-size: 1.12em;
}

.hero-cta {
  grid-column: 1 / 7;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 0.6vw;
}

.hero-foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}

.hero-foot-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-scroll {
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-scroll svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  animation: nudge 2.4s var(--ease-io) infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(3px); }
}

/* Animation d'entrée du hero (activée par JS) */
.js .hero .mask-in {
  transform: translateY(105%);
}

.js .hero-meta > *,
.js .hero-statement,
.js .hero-cta,
.js .hero-foot {
  opacity: 0;
  transform: translateY(16px);
}

.is-loaded .hero .mask-in {
  transform: none;
  transition: transform 1.3s var(--ease-out);
}

.is-loaded .hero-word--2 .mask-in {
  transition-delay: 0.08s;
}

.is-loaded .hero-meta > *,
.is-loaded .hero-statement,
.is-loaded .hero-cta,
.is-loaded .hero-foot {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.is-loaded .hero-meta > :nth-child(1) { transition-delay: 0.3s; }
.is-loaded .hero-meta > :nth-child(2) { transition-delay: 0.36s; }
.is-loaded .hero-meta > :nth-child(3) { transition-delay: 0.42s; }
.is-loaded .hero-meta > :nth-child(4) { transition-delay: 0.48s; }
.is-loaded .hero-statement { transition-delay: 0.5s; }
.is-loaded .hero-cta { transition-delay: 0.6s; }
.is-loaded .hero-foot { transition-delay: 0.7s; }

/* -------------------- En-têtes de section -------------------- */

.sec-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(20px, 2.4vw, 36px);
  padding-top: clamp(18px, 1.6vw, 24px);
  margin-bottom: clamp(48px, 5.6vw, 96px);
}

/* filet supérieur qui se trace */
.sec-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.js .sec-head::before {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-io);
}

.js .sec-head.is-in::before {
  transform: scaleX(1);
}

.sec-index {
  grid-column: 1 / 4;
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.sec-index span {
  color: var(--accent-text);
}

.sec-title {
  grid-column: 4 / 13;
  font-size: clamp(2.7rem, 6.6vw, 7.2rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.sec-title em {
  font-size: 1.06em;
  letter-spacing: -0.025em;
}

.sec-title--xl {
  font-size: clamp(3rem, 8.4vw, 9.6rem);
  line-height: 0.88;
}

.sec-intro {
  grid-column: 4 / 10;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-muted);
}

/* Découpage en mots pour l'animation des titres */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.08em 0.22em;
  margin: -0.06em -0.08em -0.22em;
}

.w-in {
  display: inline-block;
}

.js [data-split] .w-in {
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}

.js [data-split].is-in .w-in {
  transform: none;
}

/* Révélation générique */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.85s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* -------------------- 01 — Profil -------------------- */

.profil-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: clamp(32px, 4vw, 64px);
}

.profil-lead {
  grid-column: 4 / 13;
  font-size: clamp(1.7rem, 3.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.hl-word {
  transition: color 0.35s ease;
}

.js .profil-lead .hl-word {
  color: rgba(15, 15, 14, 0.16);
}

.js .profil-lead .hl-word.on {
  color: var(--fg);
}

.profil-text {
  grid-column: 7 / 12;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--fg-muted);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(64px, 7vw, 112px);
}

.pillar {
  grid-column: span 4;
  position: relative;
  padding-top: 20px;
  padding-right: clamp(0px, 2vw, 32px);
  border-top: 1px solid var(--line-strong);
}

.pillar-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: clamp(22px, 2.2vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.pillar h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.pillar p {
  color: var(--fg-muted);
  max-width: 40ch;
}

.pillar:nth-child(2) { --d: 100; }
.pillar:nth-child(3) { --d: 200; }

/* -------------------- 02 — Alternance -------------------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  padding-top: 40px;
}

/* ligne de temps qui se trace */
.timeline::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left;
}

.js .timeline::before {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease-io) 0.2s;
}

.js .timeline.is-in::before {
  transform: scaleX(1);
}

.tl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 16px;
}

.tl-step::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}

.tl-when {
  color: var(--fg-muted);
}

.tl-step h3 {
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.tl-step p {
  color: var(--fg-muted);
  max-width: 32ch;
}

.tl-step--next {
  margin-top: -18px;
  padding: 18px 20px 22px;
  background: var(--signal);
  color: var(--ink);
}

.tl-step--next::before {
  top: -22px;
  left: 0;
  background: var(--signal);
  border-color: var(--signal);
}

.tl-step--next .tl-when,
.tl-step--next p {
  color: rgba(15, 15, 14, 0.8);
}

.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: 15px;
}

.tl-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.5s var(--ease-out);
}

.tl-link:hover svg {
  transform: translateX(5px);
}

.js .timeline .tl-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .timeline.is-in .tl-step {
  opacity: 1;
  transform: none;
}

.js .timeline.is-in .tl-step:nth-child(2) { transition-delay: 0.25s; }
.js .timeline.is-in .tl-step:nth-child(3) { transition-delay: 0.5s; }
.js .timeline.is-in .tl-step:nth-child(4) { transition-delay: 0.75s; }

/* la timeline elle-même ne doit pas glisser */
.js .timeline[data-reveal] {
  opacity: 1;
  transform: none;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(72px, 8vw, 128px);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.fact:nth-child(2) { --d: 80; }
.fact:nth-child(3) { --d: 160; }
.fact:nth-child(4) { --d: 240; }

.fact dt {
  color: var(--fg-muted);
}

.fact-value {
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

.fact-value span {
  color: var(--fg-faint);
}

.fact-note {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fg-muted);
}

/* -------------------- 03 — Compétences -------------------- */

.spec {
  border-bottom: 1px solid var(--line-strong);
}

.spec-headrow,
.spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  column-gap: var(--gap);
  align-items: center;
}

.spec-headrow {
  padding-bottom: 14px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--line-strong);
}

.spec-row {
  position: relative;
  padding-block: clamp(22px, 2.4vw, 36px);
  border-top: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.45s var(--ease-out);
}

.spec-list > .spec-row:first-child {
  border-top: 0;
}

/* remplissage encre au survol */
.spec-row::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}

.spec-n {
  color: var(--fg-muted);
  transition: color 0.45s var(--ease-out);
}

.spec-title {
  font-size: clamp(1.5rem, 2.6vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.spec-desc {
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.45;
  transition: color 0.45s var(--ease-out);
}

@media (hover: hover) {
  .spec-row:hover {
    color: var(--on-dark);
  }

  .spec-row:hover::before {
    transform: scaleY(1);
  }

  .spec-row:hover .spec-n {
    color: var(--signal);
  }

  .spec-row:hover .spec-desc {
    color: var(--on-dark-muted);
  }

  .spec-row:hover .chips li {
    color: var(--on-dark);
    border-color: rgba(239, 237, 232, 0.22);
  }
}

/* -------------------- 04 — Projet -------------------- */

.sec-head--project {
  margin-bottom: clamp(48px, 6vw, 96px);
}

.project-title {
  grid-column: 1 / 13;
  font-size: clamp(5rem, 21vw, 22rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
  margin-left: -0.05em;
  margin-top: clamp(16px, 2vw, 32px);
  margin-bottom: 0.14em;
}

.project-kicker {
  grid-column: 1 / 13;
  font-size: clamp(1.4rem, 2.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--fg-muted);
}

.project-kicker em {
  color: var(--fg);
  font-size: 1.08em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 56px;
  align-items: start;
}

.project-copy {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.project-lead {
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.project-text {
  color: var(--fg-muted);
  max-width: 48ch;
}

.kv {
  width: 100%;
  border-top: 1px solid var(--line);
}

.kv > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.kv dt {
  color: var(--fg-muted);
}

.kv dd {
  font-family: var(--f-mono);
  font-size: 14.5px;
}

.blueprint {
  grid-column: 7 / 13;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(239, 237, 232, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(239, 237, 232, 0.045) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--ink-2);
}

.blueprint-bar,
.blueprint-cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--fg-muted);
}

.blueprint-bar {
  border-bottom: 1px solid var(--line);
}

.blueprint-cap {
  border-top: 1px solid var(--line);
}

.blueprint-live {
  display: inline-flex;
  align-items: center;
  color: var(--fg);
}

.blueprint-canvas {
  padding: clamp(24px, 4vw, 56px);
}

a.blueprint-canvas {
  position: relative;
  display: block;
  transition: background-color 0.5s var(--ease-out);
}

a.blueprint-canvas:hover {
  background-color: rgba(239, 237, 232, 0.03);
}

a.blueprint-canvas:focus-visible {
  outline-offset: -2px;
}

.blueprint-cta {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.blueprint-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

a.blueprint-canvas:hover .blueprint-cta,
a.blueprint-canvas:focus-visible .blueprint-cta {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .blueprint-cta {
    opacity: 1;
    transform: none;
  }
}

.blueprint-canvas .topo {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
}

/* -------------------- Schémas SVG (topologie) -------------------- */

.topo text {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.topo .t-strong { fill: var(--on-dark); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; }
.topo .t-lg { font-size: 16px; letter-spacing: 0.02em; }
.topo .t-xl { font-size: 18px; letter-spacing: 0.02em; }
.topo .t-muted { fill: var(--on-dark-muted); }
.topo .t-body { fill: #C9C6BE; font-size: 10.5px; }
.topo .t-faint { fill: var(--on-dark-faint); font-size: 10px; }
.topo .t-accent { fill: var(--signal); font-size: 10.5px; letter-spacing: 0.06em; }
.topo .t-small { font-size: 9.5px; }

.topo .node {
  fill: var(--ink);
  stroke: rgba(239, 237, 232, 0.28);
  stroke-width: 1;
}

.topo .node--client {
  stroke: rgba(255, 77, 0, 0.75);
}

.topo .node--soft {
  fill: var(--ink-2);
  stroke: rgba(239, 237, 232, 0.16);
}

.topo .cell {
  fill: rgba(239, 237, 232, 0.035);
  stroke: rgba(239, 237, 232, 0.12);
  stroke-width: 1;
}

.topo .divider {
  stroke: rgba(239, 237, 232, 0.14);
  stroke-width: 1;
}

.topo .link {
  fill: none;
  stroke: rgba(239, 237, 232, 0.38);
  stroke-width: 1;
}

.topo .link--accent {
  stroke: rgba(255, 77, 0, 0.7);
}

.topo .link--dash {
  stroke-dasharray: 3 4;
}

.topo .status,
.topo .packet {
  fill: var(--signal);
}

.topo .packet--soft {
  fill: var(--on-dark);
}

.topo .tag rect {
  fill: var(--ink-2);
  stroke: rgba(255, 77, 0, 0.7);
  stroke-width: 1;
}

.topo .tag text {
  fill: var(--signal);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.topo .ports rect {
  fill: none;
  stroke: rgba(239, 237, 232, 0.3);
  stroke-width: 1;
}

.topo .ports rect.on {
  fill: var(--signal);
  stroke: var(--signal);
  animation: led 1.8s steps(1) infinite;
}

.topo .ports rect.d2 { animation-delay: 0.6s; }
.topo .ports rect.d3 { animation-delay: 1.1s; }

/* -------------------- 05 — Contact -------------------- */

.contact .sec-title {
  grid-column: 1 / 13;
}

.contact .sec-intro {
  grid-column: 1 / 7;
}

.contact-list {
  border-top: 1px solid var(--line-strong);
}

.contact-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  column-gap: var(--gap);
  align-items: center;
  padding-block: clamp(20px, 2.6vw, 36px);
  border-bottom: 1px solid var(--line-strong);
}

.contact-key {
  color: var(--fg-muted);
}

.contact-val {
  font-size: clamp(1.4rem, 3.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  transition: transform 0.6s var(--ease-out);
}

/* toute la ligne est cliquable */
.contact-val::after {
  content: '';
  position: absolute;
  inset: 0;
}

.contact-actions {
  position: relative;
  z-index: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.contact-actions .copy-btn {
  pointer-events: auto;
}

.contact-arrow {
  width: clamp(28px, 3vw, 44px);
  height: clamp(28px, 3vw, 44px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transition: transform 0.6s var(--ease-out);
}

.contact-row:hover .contact-val {
  transform: translateX(clamp(8px, 1.2vw, 20px));
}

.contact-row:hover .contact-arrow {
  transform: rotate(45deg);
}

.copy-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.copy-btn:hover,
.copy-btn.is-done {
  background: var(--ink);
  color: var(--signal);
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 88px);
}

.contact-cta .label {
  color: var(--fg-muted);
}

/* -------------------- Pied de page -------------------- */

.site-footer {
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: 28px;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.footer-col .label {
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  position: relative;
  font-size: 15.5px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--signal);
}

.footer-clock {
  font-family: var(--f-mono);
  font-size: 15px;
}

.footer-mark {
  margin-top: clamp(72px, 10vw, 160px);
  margin-left: -0.05em;
  font-size: clamp(4rem, 17.5vw, 19rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-top svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.5s var(--ease-out);
}

.back-top:hover {
  color: var(--signal);
}

.back-top:hover svg {
  transform: translateY(-3px);
}

/* =========================================================
   Page projet — Infra-Reseau.html
   ========================================================= */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 110;
  height: 2px;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
}

.p-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px));
  padding-bottom: clamp(56px, 6vw, 96px);
  overflow: hidden;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.crumbs a {
  color: var(--fg-muted);
  transition: color 0.3s ease;
}

.crumbs a:hover {
  color: var(--fg);
}

.crumbs .sep {
  color: var(--fg-faint);
}

.crumbs .p-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

.p-title {
  margin-top: clamp(40px, 6vw, 96px);
  font-size: clamp(4.6rem, 20.5vw, 22rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
  margin-left: -0.05em;
  white-space: nowrap;
}

.p-sub {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 24px;
  margin-top: clamp(28px, 3.5vw, 56px);
}

.p-kicker {
  grid-column: 1 / 8;
  font-size: clamp(1.7rem, 3.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.p-kicker em {
  font-size: 1.08em;
}

.p-lead {
  grid-column: 9 / 13;
  align-self: end;
  color: var(--fg-muted);
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.45;
  max-width: 34ch;
}

.p-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(56px, 7vw, 112px);
}

.p-specs > div:nth-child(2) { --d: 80; }
.p-specs > div:nth-child(3) { --d: 160; }
.p-specs > div:nth-child(4) { --d: 240; }

.p-specs > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.p-specs dt {
  color: var(--fg-muted);
}

.p-specs dd {
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.p-specs dd small {
  display: block;
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--fg-muted);
}

.toc {
  margin-top: clamp(56px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.toc a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s ease;
}

.toc a .label {
  color: var(--fg-muted);
  transition: color 0.3s ease;
}

.toc a span:last-child {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.toc a:hover .label {
  color: var(--accent-text);
}

/* Objectifs */

.objectives {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.objectives > li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.objectives > li:nth-child(4n + 2) { --d: 70; }
.objectives > li:nth-child(4n + 3) { --d: 140; }
.objectives > li:nth-child(4n + 4) { --d: 210; }

/* chaque objectif renvoie vers le composant qui le réalise */
.obj {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px clamp(18px, 1.8vw, 28px) 24px;
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
}

.obj::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}

.obj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.obj-top .label {
  color: var(--accent-text);
  transition: color 0.5s var(--ease-out);
}

.obj-go {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.45;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
}

.obj-icon {
  width: clamp(52px, 4.6vw, 68px);
  height: auto;
  margin-block: clamp(20px, 2.6vw, 40px) clamp(8px, 1.2vw, 16px);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.obj-icon .ic-acc {
  fill: var(--signal);
  stroke: none;
}

.obj-icon .ic-dash {
  stroke-dasharray: 2 4;
  opacity: 0.5;
}

.obj-text {
  font-size: clamp(1.15rem, 1.45vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.obj-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}

@media (hover: hover) {
  .obj:hover {
    color: var(--on-dark);
  }

  .obj:hover::before {
    transform: scaleY(1);
  }

  .obj:hover .obj-top .label {
    color: var(--signal);
  }

  .obj:hover .obj-go {
    opacity: 1;
    transform: rotate(-45deg);
  }

  .obj:hover .obj-meta {
    color: var(--on-dark-muted);
    border-color: rgba(239, 237, 232, 0.16);
  }
}

.obj:focus-visible {
  outline-offset: -2px;
}

/* Architecture */

.arch {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(239, 237, 232, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(239, 237, 232, 0.045) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink-2);
}

.arch-scroll {
  overflow-x: auto;
  padding: clamp(24px, 4vw, 64px);
  scrollbar-width: thin;
  scrollbar-color: var(--on-dark-faint) transparent;
}

.arch-scroll svg {
  width: 100%;
  min-width: 760px;
  max-width: 1080px;
  height: auto;
  margin-inline: auto;
}

.arch-hint {
  display: none;
  padding: 0 18px 14px;
  color: var(--fg-muted);
}

.arch-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(32px, 4vw, 56px);
}

.arch-strip > div:nth-child(2) { --d: 80; }
.arch-strip > div:nth-child(3) { --d: 160; }

.arch-strip > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.arch-strip dt {
  color: var(--fg-muted);
}

.arch-strip dd {
  font-family: var(--f-mono);
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

/* Composants — index collant + blocs */

.components {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.comp-index {
  grid-column: 1 / 4;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.comp-index-title {
  margin-bottom: 14px;
}

.comp-index ol {
  border-top: 1px solid var(--line);
}

.comp-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.3s ease, padding 0.5s var(--ease-out);
}

.comp-index a::before {
  content: '';
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border: 1px solid currentColor;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.comp-index a:hover,
.comp-index a.is-active {
  color: var(--fg);
}

.comp-index a.is-active {
  padding-left: 6px;
}

.comp-index a.is-active::before {
  background: var(--signal);
  border-color: var(--signal);
}

.comp-list {
  grid-column: 5 / 13;
}

.comp {
  padding-block: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.comp:first-child {
  padding-top: 20px;
}

.comp-label {
  display: flex;
  gap: 14px;
  color: var(--fg-muted);
  margin-bottom: clamp(24px, 3vw, 40px);
}

.comp-label span {
  color: var(--accent-text);
}

.comp h3 {
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 18ch;
}

.comp p {
  color: var(--fg-muted);
  max-width: 62ch;
  margin-bottom: 18px;
}

.comp p strong {
  color: var(--fg);
  font-weight: 600;
}

.comp > :last-child {
  margin-bottom: 0;
}

/* Relevés (adresses, enregistrements, chemins) */
.readout {
  margin: 28px 0 18px;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
}

.readout-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(239, 237, 232, 0.1);
}

.readout-row:last-child {
  border-bottom: 0;
}

.readout-key {
  color: var(--signal);
  font-weight: 500;
}

.readout-val {
  overflow-wrap: anywhere;
}

.readout-val small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--on-dark-muted);
}

/* Tableau utilisateur → groupe → droits */
.flow {
  width: 100%;
  margin: 28px 0 18px;
  border-collapse: collapse;
  border-top: 1px solid var(--line-strong);
  table-layout: fixed;
}

.flow th,
.flow td {
  position: relative;
  padding: 14px 32px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 500;
}

.flow td:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: 12px;
  color: var(--accent-text);
}

.flow th {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin: 28px 0;
}

.role {
  padding: 22px 24px 26px;
  background: var(--surface);
  border-top: 2px solid var(--signal);
}

.role h4 {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.role p {
  margin: 0;
  font-size: 15.5px;
}

/* Tests */

.tests-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.tests-score {
  grid-column: 1 / 7;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.tests-score-value {
  font-size: clamp(5rem, 15vw, 15rem);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.tests-score-value .tests-total {
  color: var(--fg-faint);
}

.tests-score-label {
  padding-bottom: 0.6em;
  color: var(--fg-muted);
}

.tests-bar {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tests-bar-track {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 3px;
  height: 28px;
}

.tests-bar-track i {
  background: var(--signal);
  transition: background-color 0.3s ease;
}

.js .tests-bar-track i {
  background: var(--line);
}

.js .tests-bar-track i.on {
  background: var(--signal);
}

.tests-bar-legend .lg-6 { grid-column: span 6; }
.tests-bar-legend .lg-7 { grid-column: span 7; }
.tests-bar-legend .lg-3 { grid-column: span 3; }
.tests-bar-legend .lg-1 { grid-column: span 1; }

.tests-bar-legend {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 3px;
  color: var(--fg-muted);
}

.tests-bar-legend span {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  white-space: nowrap;
}

.test-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) var(--gap);
}

.test-group:nth-child(even) { --d: 120; }

.test-group h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  letter-spacing: -0.035em;
}

.test-group h3 .label {
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.test-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.4;
}

.test-list .label {
  color: var(--fg-muted);
}

.test-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--signal);
  padding: 3px 8px;
}

/* Galerie */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) var(--gap);
}

.shot {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot:nth-child(even) { --d: 120; }

.shot-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10.5;
  padding: clamp(18px, 3vw, 44px);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
}

.shot-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  box-shadow:
    0 1px 2px rgba(15, 15, 14, 0.08),
    0 18px 40px -12px rgba(15, 15, 14, 0.28);
  transition: transform 0.9s var(--ease-out);
}

.shot-frame:hover img {
  transform: scale(1.03);
}

.shot-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.shot-frame:hover .shot-zoom,
.shot-frame:focus-visible .shot-zoom {
  opacity: 1;
  transform: none;
}

.shot-cap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shot-cap .label {
  color: var(--fg-muted);
}

.shot-cap p {
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.shot-tag {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 15, 14, 0.96);
  color: var(--on-dark);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: lb-in 0.5s var(--ease-out);
}

@keyframes lb-in {
  from { opacity: 0; }
}

.lb-top,
.lb-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
}

.lb-top {
  border-bottom: 1px solid rgba(239, 237, 232, 0.1);
}

.lb-bottom {
  border-top: 1px solid rgba(239, 237, 232, 0.1);
}

.lb-stage {
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  min-height: 0;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.lb-caption {
  font-size: 15.5px;
  color: var(--on-dark-muted);
}

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(239, 237, 232, 0.22);
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lb-btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}

.lb-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.lb-nav {
  display: flex;
  gap: 8px;
}

/* Bilan */

.outro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 48px;
}

.outro-text {
  grid-column: 4 / 12;
  font-size: clamp(1.4rem, 2.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.outro-cta {
  grid-column: 4 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.next-link {
  display: block;
  margin-top: clamp(80px, 10vw, 160px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.next-link .label {
  color: var(--fg-muted);
}

.next-link-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.065em;
}

.next-link-title svg {
  width: clamp(40px, 7vw, 120px);
  height: clamp(40px, 7vw, 120px);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform 0.7s var(--ease-out);
}

.next-link:hover .next-link-title svg {
  transform: translateX(16px);
}

/* =========================================================
   Mentions légales
   ========================================================= */

.legal-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 4vw, 64px));
  padding-bottom: clamp(48px, 5vw, 80px);
}

.legal-title {
  margin-top: clamp(40px, 5vw, 80px);
  font-size: clamp(3rem, 7.4vw, 8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.legal-title em {
  font-size: 1.04em;
}

.legal-updated {
  margin-top: clamp(20px, 2vw, 32px);
  color: var(--fg-muted);
}

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

.legal-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 20px;
  padding-block: clamp(28px, 3.4vw, 52px);
  border-top: 1px solid var(--line-strong);
}

.legal-body {
  grid-column: 4 / 11;
}

.legal-body h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.legal-body h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 30px 0 10px;
}

.legal-body p {
  max-width: 64ch;
  margin-bottom: 14px;
  color: var(--fg-muted);
}

.legal-body p strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent-text);
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: var(--accent-text);
}

.legal-body .kv {
  margin-top: 22px;
}

.footer-legal:hover {
  color: var(--signal);
}

/* =========================================================
   Transitions entre pages
   ========================================================= */

@view-transition {
  navigation: auto;
}

.site-header {
  view-transition-name: site-header;
}

::view-transition-old(root) {
  animation: vt-out 0.35s var(--ease-io) both;
}

::view-transition-new(root) {
  animation: vt-in 0.65s var(--ease-out) both;
}

::view-transition-group(site-header) {
  animation-duration: 0.45s;
}

@keyframes vt-out {
  to { opacity: 0; transform: translateY(-14px); }
}

@keyframes vt-in {
  from { opacity: 0; transform: translateY(22px); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .header-clock {
    display: none;
  }

  .hero-statement {
    grid-column: 8 / 13;
  }

  .spec-headrow,
  .spec-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 6fr);
  }

  .spec-headrow span:nth-child(3),
  .spec-desc {
    display: none;
  }

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

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

  .objectives > li {
    --d: 0 !important;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 64px;
  }

  .main-nav,
  .site-header .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-row {
    grid-template-columns: 1fr auto;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 6px;
  }

  .hero-avail {
    justify-self: start;
  }

  .hero-main {
    grid-template-rows: auto auto auto auto;
    row-gap: 0;
  }

  .hero-word--1 {
    grid-column: 1 / 13;
    grid-row: 1;
  }

  .hero-word--2 {
    grid-column: 1 / 13;
    grid-row: 2;
  }

  .hero-statement {
    grid-column: 1 / 11;
    grid-row: 3;
    margin-top: clamp(28px, 5vw, 48px);
    margin-bottom: 24px;
    max-width: 34ch;
  }

  .hero-cta {
    grid-column: 1 / 13;
    grid-row: 4;
  }

  .hero-foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-scroll {
    display: none;
  }

  .sec-index {
    grid-column: 1 / 13;
  }

  .sec-title,
  .sec-intro,
  .contact .sec-intro {
    grid-column: 1 / 13;
  }

  .profil-lead {
    grid-column: 1 / 13;
  }

  .profil-text {
    grid-column: 1 / 11;
  }

  .pillars {
    row-gap: 56px;
  }

  .pillar {
    grid-column: 1 / 13;
  }

  .pillar-n {
    margin-bottom: 28px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 72px;
  }

  .timeline::before {
    display: none;
  }

  .tl-step {
    border-top: 1px solid var(--line-strong);
    padding-top: 18px;
  }

  .tl-step::before {
    display: none;
  }

  .tl-step--next {
    margin-top: 0;
    border-top-color: var(--signal);
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 56px;
  }

  .project-copy,
  .blueprint {
    grid-column: 1 / 13;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }

  .contact-key {
    grid-column: 1 / 3;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .p-kicker,
  .p-lead {
    grid-column: 1 / 13;
  }

  .p-lead {
    max-width: 48ch;
  }

  .p-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .comp-index {
    display: none;
  }

  .comp-list {
    grid-column: 1 / 13;
  }

  .tests-score,
  .tests-bar {
    grid-column: 1 / 13;
  }

  .tests-bar {
    margin-top: 40px;
  }

  .test-groups {
    grid-template-columns: 1fr;
  }

  .outro-text,
  .outro-cta {
    grid-column: 1 / 13;
  }

  .legal-body {
    grid-column: 1 / 13;
  }

  .arch-hint {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta > :nth-child(2),
  .hero-meta > :nth-child(3) {
    display: none;
  }

  .hero-word {
    font-size: clamp(4.4rem, 27vw, 9rem);
    letter-spacing: -0.06em;
  }

  .hero-word--2 {
    justify-self: start;
  }

  .hero-statement {
    grid-column: 1 / 13;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .hero-foot-item {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }

  .timeline,
  .facts {
    grid-template-columns: 1fr;
  }

  .spec-headrow {
    display: none;
  }

  .spec-row {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 18px;
  }

  .spec-row .chips {
    grid-column: 2 / 3;
  }

  .spec-row::before {
    display: none;
  }

  .kv > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-actions .copy-btn {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .crumbs .p-status {
    margin-left: 0;
    width: 100%;
  }

  .p-specs {
    grid-template-columns: 1fr;
  }

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

  .objectives {
    grid-template-columns: 1fr;
  }

  .obj {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 12px;
  }

  .obj-top {
    grid-column: 1 / -1;
  }

  .obj-icon {
    width: 52px;
    margin: 0;
    grid-row: span 2;
  }

  .obj-meta {
    margin-top: 0;
    padding-top: 10px;
  }

  .readout-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .flow th,
  .flow td {
    padding-right: 22px;
  }

  .flow td {
    font-size: 14.5px;
  }

  .flow th {
    font-size: 10.5px;
  }

  .tests-bar-legend {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .flow td:not(:last-child)::after {
    right: 6px;
  }

  .roles {
    grid-template-columns: 1fr;
  }

  .tests-score {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .tests-score-label {
    padding-bottom: 0;
  }

  .test-list li {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    font-size: 15px;
  }

  .arch-strip {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .blueprint-canvas {
    padding: 18px 12px;
  }

  .shot {
    grid-column: 1 / 13;
  }

  .shot-cap {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shot-tag {
    grid-column: 2;
    justify-self: start;
  }

  .lb-caption {
    display: none;
  }
}

/* =========================================================
   Mouvement réduit
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .js [data-split] .w-in,
  .js .hero .mask-in,
  .js [data-reveal],
  .js .timeline .tl-step,
  .js .hero-meta > *,
  .js .hero-statement,
  .js .hero-cta,
  .js .hero-foot {
    opacity: 1;
    transform: none;
  }

  .js .sec-head::before,
  .js .timeline::before {
    transform: none;
  }

  .js .profil-lead .hl-word {
    color: var(--fg);
  }
}
