/* =========================================================================
   AdamRodWebDev — feuille de style
   Direction : interface "augmentée" noir / or / blanc, angles chanfreinés,
   hexagones et éclats triangulaires. Mise en page alignée à gauche,
   grille de 12 colonnes sur bureau, une colonne sur mobile.
   ========================================================================= */

/* ---------- Jetons (thème sombre par défaut) ---------- */
:root {
  --bg: #000000;
  --surface: #0e0c08;
  --surface-2: #17140d;
  --fg: #f6f4ef;
  --muted: #a8a193;
  --gold: #e0b04a;          /* texte et accents */
  --gold-hi: #f5cf6e;       /* reflets */
  --gold-deep: #9a7420;     /* ombres dorées */
  --on-gold: #000000;
  --line: rgba(224, 176, 74, 0.28);
  --line-soft: rgba(224, 176, 74, 0.12);
  --glow: rgba(224, 176, 74, 0.35);
  --danger: #ff6b5e;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);

  --font-display: "Rajdhani", "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(3.2rem, 2rem + 7vw, 8.5rem);

  --cut: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfaf7;
    --surface: #f2efe7;
    --surface-2: #e9e4d7;
    --fg: #0a0a0a;
    --muted: #57514a;
    --gold: #85620f;
    --gold-hi: #c9972c;
    --gold-deep: #6b4e0a;
    --on-gold: #000000;
    --line: rgba(133, 98, 15, 0.3);
    --line-soft: rgba(133, 98, 15, 0.12);
    --glow: rgba(201, 151, 44, 0.3);
    --danger: #b3261e;
    --shadow: 0 30px 80px -40px rgba(60, 45, 10, 0.45);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #fbfaf7;
  --surface: #f2efe7;
  --surface-2: #e9e4d7;
  --fg: #0a0a0a;
  --muted: #57514a;
  --gold: #85620f;
  --gold-hi: #c9972c;
  --gold-deep: #6b4e0a;
  --on-gold: #000000;
  --line: rgba(133, 98, 15, 0.3);
  --line-soft: rgba(133, 98, 15, 0.12);
  --glow: rgba(201, 151, 44, 0.3);
  --danger: #b3261e;
  --shadow: 0 30px 80px -40px rgba(60, 45, 10, 0.45);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
[v-cloak] { display: none; }

.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

/* Fond : grille hexagonale très discrète + bruit de balayage */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.6;
}

/* ---------- Barre de progression (animation pilotée par le défilement) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  box-shadow: 0 0 12px var(--glow);
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress-grow linear both; animation-timeline: scroll(root block); }
  @keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- Boutons chanfreinés ---------- */
.btn {
  --bcut: 12px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer; isolation: isolate;
  clip-path: polygon(var(--bcut) 0, 100% 0, 100% calc(100% - var(--bcut)), calc(100% - var(--bcut)) 100%, 0 100%, 0 var(--bcut));
  transition: transform 0.4s var(--ease-out), color 0.3s, background-color 0.3s;
  will-change: transform;
}
.btn > span { position: relative; z-index: 1; pointer-events: none; }
.btn--gold { background: var(--gold-hi); color: var(--on-gold); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease-out);
}
.btn--gold:hover::after, .btn--gold:focus-visible::after { transform: translateX(120%); }
.btn--ghost { background: var(--line); color: var(--fg); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 1px; z-index: 0; background: var(--bg);
  clip-path: inherit; transition: background-color 0.3s;
}
.btn--ghost:hover::before { background: var(--surface-2); }
.btn:active { transform: scale(0.97); }
.btn[disabled] { cursor: progress; }

/* ---------- En-tête et navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand__mark { width: 38px; height: 38px; color: var(--gold); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(60deg); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.04em; }
.brand__name b { color: var(--gold); font-weight: 700; }
.nav__links { display: flex; gap: clamp(12px, 2.4vw, 36px); }
.nav__links a, .nav__link {
  position: relative; text-decoration: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 2px; color: var(--fg);
}
.nav__links a::after, .nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover::after, .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--gold); }
.nav__tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--fg); cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.icon-btn:hover { color: var(--gold); background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* Icône soleil / lune animée */
.theme-icon { overflow: visible; }
.theme-icon__core { transition: r 0.6s var(--ease-out), transform 0.6s var(--ease-out); transform-origin: center; }
.theme-icon__mask-circle { transition: cx 0.6s var(--ease-out), cy 0.6s var(--ease-out); }
.theme-icon__rays { transition: transform 0.6s var(--ease-out), opacity 0.4s; transform-origin: center; }
.is-dark .theme-icon__rays { transform: rotate(-90deg) scale(0.4); opacity: 0; }

/* Menu burger */
.burger { display: none; }
.burger__bars { position: relative; width: 22px; height: 14px; }
.burger__bars span {
  position: absolute; left: 0; height: 2px; background: currentColor;
  transition: transform 0.45s var(--ease-out), opacity 0.3s, width 0.45s var(--ease-out);
}
.burger__bars span:nth-child(1) { top: 0; width: 100%; }
.burger__bars span:nth-child(2) { top: 6px; width: 70%; }
.burger__bars span:nth-child(3) { top: 12px; width: 45%; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); width: 100%; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); width: 100%; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s; visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 0.7s var(--ease-in-out); }
.mobile-menu ul { display: grid; gap: 8px; }
.mobile-menu a {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 11vw, 4rem);
  text-transform: uppercase; text-decoration: none; letter-spacing: 0.02em; line-height: 1.1;
  opacity: 0; transform: translateY(30px); transition: opacity 0.5s, transform 0.6s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open a { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i) * 0.07s); }
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--gold); }
.mobile-menu__foot { color: var(--muted); font-size: var(--step--1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 980px); display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px; overflow: hidden; isolation: isolate;
}
.hero__shards { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, var(--glow), transparent 60%),
    linear-gradient(180deg, transparent 70%, var(--bg));
  opacity: 0.55;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px); }
.hero__copy { min-width: 0; }
.hero__status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem;
  color: var(--gold); padding: 6px 14px 6px 12px; border: 1px solid var(--line);
  animation: rise 0.9s var(--ease-out) 0.1s both;
}
.pulse-dot { width: 8px; height: 8px; background: var(--gold-hi); border-radius: 50%; box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
.hero__title {
  font-size: var(--step-4); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; line-height: 0.88;
  display: grid;
}
.hero__line { display: block; animation: slice-in 1.1s var(--ease-out) both; }
.hero__line:nth-child(2) { animation-delay: 0.15s; }
.hero__line--outline {
  color: transparent; -webkit-text-stroke: 2px var(--gold);
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-hi) 40%, var(--gold) 60%, var(--gold-deep) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text;
  animation: slice-in 1.1s var(--ease-out) 0.15s both, gold-sheen 6s linear 1.4s infinite;
}
.hero__lead { max-width: 52ch; margin-top: 28px; font-size: var(--step-1); color: var(--muted); line-height: 1.5; animation: rise 1s var(--ease-out) 0.45s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; animation: rise 1s var(--ease-out) 0.6s both; }

.hero__emblem { position: relative; min-width: 0; justify-self: center; width: min(440px, 100%); }
.emblem { width: 100%; height: auto; overflow: visible; }
.emblem * { fill: none; stroke: var(--gold); }
.emblem__ring circle { stroke-width: 1; stroke-dasharray: 2 8; opacity: 0.7; }
.emblem__ring { transform-origin: 200px 200px; }
.emblem__ring--outer { animation: spin 60s linear infinite; }
.emblem__ring--inner circle { stroke-dasharray: 40 14 4 14; opacity: 0.5; }
.emblem__ring--inner { animation: spin 40s linear infinite reverse; }
.emblem__hex { stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-in-out) 0.3s forwards; }
.emblem__hex--small { stroke-width: 1; opacity: 0.6; animation-delay: 0.7s; }
.emblem__a { stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; stroke: var(--gold-hi); animation: draw 1.6s var(--ease-in-out) 1.3s forwards; filter: drop-shadow(0 0 8px var(--glow)); }
.emblem__shards path { fill: var(--gold); stroke: none; opacity: 0; animation: shard-in 0.8s var(--ease-out) forwards; }
.emblem__shards path:nth-child(1) { animation-delay: 1.8s; }
.emblem__shards path:nth-child(2) { animation-delay: 1.95s; }
.emblem__shards path:nth-child(3) { animation-delay: 2.1s; }
.emblem__shards path:nth-child(4) { animation-delay: 2.25s; }

.hud-panel {
  position: absolute; right: -8px; bottom: -12px; width: min(270px, 80%);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 6px;
  font-size: var(--step--1); animation: hud-in 0.9s var(--ease-out) 1.2s both;
}
.hud-panel::before, .hud-panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--gold);
}
.hud-panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.hud-panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.hud-panel__row { display: flex; justify-content: space-between; gap: 12px; }
.hud-panel__row span { color: var(--muted); }
.hud-panel__row b { font-weight: 600; text-align: right; }
.hud-clock { font-variant-numeric: tabular-nums; color: var(--gold); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px;
  border: 1px solid var(--line); border-radius: 14px; display: grid; justify-items: center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; background: var(--gold); border-radius: 2px; animation: scroll-hint 1.8s var(--ease-in-out) infinite; }

@supports (animation-timeline: scroll()) {
  .hero__inner { animation: hero-parallax linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
  @keyframes hero-parallax { to { transform: translateY(18vh); opacity: 0.15; } }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 160px); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__tag {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.section__tag::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.section__title { font-size: var(--step-3); text-transform: uppercase; letter-spacing: 0.01em; }
.section__title--small { font-size: var(--step-2); margin-bottom: 28px; }
.section__intro { margin-top: 20px; color: var(--muted); font-size: var(--step-1); max-width: 58ch; line-height: 1.5; }

/* ---------- Révélations (IntersectionObserver) ---------- */
.js .reveal { opacity: 0; transform: translateY(42px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 0.08s); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Cartes « augmentations » ---------- */
.aug-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.aug {
  position: relative; padding: 32px 28px 28px; min-width: 0;
  background: var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.js .aug.reveal.is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: opacity 0.9s var(--ease-out), transform 0.25s var(--ease-out), filter 0.9s; transition-delay: calc(var(--i, 0) * 0.08s), 0s, calc(var(--i, 0) * 0.08s); }
.aug::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--surface);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.aug { z-index: 0; isolation: isolate; }
.aug::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 55%);
  transition: opacity 0.4s;
}
.aug:hover::after { opacity: 1; }
.aug__icon { width: 46px; height: 46px; margin-bottom: 22px; }
.aug__icon * { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: square; }
.aug__icon path, .aug__icon circle { stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.6s var(--ease-out) calc(0.3s + var(--i, 0) * 0.08s); }
.is-in .aug__icon path, .is-in .aug__icon circle, html:not(.js) .aug__icon * { stroke-dashoffset: 0; }
.aug__title { font-size: var(--step-2); text-transform: uppercase; margin-bottom: 12px; }
.aug__text { color: var(--muted); }
.aug__meta { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.9rem; color: var(--gold); }

/* ---------- Carrousel de projets ---------- */
.section--projects { overflow: hidden; }
.projects-static { display: grid; gap: 16px; }
.projects-static h3 { font-size: var(--step-2); }

.swiper { position: relative; outline: none; }
.swiper__viewport {
  position: relative; height: clamp(500px, 62vw, 620px); perspective: 1600px; touch-action: pan-y;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.swiper__viewport.is-dragging { cursor: grabbing; }
.slide {
  position: absolute; top: 0; left: 50%; width: min(760px, 84vw); height: 100%;
  margin-left: calc(min(760px, 84vw) / -2);
  transform-style: preserve-3d; will-change: transform, opacity;
  transition: transform 0.85s var(--ease-out), opacity 0.6s var(--ease-out), filter 0.6s;
}
.swiper__viewport.is-dragging .slide { transition: none; }
.slide__card {
  position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--line);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  isolation: isolate;
}
.slide__card::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--surface);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.slide.is-active .slide__card { background: linear-gradient(140deg, var(--gold-hi), var(--line) 40%, var(--line) 60%, var(--gold)); }
.slide__visual { position: relative; overflow: hidden; margin: 1px 1px 0; min-height: 0; background: var(--bg); }
.slide__visual svg { width: 100%; height: 100%; }
.slide__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.18) 3px 4px);
  mix-blend-mode: multiply; opacity: 0.5;
}
.slide__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 24px; padding: 22px 28px 26px; }
.slide__status {
  grid-column: 1 / -1; display: inline-flex; width: fit-content; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.85rem;
  color: var(--gold);
}
.slide__status::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }
.slide__status--soon { color: var(--muted); }
.slide__title { font-size: var(--step-3); text-transform: uppercase; }
.slide__desc { grid-column: 1 / 2; color: var(--muted); max-width: 52ch; }
.slide__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.slide__tags li { font-size: 0.85rem; padding: 3px 10px; border: 1px solid var(--line); color: var(--fg); }
.slide__link {
  grid-column: 2; grid-row: 2 / 4; align-self: center; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); text-decoration: none;
  padding: 10px 0; border-bottom: 2px solid var(--line);
  transition: border-color 0.3s, gap 0.3s var(--ease-out);
}
.slide__link:hover { border-color: var(--gold); gap: 14px; }
.redacted { background: var(--fg); color: transparent; user-select: none; animation: redact 3s steps(1) infinite; }

.swiper__controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 36px; padding-inline: var(--gutter); }
.swiper__bullets { display: flex; gap: 10px; }
.swiper__bullet {
  position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: grid; place-items: center;
}
.swiper__bullet::before {
  content: ""; width: 12px; height: 12px; border: 1.5px solid var(--gold); transform: rotate(45deg);
  transition: background-color 0.3s, transform 0.5s var(--ease-out);
}
.swiper__bullet[aria-current="true"]::before { background: var(--gold); transform: rotate(225deg) scale(1.2); }
.swiper__counter { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; min-width: 72px; text-align: center; }
.swiper__counter b { color: var(--gold); font-size: 1.4rem; }
.swiper__timer { position: absolute; inset: auto 0 -1px 0; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.swiper__timer.is-running { animation: timer var(--autoplay, 7s) linear forwards; }
.swiper__timer.is-paused { animation-play-state: paused; }

/* ---------- Méthode ---------- */
.protocol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.protocol::before {
  content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; transform: scaleX(var(--line-progress, 1));
}
@supports (animation-timeline: view()) {
  .protocol::before { animation: line-draw linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
  @keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.protocol__step { position: relative; padding-top: 72px; min-width: 0; }
.protocol__num {
  position: absolute; top: 0; left: 0; width: 54px; height: 54px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--on-gold); background: var(--gold-hi);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.protocol__step h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.75rem); overflow-wrap: anywhere; hyphens: auto; text-transform: uppercase; margin-bottom: 10px; }
.protocol__step p { color: var(--muted); }

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; color: var(--fg);
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__facts { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.contact__facts dt { color: var(--muted); }
.contact__facts dd { margin: 0; font-weight: 600; text-align: right; }
.contact__form-wrap { position: relative; min-width: 0; }

.cform {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px;
  padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line);
}
.cform::before, .cform::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); pointer-events: none; }
.cform::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cform::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.field { position: relative; display: grid; gap: 8px; min-width: 0; }
.field--full, .cform .field:has(textarea), .field--check, .cform > .btn, .cform__actions { grid-column: 1 / -1; }
.field label, .field__label { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; }
.field__label small { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--line-soft), 0 0 24px -6px var(--glow); }
.field__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-hi); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); pointer-events: none; }
.field:focus-within .field__bar { transform: scaleX(1); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.9rem; display: flex; gap: 6px; align-items: center; }
.field__count { position: absolute; right: 0; top: 2px; font-size: 0.82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.shake { animation: shake 0.45s var(--ease-out); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.chip input:checked + span { background: var(--gold-hi); color: var(--on-gold); border-color: var(--gold-hi); transform: translateY(-2px); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-hi); outline-offset: 2px; }

.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.check { appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--gold); display: grid; place-items: center; cursor: pointer; transition: background-color 0.25s; }
.check::after { content: ""; width: 12px; height: 7px; border: solid var(--on-gold); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform 0.3s var(--ease-out); margin-top: -3px; }
.check:checked { background: var(--gold-hi); }
.check:checked::after { transform: rotate(-45deg) scale(1); }

.cform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cform__note { color: var(--muted); font-size: 0.9rem; }
.submit-btn { min-width: 250px; overflow: hidden; }
.submit-btn__progress { position: absolute; inset: auto 0 0 0; height: 3px; background: var(--on-gold); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.6s var(--ease-out); }
.cform__alert { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid var(--danger); color: var(--danger); }

/* Écran de confirmation */
.success {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 18px;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.success__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.success__emblem { width: 150px; height: 150px; overflow: visible; }
.success__emblem * { fill: none; stroke: var(--gold); stroke-linecap: square; }
.success__hex { stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-in-out) 0.1s forwards; }
.success__hex2 { stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.5; animation: draw 1.1s var(--ease-in-out) 0.35s forwards, spin 18s linear 1.4s infinite; transform-origin: 75px 75px; }
.success__check { stroke: var(--gold-hi); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s var(--ease-out) 1s forwards; filter: drop-shadow(0 0 10px var(--glow)); }
.success__ping { stroke-width: 2; opacity: 0; transform-origin: 75px 75px; animation: ping 1.6s var(--ease-out) 1.2s 2; }
.success__title { font-size: var(--step-3); text-transform: uppercase; animation: rise 0.8s var(--ease-out) 1.2s both; }
.success__text { color: var(--muted); max-width: 46ch; animation: rise 0.8s var(--ease-out) 1.35s both; }
.success__log { display: grid; gap: 4px; text-align: left; font-family: var(--font-display); font-weight: 500; letter-spacing: 0.06em; color: var(--muted); font-size: 0.95rem; }
.success__log li { opacity: 0; animation: rise 0.5s var(--ease-out) both; }
.success__log li b { color: var(--gold); font-weight: 700; }
.success .btn { animation: rise 0.8s var(--ease-out) 2.1s both; }
.success__demo { font-size: 0.85rem; color: var(--muted); border: 1px dashed var(--line); padding: 6px 12px; }

/* Transitions Vue */
.swap-enter-active { transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out), clip-path 0.9s var(--ease-in-out); }
.swap-leave-active { transition: opacity 0.4s, transform 0.5s var(--ease-in-out), clip-path 0.5s var(--ease-in-out); }
.swap-enter-from { opacity: 0; transform: scale(0.96); clip-path: inset(50% 0 50% 0); }
.swap-leave-to { opacity: 0; transform: scale(1.02); clip-path: inset(0 0 100% 0); }
.err-enter-active, .err-leave-active { transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.err-enter-from, .err-leave-to { opacity: 0; transform: translateY(-6px); }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { text-decoration: none; color: var(--muted); padding: 6px 0; transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }
.footer__copy { color: var(--muted); font-size: var(--step--1); width: 100%; }

/* ---------- Lecteur audio ---------- */
.player {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); animation: hud-in 0.8s var(--ease-out) 1.5s both;
}
.player__toggle { width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--gold); }
.player__bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.player__bars i { width: 3px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(0.2); transition: transform 0.4s; }
.player.is-playing .player__bars i { animation: eq 1s var(--ease-in-out) infinite alternate; }
.player.is-playing .player__bars i:nth-child(2) { animation-delay: -0.3s; animation-duration: 0.8s; }
.player.is-playing .player__bars i:nth-child(3) { animation-delay: -0.6s; animation-duration: 1.2s; }
.player.is-playing .player__bars i:nth-child(4) { animation-delay: -0.15s; animation-duration: 0.9s; }
.player__info { display: grid; overflow: hidden; max-width: 0; opacity: 0; transition: max-width 0.6s var(--ease-out), opacity 0.4s, padding 0.6s; white-space: nowrap; }
.player.is-open .player__info { max-width: 260px; opacity: 1; padding-right: 10px; }
.player__title { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.95rem; }
.player__sub { font-size: 0.78rem; color: var(--muted); }
.player__vol { width: 120px; accent-color: var(--gold); margin-top: 4px; }
.player__viz { width: 46px; height: 46px; }

/* ---------- Curseur personnalisé ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 9999; display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cursor.is-ready { display: block; }
}
.cursor__ring, .cursor__dot { position: fixed; top: 0; left: 0; translate: -50% -50%; }
.cursor__ring {
  width: 38px; height: 38px; border: 1.5px solid var(--gold);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background-color 0.35s, border-color 0.3s;
}
.cursor__dot { width: 5px; height: 5px; background: var(--gold-hi); }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: var(--line-soft); }
.cursor.is-down .cursor__ring { width: 28px; height: 28px; }

/* ---------- Transition de thème (View Transitions API) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Images clés ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes slice-in {
  0% { clip-path: inset(0 100% 0 0); transform: translateX(-20px); }
  100% { clip-path: inset(0 -5% 0 0); transform: none; }
}
@keyframes gold-sheen { to { background-position: -250% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shard-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 0.9; transform: none; } }
@keyframes hud-in { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes scroll-hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }
@keyframes timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes eq { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes redact { 0%, 92% { opacity: 1; } 94% { opacity: 0.3; } 96% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glitch {
  0%, 100% { clip-path: inset(0 0 0 0); transform: none; }
  20% { clip-path: inset(10% 0 60% 0); transform: translateX(-4px); }
  40% { clip-path: inset(50% 0 20% 0); transform: translateX(4px); }
  60% { clip-path: inset(30% 0 40% 0); transform: translateX(-2px); }
}
.slide:not(.is-active) .art-anim, .slide:not(.is-active) .art-anim * { animation-play-state: paused !important; }
.glitch-once { animation: glitch 0.35s steps(2) 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .aug-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .protocol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .protocol::before { display: none; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .burger { display: grid; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__emblem { width: min(340px, 86%); justify-self: start; margin-top: 16px; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .slide__body { grid-template-columns: minmax(0, 1fr); }
  .slide__link { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .aug-grid, .protocol { grid-template-columns: minmax(0, 1fr); }
  .cform { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: auto; padding-bottom: 120px; }
  .hero__line--outline { -webkit-text-stroke-width: 1.5px; }
  .hud-panel { right: 0; }
  .swiper__viewport { height: 560px; }
  .slide__body { padding: 18px 20px 22px; }
  .submit-btn { width: 100%; min-width: 0; }
  .brand__name { font-size: 1.15rem; }
  .player.is-open .player__info { max-width: 170px; }
  .player__vol { width: 100px; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hero__inner { animation: none !important; }
  .marquee__track { animation: none; }
}

/* ---------- Illustrations des projets ---------- */
.slide__visual .a-grid { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.slide__visual .a-stop-glow { stop-color: var(--gold); stop-opacity: 0.22; }
.slide__visual .a-stop-none { stop-color: var(--gold); stop-opacity: 0; }
.slide__visual .a-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.slide__visual .a-thick { stroke-width: 6; stroke-linecap: square; }
.slide__visual .a-soft { fill: none; stroke: var(--line); stroke-width: 1; }
.slide__visual .a-soft-fill { fill: var(--line-soft); }
.slide__visual .a-fill { fill: var(--gold-hi); }
.slide__visual .a-sweep { fill: var(--glow); }
.slide__visual .a-text { fill: var(--gold); font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 3px; }
.slide__visual .a-dash { stroke-dasharray: 0.02 0.015; animation: dash-move 2.6s linear infinite; }
.slide__visual .a-dash-static { stroke-dasharray: 6 8; }
.a-arm { transform-origin: 190px 252px; animation: arm-swing 2.6s var(--ease-in-out) infinite; }
.a-tower { transform-origin: 620px 330px; animation: tower-hit 2.6s var(--ease-out) infinite; }
.a-pulse { animation: shard-pulse 2.6s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
.a-meter { transform-origin: 40px 92px; animation: meter 2.6s var(--ease-in-out) infinite; }
.a-radar { transform-origin: 380px 205px; animation: spin 5s linear infinite; }
.a-blink { animation: blink 3s steps(1) infinite; }
.a-float { animation: float 4s var(--ease-in-out) infinite; }
.a-scan { animation: scan 3.2s linear infinite; }
@keyframes dash-move { to { stroke-dashoffset: -0.35; } }
@keyframes arm-swing { 0%, 10% { transform: rotate(-38deg); } 25% { transform: rotate(8deg); } 60%, 100% { transform: rotate(-38deg); } }
@keyframes tower-hit { 0%, 84% { transform: none; } 88% { transform: rotate(2deg) translateX(3px); } 94% { transform: rotate(-1deg); } 100% { transform: none; } }
@keyframes shard-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }
@keyframes meter { 0% { transform: scaleX(0.2); } 30% { transform: scaleX(1); } 100% { transform: scaleX(0.2); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(400px); } }
