/* ==========================================================================
   PORTFOLIO — VICTOR VALROFF CHHUN
   Béton brut éditorial × Animations sbwebdesign.ch × Repères CAO × Bleu Tsunami & Orange
   ========================================================================== */

:root {
  --bg-concrete: #EFECE6;
  --bg-panel: #E2DFD7;
  --bg-panel-soft: rgba(226, 223, 215, 0.78);
  --bg-card: rgba(239, 236, 230, 0.9);
  --ink: #121212;
  --ink-muted: rgba(18, 18, 18, 0.62);
  --ink-faint: rgba(18, 18, 18, 0.34);

  --line: rgba(18, 18, 18, 0.18);
  --line-strong: rgba(18, 18, 18, 0.82);

  /* Accents : Bleu Tsunami + Orange sbwebdesign.ch */
  --tsunami: #262CE8;
  --tsunami-soft: rgba(38, 44, 232, 0.1);
  --tsunami-line: rgba(38, 44, 232, 0.48);
  --orange: #FF4D1C;
  --orange-soft: rgba(255, 77, 28, 0.14);

  --font-display: 'Bricolage Grotesque', 'Barlow Condensed', -apple-system, sans-serif;
  --font-condensed: 'Barlow Condensed', 'Bricolage Grotesque', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --header-h: 54px;
  --marquee-h: 0px;
  --altimeter-w: 108px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-circ: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html,
body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-concrete);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--tsunami);
  color: #ffffff;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.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;
}

.accent-text {
  color: var(--tsunami);
}

/* ==========================================================================
   0. PRELOADER À REMPLISSAGE VERTICAL (INSPIRATION SBWEBDESIGN.CH)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #121212;
  color: var(--bg-concrete);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 48px);
  transition: transform 0.82s var(--ease-circ), visibility 0.82s;
  will-change: transform;
}

.preloader.done {
  transform: translateY(-102%);
  visibility: hidden;
  pointer-events: none;
}

.preloader-top,
.preloader-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(239, 236, 230, 0.56);
}

.preloader-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-wordmark {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(26px, 6.2vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.94;
  white-space: nowrap;
  user-select: none;
}

.pw-base {
  color: rgba(239, 236, 230, 0.14);
}

.pw-fill {
  position: absolute;
  inset: 0;
  color: var(--tsunami);
  clip-path: inset(100% 0 0 0);
  will-change: clip-path;
}

.preloader-pct {
  font-size: 18px;
  font-weight: 700;
  color: var(--tsunami);
}

/* ==========================================================================
   1. FOND BÉTON MINÉRAL & MIRE / RÉTICULE ARCHITECTURAL
   ========================================================================== */
.concrete-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('../images/beton-fond.jpg');
  background-size: 760px 760px;
  background-repeat: repeat;
  background-position: center;
  filter: grayscale(100%) brightness(1.52) contrast(1.24);
  opacity: 0.92;
  pointer-events: none;
}

.concrete-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 45%, rgba(239, 236, 230, 0.14), rgba(226, 223, 215, 0.34) 80%);
  pointer-events: none;
}

.reticle-layer {
  position: fixed;
  inset: var(--header-h) var(--altimeter-w) var(--marquee-h) 0;
  z-index: 3;
  pointer-events: none;
}

.reticle-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(18, 18, 18, 0.3);
  border-style: solid;
  border-width: 0;
  transition: transform 0.35s var(--ease-expo), border-color 0.25s ease;
}

.rc-tl { top: 14px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.rc-tr { top: 14px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.rc-bl { bottom: 14px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.rc-br { bottom: 14px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

.reticle-axis {
  position: absolute;
  background: rgba(18, 18, 18, 0.08);
  transition: background-color 0.25s ease;
}

.reticle-axis-h { top: 50%; left: 16px; width: 10px; height: 1px; }
.reticle-axis-v { left: 50%; top: 14px; width: 1px; height: 10px; }

.reticle-lock-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 2px 10px;
  border: 1px solid var(--tsunami);
  background: var(--bg-concrete);
  color: var(--tsunami);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.28s var(--ease-expo);
}

.reticle-layer.calibrating .reticle-corner { border-color: var(--tsunami); }
.reticle-layer.calibrating .rc-tl { transform: translate(5px, 5px); }
.reticle-layer.calibrating .rc-tr { transform: translate(-5px, 5px); }
.reticle-layer.calibrating .rc-bl { transform: translate(5px, -5px); }
.reticle-layer.calibrating .rc-br { transform: translate(-5px, -5px); }
.reticle-layer.calibrating .reticle-axis { background: var(--tsunami); }
.reticle-layer.calibrating .reticle-lock-pill { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   2. EN-TÊTE FIXE MINIMALISTE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(239, 236, 230, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.brand-dot {
  width: 9px;
  height: 9px;
  background: var(--tsunami);
  display: inline-block;
  transition: transform 0.25s var(--ease-expo);
}

.brand-btn:hover .brand-dot {
  transform: rotate(45deg) scale(1.15);
}

.header-sep { color: var(--ink-faint); }
.header-loc { font-size: 11px; color: var(--ink-muted); letter-spacing: 0.06em; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: var(--bg-panel-soft);
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 2px 3px;
  transition: color 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover { color: var(--tsunami); }
.lang-slash { color: var(--ink-faint); font-size: 10px; }

.header-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-concrete);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.22s var(--ease-expo);
}

.header-cv-btn:hover {
  background: var(--tsunami);
  border-color: var(--tsunami);
  color: #ffffff;
}

/* ==========================================================================
   3. ALTIMÈTRE VERTICAL LATÉRAL FIXE
   ========================================================================== */
.altimeter {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: var(--marquee-h);
  width: var(--altimeter-w);
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 16px 12px;
  border-left: 1px solid var(--line);
  background: rgba(226, 223, 215, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.altimeter-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.alt-label { font-size: 9.5px; letter-spacing: 0.14em; color: var(--ink-muted); }
.alt-value { font-size: 14px; font-weight: 700; color: var(--tsunami); letter-spacing: 0.02em; margin-top: 2px; }

.altimeter-track {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 12px 0;
}

.altimeter-rail {
  position: absolute;
  right: 4px;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: var(--line);
}

.altimeter-progress {
  width: 100%;
  height: 0%;
  background: var(--tsunami);
  transition: height 0.55s var(--ease-expo);
}

.altimeter-stops {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 76%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.alt-stop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  color: var(--ink-muted);
  position: relative;
  transition: color 0.2s ease;
}

.alt-stop-name {
  position: absolute;
  right: calc(100% + 16px);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--bg-concrete);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.25s var(--ease-expo);
}

.alt-stop:hover .alt-stop-name { opacity: 1; transform: translateX(0); }
.alt-stop-code { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; }

.alt-stop-tick {
  width: 12px;
  height: 1px;
  background: var(--ink-muted);
  transition: width 0.3s var(--ease-expo), background-color 0.2s ease, height 0.2s ease;
}

.alt-stop:hover { color: var(--ink); }
.alt-stop.active { color: var(--tsunami); }
.alt-stop.active .alt-stop-tick { width: 24px; height: 2px; background: var(--tsunami); }

.altimeter-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.nav-step-btn {
  height: 34px;
  border: 1px solid var(--line-strong);
  background: var(--bg-concrete);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.nav-step-btn:hover:not(:disabled) { background: var(--tsunami); border-color: var(--tsunami); color: #ffffff; }
.nav-step-btn:disabled { opacity: 0.28; cursor: not-allowed; }

/* ==========================================================================
   4. SCÈNE & STATIONS 100dvh + TRACÉS SVG ANIMÉS
   ========================================================================== */
.stage {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: var(--altimeter-w);
  bottom: var(--marquee-h);
  z-index: 10;
  overflow: hidden;
}

.station {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 34px) clamp(24px, 3.8vw, 52px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.52s var(--ease-expo),
    transform 0.62s var(--ease-expo),
    visibility 0.52s;
}

.station.above { transform: translate3d(0, -32px, 0); }

.station.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

/* Ruban discret en arrière-plan (netteté retrouvée, très peu de flou) */
.station-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.65;
}

.ribbon-path {
  stroke-width: 2.5;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  transition: stroke-dashoffset 1.2s var(--ease-expo) 0.1s;
}

.station.active .ribbon-path {
  stroke-dashoffset: 0;
}

.station-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  max-height: 100%;
}

/* Meta bar & typographie compacte (30 % texte) */
.st-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.st-tag { color: var(--ink); font-weight: 600; }

.st-title-compact {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-expo) 0.1s, transform 0.65s var(--ease-expo) 0.1s;
}

.station.active .st-title-compact {
  opacity: 1;
  transform: translateY(0);
}

.st-text-compact {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease-expo) 0.18s, transform 0.65s var(--ease-expo) 0.18s;
}

.station.active .st-text-compact {
  opacity: 1;
  transform: translateY(0);
}

.st-text-compact strong { color: var(--ink); font-weight: 600; }

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease-expo) 0.26s, transform 0.65s var(--ease-expo) 0.26s;
}

.station.active .spec-chips {
  opacity: 1;
  transform: translateY(0);
}

.spec-chips span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--bg-panel-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* Boutons brutalistes + Bouton circulaire bleu Tsunami (sbwebdesign.ch) */
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-expo);
}

.btn-solid {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-concrete);
}

.btn-solid:hover {
  background: var(--tsunami);
  border-color: var(--tsunami);
  color: #ffffff;
}

.btn-outline {
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--tsunami);
  color: var(--tsunami);
}

.circle-cta {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: none;
  background: var(--tsunami);
  color: #ffffff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(38, 44, 232, 0.28);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.circle-cta:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 34px rgba(38, 44, 232, 0.38);
}

.circle-cta-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.circle-cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s var(--ease-expo);
}

.circle-cta:hover .circle-cta-arrow {
  transform: translateY(3px);
}

/* Cadres techniques à lignes de cote 1px */
.dim-frame {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  padding: 10px 12px;
}

.dim-frame::before,
.dim-frame::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
}

.dim-frame::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid var(--tsunami);
  border-left: 1px solid var(--tsunami);
}

.dim-frame::after {
  bottom: -5px;
  right: -5px;
  border-bottom: 1px solid var(--tsunami);
  border-right: 1px solid var(--tsunami);
}

.dim-top,
.dim-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.dim-top {
  padding-bottom: 7px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.dim-bottom {
  padding-top: 7px;
  margin-top: 9px;
  border-top: 1px solid var(--line);
}

.photo-switcher {
  display: inline-flex;
  gap: 4px;
}

.photo-sw-btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.photo-sw-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.photo-sw-btn.active {
  background: var(--tsunami);
  border-color: var(--tsunami);
  color: #ffffff;
}

/* ==========================================================================
   5. ST.00 — BOÎTE DE SÉLECTION + ANIMATION LETTRE PAR LETTRE (SBWEBDESIGN)
   ========================================================================== */
/* ST.00 — Ouverture 100 % centrée sur le nom seul (WebGL Liquid Ink) */
.st0-name-only {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
}

.hero-ink-wrap {
  position: relative;
  width: 100%;
  height: min(56dvh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

#heroInkCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero-ink-wrap.ink-fallback #heroInkCanvas {
  display: none;
}

.hero-ink-wrap.ink-fallback .ink-sr-fallback {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.selection-box-hero {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) clamp(24px, 3.6vw, 48px);
  background: rgba(239, 236, 230, 0.28);
  backdrop-filter: blur(2px);
}

/* Taches orange organiques légères et peu floutées au survol */
.orange-stain-field {
  position: absolute;
  inset: -12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.orange-stain-field.active {
  opacity: 0.92;
}

.stain-blob {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 58% 42% 66% 34% / 44% 62% 38% 56%;
  background: radial-gradient(circle at 42% 45%, rgba(255, 77, 28, 0.88), rgba(255, 77, 28, 0.45) 52%, rgba(255, 77, 28, 0) 76%);
  filter: blur(11px);
  mix-blend-mode: multiply;
  will-change: transform;
  transform: translate3d(-999px, -999px, 0);
}

.stain-a {
  width: 150px;
  height: 120px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.stain-b {
  width: 115px;
  height: 135px;
  border-radius: 41% 59% 35% 65% / 58% 36% 64% 42%;
  filter: blur(14px);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.stain-c {
  width: 90px;
  height: 82px;
  border-radius: 68% 32% 52% 48% / 38% 64% 36% 62%;
  filter: blur(9px);
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.selection-box-hero .hero-title {
  position: relative;
  z-index: 2;
}

.hero-title-monumental {
  font-size: clamp(26px, 5.5vw, 96px);
  line-height: 0.96;
  text-align: center;
  white-space: nowrap;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 236, 230, 0.78);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.scroll-cue:hover {
  border-color: var(--tsunami);
  background: var(--tsunami);
  color: #ffffff;
}

.st4-id-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: rgba(239, 236, 230, 0.82);
  font-size: 10.5px;
  color: var(--ink-muted);
}

.st4-id-strip strong {
  color: var(--ink);
}

.st0-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(276px, 336px);
  gap: clamp(22px, 3.6vw, 48px);
  align-items: center;
}

/* Boîte de sélection bleue #262CE8 avec 4 poignées carrées blanches */
.selection-box {
  position: relative;
  border: 1px solid var(--tsunami);
  padding: clamp(14px, 2vw, 24px) clamp(16px, 2.4vw, 28px);
  margin: 4px 0 26px;
  background: rgba(239, 236, 230, 0.45);
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}

.selection-box:hover {
  box-shadow: 0 0 0 3px rgba(38, 44, 232, 0.08);
}

.sel-handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 1.5px solid var(--tsunami);
  pointer-events: none;
}

.sh-tl { top: -4px; left: -4px; }
.sh-tr { top: -4px; right: -4px; }
.sh-bl { bottom: -4px; left: -4px; }
.sh-br { bottom: -4px; right: -4px; }

.sel-badge {
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: var(--tsunami);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  white-space: nowrap;
}

/* Curseur / pastille flottante d'atelier inspirée de "Julius" sur sbwebdesign.ch */
.atelier-cursor {
  position: absolute;
  top: -22px;
  right: 18px;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
  animation: floatCursor 4.6s ease-in-out infinite;
}

.atelier-cursor span {
  margin-top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(255, 77, 28, 0.32);
}

@keyframes floatCursor {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-10px, -6px, 0); }
}

/* Titre interactif lettre par lettre */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.4vw, 94px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  user-select: none;
  color: var(--tsunami);
}

.mask-row {
  display: block;
  overflow: visible;
  padding: 2px 0;
}

.hero-word {
  display: inline-block;
  margin-right: 0.14em;
  white-space: nowrap;
}

.hero-word-outline {
  margin-right: 0;
}

.hero-letter {
  display: inline-block;
  color: var(--tsunami);
  font-variation-settings: 'wght' 780, 'opsz' 96;
  transform-origin: center 65%;
  will-change: transform;
}

.hero-word-outline .hero-letter {
  color: var(--tsunami);
}

.hero-letter.is-active {
  color: var(--tsunami);
}

.hero-dot {
  color: var(--tsunami);
  display: inline-block;
}

.st0-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.st0-lead {
  font-size: 14.5px;
  color: var(--ink-muted);
  max-width: 38ch;
}

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

.st0-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Fiche d'identité compacte */
.id-card { background: var(--bg-panel-soft); }

.id-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.id-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.15; }
.id-sub { font-size: 10.5px; color: var(--ink-muted); margin-top: 2px; }

.id-specs { border-top: 1px solid var(--line); }

.id-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.id-row dt { font-size: 9.5px; letter-spacing: 0.1em; color: var(--ink-muted); }
.id-row dd { font-weight: 600; text-align: right; }

.id-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.discreet-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.discreet-badge:hover { border-color: var(--tsunami); color: var(--tsunami); }

.id-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--tsunami);
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tsunami);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* ==========================================================================
   6. ST.01 & ST.02 — RATIO 70% FIGURE / 30% TEXTE + DÉMASQUAGE CLIP-PATH
   ========================================================================== */
.st-figure-dominant {
  display: grid;
  grid-template-columns: minmax(250px, 0.56fr) minmax(0, 1.44fr);
  gap: clamp(20px, 3.2vw, 44px);
  align-items: center;
}

.st-figure-left {
  grid-template-columns: minmax(0, 1.44fr) minmax(250px, 0.56fr);
}

.photo-card {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.smart-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 66dvh;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  transition: aspect-ratio 0.3s ease;
}

/* Animation de démasquage fluide inspirée sbwebdesign.ch */
.photo-reveal {
  clip-path: inset(10% 0 0 0);
  transform: scale(0.97);
  transition: clip-path 0.85s var(--ease-expo) 0.08s, transform 0.85s var(--ease-expo) 0.08s;
}

.station.active .photo-reveal {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

.smart-photo.id-avatar {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  max-height: 58px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
}

.smart-photo.is-portrait {
  aspect-ratio: 3 / 4;
  max-height: 66dvh;
  max-width: 470px;
  margin-inline: auto;
}

.smart-photo.is-landscape { aspect-ratio: 16 / 10; }
.smart-photo.is-square { aspect-ratio: 1 / 1; }

.smart-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.65s var(--ease-expo);
}

.smart-photo.is-loaded img { opacity: 1; }
.photo-card:hover .smart-photo.is-loaded img { transform: scale(1.03); }

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.smart-photo.is-loaded .photo-fallback { display: none; }

.photo-fallback-cad svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fallback-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: var(--bg-concrete);
  border: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink-muted);
}

/* ==========================================================================
   6B. BLOCS DE TEXTE ANIMÉS AU SURVOL + COTES ARCHITECTURALES 1px
   ========================================================================== */
.cote-block {
  position: relative;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  background: rgba(239, 236, 230, 0.72);
  transition: border-color 0.28s ease, transform 0.32s var(--ease-expo), box-shadow 0.32s ease, background-color 0.28s ease;
}

.cote-block::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tsunami);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-expo);
}

.cote-block::after {
  content: attr(data-cote);
  position: absolute;
  right: 10px;
  bottom: -10px;
  padding: 1px 7px;
  background: var(--bg-concrete);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.28s var(--ease-expo);
}

.cote-block:hover {
  border-color: var(--tsunami);
  background: rgba(239, 236, 230, 0.92);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.08);
}

.cote-block:hover::before {
  transform: scaleY(1);
}

.cote-block:hover::after {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.hover-card {
  transition: transform 0.28s var(--ease-expo), border-color 0.22s ease, box-shadow 0.28s ease;
}

.hover-card:hover {
  transform: translateY(-3px);
  border-color: var(--tsunami);
  box-shadow: 0 10px 24px rgba(38, 44, 232, 0.1);
}

/* Canvas 3D Casque de chantier (ST.01) */
.helmet-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(56dvh, 430px);
  cursor: grab;
  touch-action: none;
  border: 1px solid var(--line);
  background-color: var(--bg-concrete);
  background-image:
    linear-gradient(to right, rgba(18, 18, 18, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 18, 0.055) 1px, transparent 1px);
  background-size: 24px 24px;
}

.helmet-canvas-wrap:active { cursor: grabbing; }
#helmetCanvas { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   7. ST.03 — BENTO BREAKING (2 FENÊTRES PHOTO + LOGO TSUNAMI 3D COMPACT)
   ========================================================================== */
.st3-layout {
  display: grid;
  grid-template-columns: minmax(255px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: center;
}

.st3-quote {
  margin: 12px 0 4px;
  padding: 10px 13px;
  border-left: 2px solid var(--orange);
  background: var(--bg-panel-soft);
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink);
  transition: border-left-width 0.2s ease, padding-left 0.2s ease;
}

.st3-quote:hover {
  border-left-width: 4px;
  padding-left: 15px;
}

.st3-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  height: min(68dvh, 520px);
}

.st3-photo-tall {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.st3-photo-tall .smart-photo {
  flex: 1;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.st3-bento-right {
  display: grid;
  grid-template-rows: 205px minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.tsunami-compact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tsunami-canvas-wrap.tsunami-compact-wrap {
  min-height: 0;
  height: 100%;
  flex: 1;
  overflow: hidden;
}

.st3-photo-second {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.st3-photo-second .smart-photo {
  flex: 1;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.mini-reset {
  background: none;
  border: 1px solid var(--line);
  padding: 2px 7px;
  font-size: 9.5px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mini-reset:hover { border-color: var(--tsunami); color: var(--tsunami); }

.tsunami-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
  cursor: grab;
  touch-action: none;
  background:
    linear-gradient(to right, rgba(18, 18, 18, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, rgba(18, 18, 18, 0.05) 1px, transparent 1px) 0 0 / 24px 24px;
}

.tsunami-canvas-wrap:active { cursor: grabbing; }
#tsunamiCanvas { width: 100%; height: 100%; display: block; }

.canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  background: rgba(239, 236, 230, 0.88);
  padding: 2px 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.st3-photo-card .smart-photo {
  flex: 1;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

/* ==========================================================================
   8. ST.04 — GRANDE FENÊTRE MANIFESTE FUSION 360 / AUTOCAD & CONTACT
   ========================================================================== */
.st4-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: min(82dvh, 720px);
}

/* ST.05 — Parcours S1 → S6, Ikigai & Contact */
.st5-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.st5-traj-wrap {
  position: relative;
  padding: 8px 0;
}

.station.active .traj-path-active {
  stroke-dashoffset: 0;
}

.iki-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Diagramme Ikigai 4 cercles entrelacés (ST.05) — grand format lisible */
.ikigai-venn-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: center;
}

.ikigai-venn-svg {
  width: 100%;
  max-height: 340px;
  display: block;
}

.venn-circle {
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: center;
}

.venn-circle:hover,
.venn-circle.active {
  opacity: 1;
}

.venn-circle.active circle {
  stroke-width: 2.5;
}

.venn-title {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 800;
  fill: var(--ink);
  letter-spacing: 0.04em;
}

.venn-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  fill: var(--ink-muted);
}

.venn-core-title {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 800;
  fill: var(--tsunami);
  letter-spacing: 0.06em;
}

.venn-core-sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  font-weight: 700;
  fill: var(--orange);
}

.ikigai-venn-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ikigai-venn-cards .iki-mini-cell {
  cursor: pointer;
}

.ikigai-venn-cards .iki-mini-cell.active {
  border-color: var(--orange);
  background: var(--bg-concrete);
}

/* ST.06 — Station Contact & CV très lisible */
.st6-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.st6-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.st6-sub {
  font-size: 14px;
  color: var(--ink-muted);
  max-width: 62ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  min-height: 128px;
  background: rgba(239, 236, 230, 0.92);
}

.contact-tile-primary {
  background: var(--tsunami);
  border-color: var(--tsunami);
  color: #ffffff;
}

.contact-tile-primary .dim-top,
.contact-tile-primary .dim-bottom {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-tile-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-tile-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
}

.contact-tile-main strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  word-break: break-word;
}

.contact-arrow {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-expo);
}

.contact-tile-primary .contact-arrow { color: #ffffff; }
.contact-tile:hover .contact-arrow { transform: translate(3px, -3px); }

.st6-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .iki-strip,
  .contact-grid,
  .st3-bento,
  .ikigai-venn-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .st3-bento-right {
    grid-template-rows: 190px 260px;
  }
  .ikigai-venn-svg {
    max-height: 250px;
  }
  .ikigai-venn-cards {
    grid-template-columns: 1fr;
  }
  .helmet-canvas-wrap {
    height: 36dvh;
    min-height: 240px;
  }
  .hero-ink-wrap {
    height: 36dvh;
  }
  .contact-tile {
    min-height: 92px;
  }
}

.cad-window {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--bg-concrete);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.07);
}

.cad-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.cad-win-left,
.cad-win-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.cad-dots { display: inline-flex; gap: 5px; }
.cad-dots i { width: 8px; height: 8px; border: 1px solid var(--ink); display: inline-block; }
.cad-dots i:first-child { background: var(--orange); border-color: var(--orange); }
.cad-dots i:nth-child(2) { background: var(--tsunami); border-color: var(--tsunami); }

.cad-app-badge {
  padding: 2px 6px;
  background: var(--ink);
  color: var(--bg-concrete);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cad-doc-name { color: var(--ink-muted); font-size: 11px; }

.cad-tabs {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: var(--bg-concrete);
}

.cad-tab {
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cad-tab:last-child { border-right: none; }
.cad-tab.active { background: var(--tsunami); color: #ffffff; }

.cad-zoom-readout { min-width: 44px; text-align: right; font-weight: 700; color: var(--tsunami); }

.cad-reset-btn {
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-concrete);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cad-reset-btn:hover { background: var(--tsunami); border-color: var(--tsunami); color: #ffffff; }

.cad-workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.cad-browser {
  border-right: 1px solid var(--line);
  background: var(--bg-panel-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  overflow-y: auto;
}

.cad-browser-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.cad-tree { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.cad-node {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cad-eye { font-size: 10px; color: var(--ink-muted); }

.cad-node:hover,
.cad-node.active {
  background: var(--bg-concrete);
  border-color: var(--tsunami-line);
  color: var(--tsunami);
}

.cad-node.active .cad-eye { color: var(--tsunami); }

.cad-inspector-metrics {
  margin-top: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
}

.cad-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-muted);
}

.cad-metric-row strong {
  color: var(--tsunami);
  font-weight: 700;
}

.cad-workshop-note {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cad-note-label {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 4px;
}

.cad-workshop-note p { font-size: 11.5px; line-height: 1.45; color: var(--ink-muted); }

.cad-viewport-shell { position: relative; min-height: 0; overflow: hidden; }
.cad-panel { display: none; width: 100%; height: 100%; position: relative; }
.cad-panel.active { display: block; }

.cad-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background-color: var(--bg-concrete);
  background-image:
    linear-gradient(to right, rgba(18, 18, 18, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 18, 0.065) 1px, transparent 1px),
    linear-gradient(to right, rgba(18, 18, 18, 0.14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 18, 18, 0.14) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

.cad-viewport:active { cursor: grabbing; }

.cad-axis-x,
.cad-axis-y { position: absolute; pointer-events: none; z-index: 2; }

.cad-axis-x { left: 0; right: 0; top: 50%; height: 1px; background: rgba(38, 44, 232, 0.18); }
.cad-axis-x span { position: absolute; right: 12px; top: -16px; font-size: 9.5px; color: var(--tsunami); }

.cad-axis-y { top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(18, 18, 18, 0.14); }
.cad-axis-y span { position: absolute; left: 6px; top: 10px; font-size: 9.5px; color: var(--ink-muted); }

.cad-viewcube {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  background: rgba(239, 236, 230, 0.88);
  border: 1px solid var(--line);
  pointer-events: none;
}

.cad-viewcube svg { width: 42px; height: 42px; }
.cad-viewcube span { font-size: 8.5px; letter-spacing: 0.08em; color: var(--ink-muted); }

.cad-canvas-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 18px 24px;
  transform-origin: center center;
  will-change: transform;
}

.cad-quote-box {
  position: relative;
  border: 1px solid var(--tsunami);
  background: rgba(239, 236, 230, 0.82);
  padding: 24px 28px 28px;
  transition: box-shadow 0.3s ease;
}

.cad-live-cursor {
  position: absolute;
  top: -18px;
  right: 22px;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
  transition: transform 0.55s var(--ease-expo);
  z-index: 6;
}

.cad-live-cursor span {
  margin-top: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(255, 77, 28, 0.3);
}

.cad-quote-kicker {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--tsunami);
  margin-bottom: 12px;
  font-weight: 600;
}

.cad-manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 31px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: letter-spacing 0.35s var(--ease-expo), line-height 0.35s var(--ease-expo);
}

.m-seg {
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease, font-variation-settings 0.3s ease, text-decoration-color 0.25s ease;
  padding: 0 2px;
  text-decoration: underline 2px transparent;
  text-underline-offset: 4px;
}

.m-seg.is-highlighted {
  color: var(--tsunami);
  background: var(--tsunami-soft);
  font-variation-settings: 'wght' 780;
  text-decoration-color: var(--orange);
}

.cad-hud-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  pointer-events: none;
}

/* Panneaux discrets S1→S6 & Ikigai + tracé SVG continu */
.cad-info-panel {
  padding: 24px;
  background: var(--bg-concrete);
  overflow-y: auto;
}

.traj-svg-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 48px);
  height: 110px;
  pointer-events: none;
  z-index: 0;
}

.traj-path-active {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1s var(--ease-expo);
}

.cad-panel.active .traj-path-active {
  stroke-dashoffset: 0;
}

.traj-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 100%;
  align-items: center;
}

.traj-step {
  border: 1px solid var(--line);
  background: rgba(226, 223, 215, 0.9);
  padding: 18px;
}

.traj-step-accent { border-color: var(--tsunami); background: var(--bg-concrete); }
.traj-code { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--tsunami); display: block; margin-bottom: 8px; }
.traj-step h3 { font-family: var(--font-display); font-size: 19px; margin-bottom: 8px; }
.traj-step p { font-size: 13px; color: var(--ink-muted); }

.iki-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
  align-content: center;
}

.iki-mini-cell { border: 1px solid var(--line); background: var(--bg-panel-soft); padding: 16px; }
.iki-mini-core { border-color: var(--tsunami); background: var(--bg-concrete); }
.iki-mini-cell span { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--tsunami); margin-bottom: 6px; }
.iki-mini-cell p { font-size: 13.5px; color: var(--ink); }

/* Footer contact ST.04 */
.st4-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.contact-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-tag { font-size: 9.5px; padding: 2px 6px; background: var(--bg-panel); color: var(--tsunami); }

.contact-links { display: flex; align-items: center; gap: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; }
.contact-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.contact-links a:hover { color: var(--tsunami); border-bottom-color: var(--tsunami); }

/* ==========================================================================
   10. MODALE CV COMPLET
   ========================================================================== */
.cv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(18, 18, 18, 0.56);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cv-modal-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

.cv-modal-sheet {
  width: min(940px, 100%);
  max-height: 90dvh;
  background: var(--bg-concrete);
  border: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line-strong);
}

.cv-kicker { font-size: 10px; letter-spacing: 0.12em; color: var(--tsunami); font-weight: 700; }
.cv-modal-header h2 { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.cv-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.cv-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cv-modal-body { padding: 22px; overflow-y: auto; }

.cv-profile-box {
  padding: 14px 16px;
  background: var(--bg-panel-soft);
  border-left: 2px solid var(--tsunami);
  font-size: 13.5px;
  margin-bottom: 20px;
}

.cv-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }

.cv-sec-title {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--tsunami);
  padding-bottom: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.cv-item { margin-bottom: 14px; }
.cv-item-title { font-weight: 700; font-size: 14px; }
.cv-item-meta { font-size: 11px; color: var(--ink-muted); margin-bottom: 5px; }
.cv-item ul, .cv-list { padding-left: 16px; font-size: 13px; color: var(--ink-muted); }
.cv-list { margin-bottom: 16px; }
.cv-item li, .cv-list li { margin-bottom: 3px; }

/* ==========================================================================
   11. RESPONSIVE TABLETTE & MOBILE
   ========================================================================== */
@media (max-width: 980px) {
  :root { --altimeter-w: 68px; }

  .st0-layout,
  .st-figure-dominant,
  .st-figure-left,
  .st3-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .st3-visuals { height: auto; }

  .station {
    overflow-y: auto;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .cad-workspace { grid-template-columns: 1fr; }
  .cad-browser { display: none; }
  .st4-layout { height: auto; min-height: 76dvh; }
  .cad-window { min-height: 360px; }
  .traj-grid, .cv-grid { grid-template-columns: 1fr; }
  .traj-svg-line { display: none; }
}

@media (max-width: 640px) {
  :root { --altimeter-w: 0px; --header-h: 50px; }

  .header-loc, .header-sep, .cad-doc-name { display: none; }

  .altimeter {
    top: auto; left: 0; right: 0; bottom: var(--marquee-h);
    width: 100%; height: 46px; flex-direction: row; align-items: center;
    padding: 0 12px; border-left: none; border-top: 1px solid var(--line);
  }

  .altimeter-readout { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 0; border-bottom: none; }
  .altimeter-track { display: none; }
  .altimeter-controls { padding-top: 0; border-top: none; }
  .stage, .reticle-layer { right: 0; bottom: calc(var(--marquee-h) + 46px); }
  .st3-visuals { grid-template-columns: 1fr; }

  /* Correctifs dédiés téléphone uniquement (desktop intact) */
  .st4-layout {
    height: 68dvh;
    min-height: 0;
    padding: 0 4px;
  }

  .cad-window {
    min-height: 0;
    height: 100%;
  }

  .cad-viewport {
    touch-action: pan-y;
    cursor: default;
  }

  .cad-canvas-content {
    max-width: 100%;
    padding: 10px 12px;
  }

  .cad-quote-box {
    padding: 16px 14px 22px;
  }

  .cad-live-cursor,
  .cad-viewcube {
    display: none;
  }

  .cad-hud-bottom {
    font-size: 8.5px;
  }
}

/* ==========================================================================
   12. IMPRESSION A4 (1 SEULE PAGE BLANCHE PROPRE)
   ========================================================================== */
#cv-print-root { display: none; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { height: auto !important; overflow: visible !important; background: #ffffff !important; }
  body > *:not(#cv-print-root) { display: none !important; }
  #cv-print-root {
    display: grid !important; grid-template-columns: 74mm 1fr;
    width: 210mm; min-height: 297mm; background: #ffffff; color: #121212;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  }
  .print-sidebar { background: #EFECE6; padding: 12mm 8mm; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #d5d2ca; }
  .print-name { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 23pt; font-weight: 800; line-height: 0.96; color: #262CE8; text-transform: uppercase; }
  .print-subtitle { font-size: 9pt; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 4px 0 12px; }
  .print-contact { font-size: 8.5pt; line-height: 1.5; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid #c9c5bc; }
  .print-side-sec { margin-bottom: 10px; }
  .print-side-title, .print-main-title { font-size: 9pt; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #262CE8; border-bottom: 1px solid #262CE8; padding-bottom: 3px; margin-bottom: 7px; }
  .print-profile-text { font-size: 8pt; line-height: 1.45; }
  .print-edu-item { margin-bottom: 6px; }
  .print-edu-title { font-size: 8.5pt; font-weight: 700; }
  .print-edu-meta { font-size: 7.8pt; color: #444; }
  .print-side-list { padding-left: 12px; font-size: 8pt; line-height: 1.42; }
  .print-main { padding: 12mm 11mm; }
  .print-exp-item { margin-bottom: 11px; }
  .print-exp-role { font-size: 10pt; font-weight: 700; text-transform: uppercase; }
  .print-exp-place { font-size: 8.2pt; color: #444; margin-bottom: 4px; }
  .print-exp-list { padding-left: 14px; font-size: 8.5pt; line-height: 1.42; }
}

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