/* =============================================================================
   SCORY — Mise en page « musee » + composants verre
   Responsive : 1200 / 960 / 768 / 600 / 480 / 360
   ============================================================================= */

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

/* ===== CURSEUR CUSTOM ===== */
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%) translateZ(0);
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  transform: translate(-50%, -50%) translateZ(0);
  transition: width 0.25s var(--ease-spring-soft), height 0.25s var(--ease-spring-soft),
    border-color 0.3s ease, opacity 0.3s ease;
  mix-blend-mode: difference;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--accent-gold);
}
@media (pointer: fine) {
  body, a, button, input, .project-disc { cursor: none !important; }
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Selection texte */
::selection { background: var(--accent-gold); color: var(--surface-void); }

/* Scrollbar page — Webkit + Firefox */
body::-webkit-scrollbar { width: 5px; }
body::-webkit-scrollbar-track { background: var(--surface-void); }
body::-webkit-scrollbar-thumb { background: var(--theme-tint-c); border-radius: 5px; }
body::-webkit-scrollbar-thumb:hover { background: var(--theme-tint-d); }
body { scrollbar-width: thin; scrollbar-color: var(--theme-tint-c) var(--surface-void); }

/* Noise global */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.025; mix-blend-mode: overlay;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  overscroll-behavior: none; /* bloque le pull-to-refresh natif Chrome + Safari */
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-void);
  color: rgba(245, 242, 255, 0.92);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* ===== LOADER ===== */
.loader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-void);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__content {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.loader__word { display: flex; gap: 0.15em; }
.loader__letter {
  font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600; letter-spacing: 0.08em;
  color: var(--accent-gold); opacity: 0;
  animation: loaderIn 0.5s ease forwards;
}
.loader__letter:nth-child(2) { animation-delay: 0.08s; }
.loader__letter:nth-child(3) { animation-delay: 0.16s; }
.loader__letter:nth-child(4) { animation-delay: 0.24s; }
.loader__letter:nth-child(5) { animation-delay: 0.32s; }
@keyframes loaderIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.loader__tagline {
  margin: 0; opacity: 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  color: rgba(245,242,255,0.45); letter-spacing: 0.08em;
  animation: taglineIn 0.8s ease 0.6s forwards;
}
@keyframes taglineIn {
  0% { opacity: 0; transform: translateY(8px); letter-spacing: 0.2em; }
  100% { opacity: 1; transform: translateY(0); letter-spacing: 0.08em; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0.75rem;
  padding: 0.5rem 1rem; background: var(--surface-elevated);
  color: inherit; border-radius: var(--radius-label); z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0.75rem; outline: none; box-shadow: var(--focus-ring); }

/* loader ~ * visibility: geree en CSS inline dans index.html pour FCP */

/* ===== FALLBACK WEBGL ===== */
.no-webgl .neural-host,
.no-webgl .water-host,
.no-webgl .project-bg-host { display: none; }
.no-webgl #museum-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(201,169,98,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(192,132,252,0.08) 0%, transparent 50%),
    var(--surface-void);
  animation: fallbackDrift 12s ease-in-out infinite alternate;
}
@keyframes fallbackDrift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ===== SCENE PRINCIPALE ===== */
#museum-stage {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-columns: 1fr minmax(0, 560px) minmax(260px, 320px);
  grid-template-areas: ". . label" "carousel carousel label";
  gap: 1rem 1.25rem;
  padding: clamp(1rem, 3vw, 2rem); padding-bottom: 0;
}

/* ===== THREE.JS HOSTS ===== */
.neural-host {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 1; transition: filter 1.2s ease;
}
.neural-host .neural-canvas { display: block; width: 100%; height: 100%; }
.neural-host::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, var(--theme-glow-strong) 0%, transparent 65%);
  transition: background 1.2s ease; mix-blend-mode: screen;
}
.water-host {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: none;
}
.water-host .water-canvas { display: block; width: 100%; height: 100%; }
.project-bg-host {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0;
}
.project-bg-host .project-bg-canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.project-bg-host .scory-bg-video {
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.2) brightness(0.9);
}
/* Fallback image CSS quand Canvas/WebGL echoue */
.project-bg-host {
  background-repeat: no-repeat;
  transition: opacity 2s ease, background-image 0.5s ease;
}

.particle-canvas { position: fixed; inset: 0; z-index: 3; pointer-events: none; }

/* Vignette immersive */
.stage-vignette {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(7,6,10,0.55) 100%);
}

/* ===== BRANDING FLOTTANT ===== */
.floating-brand {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem); left: clamp(1rem, 3vw, 2rem);
  z-index: 2; pointer-events: none;
}
.floating-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem); letter-spacing: 0.1em;
  color: rgba(245,242,255,0.45);
  transition: color 0.8s ease;
}
.floating-sub {
  margin: 0.15rem 0 0;
  font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,242,255,0.45);
  max-width: 320px;
}

/* ===== GLITCH TEXT — burst declenche au swipe, suit les couleurs du theme ===== */
.glitch-text { position: relative; display: inline-block; }
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  white-space: pre-wrap;
  opacity: 0;
}
/* Etat normal : pas d'animation. L'effet est declenche par .is-glitching ajoute en JS au swipe */
.glitch-text.is-glitching {
  animation: glitch-base-shake 2500ms steps(1) 1;
}
.glitch-text.is-glitching::before {
  color: var(--accent-magenta, #c084fc);
  mix-blend-mode: screen;
  animation: glitch-sweep-magenta 2500ms steps(1) 1;
}
.glitch-text.is-glitching::after {
  color: var(--accent-ice, #9ec8ff);
  mix-blend-mode: screen;
  animation: glitch-sweep-ice 2500ms steps(1) 1;
}
@keyframes glitch-base-shake {
  0%, 100% { transform: translate(0, 0) skewX(0); }
  4%  { transform: translate(-5px, 2px) skewX(-3deg); }
  8%  { transform: translate(6px, -1px) skewX(2deg); }
  14% { transform: translate(-4px, 1px) skewX(-1deg); }
  20% { transform: translate(3px, -2px) skewX(2deg); }
  28% { transform: translate(-6px, 1px) skewX(-2deg); }
  35% { transform: translate(4px, 2px) skewX(1deg); }
  44% { transform: translate(-3px, -1px) skewX(-2deg); }
  52% { transform: translate(5px, 1px) skewX(1deg); }
  60% { transform: translate(-2px, -2px) skewX(0); }
  68% { transform: translate(3px, 1px) skewX(-1deg); }
  76% { transform: translate(-2px, 0) skewX(0); }
  85% { transform: translate(1px, 0) skewX(0); }
  93% { transform: translate(-1px, 0) skewX(0); }
}
@keyframes glitch-sweep-magenta {
  0%   { transform: translate(0,  0);   opacity: 0;    clip-path: inset(0 0 0 0); }
  3%   { transform: translate(-28px, 0);   opacity: 1;   clip-path: inset(0 0 70% 0); }
  9%   { transform: translate(22px, 2px);  opacity: 0.85; clip-path: inset(45% 0 0 0); }
  16%  { transform: translate(-18px,-2px); opacity: 0.95; clip-path: inset(10% 0 60% 0); }
  24%  { transform: translate(26px, 1px);  opacity: 0.8;  clip-path: inset(65% 0 5% 0); }
  32%  { transform: translate(-15px, 2px); opacity: 0.9;  clip-path: inset(0 0 80% 0); }
  40%  { transform: translate(20px,-1px);  opacity: 0.75; clip-path: inset(35% 0 30% 0); }
  48%  { transform: translate(-22px, 1px); opacity: 0.85; clip-path: inset(55% 0 15% 0); }
  56%  { transform: translate(14px, 0);    opacity: 0.7;  clip-path: inset(20% 0 50% 0); }
  64%  { transform: translate(-10px,-2px); opacity: 0.65; clip-path: inset(0 0 65% 0); }
  72%  { transform: translate(12px, 1px);  opacity: 0.55; clip-path: inset(40% 0 25% 0); }
  80%  { transform: translate(-7px, 0);    opacity: 0.4;  clip-path: inset(0 0 50% 0); }
  88%  { transform: translate(4px, 0);     opacity: 0.25; clip-path: inset(20% 0 30% 0); }
  95%  { transform: translate(-1px, 0);    opacity: 0.1;  clip-path: inset(0 0 0 0); }
  100% { transform: translate(0, 0);    opacity: 0;    clip-path: inset(0 0 0 0); }
}
@keyframes glitch-sweep-ice {
  0%   { transform: translate(0, 0);   opacity: 0;    clip-path: inset(0 0 0 0); }
  3%   { transform: translate(28px, 0);    opacity: 1;    clip-path: inset(60% 0 5% 0); }
  9%   { transform: translate(-22px,-2px); opacity: 0.85; clip-path: inset(0 0 75% 0); }
  16%  { transform: translate(18px, 2px);  opacity: 0.95; clip-path: inset(40% 0 20% 0); }
  24%  { transform: translate(-26px, 1px); opacity: 0.8;  clip-path: inset(0 0 60% 0); }
  32%  { transform: translate(15px,-1px);  opacity: 0.9;  clip-path: inset(70% 0 0 0); }
  40%  { transform: translate(-20px, 1px); opacity: 0.75; clip-path: inset(25% 0 45% 0); }
  48%  { transform: translate(22px, 0);    opacity: 0.85; clip-path: inset(15% 0 60% 0); }
  56%  { transform: translate(-14px, 2px); opacity: 0.7;  clip-path: inset(50% 0 15% 0); }
  64%  { transform: translate(10px, 1px);  opacity: 0.65; clip-path: inset(0 0 55% 0); }
  72%  { transform: translate(-12px,-1px); opacity: 0.55; clip-path: inset(30% 0 30% 0); }
  80%  { transform: translate(7px, 0);     opacity: 0.4;  clip-path: inset(45% 0 5% 0); }
  88%  { transform: translate(-4px, 0);    opacity: 0.25; clip-path: inset(0 0 25% 0); }
  95%  { transform: translate(1px, 0);     opacity: 0.1;  clip-path: inset(0 0 0 0); }
  100% { transform: translate(0, 0);    opacity: 0;    clip-path: inset(0 0 0 0); }
}
/* p.floating-sub : multi-lignes possible */
p.glitch-text { display: block; }
p.glitch-text::before, p.glitch-text::after { white-space: inherit; max-width: 100%; }

/* ===== GLASS PANEL ===== */
.glass-panel {
  position: relative; z-index: 1;
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)), var(--surface-mist);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-panel);
}
.glass-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--glass-highlight); pointer-events: none; opacity: 0.9;
}
.glass-panel > * { position: relative; z-index: 1; }

/* ===== CARROUSEL ===== */
.project-carousel {
  grid-area: carousel; position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: center;
  perspective: 1200px; perspective-origin: 50% 75%;
  min-height: min(38vh, 350px); outline: none; touch-action: pan-x;
  padding-bottom: 2.8rem;
}
.project-carousel:focus-visible { box-shadow: var(--focus-ring); border-radius: var(--radius-panel); }

.project-track {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

/* Card glass disque */
.card-glass {
  position: relative;
  backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur-strong)) saturate(var(--glass-saturation));
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 52%),
    linear-gradient(160deg, rgba(30,24,40,0.75), rgba(12,10,18,0.55));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 60px rgba(158,200,255,0.08);
  transform-style: preserve-3d;
}
.card-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: var(--glass-noise-opacity); mix-blend-mode: overlay; pointer-events: none; border-radius: var(--radius-disc);
}

/* Disque */
.project-disc {
  flex: 0 0 auto; width: clamp(200px, 32vmin, 280px); aspect-ratio: 1;
  border-radius: var(--radius-disc); display: grid; place-items: center;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: box-shadow 0.35s var(--ease-spring-soft), opacity 0.3s ease;
  cursor: pointer;
}

/* Seul le disque actif est visible — display:none = zero ghost text */
.project-disc { display: none; }
.project-disc.is-active { display: grid; place-items: center; opacity: 1; pointer-events: auto; position: relative; }

.project-disc.is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255,255,255,0.12) inset, 0 0 60px var(--theme-glow-disc);
}

/* ===== DISQUES STYLISES PAR PROJET ===== */

/* Portfolio Scory — Or / Glace / Mauve (premier disque) */
.project-disc[data-index="0"] .disc-title { font-family: 'Cormorant Garamond', 'Times New Roman', serif; }
.project-disc[data-index="0"] .disc-meta { color: rgba(192,132,252,0.6); }
.project-disc[data-index="0"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(192,132,252,0.22) inset, 0 0 80px rgba(192,132,252,0.12);
}
.project-disc[data-index="0"] .disc-groove { animation-direction: reverse; }

/* 4dayvelopment — Orange / Ambre */
.project-disc[data-index="1"] {
  background: radial-gradient(circle at 30% 25%, rgba(218,84,38,0.32), rgba(218,84,38,0.02) 55%),
    linear-gradient(160deg, rgba(50,20,10,0.82), rgba(20,10,6,0.6));
  border-color: rgba(218,84,38,0.22);
}
.project-disc[data-index="1"] .disc-title { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; }
.project-disc[data-index="1"] .disc-meta { color: rgba(242,177,59,0.65); }
.project-disc[data-index="1"] .disc-groove {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(218,84,38,0.07) 5px, rgba(218,84,38,0.07) 6px);
}
.project-disc[data-index="1"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(218,84,38,0.28) inset, 0 0 80px rgba(218,84,38,0.18);
}

/* Clara Martinez — Or / Dore */
.project-disc[data-index="2"] {
  background: radial-gradient(circle at 30% 25%, rgba(201,168,76,0.34), rgba(201,168,76,0.02) 55%),
    linear-gradient(160deg, rgba(42,34,14,0.82), rgba(20,16,8,0.6));
  border-color: rgba(201,168,76,0.22);
}
.project-disc[data-index="2"] .disc-title { font-family: 'Playfair Display', 'Times New Roman', serif; font-weight: 700; }
.project-disc[data-index="2"] .disc-meta { color: rgba(232,212,154,0.65); }
.project-disc[data-index="2"] .disc-groove {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(201,168,76,0.07) 5px, rgba(201,168,76,0.07) 6px);
}
.project-disc[data-index="2"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(201,168,76,0.28) inset, 0 0 80px rgba(201,168,76,0.2);
}

/* JIMMY — Rouge sang / Noir */
.project-disc[data-index="3"] {
  background: radial-gradient(circle at 30% 25%, rgba(196,30,58,0.34), rgba(196,30,58,0.02) 55%),
    linear-gradient(160deg, rgba(30,6,10,0.82), rgba(10,4,6,0.6));
  border-color: rgba(196,30,58,0.24);
}
.project-disc[data-index="3"] .disc-title { font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 700; }
.project-disc[data-index="3"] .disc-meta { color: rgba(139,26,26,0.75); }
.project-disc[data-index="3"] .disc-groove {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(196,30,58,0.08) 5px, rgba(196,30,58,0.08) 6px);
}
.project-disc[data-index="3"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(196,30,58,0.3) inset, 0 0 80px rgba(196,30,58,0.22);
}

/* DYG — Bleu archetype */
.project-disc[data-index="4"] {
  background: radial-gradient(circle at 30% 25%, rgba(59,130,246,0.32), rgba(59,130,246,0.02) 55%),
    linear-gradient(160deg, rgba(10,20,40,0.82), rgba(6,10,22,0.6));
  border-color: rgba(59,130,246,0.24);
}
.project-disc[data-index="4"] .disc-title { font-family: 'Bebas Neue', 'Cinzel', sans-serif; font-weight: 700; letter-spacing: 0.12em; }
.project-disc[data-index="4"] .disc-meta { color: rgba(168,85,247,0.7); }
.project-disc[data-index="4"] .disc-groove {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(59,130,246,0.08) 5px, rgba(59,130,246,0.08) 6px);
}
.project-disc[data-index="4"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(59,130,246,0.3) inset, 0 0 80px rgba(59,130,246,0.22);
}

/* SecurEats — Jaune fast-food */
.project-disc[data-index="5"] {
  background: radial-gradient(circle at 30% 25%, rgba(242,177,59,0.32), rgba(242,177,59,0.02) 55%),
    linear-gradient(160deg, rgba(40,24,10,0.82), rgba(16,10,6,0.6));
  border-color: rgba(242,177,59,0.24);
}
.project-disc[data-index="5"] .disc-title { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; }
.project-disc[data-index="5"] .disc-meta { color: rgba(218,84,38,0.7); }
.project-disc[data-index="5"] .disc-groove {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(242,177,59,0.08) 5px, rgba(242,177,59,0.08) 6px);
}
.project-disc[data-index="5"].is-active {
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(242,177,59,0.3) inset, 0 0 80px rgba(242,177,59,0.22);
}

/* Disque actif — glow statique (pas d'animation box-shadow continue = meilleur FPS) */
.project-disc.is-active {
  transition: opacity 0.3s ease;
  box-shadow: var(--glass-shadow), 0 0 0 1px rgba(255,255,255,0.15) inset, 0 0 70px var(--theme-glow-disc);
}

/* Rotation lente vinyle */
@keyframes vinylSpin { to { transform: rotate(360deg); } }

.disc-groove {
  position: absolute; inset: 8%; border-radius: inherit;
  border: 1px solid var(--glass-border-inner);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(255,255,255,0.04) 5px, rgba(255,255,255,0.04) 6px);
  opacity: 0.85; pointer-events: none;
  animation: vinylSpin 40s linear infinite;
  will-change: transform;
  contain: strict;
}
/* Trou central vinyle */
.disc-groove::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface-void);
  border: 1px solid var(--glass-border-inner);
  box-shadow: 0 0 10px rgba(0,0,0,0.6), inset 0 0 3px rgba(255,255,255,0.06);
}

/* Reflet lumineux subtil sur le disque */
.project-disc::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.04) 100%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.7;
}
.project-disc:hover::before { opacity: 1; }

.disc-label {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  text-align: center; padding: 0.3rem; position: relative; z-index: 2;
  overflow: hidden;
  max-width: 90%;
}
.disc-title {
  font-family: var(--font-display); font-size: clamp(0.75rem, 3.5vmin, 1.35rem);
  font-weight: 600; letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.disc-meta {
  font-size: clamp(0.55rem, 1.8vmin, 0.72rem);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(245,242,255,0.5);
  white-space: nowrap;
}

/* Hint "cliquez pour decouvrir" anime */
.project-disc.is-active .disc-label::after {
  content: "cliquez pour decouvrir";
  display: block; margin-top: 0.4rem;
  font-size: clamp(0.48rem, 1.5vmin, 0.58rem); letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--accent-gold);
  white-space: nowrap;
  animation: hintPulse 3s ease-in-out infinite;
}
html[lang="en"] .project-disc.is-active .disc-label::after {
  content: "click to discover";
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.12; transform: translateY(0); }
  25% { opacity: 0.6; transform: translateY(-2px); }
  50% { opacity: 0.35; transform: translateY(0); }
  75% { opacity: 0.55; transform: translateY(-1px); }
}

/* ===== FLECHES DE NAVIGATION ===== */
.nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 60px; height: 60px;
  border-radius: 50%; display: grid; place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.6),
    0 0 20px var(--theme-glow);
  color: #fff;
  transition: transform 0.25s var(--ease-spring-heavy), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.nav-arrow__glow {
  position: absolute; inset: -50%; border-radius: 50%;
  background: radial-gradient(circle, var(--theme-glow-strong) 0%, transparent 70%);
  opacity: 0.5; transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav-arrow:hover .nav-arrow__glow { opacity: 1; }
.nav-arrow:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--accent-gold);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.5),
    0 0 30px var(--theme-glow-strong);
  transform: translateY(-50%) scale(1.1);
}
.nav-arrow:active { transform: translateY(-50%) scale(0.92); }
.nav-arrow svg {
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.5));
}
.nav-arrow--left { left: clamp(0.75rem, 4vw, 2.5rem); }
.nav-arrow--right { right: clamp(0.75rem, 4vw, 2.5rem); }

/* ===== DISC HINT MOBILE (au-dessus du disque) ===== */
.disc-hint {
  display: none;
  position: absolute;
  bottom: calc(50% + clamp(90px, 22vw, 150px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.disc-hint.is-visible {
  opacity: 1;
  animation: hintFlash 1.2s ease forwards;
}
@keyframes hintFlash {
  0% { opacity: 0; transform: translateX(-50%) translateY(6px); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-4px); }
}
.disc-hint__row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.disc-hint__label {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,242,255,0.5);
}
.disc-hint__chevron {
  font-size: 0.9rem;
  color: var(--accent-gold);
  opacity: 0.6;
}
.disc-hint__chevron--l { animation: chevL 1.2s ease infinite; }
.disc-hint__chevron--r { animation: chevR 1.2s ease infinite; }
@keyframes chevL {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(-3px); opacity: 0.7; }
}
@keyframes chevR {
  0%, 100% { transform: translateX(0); opacity: 0.3; }
  50% { transform: translateX(3px); opacity: 0.7; }
}
.disc-hint__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--theme-glow);
  animation: dotPulse 1.2s ease infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 0.8; }
}

/* Mobile: afficher hint, cacher fleches */
@media (max-width: 600px) {
  .nav-arrow { display: none !important; }
  .disc-hint { display: flex; }
  .disc-hint__tap { display: none; } /* 1 seule ligne sur mobile */
}
/* Glow statique (pas d'animation continue = meilleur FPS) */

/* Dots indicateurs */
.nav-dots {
  position: absolute; bottom: 0.4rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 5;
}
.nav-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.2); cursor: pointer;
  transition: background 0.3s ease, transform 0.3s var(--ease-spring-soft), width 0.3s var(--ease-spring-soft);
  padding: 0;
}
.nav-dot:hover { background: rgba(255,255,255,0.4); transform: scale(1.15); }
.nav-dot.is-active {
  background: var(--accent-gold); transform: scale(1.3);
  width: 24px; border-radius: 5px;
  transition: background 0.6s ease, transform 0.3s var(--ease-spring-soft), width 0.3s var(--ease-spring-soft);
}
.nav-dot.is-active:hover { background: var(--accent-amber); }

/* ===== PANNEAU DETAILS (LONG PRESS) ===== */
/* ===== TV STATIC OVERLAY (changement de chaine) ===== */
.tv-static {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.03) 2px,
      rgba(255,255,255,0.03) 4px
    );
  background-size: 100% 4px;
  animation: tvFlicker 0.1s steps(3) infinite;
  mix-blend-mode: overlay;
}
@keyframes tvFlicker {
  0% { background-position: 0 0; }
  33% { background-position: 0 -2px; }
  66% { background-position: 0 -1px; }
  100% { background-position: 0 -3px; }
}
body.eco-mode .tv-static { display: none; }

/* Lenis smooth scroll body */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

.detail-panel {
  position: fixed; z-index: 100;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 500px); max-height: 85vh; overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
  text-align: center;
  opacity: 0; pointer-events: none;
  box-shadow: var(--glass-shadow), 0 0 50px var(--theme-glow-strong);
  border-color: var(--theme-tint-c);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.detail-panel.is-visible {
  pointer-events: auto;
}
.detail-panel__close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 32px; height: 32px; border: none; background: none;
  color: rgba(245,242,255,0.4); font-size: 1.3rem; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  transition: color 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.detail-panel__close:hover { color: var(--accent-gold); background: rgba(255,255,255,0.06); }
.detail-panel__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.detail-panel__title {
  margin: 0 0 0.75rem; font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600; color: var(--accent-gold);
  transition: color 0.6s ease;
}
.detail-panel__text { margin: 0 0 0.75rem; line-height: 1.6; color: rgba(245,242,255,0.75); font-size: 0.92rem; }

/* Glitch typewriter */
.glitch-char {
  display: inline;
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  animation: glitch-flicker 60ms steps(1) infinite;
}
@keyframes glitch-flicker {
  0%   { opacity: 1; transform: none; }
  25%  { opacity: 0.85; transform: translateX(1px); }
  50%  { opacity: 1; transform: translateX(-1px); }
  75%  { opacity: 0.9; transform: translateY(1px); }
  100% { opacity: 1; transform: none; }
}

.detail-panel__stack { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-bottom: 1rem; }
.detail-panel__stack .label-chip { border-color: var(--theme-tint-c); }
.detail-panel__hint { margin: 0; font-size: 0.72rem; color: rgba(245,242,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; }

/* Bouton CTA — Visiter le site */
.detail-panel__cta-wrap { margin: 1rem 0; display: flex; justify-content: center; }
.detail-panel__cta {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.8rem; border: none; border-radius: 999px;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--surface-void); text-decoration: none;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  box-shadow:
    0 4px 20px rgba(201,169,98,0.35),
    0 0 40px rgba(201,169,98,0.15),
    0 0 0 1px rgba(255,255,255,0.1) inset;
  cursor: pointer; overflow: hidden;
  transition: all 0.3s var(--ease-spring-heavy);
  z-index: 1;
}
/* Shine sweep */
.detail-panel__cta::before {
  content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.detail-panel__cta:hover::before { left: 130%; }
.detail-panel__cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 8px 30px rgba(201,169,98,0.45),
    0 0 60px rgba(201,169,98,0.2),
    0 0 0 1px rgba(255,255,255,0.15) inset;
}
.detail-panel__cta:active {
  transform: scale(0.97);
}
.detail-panel__cta-arrow {
  display: inline-flex; transition: transform 0.3s var(--ease-spring-bounce);
}
.detail-panel__cta:hover .detail-panel__cta-arrow {
  transform: translateX(4px);
}

/* ===== CARTEL ===== */
.museum-label {
  grid-area: label; align-self: end; padding: 1.25rem 1.35rem; height: fit-content;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  box-shadow: var(--glass-shadow), 0 0 25px var(--theme-glow);
  transition: box-shadow 0.8s ease;
}
.label-kicker {
  margin: 0 0 0.35rem; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(245,242,255,0.45);
}
.label-title {
  margin: 0 0 0.75rem; font-family: var(--font-display);
  font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.65rem);
  transition: color 0.6s ease;
}
.label-num {
  margin: 0 0 0.35rem; font-family: var(--font-mono); font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700; color: var(--accent-gold); opacity: 0.25;
  letter-spacing: -0.02em; line-height: 1;
  transition: color 0.6s ease;
}
.label-desc {
  margin: 0; line-height: 1.55; color: rgba(245,242,255,0.72);
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}
.label-stack { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.85rem; }
.label-chip {
  padding: 0.2rem 0.55rem; border-radius: var(--radius-label);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(245,242,255,0.55);
  font-family: var(--font-mono); text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.label-chip:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
}

/* ===== SCROLL HINT — Bounce type Dock macOS ===== */
.scroll-hint {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.5rem 0 0; text-align: center;
  cursor: pointer;
  animation: dockBounce 4s ease-in-out infinite;
}
/* Rebond dock : 2 sauts secs puis pause longue */
@keyframes dockBounce {
  0%   { transform: translateY(0); }
  5%   { transform: translateY(-18px); }
  10%  { transform: translateY(0); }
  14%  { transform: translateY(-10px); }
  18%  { transform: translateY(0); }
  21%  { transform: translateY(-4px); }
  24%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}
.scroll-hint__text {
  margin: 0; font-family: var(--font-display); font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-style: italic; letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--accent-gold), var(--accent-amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scroll-hint__arrow {
  color: var(--accent-gold); opacity: 0.7;
  animation: scrollBounce 1.5s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease-spring-soft), transform 0.8s var(--ease-spring-soft);
}
.reveal.is-revealed {
  opacity: 1; transform: translateY(0);
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center; margin: 0 0 2.5rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

/* ===== STATS — inline, no cards ===== */
.stats-section {
  position: relative; z-index: 2;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1000px; margin: 0 auto;
}
.stats-inline {
  display: flex; justify-content: center; align-items: baseline;
  gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-separator {
  font-family: var(--font-display); font-size: 1.5rem;
  color: rgba(245,242,255,0.1); font-weight: 300;
}
.stat-number {
  display: block; font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700;
  color: var(--accent-gold); line-height: 1;
  transition: color 0.6s ease;
}
.stat-label {
  display: block; margin-top: 0.35rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,242,255,0.35);
}

/* ===== PROCESSUS — timeline ===== */
.process-section {
  position: relative; z-index: 2;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  max-width: 1000px; margin: 0 auto;
}
.process-timeline { position: relative; }
.process-line {
  position: absolute; top: 0; left: 5%; width: 90%; height: 100%;
  pointer-events: none; z-index: 0;
}
.process-line__track {
  stroke: rgba(245,242,255,0.06); stroke-width: 2;
}
.process-line__fill {
  stroke: var(--accent-gold); stroke-width: 2;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke 0.6s ease;
  filter: drop-shadow(0 0 4px var(--accent-gold));
}
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  position: relative; z-index: 1;
}
.process-card {
  text-align: center; padding: 1.75rem 1.25rem;
  transition: transform 0.3s var(--ease-spring-soft), box-shadow 0.3s ease;
  position: relative;
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), 0 0 30px var(--theme-glow);
}
.process-dot {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-gold); margin: 0 auto 1rem;
  box-shadow: 0 0 8px var(--accent-gold), 0 0 16px var(--theme-glow);
  opacity: 0; transition: opacity 0.4s ease;
}
.process-card.is-dot-visible .process-dot { opacity: 1; }
.process-step {
  font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700;
  color: var(--accent-gold); opacity: 0.12; line-height: 1;
  position: absolute; top: 0.75rem; right: 1rem;
}
.process-icon { font-size: 1.8rem; margin-bottom: 0.75rem; display: block; }
.process-name {
  margin: 0 0 0.5rem; font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; color: var(--accent-gold);
  transition: color 0.6s ease;
}
.process-desc {
  margin: 0; font-size: 0.82rem; line-height: 1.55;
  color: rgba(245,242,255,0.6);
}

/* ===== SERVICES — horizontal rows ===== */
.services-section {
  position: relative; z-index: 2;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem);
  max-width: 700px; margin: 0 auto;
}
.service-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; padding: clamp(1rem, 2.5vw, 1.5rem) 0;
  transition: opacity 0.3s ease;
}
.service-row:hover { opacity: 0.85; }
.service-left { flex: 1; min-width: 0; }
.service-name {
  margin: 0 0 0.3rem; font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 600; color: var(--accent-gold);
  transition: color 0.6s ease;
}
.service-price {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 700;
  color: rgba(245,242,255,0.85); white-space: nowrap;
  flex-shrink: 0;
}
.service-desc {
  margin: 0; font-size: 0.78rem; line-height: 1.5;
  color: rgba(245,242,255,0.45);
}
.service-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--theme-tint-c), transparent);
}

/* ===== SECTION DIVIDERS ===== */
.stats-section::after,
.services-section::after,
.process-section::after,
.about-section::after {
  content: ""; display: block;
  width: min(120px, 25%); height: 1px; margin: clamp(2rem, 4vw, 3.5rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--theme-tint-c), transparent);
  opacity: 0.6;
}

/* ===== CHATBOT — bot prospect, avatar disque, titre glitch ===== */
.chatbot-section {
  position: relative; z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  max-width: 720px; margin: 0 auto;
}
.chatbot-container {
  position: relative;
  background: linear-gradient(160deg, rgba(22,19,28,0.85), rgba(14,12,18,0.92));
  border: 1px solid var(--theme-tint-b);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 0 60px var(--theme-tint-a);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.chatbot-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--theme-tint-a);
}
.chatbot-progress::after {
  content: ""; display: block; height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--accent-gold), var(--theme-tint-d));
  box-shadow: 0 0 12px var(--theme-glow-strong);
  transition: width 0.5s ease;
}
.chatbot-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
}

/* Avatar disque vinyle rotatif */
.chatbot-disc {
  position: relative;
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    var(--theme-tint-d) 0%,
    rgba(0,0,0,0.95) 40%,
    rgba(0,0,0,1) 100%);
  box-shadow:
    0 0 24px var(--theme-glow-strong),
    inset 0 0 12px rgba(0,0,0,0.8),
    inset 0 2px 4px rgba(255,255,255,0.05);
  animation: chat-disc-spin 4s linear infinite;
}
.chatbot-disc__groove {
  position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow:
    inset 0 0 0 3px rgba(0,0,0,0.4),
    inset 0 0 0 8px rgba(255,255,255,0.02),
    inset 0 0 0 11px rgba(0,0,0,0.4);
}
.chatbot-disc__center {
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--theme-glow-strong);
}
@keyframes chat-disc-spin { to { transform: rotate(360deg); } }

.chatbot-header__text { display: flex; flex-direction: column; gap: 0.15rem; }

/* Nom avec effet glitch via pseudo-elements RGB shift */
.chatbot-name {
  position: relative;
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 1.05rem; font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
  display: inline-block;
}
.chatbot-name::before,
.chatbot-name::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.chatbot-name::before {
  color: var(--theme-magenta, var(--accent-magenta));
  animation: chat-glitch-1 3s infinite steps(1);
  mix-blend-mode: screen;
}
.chatbot-name::after {
  color: var(--accent-ice, #9ec8ff);
  animation: chat-glitch-2 3s infinite steps(1);
  mix-blend-mode: screen;
}
@keyframes chat-glitch-1 {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  93% { transform: translate(-1.5px, 0); opacity: 0.7; }
  95% { transform: translate(2px, -1px); opacity: 0.6; }
  97% { transform: translate(-1px, 1px); opacity: 0.7; }
}
@keyframes chat-glitch-2 {
  0%, 92%, 100% { transform: translate(0,0); opacity: 0; }
  94% { transform: translate(1.5px, 1px); opacity: 0.6; }
  96% { transform: translate(-2px, 0); opacity: 0.7; }
  98% { transform: translate(1px, -1px); opacity: 0.5; }
}

.chatbot-status {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; color: rgba(245,242,255,0.55);
  letter-spacing: 0.06em;
}
.chatbot-status__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.6);
  animation: chat-pulse 1.6s ease-in-out infinite;
}
@keyframes chat-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.chatbot-messages {
  display: flex; flex-direction: column; gap: 0.6rem;
  max-height: 320px; overflow-y: auto;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-tint-c) transparent;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--theme-tint-c); border-radius: 4px; }

.chat-msg {
  font-size: 0.88rem; line-height: 1.55;
  padding: 0.7rem 1rem; border-radius: 14px;
  max-width: 85%;
  animation: chat-msg-in 0.35s ease-out;
}
@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg--bot {
  align-self: flex-start;
  background: var(--theme-tint-a);
  border: 1px solid var(--theme-tint-b);
  color: rgba(245,242,255,0.92);
}
.chat-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--theme-tint-c), var(--theme-tint-b));
  color: #fff;
  border: 1px solid var(--theme-tint-c);
}

.chatbot-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1rem;
}
.chat-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--theme-tint-c);
  background: var(--theme-tint-a);
  color: rgba(245,242,255,0.9);
  font-size: 0.82rem; font-family: var(--font-sans, 'Inter', sans-serif);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.chat-pill:hover {
  background: var(--theme-tint-b);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--theme-glow);
}
.chat-pill:active { transform: translateY(0); }
.chat-pill--restart {
  margin-top: 0.5rem;
  border-color: var(--theme-tint-d);
  color: var(--accent-gold);
}

/* Formulaire contact final */
.chat-form {
  display: flex; flex-direction: column; gap: 0.6rem;
  width: 100%; margin-top: 0.5rem;
}
.chat-form input,
.chat-form textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--theme-tint-b);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  font-family: var(--font-sans, 'Inter', sans-serif);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.chat-form input:focus,
.chat-form textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--theme-tint-b), 0 0 12px var(--theme-glow);
}
.chat-form__submit {
  margin-top: 0.4rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-gold), var(--theme-tint-d));
  color: #0a0814;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.chat-form__submit:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--theme-glow-strong); }
.chat-form__submit:disabled { opacity: 0.6; cursor: progress; }
.chat-form__error {
  font-size: 0.75rem; color: #ef4444; min-height: 1em;
}

.chatbot-footer {
  margin-top: 1rem; text-align: center;
  font-size: 0.72rem; color: rgba(245,242,255,0.4);
  letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 768px) {
  .chatbot-section { padding: 1rem 0.75rem; }
  .chatbot-container { padding: 1rem; border-radius: 16px; }
  .chatbot-disc { width: 48px; height: 48px; }
  .chatbot-name { font-size: 0.95rem; }
  .chat-msg { font-size: 0.82rem; padding: 0.6rem 0.85rem; }
  .chat-pill { font-size: 0.78rem; padding: 0.5rem 0.85rem; }
  .chatbot-messages { max-height: 280px; }
}

/* ===== CTA FLOTTANT ===== */
.floating-cta {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.5rem; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
  color: #07060a; font-family: var(--font-sans); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(201,169,98,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}
.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,169,98,0.5);
}
.floating-cta:active { transform: translateY(0); }
.floating-cta.is-hidden {
  opacity: 0; pointer-events: none; transform: translateY(10px);
}

/* ===== AMBIENT BG ===== */
.ambient-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, var(--theme-glow) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 30%, var(--theme-glow) 0%, transparent 70%);
  opacity: 0; transition: opacity 1.5s ease;
  will-change: opacity; contain: paint;
}
.ambient-bg.is-visible { opacity: 1; }

/* ===== STAT GLOW ===== */
.stat-number.is-glowing {
  animation: statGlow 1.2s ease-out forwards;
}
@keyframes statGlow {
  0%   { text-shadow: 0 0 0 transparent; }
  30%  { text-shadow: 0 0 20px var(--accent-gold), 0 0 40px var(--theme-glow); }
  100% { text-shadow: 0 0 0 transparent; }
}

/* ===== ABOUT ===== */
.about-section {
  position: relative; z-index: 2;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  max-width: 700px; margin: 0 auto;
}
.about-visual {
  display: flex; justify-content: center; margin-bottom: 1.5rem;
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  border: 2px solid var(--theme-tint-c);
  box-shadow: 0 0 20px var(--theme-glow), 0 0 40px var(--theme-glow);
}
.about-container {
  padding: 2.5rem clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--glass-shadow), 0 0 30px var(--theme-glow);
}
.about-mission {
  margin: 0 0 1rem;
  font-family: var(--font-display); font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-style: italic; color: var(--accent-gold);
  line-height: 1.5; transition: color 0.6s ease;
}
.about-philosophy {
  margin: 0 0 1.5rem;
  font-size: 0.92rem; line-height: 1.65; color: rgba(245,242,255,0.7);
}
.about-values {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
}
.about-value {
  font-size: 0.78rem; color: rgba(245,242,255,0.55);
  letter-spacing: 0.06em; display: flex; align-items: center; gap: 0.4rem;
}
.about-value-icon { color: var(--accent-gold); font-size: 0.6rem; }

/* ===== CONTACT ===== */
.contact-section {
  position: relative; z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  max-width: 700px; margin: 0 auto; text-align: center;
}
.contact-grid {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.5rem 2rem; text-decoration: none; color: inherit;
  min-width: 140px;
  transition: transform 0.3s var(--ease-spring-soft), box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow), 0 0 25px var(--theme-glow);
}
.contact-icon { color: var(--accent-gold); transition: color 0.6s ease; }
.contact-label {
  font-size: 0.78rem; letter-spacing: 0.08em; color: rgba(245,242,255,0.65);
}
.cta-rdv { margin-top: 0; }

/* ===== SCREENSHOTS DETAIL PANEL ===== */
.detail-panel__screenshots {
  display: flex; gap: 0.5rem; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0.75rem 0;
  padding-bottom: 0.5rem;
  scrollbar-width: thin; scrollbar-color: var(--theme-tint-c) transparent;
}
.detail-panel__screenshots:empty { display: none; }
.detail-panel__screenshots::-webkit-scrollbar { height: 3px; }
.detail-panel__screenshots::-webkit-scrollbar-thumb { background: var(--theme-tint-c); border-radius: 3px; }
.detail-panel__screenshot {
  width: 240px; height: 140px; flex-shrink: 0;
  border-radius: var(--radius-label);
  object-fit: cover; scroll-snap-align: start;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}
.detail-panel__screenshot:hover { transform: scale(1.03); }

/* ===== BOUTONS FLOTTANTS — Style unifie glassmorphism ===== */
.lang-toggle,
.sound-toggle {
  position: fixed;
  z-index: 50;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(7,6,10,0.4);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: rgba(245,242,255,0.5);
  cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  width: 40px; height: 40px;
}
.lang-toggle:hover,
.sound-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent-gold);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--theme-glow), 0 4px 20px rgba(0,0,0,0.3);
}

/* Positions — groupe aligne en haut a droite */
.lang-toggle {
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: clamp(0.75rem, 2.5vw, 1.5rem);
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0; width: 40px; height: 40px;
}


/* ===== INTERRUPTEUR OVAL ON/OFF — couleurs du site ===== */
.eco-switch {
  position: fixed;
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: calc(clamp(0.75rem, 2.5vw, 1.5rem) + 48px);
  z-index: 100;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 600px) {
  .eco-switch {
    top: auto;
    right: auto;
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    left: 0.6rem;
  }
}
.eco-switch__track {
  width: 52px; height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--surface-deep), var(--surface-void));
  border: 1px solid var(--accent-gold);
  position: relative;
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.7),
    0 0 15px var(--theme-glow),
    0 2px 10px rgba(0,0,0,0.4);
  transition: border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
}
.eco-switch__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-gold), var(--accent-amber));
  box-shadow:
    0 2px 10px rgba(0,0,0,0.5),
    0 0 12px var(--theme-glow);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease, box-shadow 0.5s ease;
  display: grid; place-items: center;
}
.eco-switch__symbol {
  font-family: var(--font-mono);
  font-size: 0.45rem;
  font-weight: 900;
  color: var(--surface-void);
  line-height: 1;
  transition: color 0.3s ease;
}

/* Glow pulse quand ON */
.eco-switch__track::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  box-shadow: 0 0 18px var(--theme-glow), 0 0 30px var(--theme-glow);
  opacity: 0.6;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: switchPulse 3s ease-in-out infinite;
}
@keyframes switchPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

/* ── ECO MODE (OFF) — variante sombre eteinte ── */
body.eco-mode .eco-switch__track {
  background: linear-gradient(135deg, #08070c, #050408);
  border-color: rgba(255,255,255,0.06);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,0.9),
    0 1px 4px rgba(0,0,0,0.3);
}
body.eco-mode .eco-switch__knob {
  left: calc(100% - 23px);
  background: linear-gradient(145deg, #2a2830, #18161e);
  box-shadow: 0 2px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}
body.eco-mode .eco-switch__symbol {
  color: rgba(255,255,255,0.15);
}
body.eco-mode .eco-switch__track::after {
  opacity: 0;
  animation: none;
}

/* Enfoncement au tap */
.eco-switch:active .eco-switch__knob {
  width: 26px;
  transition: width 0.12s ease, left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
body.eco-mode .eco-switch:active .eco-switch__knob {
  left: calc(100% - 29px);
}

/* ===== MESSAGE ECO CONTEXTUEL ===== */
.eco-message {
  position: fixed;
  top: clamp(0.75rem, 2.5vw, 1.5rem);
  right: calc(clamp(0.75rem, 2.5vw, 1.5rem) + 108px);
  z-index: 101;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,255,0.7);
  background: rgba(7,6,10,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
}
.eco-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.eco-message__dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .eco-message {
    top: auto; right: auto;
    bottom: calc(7rem + env(safe-area-inset-bottom, 0px));
    left: 0.6rem;
  }
}

/* ===== MOBILE SCROLL ENHANCEMENTS ===== */
@media (max-width: 600px) {
  /* Sections apparaissent avec plus de puissance */
  .reveal {
    opacity: 0; transform: translateY(50px) scale(0.97);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-revealed {
    opacity: 1; transform: translateY(0) scale(1);
  }

  /* Sections empilees avec espacement genereux */
  .stats-section, .process-section, .about-section,
  .contact-section {
    margin-bottom: 1rem;
  }

  /* Scroll snap doux sur les sections principales */
  body {
    scroll-snap-type: y proximity;
  }
  .stats-section, .process-section, .about-section,
  .contact-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    scroll-margin-top: 1rem;
  }
}
.sound-toggle {
  bottom: clamp(0.75rem, 2.5vw, 1.5rem);
  right: clamp(0.75rem, 2.5vw, 1.5rem);
}

/* Etats actifs */
.sound-toggle[aria-pressed="true"] {
  color: var(--accent-gold);
  border-color: rgba(201,169,98,0.3);
  box-shadow: 0 0 15px var(--theme-glow);
}

/* Mobile — repositionnement */
@media (max-width: 600px) {
  .lang-toggle {
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    right: 0.5rem;
    width: 36px; height: 36px; font-size: 0.55rem;
  }
  .sound-toggle {
    bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    right: 0.6rem;
    width: 40px; height: 40px;
  }
}

/* ===== EASTER EGG ===== */
.easter-egg-overlay {
  position: fixed; inset: 0; z-index: 500;
  place-items: center;
  background: rgba(7,6,10,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none;
}
.easter-egg-overlay.is-visible { display: grid; }
.easter-egg-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--accent-gold); text-align: center;
  animation: easterPulse 1.5s ease-in-out infinite;
}
@keyframes easterPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ===== BOOKING MODAL ===== */
.booking-overlay {
  position: fixed; inset: 0; z-index: 200;
  place-items: center;
  background: rgba(7,6,10,0.75);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
  display: none;
}
.booking-overlay.is-open { display: grid; }
.booking-modal {
  width: min(92vw, 420px); max-height: 88vh; overflow-y: auto;
  padding: 2rem; position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s var(--ease-spring-heavy);
  box-shadow: var(--glass-shadow), 0 0 40px var(--theme-glow);
}
.booking-overlay.is-open .booking-modal {
  transform: translateY(0) scale(1);
}
.booking-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px; border: none; background: none;
  color: rgba(245,242,255,0.5); font-size: 1.5rem; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.booking-close:hover { color: var(--accent-gold); background: var(--theme-tint-a); }
.booking-title { margin: 0 0 1.5rem; font-size: clamp(1.1rem, 3vw, 1.4rem); }

.booking-step--hidden { display: none; }

/* Calendrier */
.booking-cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.booking-cal__month {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: rgba(245,242,255,0.85); text-transform: capitalize;
}
.booking-cal__arrow {
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--theme-tint-a); color: rgba(245,242,255,0.7);
  border: 1px solid var(--theme-tint-c);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.booking-cal__arrow:hover { background: var(--theme-tint-b); border-color: var(--accent-gold); }
.booking-cal__weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 0.4rem; text-align: center;
  font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(245,242,255,0.35);
}
.booking-cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
}
.cal-day {
  aspect-ratio: 1; border: none; border-radius: 8px;
  background: transparent; color: rgba(245,242,255,0.7);
  font-size: 0.82rem; font-family: var(--font-sans);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.cal-day:hover:not(:disabled) {
  background: var(--theme-tint-b); color: #fff; transform: scale(1.08);
}
.cal-day:disabled {
  color: rgba(245,242,255,0.15); cursor: default;
}
.cal-day.is-today {
  border: 1px solid var(--accent-gold); color: var(--accent-gold);
}
.cal-day.is-selected {
  background: var(--accent-gold); color: var(--surface-void); font-weight: 600;
}

/* Creneaux */
.booking-date-chosen {
  margin: 0 0 1rem; font-family: var(--font-display);
  font-size: 1rem; color: var(--accent-gold); text-align: center;
}
.booking-slots {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin-bottom: 1rem;
}
.booking-slot {
  padding: 0.6rem; border: 1px solid var(--theme-tint-c); border-radius: 10px;
  background: var(--theme-tint-a); color: rgba(245,242,255,0.8);
  font-size: 0.85rem; font-family: var(--font-mono); text-align: center;
  cursor: pointer; transition: all 0.2s ease;
}
.booking-slot:hover { background: var(--theme-tint-b); border-color: var(--accent-gold); }
.booking-slot.is-selected {
  background: var(--accent-gold); color: var(--surface-void);
  border-color: var(--accent-gold); font-weight: 600;
}

/* Formulaire */
.booking-input {
  display: block; width: 100%; margin-bottom: 0.75rem;
  padding: 0.65rem 1rem; border-radius: 12px;
  border: 1px solid var(--theme-tint-c);
  background: var(--theme-tint-a); color: rgba(245,242,255,0.9);
  font-size: 0.85rem; font-family: var(--font-sans); outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.booking-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--theme-tint-a);
}
.booking-input::placeholder { color: rgba(245,242,255,0.3); }
.booking-textarea { resize: vertical; min-height: 60px; }
.booking-submit { width: 100%; justify-content: center; margin-bottom: 0.75rem; }
.booking-back {
  display: block; width: fit-content; margin: 0 auto;
  border: none; background: none; color: rgba(245,242,255,0.4);
  font-size: 0.75rem; cursor: pointer; padding: 0.35rem;
  transition: color 0.2s ease;
}
.booking-back:hover { color: var(--accent-gold); }
.booking-back:focus-visible { box-shadow: var(--focus-ring); }

/* Confirmation */
.booking-done-icon {
  width: 60px; height: 60px; margin: 0 auto 1rem;
  border-radius: 50%; border: 2px solid var(--accent-gold);
  display: grid; place-items: center;
  font-size: 1.5rem; color: var(--accent-gold);
  box-shadow: 0 0 25px var(--theme-glow);
  animation: doneScale 0.5s var(--ease-spring-bounce);
}
@keyframes doneScale { from { transform: scale(0); } to { transform: scale(1); } }
.booking-done-text {
  margin: 0 0 0.5rem; text-align: center; font-size: 0.95rem;
  color: rgba(245,242,255,0.85);
}
.booking-done-detail {
  margin: 0; text-align: center; font-size: 0.8rem;
  color: rgba(245,242,255,0.5); font-family: var(--font-mono);
}

/* Responsive booking */
@media (max-width: 480px) {
  .booking-modal { padding: 1.5rem 1rem; }
  .booking-slots { grid-template-columns: repeat(2, 1fr); }
  .booking-title { font-size: 1.1rem; }
}

/* ===== SOUND VISUALIZER — barres au bord exterieur du bouton ===== */
.sound-viz {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.sound-viz__bar {
  position: absolute;
  width: 2.5px;
  height: 8px;
  border-radius: 1.5px;
  /* Couleur heritee du theme */
  background: var(--accent-gold);
  transition: background 0.6s ease, opacity 0.3s ease;
  /* Position : centre horizontal du conteneur */
  left: calc(50% - 1.25px);
  /* Barre placee juste au-dessus du bord (0 = haut du conteneur = bord du cercle) */
  top: -3px;
  /* Pivot = centre du bouton (22px sous le haut du conteneur) */
  transform-origin: 1.25px calc(22px + 3px);
  transform: rotate(calc(var(--i) * 30deg)) scaleY(0.3);
  opacity: 0;
}
.sound-toggle[aria-pressed="true"] .sound-viz__bar {
  opacity: 0.5;
}

/* Volume slider */
.sound-volume {
  position: fixed; bottom: clamp(3.5rem, 5vw, 4.5rem); right: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 50;
  width: 44px; height: 4px;
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.12);
  border-radius: 2px; outline: none;
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: right center;
}
.sound-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-gold);
  border: none; cursor: pointer;
  box-shadow: 0 0 8px var(--theme-glow);
}
.sound-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-gold);
  border: none; cursor: pointer;
}
.sound-volume::-moz-range-track {
  background: rgba(255,255,255,0.12);
  height: 4px; border-radius: 2px;
}

@media (max-width: 600px) {
  .sound-volume {
    width: 36px;
    bottom: clamp(3rem, 4vw, 3.5rem);
    right: 0.3rem;
  }
}


/* ===== PANNEAU OVERSCROLL BAS ===== */
.overscroll-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 250;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.overscroll-panel.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.overscroll-panel__content {
  background: linear-gradient(180deg, rgba(7,6,10,0.95), rgba(14,12,18,0.98));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--theme-tint-c);
  padding: 2rem 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5), 0 0 30px var(--theme-glow);
}
.overscroll-panel__emoji {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  animation: overscrollBounce 0.6s ease 0.2s;
}
@keyframes overscrollBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-4px); }
}
.overscroll-panel__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin: 0 0 0.4rem;
}
.overscroll-panel__sub {
  font-size: 0.75rem;
  color: rgba(245,242,255,0.5);
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
}
.overscroll-panel__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.overscroll-panel__progress::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--os-progress, 0%);
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-magenta));
  border-radius: 2px;
  transition: width 0.15s ease;
}
.overscroll-panel__stage {
  animation: osStageFade 0.3s ease;
}
@keyframes osStageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.overscroll-panel__cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  background: transparent;
  color: var(--accent-gold);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  animation: osCTAPulse 1.5s ease-in-out infinite;
}
@keyframes osCTAPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(201,169,98,0); }
  50% { box-shadow: 0 0 20px var(--theme-glow), 0 0 40px var(--theme-glow); }
}
.overscroll-panel__cta:hover {
  background: rgba(201,169,98,0.1);
}

/* ===== PANNEAU OVERSCROLL HAUT ===== */
.overscroll-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 250;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.overscroll-top.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.overscroll-top__content {
  background: linear-gradient(0deg, rgba(7,6,10,0.95), rgba(14,12,18,0.98));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-tint-c);
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px var(--theme-glow);
}
.overscroll-top__text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin: 0;
}
.overscroll-top__spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(245,242,255,0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .overscroll-panel__content { padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .overscroll-panel__text { font-size: 0.95rem; }
  .overscroll-top__content { padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem 1rem; }
  .overscroll-top__text { font-size: 0.8rem; }
}

/* ===== FOOTER ===== */
.museum-footer {
  position: relative; z-index: 2;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
  padding-bottom: calc(clamp(2rem, 4vw, 3rem) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: var(--surface-void);
}
.footer-copy {
  margin: 0.75rem 0 0; font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  color: rgba(245,242,255,0.25); letter-spacing: 0.06em;
}
.gradient-text {
  margin: 0; font-family: var(--font-display); font-size: clamp(0.9rem, 2.4vw, 1.35rem);
  font-style: italic; font-weight: 500; line-height: 1.45;
  background: linear-gradient(120deg, var(--accent-gold) 0%, var(--accent-amber) 28%, var(--accent-ice) 58%, var(--accent-magenta) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 6s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Separateur subtil avant le footer */
.museum-footer::before {
  content: ""; display: block;
  width: min(200px, 40%); height: 1px; margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, var(--theme-tint-c), transparent);
}

/* =============================================================================
   RESPONSIVE — Tablette portrait (960px)
   ============================================================================= */
@media (max-width: 960px) {
  #museum-stage {
    grid-template-columns: 1fr;
    grid-template-areas: "." "carousel" "label";
    grid-template-rows: 1fr auto auto;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    padding-bottom: 0;
  }
  .museum-label {
    margin-bottom: 1rem; max-width: 500px;
    justify-self: center; width: 100%;
  }
  .project-carousel {
    min-height: min(32vh, 300px);
    padding-bottom: 2.4rem;
  }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   RESPONSIVE — Tablette (768px)
   ============================================================================= */
@media (max-width: 768px) {
  .project-disc { width: clamp(180px, 36vmin, 260px); }
  .nav-arrow { width: 54px; height: 54px; }
  .museum-label { padding: 1rem 1.15rem; }
  .detail-panel { width: min(92vw, 440px); padding: 1.75rem; max-height: 80vh; }
  .detail-panel__title { font-size: 1.35rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .contact-grid { gap: 0.75rem; }
  .section-title { margin-bottom: 2rem; }
}

/* =============================================================================
   RESPONSIVE — Mobile (600px)
   ============================================================================= */
@media (max-width: 600px) {
  /* Hero */
  #museum-stage {
    padding: 0.5rem; padding-bottom: 0; gap: 0.5rem;
    min-height: 100svh; min-height: 100dvh; /* dvh = dynamic viewport height, exclut la barre d'adresse */
  }
  .project-carousel { min-height: min(28vh, 240px); padding-bottom: 1.8rem; }
  .project-disc { width: clamp(140px, 40vw, 200px); }
  .nav-arrow { width: 48px; height: 48px; min-width: 48px; } /* 48px = taille tactile min recommandee */
  .nav-arrow svg { width: 18px; height: 18px; }
  .nav-arrow--left { left: 0.25rem; }
  .nav-arrow--right { right: 0.25rem; }
  .floating-brand { top: max(0.5rem, env(safe-area-inset-top)); left: 0.5rem; }
  .floating-title { font-size: 0.85rem; }
  .floating-sub { font-size: 0.45rem; max-width: 200px; letter-spacing: 0.06em; }

  /* Cartel */
  .museum-label { padding: 0.65rem 0.75rem; margin-bottom: 0.4rem; border-radius: 12px; }
  .label-kicker { font-size: 0.65rem; margin-bottom: 0.1rem; }
  .label-num { font-size: 1.2rem; }
  .label-title { font-size: 1rem; margin-bottom: 0.3rem; }
  .label-desc { font-size: 0.75rem; line-height: 1.4; }
  .label-chip { font-size: 0.65rem; padding: 0.15rem 0.4rem; }
  .label-stack { gap: 0.15rem; margin-top: 0.4rem; }

  /* Detail panel — quasi plein ecran mobile */
  .detail-panel {
    width: calc(100vw - 1rem); max-width: 400px;
    padding: 1.25rem;
    max-height: calc(100dvh - 3rem);
    border-radius: 16px;
    margin: 0 auto;
  }
  .detail-panel__close { top: 0.5rem; right: 0.5rem; width: 36px; height: 36px; min-width: 36px; } /* tap target 36px */
  .detail-panel__icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .detail-panel__title { font-size: 1.15rem; margin-bottom: 0.5rem; }
  .detail-panel__text { font-size: 0.82rem; line-height: 1.55; margin-bottom: 0.75rem; }
  .detail-panel__hint { font-size: 0.65rem; }
  .detail-panel__screenshot { width: 180px; height: 110px; }
  .detail-panel__cta { font-size: 0.78rem; padding: 0.65rem 1.4rem; min-height: 44px; display: flex; align-items: center; } /* tap target 44px */

  /* Sections contenu */
  .section-title { margin-bottom: 1.25rem; font-size: clamp(1rem, 4vw, 1.3rem); }
  .stats-section, .process-section, .about-section, .contact-section, .services-section { padding: 1.25rem 0.75rem; }

  /* Services — empile en colonne */
  .service-row { flex-direction: column; gap: 0.5rem; align-items: stretch; padding: 1rem 0; }
  .service-name { font-size: 0.9rem; }
  .service-price { font-size: 0.88rem; color: var(--accent-gold); }
  .service-desc { font-size: 0.74rem; }


  /* CTA flottant — au-dessus du sound toggle */
  .floating-cta {
    bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
    right: 0.75rem; font-size: 0.78rem;
    padding: 0.65rem 1.2rem; min-height: 44px;
    z-index: 50;
  }

  /* Stats inline — separateurs discrets, pas de wrap orphelin */
  .stats-inline { gap: 0.75rem; flex-wrap: nowrap; }
  .stat-separator { font-size: 0.8rem; opacity: 0.3; }
  .stat-number { font-size: clamp(1.5rem, 6vw, 2rem); }
  .stat-label { font-size: 0.58rem; letter-spacing: 0.06em; }

  /* Process — 2 colonnes avec breathing room */
  .process-line { display: none; }
  .process-dot { width: 7px; height: 7px; margin-bottom: 0.6rem; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .process-card { padding: 1rem 0.75rem; min-height: 130px; }
  .process-icon { font-size: 1.3rem; margin-bottom: 0.4rem; }
  .process-step { font-size: 1.4rem; top: 0.35rem; right: 0.4rem; }
  .process-name { font-size: 0.85rem; margin-bottom: 0.25rem; }
  .process-desc { font-size: 0.7rem; line-height: 1.45; }

  /* About */
  .about-avatar { width: 70px; height: 70px; }
  .about-visual { margin-bottom: 1rem; }
  .about-container { padding: 1.25rem 1rem; }
  .about-mission { font-size: 0.9rem; }
  .about-philosophy { font-size: 0.8rem; margin-bottom: 1rem; }
  .about-values { gap: 0.4rem 0.8rem; }
  .about-value { font-size: 0.72rem; }

  /* Contact — cartes full width mobile */
  .contact-grid { gap: 0.5rem; flex-direction: column; align-items: center; }
  .contact-card {
    padding: 0.85rem 1rem; min-width: auto; gap: 0.5rem;
    width: 100%; max-width: 300px;
    flex-direction: row; justify-content: center;
    min-height: 48px;
  }
  .contact-label { font-size: 0.75rem; }
  .contact-icon svg { width: 20px; height: 20px; }
  .cta-rdv {
    font-size: 0.78rem; padding: 0.7rem 1.4rem; margin-top: 1.25rem;
    min-height: 48px; display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 300px;
    margin-left: auto; margin-right: auto;
  }

  /* Nav dots — tap target elargi via padding */
  .nav-dots { gap: 0.4rem; }
  .nav-dot { width: 8px; height: 8px; padding: 8px; margin: -8px; }
  .nav-dot.is-active { width: 18px; }

  /* Scroll hint */
  .scroll-hint { padding: 1rem 0 0.5rem; min-height: 44px; }
  .scroll-hint__text { font-size: 0.8rem; }

  /* Detail panel — overflow protege */
  .detail-panel { overflow-x: hidden; }
  .detail-panel__text { word-break: break-word; overflow-wrap: break-word; }

  /* Ambient BG — simplifie sur mobile */
  .ambient-bg {
    background: radial-gradient(ellipse 50% 30% at 20% 80%, var(--theme-glow) 0%, transparent 80%);
    transition: opacity 0.8s ease;
  }

  /* Booking — safe area */
  .booking-modal {
    padding: 1.25rem 0.85rem;
    max-height: calc(88vh - env(safe-area-inset-bottom, 0px));
  }
  .booking-title { font-size: 1rem; margin-bottom: 1rem; }
  .booking-slots { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .booking-slot { font-size: 0.78rem; padding: 0.5rem; min-height: 44px; }
  .booking-input { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
  .cal-day { font-size: 0.75rem; min-width: 36px; }
  .booking-cal__month { font-size: 0.9rem; }

  /* Footer — safe area */
  .museum-footer { padding: 0.85rem 0.6rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .museum-footer::before { width: 80px; margin-bottom: 1rem; }
  .footer-copy { font-size: 0.65rem; }
  .gradient-text { font-size: 0.82rem; }

  /* Son — ajustements visualiseur mobile */
  .sound-toggle svg { width: 16px; height: 16px; }
  .sound-viz__bar { width: 2px; height: 6px; top: -2px; left: calc(50% - 1px); transform-origin: 1px calc(20px + 2px); }
  .sound-volume { width: 36px; right: 0.2rem; bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px)); }

  /* Booking */
  .booking-modal { padding: 1.25rem 0.85rem; }
  .booking-title { font-size: 1rem; margin-bottom: 1rem; }
  .booking-slots { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
  .booking-slot { font-size: 0.78rem; padding: 0.5rem; }
  .booking-input { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
  .cal-day { font-size: 0.75rem; }
  .booking-cal__month { font-size: 0.9rem; }

  /* Footer — safe area pour iPhones */
  .museum-footer { padding: 0.85rem 0.6rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); }
  .museum-footer::before { width: 80px; margin-bottom: 1rem; }
  .footer-copy { font-size: 0.65rem; }
  .gradient-text { font-size: 0.82rem; }
}

/* =============================================================================
   RESPONSIVE — Petit mobile (480px)
   ============================================================================= */
@media (max-width: 480px) {
  .project-disc { width: clamp(120px, 45vw, 175px); }
  .disc-title { font-size: clamp(0.75rem, 3.5vw, 0.95rem); }
  .disc-meta { font-size: 0.65rem; }
  .project-disc.is-active .disc-label::after { font-size: 0.65rem; margin-top: 0.25rem; }

  /* Arrows — minimum 44px tap target */
  .nav-arrow { width: 44px; height: 44px; min-width: 44px; }
  .nav-arrow--left { left: 0.2rem; }
  .nav-arrow--right { right: 0.2rem; }

  .stat-number { font-size: clamp(1.3rem, 5.5vw, 1.6rem); }
  .stat-label { font-size: 0.55rem; }

  .process-card { padding: 0.85rem 0.6rem; min-height: 120px; }
  .process-name { font-size: 0.8rem; }
  .process-desc { font-size: 0.65rem; }
  .process-step { font-size: 1.2rem; right: 0.35rem; top: 0.3rem; }
  .process-icon { font-size: 1.1rem; margin-bottom: 0.3rem; }

  .contact-grid { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 260px; flex-direction: row; justify-content: center; }

  .booking-slots { grid-template-columns: repeat(2, 1fr); }

  /* Glitch shadow reduit */
  .glitch-char { text-shadow: 0 0 4px currentColor, 0 0 8px currentColor; }

  /* About */
  .about-avatar {
    width: 60px; height: 60px;
    box-shadow: 0 0 12px var(--theme-glow), 0 0 24px var(--theme-glow);
  }
}

/* =============================================================================
   RESPONSIVE — Tres petit mobile (360px)
   ============================================================================= */
@media (max-width: 360px) {
  .project-disc { width: 115px; }

  /* Arrows — garder 44px minimum, reduire SVG */
  .nav-arrow { width: 44px; height: 44px; min-width: 44px; }
  .nav-arrow svg { width: 14px; height: 14px; }
  .nav-arrow--left { left: 0; }
  .nav-arrow--right { right: 0; }

  /* Floating brand — texte raccourci */
  .floating-sub {
    max-width: 150px; font-size: 0.4rem;
    letter-spacing: 0.02em; line-height: 1.4;
    overflow-wrap: break-word;
  }

  .museum-label { padding: 0.5rem 0.6rem; }
  .label-title { font-size: 0.9rem; }
  .label-desc { font-size: 0.72rem; }
  .label-num { font-size: 1rem; }

  /* Detail panel */
  .detail-panel { padding: 1rem; overflow-x: hidden; }
  .detail-panel__title { font-size: 1rem; }
  .detail-panel__text { font-size: 0.78rem; }
  .glitch-char { text-shadow: 0 0 3px currentColor; }

  /* Process — 1 colonne */
  .process-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .process-card { min-height: auto; padding: 1rem 0.75rem; }

  /* Stats */
  .stats-inline { gap: 0.5rem; }
  .stat-number { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .stat-separator { font-size: 0.7rem; }

  /* Services */
  .service-row { padding: 0.75rem 0; }
  .service-name { font-size: 0.82rem; }
  .service-price { font-size: 0.8rem; }
  .service-desc { font-size: 0.68rem; }

  /* About */
  .about-container { padding: 1rem 0.75rem; }
  .about-avatar {
    width: 56px; height: 56px; border-width: 1.5px;
    box-shadow: 0 0 10px var(--theme-glow);
  }
  .about-mission { font-size: 0.82rem; }
  .about-philosophy { font-size: 0.72rem; }
  .about-values { flex-direction: column; gap: 0.3rem; }

  /* Contact */
  .contact-card { padding: 0.6rem 0.7rem; min-height: 44px; }

  /* Booking */
  .booking-modal { padding: 1rem 0.65rem; width: calc(100vw - 0.5rem); }
  .booking-title { font-size: 0.95rem; }
  .booking-slots { grid-template-columns: 1fr 1fr; gap: 0.35rem; }
  .booking-input { padding: 0.5rem 0.65rem; font-size: 0.75rem; }
  .cal-day { font-size: 0.68rem; min-width: 30px; }

  /* CTA flottant */
  .floating-cta { font-size: 0.72rem; padding: 0.55rem 1rem; }
}

/* =============================================================================
   RESPONSIVE — Paysage mobile
   ============================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
  #museum-stage {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "carousel label";
    grid-template-rows: 1fr;
    min-height: 100svh; padding: 0.5rem;
  }
  .project-carousel { min-height: auto; align-items: center; padding-bottom: 2rem; }
  .project-disc { width: min(130px, 28vh); }
  .museum-label { align-self: center; margin-bottom: 0; max-height: 85vh; overflow-y: auto; }
  .floating-brand { top: 0.35rem; left: 0.5rem; }
  .floating-title { font-size: 0.8rem; }
  .floating-sub { font-size: 0.5rem; }
  .scroll-hint { padding: 0.5rem 0; }
  .scroll-hint__text { font-size: 0.75rem; }
  .nav-arrow { width: 44px; height: 44px; min-width: 44px; }
  .floating-cta { bottom: 0.5rem; right: 0.5rem; font-size: 0.72rem; padding: 0.5rem 1rem; }
}

/* =============================================================================
   RESPONSIVE — Grand ecran (1400px+)
   ============================================================================= */
@media (min-width: 1400px) {
  #museum-stage {
    grid-template-columns: 1fr minmax(0, 640px) minmax(280px, 380px);
    padding: 2.5rem;
  }
  .project-disc { width: min(300px, 34vmin); }
  .stats-section, .process-section { max-width: 1100px; }
  .about-section, .contact-section { max-width: 780px; }
}

/* =============================================================================
   RESPONSIVE — Ultra petit mobile (320px)
   ============================================================================= */
@media (max-width: 320px) {
  .floating-title { font-size: 0.7rem; }
  .floating-sub { font-size: 0.38rem; max-width: 120px; }
  .project-disc { width: 100px; }
  .disc-title { font-size: 0.7rem; }
  .disc-meta { font-size: 0.55rem; }
  .museum-label { padding: 0.4rem 0.5rem; }
  .label-title { font-size: 0.82rem; }
  .label-desc { font-size: 0.68rem; line-height: 1.5; }
  .label-num { font-size: 0.9rem; }
  .label-chip { font-size: 0.52rem; padding: 0.2rem 0.35rem; }
  .detail-panel { padding: 0.8rem; }
  .detail-panel__title { font-size: 0.9rem; }
  .detail-panel__text { font-size: 0.72rem; line-height: 1.6; }
  .section-title { font-size: 0.82rem; }
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: 0.5rem; }
  .process-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-card { padding: 0.7rem 0.5rem; }
  .service-name { font-size: 0.75rem; }
  .service-price { font-size: 0.72rem; }
  .contact-card { padding: 0.5rem 0.55rem; }
  .contact-card span { font-size: 0.62rem; }
  .booking-modal { width: calc(100vw - 0.3rem); padding: 0.75rem 0.5rem; }
  .booking-slots { grid-template-columns: 1fr; }
  .museum-footer { padding: 0.6rem 0.4rem calc(1rem + env(safe-area-inset-bottom, 0px)); }
  .footer-copy { font-size: 0.55rem; }
  .gradient-text { font-size: 0.72rem; }
  .about-mission { font-size: 0.75rem; }
  .about-philosophy { font-size: 0.65rem; }
  .about-avatar { width: 48px; height: 48px; }
  .floating-cta { font-size: 0.65rem; padding: 0.45rem 0.85rem; }
}

/* =============================================================================
   RESPONSIVE — Tablette (768px) — affinage
   ============================================================================= */
@media (min-width: 601px) and (max-width: 768px) {
  #museum-stage {
    grid-template-columns: 1fr minmax(0, 500px) minmax(200px, 280px);
    padding: 1rem;
    gap: 0.5rem;
  }
  .project-disc { width: clamp(150px, 28vw, 200px); }
  .museum-label { padding: 0.6rem 0.8rem; }
  .detail-panel { max-width: 420px; }
  .stats-inline { gap: 1rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* =============================================================================
   RESPONSIVE — Grand ecran (1800px+)
   ============================================================================= */
@media (min-width: 1800px) {
  #museum-stage {
    grid-template-columns: 1fr minmax(0, 720px) minmax(320px, 420px);
    padding: 3rem;
  }
  .project-disc { width: min(340px, 30vmin); }
  .museum-label { padding: 1.2rem 1.5rem; }
  .label-title { font-size: 1.4rem; }
  .label-desc { font-size: 1rem; }
  .detail-panel { max-width: 680px; }
  .detail-panel__title { font-size: 1.6rem; }
  .detail-panel__text { font-size: 1rem; }
  .section-title { font-size: 1.3rem; }
  .stats-section, .process-section { max-width: 1200px; }
}

/* =============================================================================
   PERFORMANCE
   ============================================================================= */
/* content-visibility : skip le rendu des sections hors ecran */
.stats-section, .process-section, .about-section,
.contact-section, .museum-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* Mobile : supprime le bruit SVG overlay (invisible de toute facon) */
/* Mode eco — applique quand l'utilisateur choisit eco */
/* ===== ECO MODE — Perf minimum absolu ===== */

/* Tuer TOUT le rendu GPU lourd */
body.eco-mode .neural-host,
body.eco-mode .water-host,
body.eco-mode .particle-canvas,
body.eco-mode .project-bg-host canvas,
body.eco-mode .project-bg-host video,
body.eco-mode .stage-vignette,
body.eco-mode .cursor-dot,
body.eco-mode .cursor-ring,
body.eco-mode .ambient-bg { display: none !important; }

/* Zero backdrop-filter (le plus couteux GPU) */
body.eco-mode .glass-panel,
body.eco-mode .card-glass,
body.eco-mode .nav-arrow,
body.eco-mode .sound-toggle,
body.eco-mode .lang-toggle,
body.eco-mode .eco-switch__track,
body.eco-mode .detail-panel,
body.eco-mode .booking-overlay {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* Fonds solides au lieu de glass */
body.eco-mode .glass-panel { background: linear-gradient(145deg, rgba(22,19,28,0.97), rgba(14,12,18,0.98)); }
body.eco-mode .card-glass { background: linear-gradient(160deg, rgba(26,22,36,0.97), rgba(12,10,18,0.95)); }
body.eco-mode .nav-arrow { background: rgba(22,19,28,0.95); }
body.eco-mode .sound-toggle,
body.eco-mode .lang-toggle { background: rgba(22,19,28,0.95); }
body.eco-mode .detail-panel { background: rgba(16,14,22,0.98); }

/* Zero animation — tout statique */
body.eco-mode *,
body.eco-mode *::before,
body.eco-mode *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.15s !important;
}

/* Garder les transitions essentielles */
body.eco-mode .detail-panel { transition-duration: 0.3s !important; }
body.eco-mode .project-disc { transition-duration: 0.2s !important; }

/* Zero box-shadow lourd */
body.eco-mode .project-disc,
body.eco-mode .detail-panel {
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
}

/* Zero filter/blur */
body.eco-mode body::after { display: none; }
body.eco-mode .gradient-text {
  background: none; -webkit-background-clip: unset; background-clip: unset;
  color: var(--accent-gold);
}

/* Image statique en fond — ultra leger */
body.eco-mode .project-bg-host {
  background-size: cover; background-position: center;
  opacity: 0.2 !important; display: block !important;
}

/* Disque ne tourne pas en eco */
body.eco-mode .project-disc { will-change: auto !important; }

/* Simplifier les ombres partout */
body.eco-mode .nav-arrow:hover { box-shadow: none; transform: scale(1.05); }
body.eco-mode .project-disc:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.4); }
body.eco-mode .project-disc.is-active { box-shadow: 0 4px 16px rgba(0,0,0,0.5); }

/* content-visibility pour tout ce qui est hors ecran */
body.eco-mode .stats-section,
body.eco-mode .process-section,
body.eco-mode .about-section,
body.eco-mode .contact-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}


/* =============================================================================
   ACCESSIBILITE — Reduced motion
   ============================================================================= */
@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;
  }
  .project-disc, .project-track { transition: none !important; }
  .disc-groove { animation: none !important; }
  .project-disc.is-active { animation: none !important; }
  .project-disc .disc-label::after { animation: none !important; opacity: 0.3 !important; }
  .nav-arrow { animation: none !important; }
  .gradient-text {
    background: none; -webkit-background-clip: unset; background-clip: unset;
    color: rgba(245,242,255,0.85);
    animation: none !important;
  }
  .scroll-hint__arrow { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =============================================================================
   TOUCH DEVICES — Disable sticky hover
   ============================================================================= */
@media (hover: none) {
  .nav-arrow:hover,
  .nav-dot:hover,
  .project-disc:hover,
  .detail-panel__close:hover,
  .detail-panel__cta:hover,
  .label-chip:hover,
  .process-card:hover,
  .contact-card:hover,
  .detail-panel__screenshot:hover,
  .lang-toggle:hover,
  .sound-toggle:hover,
  .booking-slot:hover {
    transform: none !important;
    box-shadow: inherit !important;
    background: inherit !important;
  }
  .nav-arrow:hover .nav-arrow__glow { opacity: 0 !important; }
  .project-disc:hover::before { opacity: 0 !important; }
}

/* ===== PRINT ===== */
/* SEO: contenu statique crawlable mais invisible */
.seo-content {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

@media print {
  body { background: #fff; color: #111; }
  body::after,
  .cursor-dot, .cursor-ring,
  .loader, .sound-toggle,
  .neural-host, .water-host, .project-bg-host,
  .particle-canvas, .stage-vignette,
  .nav-arrow, .nav-dots,
  .scroll-hint, .easter-egg-overlay,
  .booking-overlay, .detail-panel { display: none !important; }
  .glass-panel {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.03); border: 1px solid #ddd;
    box-shadow: none;
  }
  .glass-panel::before { display: none; }
  .gradient-text { background: none; -webkit-background-clip: unset; color: #333; }
  .floating-title, .label-title, .section-title, .process-name { color: #111; }
  .label-desc, .process-desc, .about-philosophy { color: #444; }
  .museum-footer::before { background: #ddd; }
  #museum-stage { min-height: auto; overflow: visible; display: block; padding: 2rem; }
  .project-carousel { display: none; }
  .museum-label { max-width: 100%; }
}

/* ===== FOCUS VISIBLE ===== */
*:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
