/* ============================================================
   RZ Code — Portfolio
   Palette : encre profonde, menthe, champagne
   ============================================================ */

/* ---------- Polices auto-hébergées ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  --ink: #06080a;
  --ink-2: #090c10;
  --ink-3: #0d1116;
  --surface: #0b0f14;
  --text: #ece9e2;
  --text-soft: #cfd5d9;
  --muted: #939da5;
  --muted-2: #7d878f;
  --mint: #86f2bd;
  --mint-bright: #b6ffd8;
  --mint-dim: rgba(134, 242, 189, 0.45);
  --gold: #d8b98a;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 78px;
  --radius: 20px;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

/* ---------- Réinitialisation ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 88% 4%, rgba(60, 160, 120, 0.10), transparent 70%),
    radial-gradient(40% 35% at 4% 96%, rgba(216, 185, 138, 0.055), transparent 70%),
    linear-gradient(180deg, #070a0d 0%, #06080a 40%, #050709 100%);
}
body.modal-open, body.menu-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: #05120c; }
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
  border-radius: 4px;
}
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050709; }
::-webkit-scrollbar-thumb {
  background: #212a30;
  border-radius: 99px;
  border: 2px solid #050709;
}
::-webkit-scrollbar-thumb:hover { background: #33414a; }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10002;
  padding: 10px 16px;
  background: var(--mint);
  color: #05120c;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Grain & curseur ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(134, 242, 189, 0.8);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(134, 242, 189, 0.38);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.3s ease;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hot {
  width: 56px;
  height: 56px;
  background: rgba(134, 242, 189, 0.09);
  border-color: rgba(134, 242, 189, 0.7);
}
@media (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button,
  body.has-cursor .card-open { cursor: none; }
}

/* ---------- Progression & préchargeur ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1200;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(134, 242, 189, 0.2), var(--mint), var(--gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  background: #05070a;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-inner { display: grid; justify-items: center; gap: 20px; }
.preloader-mark {
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  color: var(--mint);
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.preloader-line {
  display: block;
  width: 120px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.preloader-line i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--mint);
  animation: preloaderSlide 1.1s var(--ease) infinite;
}
@keyframes preloaderPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes preloaderSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }

/* ---------- Mise en page ---------- */
.wrap {
  width: min(1240px, calc(100% - clamp(36px, 8vw, 128px)));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 145px);
}
.section + .section { border-top: 1px solid rgba(255, 255, 255, 0.045); }
main { position: relative; z-index: 1; }

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.03; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.85rem, 6.4vw, 6.1rem); }
h2 { font-size: clamp(2.15rem, 4.3vw, 3.9rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
em {
  font-style: italic;
  color: var(--mint);
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
}
p { text-wrap: pretty; }
strong { font-weight: 600; color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b7c0c6;
}
.eyebrow-num {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.eyebrow-num::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--mint-dim), transparent);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(134, 242, 189, 0.5);
  animation: pulse 2.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(134, 242, 189, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(134, 242, 189, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 242, 189, 0); }
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  box-shadow: 0 0 8px rgba(134, 242, 189, 0.7);
  vertical-align: middle;
}

.section-head { margin-bottom: clamp(44px, 6vw, 76px); }
.section-head-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 22px;
}
.section-head h2 { max-width: 16ch; }
.section-lead {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
  padding-bottom: 6px;
}

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.35s var(--ease), background-color 0.3s ease,
              color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, #b8ffd9 0%, #7cecaa 55%, #63d99a 100%);
  color: #04140c;
  box-shadow: 0 12px 34px -14px rgba(134, 242, 189, 0.65);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 42px -12px rgba(134, 242, 189, 0.8); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(134, 242, 189, 0.5); background: rgba(134, 242, 189, 0.07); }
.btn-sm { --h: 42px; padding: 0 17px; font-size: 0.8rem; gap: 8px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(134, 242, 189, 0.8);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(134, 242, 189, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, gap 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--mint); gap: 13px; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Apparitions au scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease) var(--d, 0ms),
    transform 0.95s var(--ease) var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* Les cartes inclinables n'utilisent que l'opacité (transform réservé au survol) */
.js .tilt[data-reveal],
.js .project-card[data-reveal] { transform: none; }

/* ---------- Utilitaires ---------- */
.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;
}
.noscript-note { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   EN-TÊTE & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 18px;
  transition: padding 0.4s var(--ease), background-color 0.4s ease,
              border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(6, 8, 10, 0.74);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(134, 242, 189, 0.28);
  background:
    linear-gradient(150deg, rgba(134, 242, 189, 0.16), rgba(134, 242, 189, 0.02)),
    #0a0f0c;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 20px -12px rgba(134, 242, 189, 0.8);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); border-color: rgba(134, 242, 189, 0.6); }
.brand-text { display: grid; gap: 1px; line-height: 1.2; }
.brand-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.brand-text small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  font-weight: 500;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-desktop a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a8b1b8;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { transform: scaleX(1); }
.nav-desktop a.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 24px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 118px clamp(24px, 7vw, 64px) 42px;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(45, 130, 96, 0.16), transparent 70%),
    rgba(5, 7, 10, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu nav { display: grid; gap: 2px; margin-block: auto; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--text);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), color 0.25s ease;
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu nav a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu nav a:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu nav a:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu nav a span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--mint);
}
.mobile-menu nav a:active { color: var(--mint); }
.mobile-menu-foot { display: grid; gap: 8px; }
.mobile-mail {
  font-size: 0.95rem;
  color: var(--mint);
  border-bottom: 1px solid rgba(134, 242, 189, 0.3);
  justify-self: start;
  padding-bottom: 2px;
}
.mobile-menu-foot p {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 54px);
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
}
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 16%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.3) 16%, #000 52%);
}
.hero-halo {
  position: absolute;
  inset: -25% -10% -10% 20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 46% at 66% 46%, rgba(78, 200, 148, 0.16), transparent 68%),
    radial-gradient(30% 34% at 82% 24%, rgba(216, 185, 138, 0.07), transparent 70%),
    radial-gradient(38% 38% at 74% 82%, rgba(80, 150, 190, 0.05), transparent 72%);
  filter: blur(26px);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.hero-copy {
  position: relative;
  max-width: 660px;
  padding-top: 8px;
  z-index: 1;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: -10% -14% -10% -12%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(72% 78% at 32% 52%, rgba(6, 8, 10, 0.94), rgba(6, 8, 10, 0.6) 56%, transparent 80%);
  filter: blur(14px);
}
.hero-title {
  margin: 26px 0 26px;
  font-size: clamp(2.7rem, 5.4vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.033em;
  color: #f1eee7;
}
.hero-title em {
  position: relative;
  font-style: italic;
  background: linear-gradient(100deg, #d9fff0 0%, #86f2bd 55%, #c9b27e 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(134, 242, 189, 0.18));
}
.hero-lead {
  max-width: 50ch;
  color: #a9b3ba;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}
.hero-lead strong { color: var(--text); font-weight: 600; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: clamp(26px, 4vw, 56px);
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-stats dt {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.hero-stats dd {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats dd sup {
  font-size: 0.55em;
  color: var(--mint);
  top: -0.7em;
  margin-left: 2px;
}
.hero-stats .stat-word {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: var(--mint);
  letter-spacing: -0.01em;
}

/* ---------- Scène flottante ---------- */
.hero-stage {
  position: relative;
  height: min(560px, 66vh);
  min-height: 400px;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 16% 10%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 38% 32%, rgba(134, 242, 189, 0.16), rgba(24, 70, 52, 0.05) 46%, transparent 70%);
  filter: blur(24px);
}
.stage-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(390px, 82%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: spin 90s linear infinite;
}
.stage-ring::before,
.stage-ring::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(134, 242, 189, 0.8);
  top: -3px;
  left: 50%;
}
.stage-ring::after {
  top: auto;
  bottom: 18%;
  left: 5%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(216, 185, 138, 0.7);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(20, 30, 26, 0.72), rgba(9, 13, 16, 0.66));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  animation: floaty 7s ease-in-out infinite alternate;
}
.float-chip span:last-child { display: grid; line-height: 1.25; }
.float-chip b { font-size: 0.76rem; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.float-chip small { font-size: 9.5px; color: var(--muted-2); letter-spacing: 0.03em; }
.chip-ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(134, 242, 189, 0.08);
  border: 1px solid rgba(134, 242, 189, 0.15);
  color: var(--mint);
  flex: 0 0 auto;
}
.chip-ico svg { width: 17px; height: 17px; }
.chip-1 { top: 9%; left: 1%; animation-delay: -1.2s; }
.chip-2 { top: 41%; right: -3%; animation-delay: -3.4s; }
.chip-3 { bottom: 13%; left: 5%; animation-delay: -5s; }
@keyframes floaty {
  from { transform: translate3d(0, -7px, 0); }
  to { transform: translate3d(0, 9px, 0); }
}
.stage-caption {
  position: absolute;
  bottom: -6px;
  right: 2%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(147, 157, 165, 0.7);
}
.stage-caption-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(134, 242, 189, 0.6));
}

/* ---------- Indicateur de défilement ---------- */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(147, 157, 165, 0.6);
  transition: color 0.3s ease;
}
.scroll-cue:hover { color: var(--mint); }
.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--mint);
  animation: scrollRun 2.2s ease-in-out infinite;
}
@keyframes scrollRun {
  0% { transform: translateY(-110%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* ============================================================
   BANDEAU DÉFILANT
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 17px;
  background: rgba(255, 255, 255, 0.012);
  -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;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marqueeMove 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d878e;
  white-space: nowrap;
}
.marquee-track i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(134, 242, 189, 0.45);
  flex: 0 0 auto;
}
@keyframes marqueeMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   À PROPOS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}
.about-media { position: relative; max-width: 430px; }
.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0e0d;
  box-shadow: 0 40px 90px -60px #000;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.01);
  transition: transform 1.1s var(--ease), filter 0.6s ease;
}
.portrait:hover img { transform: scale(1.045); filter: saturate(1.05) contrast(1.04); }
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 8, 7, 0.86) 100%);
  pointer-events: none;
}
.portrait-glow {
  position: absolute;
  inset: 8% -10% -6%;
  z-index: -1;
  background: radial-gradient(55% 55% at 50% 50%, rgba(100, 225, 175, 0.2), transparent 70%);
  filter: blur(38px);
}
.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(134, 242, 189, 0.6);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.corner-tl { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.corner-tr { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.corner-bl { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.corner-br { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.portrait figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(8, 13, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2cbc9;
}
.portrait figcaption span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(134, 242, 189, 0.8);
}
.seal {
  position: absolute;
  right: -26px;
  bottom: 44px;
  z-index: 4;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: rgba(7, 11, 10, 0.92);
  border: 1px solid rgba(134, 242, 189, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -22px #000;
}
.seal svg {
  width: 100%;
  height: 100%;
  animation: spinSeal 34s linear infinite;
}
.seal text {
  fill: rgba(188, 245, 216, 0.78);
  font-family: var(--sans);
  font-size: 8.2px;
  letter-spacing: 2.4px;
  font-weight: 600;
}
.seal-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--mint);
  letter-spacing: 0.02em;
}
@keyframes spinSeal { to { transform: rotate(360deg); } }

.about-copy { padding-top: 10px; }
.about-big {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: #e6e2da;
  margin-bottom: 22px;
}
.about-big strong { color: #fff; font-weight: 500; }
.about-big em { font-style: italic; color: var(--mint); }
.about-copy > p:not(.about-big) {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 62ch;
  margin-bottom: 16px;
}
.facts {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-2);
}
.facts dd {
  font-size: 0.86rem;
  color: var(--text-soft);
  letter-spacing: 0.005em;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.about-tags span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: #b9c2c8;
  background: rgba(255, 255, 255, 0.018);
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.skill-card {
  position: relative;
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 60%),
    rgba(8, 11, 14, 0.6);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), border-color 0.4s ease, background-color 0.4s ease;
  will-change: transform;
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mxx, 50%) var(--myy, 50%), rgba(134, 242, 189, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skill-card:hover { border-color: rgba(134, 242, 189, 0.26); }
.skill-card:hover::before { opacity: 1; }
.skill-num {
  position: absolute;
  top: 25px;
  right: 29px;
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(134, 242, 189, 0.5);
}
.skill-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 13px;
  border: 1px solid rgba(134, 242, 189, 0.17);
  background: linear-gradient(150deg, rgba(134, 242, 189, 0.12), rgba(134, 242, 189, 0.02));
  color: var(--mint);
}
.skill-icon svg { width: 21px; height: 21px; }
.skill-card h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: #f0ede6;
  max-width: 22ch;
}
.skill-card p {
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 20px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.022);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #bcc6cc;
}

/* ============================================================
   PROJETS
   ============================================================ */
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #98a2a9;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active {
  background: var(--mint);
  color: #04140c;
  font-weight: 600;
  border-color: transparent;
}
.project-count {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.project-count span { color: var(--mint); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}
.project-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #080b0e;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
.project-card:hover {
  border-color: rgba(134, 242, 189, 0.28);
  box-shadow: 0 34px 70px -46px rgba(0, 0, 0, 1), 0 0 0 1px rgba(134, 242, 189, 0.06);
}
.card-inner {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, var(--lift, 0), 0);
  transition: transform 0.55s var(--ease);
  will-change: transform;
}
.project-card:hover .card-inner { --lift: -5px; }
.card-open {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: inherit;
}
.card-open:focus-visible { outline-offset: -4px; }

/* ---------- Affiches ---------- */
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 12% 8%, var(--c1) 0%, transparent 58%),
    radial-gradient(100% 100% at 88% 92%, var(--c2) 0%, transparent 55%),
    linear-gradient(150deg, #0c1116 0%, #06080a 70%);
  isolation: isolate;
}
.cover-orb {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  right: -8%;
  top: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, var(--c2), transparent 66%);
  opacity: 0.42;
  filter: blur(38px);
  transition: transform 1.2s var(--ease), opacity 0.6s ease;
  z-index: -1;
}
.cover-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(90% 80% at 40% 40%, #000 10%, transparent 78%);
  mask-image: radial-gradient(90% 80% at 40% 40%, #000 10%, transparent 78%);
  opacity: 0.55;
}
.cover-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -46px;
  bottom: -74px;
}
.cover-ring::after {
  content: '';
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}
.cover-index {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8vw, 6.4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  letter-spacing: -0.03em;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.4s ease;
}
.cover-word {
  position: absolute;
  left: clamp(18px, 2.6vw, 28px);
  bottom: clamp(18px, 2.6vw, 28px);
  display: grid;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #f2efe8;
  transition: transform 0.6s var(--ease);
}
.cover-word b { font-weight: 400; }
.cover-word i {
  font-style: italic;
  color: var(--accent);
  opacity: 0.95;
  font-weight: 400;
  padding-left: 0.06em;
}
.cover-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 9, 11, 0.5);
  backdrop-filter: blur(10px);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #c8d0d4;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.status-live { background: var(--mint); box-shadow: 0 0 7px rgba(134, 242, 189, 0.9); }
.status-build { background: var(--gold); box-shadow: 0 0 7px rgba(216, 185, 138, 0.8); }
.status-lab { background: #8fa9c8; box-shadow: 0 0 7px rgba(143, 169, 200, 0.7); }

.project-card:hover .cover-word { transform: translateY(-4px); }
.project-card:hover .cover-orb { transform: scale(1.12); opacity: 0.58; }
.project-card:hover .cover-index { -webkit-text-stroke-color: rgba(134, 242, 189, 0.4); }

/* ---------- Corps de carte ---------- */
.project-body { padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px); }
.project-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 10px;
}
.project-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(134, 242, 189, 0.6);
}
.project-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem);
  color: #f1eee7;
  letter-spacing: -0.02em;
}
.project-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}
.project-arrow svg { width: 15px; height: 15px; }
.project-card:hover .project-arrow {
  background: var(--mint);
  border-color: var(--mint);
  color: #04140c;
  transform: rotate(45deg);
}
.project-tagline {
  margin: 9px 0 17px;
  font-size: 0.855rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 5px; }
.project-stack li {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b4bec4;
}
.project-stack .stack-more { color: var(--mint); border-color: rgba(134, 242, 189, 0.25); }
@keyframes cardIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.projects-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.projects-foot p {
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* ============================================================
   MÉTHODE
   ============================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
  counter-reset: step;
}
.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(134, 242, 189, 0.4), rgba(255, 255, 255, 0.09) 45%, rgba(255, 255, 255, 0.04));
}
.step { position: relative; padding-top: 64px; }
.step-index {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(134, 242, 189, 0.25);
  background: #080c0f;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--mint);
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 6px rgba(6, 8, 10, 0.85);
}
.step h3 { font-size: 1.18rem; color: #eeeae3; margin-bottom: 9px; }
.step p { font-size: 0.865rem; line-height: 1.72; color: var(--muted); max-width: 34ch; }
.step-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(134, 242, 189, 0.75);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(22, 44, 36, 0.6) 0%, rgba(10, 15, 17, 0.92) 52%, rgba(8, 11, 13, 0.96) 100%);
  box-shadow: 0 50px 120px -70px #000;
}
.contact-orb {
  position: absolute;
  top: -40%;
  right: -14%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(134, 242, 189, 0.3), transparent 64%);
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.contact-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 72%);
  mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 72%);
}
.contact-copy, .contact-side { position: relative; z-index: 1; }
.contact-copy h2 {
  margin: 20px 0 20px;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1.02;
  color: #f2efe8;
}
.contact-lead {
  max-width: 48ch;
  color: #a9b3b9;
  font-size: 0.95rem;
  line-height: 1.78;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.contact-email-line {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.contact-email-line a {
  color: var(--mint);
  border-bottom: 1px solid rgba(134, 242, 189, 0.25);
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}
.contact-email-line a:hover { border-color: var(--mint); }

.contact-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding-left: clamp(22px, 3vw, 42px);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.contact-fact { display: grid; gap: 4px; }
.contact-fact-label {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(134, 242, 189, 0.66);
}
.contact-fact strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.contact-fact p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted-2);
  max-width: 30ch;
}
.availability {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 14px;
  border: 1px solid rgba(134, 242, 189, 0.22);
  border-radius: 999px;
  background: rgba(134, 242, 189, 0.055);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9e9cf;
}

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 52px;
  background: rgba(4, 6, 8, 0.5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  padding-bottom: 38px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-nav a {
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--mint); }
.footer-mail {
  justify-self: end;
  font-size: 0.82rem;
  color: var(--mint);
  border-bottom: 1px solid rgba(134, 242, 189, 0.25);
  padding-bottom: 2px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.footer-note { display: inline-flex; align-items: center; }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aeb7bd;
  transition: color 0.25s ease;
}
.to-top:hover { color: var(--mint); }
.to-top svg { width: 14px; height: 14px; }

/* ============================================================
   FICHE PROJET (MODAL)
   ============================================================ */
.project-modal {
  width: min(960px, calc(100vw - 28px));
  max-width: none;
  max-height: 92svh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  margin: auto;
  overflow: visible;
}
.project-modal::backdrop {
  background: rgba(3, 5, 7, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.modal-shell {
  position: relative;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0a0e12;
  box-shadow: 0 60px 140px -50px #000;
  scrollbar-width: thin;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 13, 0.7);
  backdrop-filter: blur(10px);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.modal-close svg { width: 17px; height: 17px; }
.modal-close:hover { background: var(--mint); color: #04140c; transform: rotate(90deg); }
.modal-cover .cover { aspect-ratio: 21 / 9; border-radius: 0; }
.modal-cover .cover-word { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.modal-cover .cover-index { font-size: clamp(5rem, 11vw, 8rem); }
.modal-shot {
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #06080a;
}
.modal-shot img { width: 100%; height: auto; }
.modal-content { padding: clamp(22px, 4vw, 44px); }
.modal-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.modal-eyebrow i { width: 3px; height: 3px; border-radius: 50%; background: rgba(134, 242, 189, 0.6); }
.modal-eyebrow .status-text { color: var(--mint); }
.modal-content h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  color: #f2efe8;
  margin-bottom: 10px;
}
.modal-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--mint);
  margin-bottom: 22px;
  max-width: 46ch;
}
.modal-text p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 12px;
  max-width: 74ch;
}
.modal-cols {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(22px, 4vw, 42px);
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.modal-cols h3 {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(134, 242, 189, 0.8);
  margin-bottom: 14px;
}
.modal-features { display: grid; gap: 9px; }
.modal-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #b6c0c6;
}
.modal-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: rgba(134, 242, 189, 0.55);
  transform: rotate(45deg);
}
.modal-chips li { font-size: 9px; }
.modal-role-title { margin-top: 24px; }
.modal-role { font-size: 0.84rem; color: var(--muted); line-height: 1.6; }
.modal-actions { margin-top: 24px; }
.modal-link { --h: 46px; font-size: 0.82rem; }
.modal-private {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 10001;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--mint);
  color: #04140c;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -18px rgba(134, 242, 189, 0.7);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { gap: 18px; }
  .chip-2 { right: 0; }
  .chip-1 { left: 0; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .site-header { padding-block: 12px; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 78px);
    padding-bottom: 84px;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { display: none; }
  .hero-copy { max-width: 660px; }
  #scene {
    opacity: 0.5;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 55%, #000 0%, transparent 76%);
    mask-image: radial-gradient(70% 60% at 50% 55%, #000 0%, transparent 76%);
  }
  .hero-halo { inset: -10%; opacity: 0.8; }
  .scroll-cue { display: none; }

  .section-head-row { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .section-head h2 { max-width: 22ch; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 38px; }
  .steps::before { display: none; }
  .step { padding-top: 58px; }

  .contact-card { grid-template-columns: 1fr; }
  .contact-side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .availability { grid-column: 1 / -1; margin-top: 0; }

  .footer-top { grid-template-columns: 1fr auto; }
  .footer-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 780px) {
  .wrap { width: calc(100% - 36px); }
  h1 { font-size: clamp(2.4rem, 10.5vw, 3.4rem); }
  h2 { font-size: clamp(1.9rem, 7.2vw, 2.6rem); }
  .section { padding-block: 78px; }
  .hero-title { font-size: clamp(2.35rem, 10.4vw, 3.5rem); }
  .hero-stats { margin-top: 40px; gap: 22px; flex-wrap: wrap; }
  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { flex-wrap: wrap; width: 100%; }
  .modal-cols { grid-template-columns: 1fr; gap: 26px; }
  .modal-shell { max-height: 94svh; border-radius: 18px; }
  .project-modal { width: calc(100vw - 18px); }
  .modal-cover .cover { aspect-ratio: 16 / 9; }
  .contact-side { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-mail { justify-self: start; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 560px) {
  .brand-text small { display: none; }
  .hero { padding-top: calc(var(--header-h) + 58px); padding-bottom: 66px; }
  .hero-title { margin: 20px 0 20px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
  .hero-stats > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .hero-stats > div:last-child dt { margin-bottom: 0; }
  .hero-stats dd { font-size: 1.65rem; }
  .filters { margin-bottom: 4px; }
  .seal { width: 88px; height: 88px; right: -10px; bottom: 26px; }
  .seal text { font-size: 7px; letter-spacing: 2px; }
  .seal-core { font-size: 1rem; }
  .facts > div { grid-template-columns: 108px 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 56px; }
  .contact-card { padding: 24px 20px; border-radius: 20px; }
  .contact-side { grid-template-columns: 1fr; gap: 18px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .contact-copy h2 { font-size: 2.4rem; }
  .modal-content { padding: 22px 18px 28px; }
  .modal-cover .cover-word { font-size: 2rem; }
  .modal-cover .cover-badge { display: none; }
  .project-tagline { max-width: none; }
  .footer-nav { gap: 14px; }
  .toast { width: calc(100% - 32px); text-align: center; font-size: 0.74rem; }
  .grain { opacity: 0.04; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 2.12rem; }
  .hero-cta .btn { font-size: 0.84rem; padding-inline: 18px; }
  .brand-text { display: none; }
}

/* ============================================================
   MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  #scene { opacity: 0.7; }
}
