/* ============================================================
   style.css v2 — Portfolio « 3D Gallery »
   Fusion : Letter (hero ink, serif 80px, murs teintés, boutons 2px,
            rendus 3D chrome) + Superhuman (parchment, cartes 16px,
            bande Deep Lagoon, footer Wine, liens violet).
   ============================================================ */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--text-1);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent-text);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-soft);
  color: var(--text-1);
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--page-max), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Boutons (Letter : rayon 2px, padding 12/27) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 27px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--cta-teal);
  color: var(--on-teal);
}

.btn-primary:hover {
  background: var(--cta-teal-hover);
}

/* CTA nav : socle de .btn-send (palette nuit), format compact via .nav .btn */

.btn-ghost {
  background: var(--cta-2-bg);
  color: var(--cta-2-text);
  border-color: var(--cta-2-border);
}

.btn-ghost:hover {
  background: var(--cta-2-bg-hover);
}

/* Bouton d'envoi : palette nuit du footer (lueurs teal/violet + filet blanc) */
.btn-send {
  position: relative;
  padding: 14px 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  background:
    radial-gradient(75% 160% at 92% -20%, rgba(24, 111, 100, 0.5), transparent 60%),
    radial-gradient(60% 140% at 0% 130%, rgba(113, 76, 182, 0.45), transparent 60%),
    linear-gradient(135deg, #17191f, #0e0f13 55%, #14161b);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

/* Flèche SVG (mask) : flux infini au survol — sortie/rentrée en boucle */
.btn-send::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  color: #ffffff;
  background: currentColor;
  -webkit-mask: var(--arrow-x) no-repeat center / contain;
  mask: var(--arrow-x) no-repeat center / contain;
  transition: color var(--dur) var(--ease);
}

.btn-send:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 199, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(88, 199, 182, 0.18),
    0 14px 30px rgba(0, 0, 0, 0.4);
}

.btn-send:hover::after {
  color: #58c7b6;
  animation: arrow-flow-x 0.9s linear infinite;
}

.btn-send:active {
  transform: translateY(0);
  box-shadow: 0 0 0 2px rgba(88, 199, 182, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Lien fantôme assorti (Letter : ghost link à côté du bouton fillé) */
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--eyebrow);
}

.ghost-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Flèches cinétiques (mask SVG + flux au survol) ----------
   Même langage sur tous les boutons : la flèche sort par l'avant,
   ré-entre par l'arrière, en boucle continue tant qu'on survole.
   Masques en data-URI → colorés par currentColor, nets à toute taille. */
:root {
  --arrow-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.5 12h15.5M13 5.5 19.5 12 13 18.5' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 17.5 17.5 6.5M8.5 6.5h9v9' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@keyframes arrow-flow-x {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  42% {
    transform: translateX(16px);
    opacity: 0;
  }
  43% {
    transform: translateX(-16px);
    opacity: 0;
  }
  88% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes arrow-flow-diag {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  42% {
    transform: translate(12px, -12px);
    opacity: 0;
  }
  43% {
    transform: translate(-12px, 12px);
    opacity: 0;
  }
  88% {
    transform: translate(0, 0);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

/* Boutons modale (lien externe ↗) — le texte reste i18n via <span> */
.modal-actions .btn::after {
  content: "";
  width: 15px;
  height: 15px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--arrow-ur) no-repeat center / contain;
  mask: var(--arrow-ur) no-repeat center / contain;
}

.modal-actions .btn:hover::after {
  animation: arrow-flow-diag 0.9s linear infinite;
}

/* ---------- Icônes ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.icon-btn:hover {
  background: var(--pill-bg-hover);
  color: var(--text-1);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-height);
  color: var(--nav-text);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--nav-scrolled-border);
}

[data-theme="light"] .nav.is-scrolled {
  color: var(--text-1);
}

[data-theme="light"] .nav.is-scrolled .icon-btn {
  border-color: var(--border);
  color: var(--text-2);
}

[data-theme="light"] .nav.is-scrolled .brand-mark {
  border-color: var(--border-strong);
  color: var(--text-1);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--hero-hairline);
  border-radius: var(--r-sm);
  color: inherit;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 13px;
  color: inherit;
  opacity: 0.78;
  border-radius: var(--r-sm);
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}

.nav-links a:hover {
  opacity: 1;
  background: var(--pill-bg);
  text-decoration: none;
}

[data-theme="light"] .nav.is-scrolled .nav-links a:hover {
  background: rgba(41, 40, 39, 0.06);
}

.nav-links a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav .btn {
  padding: 9px 18px;
  font-size: 14px;
}

.nav .btn-nav-cta {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .nav.is-scrolled .btn-nav-cta {
  border-color: transparent;
}

/* Bascule FR / EN : segmentée en verre (lueur teal sur l'actif) */
.lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .nav.is-scrolled .lang-toggle {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.lang-toggle button {
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.lang-toggle button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.lang-toggle button.is-active,
.lang-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, #17191f, #0e0f13);
  color: #58c7b6;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(88, 199, 182, 0.4),
    0 0 14px rgba(88, 199, 182, 0.18);
}

[data-theme="light"] .nav.is-scrolled .lang-toggle button.is-active,
[data-theme="light"] .nav.is-scrolled .lang-toggle button[aria-pressed="true"] {
  background: rgba(41, 40, 39, 0.1);
  color: var(--accent);
  box-shadow: none;
}

.nav .icon-btn {
  border-color: var(--hero-hairline);
  color: inherit;
}

.nav-burger {
  display: none;
}

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 55;
  display: grid;
  gap: 2px;
  padding: 12px 24px 20px;
  background: var(--nav-scrolled-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-scrolled-border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 12px 8px;
  font-size: 15px;
  color: var(--text-1);
  border-radius: var(--r-sm);
  text-decoration: none;
}

[data-theme="light"] .mobile-menu a {
  color: var(--text-1);
}

.mobile-menu a:hover {
  background: var(--pill-bg);
  text-decoration: none;
}

/* ============================================================
   HERO — Letter « Dark Hero Stage » (toujours ink, thème clair ou sombre)
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(110% 85% at 76% 8%, var(--hero-glow-violet), transparent 55%),
    radial-gradient(90% 70% at 12% 92%, var(--hero-glow-teal), transparent 60%),
    radial-gradient(75% 65% at 92% 86%, var(--hero-glow-wine), transparent 65%),
    radial-gradient(130% 110% at 50% 42%, transparent 52%, var(--hero-vignette) 100%),
    var(--hero-bg);
  color: var(--hero-text);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Grain cinématographique (Letter : texture fine sur l'encre) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

/* — Fond plein écran : univers dev (image + zoom lent) — */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Couche parallaxe : le conteneur bouge au scroll, l'image garde hero-zoom */
.hero-par {
  position: absolute;
  inset: -13% 0;
  transform: translate3d(0, var(--scene-y, 0px), 0);
  will-change: transform;
}

.hero-par img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
  transform-origin: 58% 45%;
  animation: hero-zoom 30s var(--ease) infinite alternate;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.14);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: min(92svh, 900px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 72px) 0 96px;
}

.hero-copy {
  max-width: 620px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--hero-muted);
  border: 1px solid var(--hero-hairline);
  border-radius: var(--r-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(47, 156, 141, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 156, 141, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(47, 156, 141, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 156, 141, 0);
  }
}

.display {
  margin: 26px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.hero-role {
  display: block;
  margin-top: 14px;
  font-family: var(--font-serif);
  font-weight: 450;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: var(--text-h4);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--hero-muted);
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 54ch;
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--hero-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

/* Ghost link + ghost button sur l'encre : variantes fixes */
.hero .btn-ghost {
  color: var(--hero-text);
  border-color: var(--hero-hairline);
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero .ghost-link {
  color: #58c7b6; /* teal éclairci : 8.5:1 sur #191b1f */
}

.hero-socials {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.hero .icon-btn {
  border-color: var(--hero-hairline);
  color: var(--hero-muted);
}

.hero .icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--hero-hairline);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--hero-muted);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  position: relative;
  padding-block: var(--section-gap);
  background:
    radial-gradient(48% 44% at 90% 4%, var(--section-glow-a), transparent 72%),
    radial-gradient(44% 48% at 2% 92%, var(--section-glow-b), transparent 72%);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Contact : lueur wine en plus (CTA final) */
#contact {
  background:
    radial-gradient(52% 46% at 50% 108%, var(--section-glow-c), transparent 72%),
    radial-gradient(44% 42% at 92% 2%, var(--section-glow-a), transparent 72%);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--eyebrow);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: var(--text-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-1);
}

.section-desc {
  margin: 16px 0 0;
  font-size: var(--text-body-lg);
  line-height: 1.55;
  color: var(--text-3);
}

/* ---------- Révélation au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   PROJETS — panneaux « murs de galerie » Letter + tilt CSS 3D
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

/* Filtres : rectangles à coins arrondis + pop animé au survol */
.chip {
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow 0.35s var(--ease);
}

.chip:hover {
  background: var(--pill-bg-hover);
  color: var(--text-1);
  border-color: rgba(88, 199, 182, 0.55);
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(88, 199, 182, 0.18),
    0 12px 26px rgba(0, 0, 0, 0.35);
  animation: chip-pop 0.45s var(--ease);
}

.chip:active {
  transform: scale(1.02);
}

.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(88, 199, 182, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.35);
}

@keyframes chip-pop {
  0% {
    transform: scale(1);
  }
  55% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1.06);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: var(--wall-peach);
  border: 1px solid var(--wall-border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateZ(0);
  transition: transform 0.18s ease-out, border-color var(--dur) var(--ease);
  will-change: transform;
}

.card:hover,
.card:focus-within {
  z-index: 2;
  border-color: var(--border-strong);
}

/* Carte privé : nom + description + image uniquement, non interactive */
.card--private {
  cursor: default;
}

.card--private:hover {
  border-color: var(--wall-border);
}

/* Rotation des murs : peach / mint / lavender (Letter) */
.projects-grid .card:nth-child(3n + 2) {
  background: var(--wall-mint);
}

.projects-grid .card:nth-child(3n + 3) {
  background: var(--wall-lavender);
}

.cover {
  position: relative;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, var(--c1, #3178c6), var(--c2, #0c1a2c));
  overflow: hidden;
}

/* Couverture typographique : nom du projet serif sur le dégradé */
.cover-name {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      var(--cover-grid) 24px
    ),
    repeating-linear-gradient(90deg, transparent, transparent 23px, var(--cover-grid) 24px);
  opacity: 0.7;
}

/* Reflet chrome qui suit le curseur (effet rendu 3D) */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.28),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.card:hover .cover::after {
  opacity: 1;
}

.cover-lang {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
}

.card-body {
  padding: 24px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 550;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.card-open {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.card-open:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--text-2);
  border: 1px solid var(--wall-border);
  border-radius: var(--r-sm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.card-arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: var(--arrow-ur) no-repeat center / 15px 15px;
  mask: var(--arrow-ur) no-repeat center / 15px 15px;
}

.card:hover .card-arrow {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-text);
}

.card:hover .card-arrow::after {
  animation: arrow-flow-diag 0.9s linear infinite;
}

[data-theme="dark"] .card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.1);
}

.card-desc {
  margin: 12px 0 0;
  font-size: var(--text-body-sm);
  line-height: 1.5;
  color: var(--wall-text-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--wall-border);
  border-radius: var(--r-sm);
}

[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.05);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.card-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-text);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-3);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
}

/* ============================================================
   VITRINE STACK — marquee pleine largeur (deux rails opposés)
   ============================================================ */
.stack-marquee {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto var(--section-gap);
  padding: clamp(26px, 3.6vw, 44px) 0;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  border-radius: var(--r-gallery);
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 12% 0%, rgba(24, 111, 100, 0.32), transparent 60%),
    radial-gradient(55% 120% at 88% 100%, rgba(83, 110, 255, 0.3), transparent 62%),
    var(--hero-bg);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-inline: 7px;
  animation: marquee-scroll 46s linear infinite;
}

.marquee-track--rev {
  animation-direction: reverse;
  animation-duration: 54s;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

.marquee-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hero-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hero-hairline);
  border-radius: var(--r-full);
}

.marquee-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #58c7b6; /* teal fixe : la bande reste sombre dans les 2 thèmes */
}

/* ============================================================
   EXPÉRIENCE — bande Deep Lagoon (Superhuman Dark Feature Band)
   ============================================================ */
.section--band {
  background:
    radial-gradient(85% 130% at 10% -10%, rgba(24, 138, 124, 0.4), transparent 62%),
    radial-gradient(70% 110% at 95% 110%, rgba(6, 40, 41, 0.55), transparent 65%),
    linear-gradient(120deg, #0a3a3b, var(--band-bg) 46%, #0e4d4e);
  color: var(--band-text);
}

.section--band .section-title {
  color: var(--band-text);
}

.section--band .eyebrow {
  color: var(--band-accent);
}

.section--band .section-desc {
  color: var(--band-muted);
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
  border-left: 1px solid var(--border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow: 0 0 0 4px var(--canvas);
}

.section--band .timeline-item {
  border-left-color: var(--band-hairline);
}

.section--band .timeline-item::before {
  background: var(--band-accent);
  box-shadow: 0 0 0 4px var(--band-bg);
}

.section--band .timeline-item.is-current::before {
  background: #58c7b6;
}

.timeline-item.is-current .tl-role {
  color: var(--text-1);
}

.section--band .timeline-item.is-current .tl-role {
  color: #fff;
}

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.tl-role {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 550;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: var(--text-h4);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--text-1);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.section--band .tl-date {
  color: var(--band-accent);
}

.tl-company {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.section--band .tl-company {
  color: rgba(255, 255, 255, 0.9);
}

.tl-company .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.tl-desc {
  margin: 10px 0 0;
  max-width: 72ch;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--text-3);
}

.section--band .tl-desc {
  color: var(--band-muted);
}

.section--band .tag {
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--band-hairline);
}

/* ============================================================
   FORMATION / STACK — cartes papier (Superhuman 16px)
   ============================================================ */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.edu-card {
  padding: 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.edu-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.edu-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #292827;
  background: var(--cta-lilac);
  border-radius: var(--r-full);
}

.edu-card h3 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-weight: 550;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.edu-card p {
  margin: 10px 0 0;
  font-size: var(--text-body-sm);
  line-height: 1.55;
  color: var(--text-3);
}

.edu-card strong {
  color: var(--text-1);
}

.edu-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
  color: var(--accent-text);
}

/* Flèche d'extinction des liens texte (GitHub/Demo/formation) */
.ln-arrow {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: var(--arrow-ur) no-repeat center / contain;
  mask: var(--arrow-ur) no-repeat center / contain;
}

a:hover .ln-arrow {
  animation: arrow-flow-diag 0.9s linear infinite;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Cartes en verre — même DNA que les panneaux contact (dégradé blanc
   7 % → 2 %, blur 14px, filet blanc 14 %, rayon 16px) */
.skill-group {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 28px);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  /* opacity/transform conservés pour la révélation au scroll (.reveal) */
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease),
    translate 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* Lueur d'angle alternée : teal (cartes impaires) / violet (paires) */
.skill-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 55% at 12% 0%,
    rgba(24, 111, 100, 0.38),
    transparent 70%
  );
  pointer-events: none;
}

.skill-group:nth-of-type(even)::before {
  background: radial-gradient(
    60% 55% at 88% 0%,
    rgba(113, 76, 182, 0.38),
    transparent 70%
  );
}

.skill-group > * {
  position: relative;
  z-index: 1;
}

.skill-group:hover {
  translate: 0 -4px;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

/* Titre = barre d'en-tête façon panel-head : badge d'index + serif,
   filet bas ; hauteur réservée sur 2 lignes → listes alignées partout */
.skill-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 69px;
  margin: 0 0 16px;
  padding-bottom: 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-num {
  flex: none;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #58c7b6;
  border: 1px solid rgba(88, 199, 182, 0.45);
  border-radius: 6px;
}

.skill-group:nth-of-type(even) .skill-num {
  color: #8f9bff;
  border-color: rgba(143, 155, 255, 0.45);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pills mono coins 10px (écho chips de filtres) — survol : anneau teal */
.skill-pill {
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    translate var(--dur) var(--ease);
}

.skill-pill:hover {
  color: #ffffff;
  background: rgba(88, 199, 182, 0.14);
  border-color: rgba(88, 199, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(88, 199, 182, 0.16);
  translate: 0 -2px;
}

/* ============================================================
   À PROPOS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-photo {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-body p {
  margin: 0 0 18px;
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--text-2);
}

.about-body strong {
  color: var(--text-1);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 32px 0 0;
}

.fact {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-3);
}

.fact dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-1);
}

.fact dd a {
  color: var(--accent-text);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

a.contact-link:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  text-decoration: none;
}

.contact-link .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--text-2);
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.contact-link .meta {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: inherit;
}

.contact-link .meta strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}

.contact-link .meta span {
  font-size: 14px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-link .go {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  margin-left: auto;
  color: var(--text-3);
  background: currentColor;
  -webkit-mask: var(--arrow-ur) no-repeat center / contain;
  mask: var(--arrow-ur) no-repeat center / contain;
  transition: color var(--dur) var(--ease);
}

a.contact-link:hover .go {
  color: var(--accent-text);
  animation: arrow-flow-diag 0.9s linear infinite;
}

.copy-btn {
  margin-left: auto;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  flex: none;
}

.copy-btn:hover {
  background: var(--pill-bg-hover);
  color: var(--text-1);
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

/* ---------- Panneaux « avancés » du contact : verre + lueur d'angle ---------- */
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    60% 55% at 12% 0%,
    rgba(24, 111, 100, 0.38),
    transparent 70%
  );
  pointer-events: none;
}

.contact-panel--write::before {
  background: radial-gradient(
    60% 55% at 88% 0%,
    rgba(113, 76, 182, 0.38),
    transparent 70%
  );
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-num {
  flex: none;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #58c7b6;
  border: 1px solid rgba(88, 199, 182, 0.45);
  border-radius: 6px;
}

.contact-panel--write .panel-num {
  color: #8f9bff;
  border-color: rgba(143, 155, 255, 0.45);
}

.panel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--text-1);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-4);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form .btn {
  justify-self: start;
}

.form-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-3);
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 14px;
  color: var(--success);
}

/* ============================================================
   FOOTER — fond nuit neutre (lueurs teal/violet, sans rouge)
   ============================================================ */
.footer {
  background:
    radial-gradient(75% 150% at 88% -10%, rgba(24, 111, 100, 0.35), transparent 62%),
    radial-gradient(60% 120% at 5% 120%, rgba(113, 76, 182, 0.3), transparent 65%),
    linear-gradient(135deg, #0e0f13, var(--footer-bg) 48%, #14161b);
  color: var(--footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--footer-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--footer-text);
  transition: color var(--dur) var(--ease);
}

.footer-links .ficon {
  opacity: 0.8;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.footer-links a:hover {
  color: #58c7b6;
}

.footer-links a:hover .ficon {
  opacity: 1;
  transform: translateY(-2px);
}

/* ============================================================
   MODAL PROJET
   ============================================================ */
.project-modal {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 780px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-1);
  color: var(--text-1);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.project-modal::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-scroll {
  max-height: inherit;
  overflow-y: auto;
}

.modal-cover {
  position: relative;
  aspect-ratio: 16 / 7;
}

.modal-content {
  padding: clamp(22px, 4vw, 32px);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-title-row h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 550;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.modal-close {
  flex: none;
  font-size: 15px;
}

.modal-desc {
  margin: 14px 0 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: var(--text-2);
}

.modal-meta {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.modal-meta .fact dd {
  font-size: 15px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ============================================================
   SCÈNES CINÉMATIQUES — fonds plein écran, voile & textes fixes
   ============================================================ */
.scene-section {
  position: relative;
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene img {
  position: absolute;
  left: 0;
  top: -13%;
  width: 100%;
  height: 126%;
  object-fit: cover;
  transform: translate3d(0, var(--scene-y, 0px), 0)
    scale(var(--scene-scale, 1.18));
  will-change: transform;
}

/* Contenu en contre-parallaxe (profondeur) */
.scene-section > .container {
  position: relative;
  transform: translate3d(0, var(--content-y, 0px), 0);
  will-change: transform;
}

/* Voile sombre animé (--scrim : 1 aux bords du scroll → 0.55 au centre) */
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgb(9 10 12 / calc(0.9 * var(--scrim, 1))) 0%,
      rgb(9 10 12 / calc(0.66 * var(--scrim, 1))) 34%,
      rgb(9 10 12 / calc(0.58 * var(--scrim, 1))) 64%,
      rgb(9 10 12 / calc(0.88 * var(--scrim, 1))) 100%
    ),
    radial-gradient(
      120% 90% at 50% 42%,
      transparent 42%,
      rgba(9, 10, 12, 0.5) 100%
    );
}

/* Bande expérience : voile teinté Deep Lagoon (garde l'identité teal) */
.section--band .scene::after {
  background:
    linear-gradient(
      180deg,
      rgb(7 42 43 / calc(0.92 * var(--scrim, 1))) 0%,
      rgb(6 34 35 / calc(0.7 * var(--scrim, 1))) 38%,
      rgb(6 34 35 / calc(0.64 * var(--scrim, 1))) 62%,
      rgb(7 42 43 / calc(0.92 * var(--scrim, 1))) 100%
    ),
    radial-gradient(
      120% 90% at 50% 42%,
      transparent 42%,
      rgba(4, 24, 25, 0.55) 100%
    );
}

/* Textes posés sur la scène : couleurs claires fixes (identiques 2 thèmes) */
.scene-section .eyebrow {
  color: #58c7b6;
}

.scene-section .section-title {
  color: #ffffff;
}

.scene-section .section-desc {
  color: #c6ccd4;
}

.scene-section .chip {
  color: #e6e9ee;
  background: rgba(10, 11, 14, 0.55);
  border-color: rgba(255, 255, 255, 0.3);
}

.scene-section .chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.scene-section .chip.is-active,
.scene-section .chip[aria-pressed="true"] {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-bg);
  color: var(--chip-active-text);
}

.scene-section .empty-state {
  color: #c6ccd4;
  border-color: rgba(255, 255, 255, 0.3);
}

.scene-section .about-body,
.scene-section .about-body p {
  color: #dfe4ea;
}

.scene-section .about-body strong {
  color: #ffffff;
}

.scene-section .fact {
  border-color: rgba(255, 255, 255, 0.16);
}

.scene-section .fact dt {
  color: #9fabad;
}

.scene-section .fact dd {
  color: #eef1f4;
}

.scene-section .fact dd a {
  color: #8f9bff;
}

.scene-section .about-photo {
  border-color: rgba(255, 255, 255, 0.22);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    min-height: 0;
    padding: calc(var(--nav-height) + 56px) 0 72px;
  }

  .hero-copy {
    max-width: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photos {
    max-width: 420px;
  }

  .stack-marquee {
    border-radius: 56px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: calc(var(--section-gap) - 16px);
  }

  .nav .btn {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat span {
    font-size: 10px;
  }

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

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

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

  .stack-marquee {
    width: calc(100% - 32px);
    border-radius: 32px;
    padding: 24px 0;
  }

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

  .lang-toggle {
    display: none;
  }

  .mobile-menu .lang-toggle {
    display: inline-flex;
    margin-top: 8px;
    border-color: var(--border);
  }
}

/* ============================================================
   MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .card {
    transform: none !important;
  }
}
