/* ==========================================================================
   1. TYPOGRAPHIES, PALETTE & ANIMATIONS D'APPARITION (FADE + BLUR + TRANSLATE)
   ========================================================================== */
@font-face {
  font-family: 'BacilusGrotesque';
  src: url('./fonts/bacilus_grotesque_variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'RX100';
  src: url('./fonts/RX100-Regular.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

:root {
  --c-lightest: #ffffff;
  --c-mid-light: #cccccb;
  --c-mid-dark: #474748;
  --c-darkest: #171717;
  --font-title: 'BacilusGrotesque', sans-serif;
  --font-body: 'RX100', monospace, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background-color: var(--c-darkest);
  color: var(--c-lightest);
  font-family: var(--font-body);
  overflow-x: clip;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
}

.invert-text {
  color: #ffffff;
  mix-blend-mode: difference;
}

.reveal-item {
  opacity: 0;
  filter: blur(14px);
  translate: 0 34px;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.95s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, translate, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  filter: blur(0px);
  translate: 0 0;
}

[data-parallax] {
  will-change: transform;
}

/* ==========================================================================
   2. POINTEUR CERCLE EN INVERSION + TRAÎNÉE ORGANIQUE DÉFORMANTE
   ========================================================================== */
.svg-filters {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: -1;
}

#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

#cursor-trail-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.trail-blob {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  backdrop-filter: url(#organic-distortion);
  -webkit-backdrop-filter: url(#organic-distortion);
  background: rgba(255, 255, 255, 0.015);
  will-change: transform;
}

/* ==========================================================================
   3. ÉCRAN DE CHARGEMENT : LOGO BLANC + GLOW QUI TOURNE SUR LE CONTOUR
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  background-color: var(--c-darkest);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo-box {
  width: clamp(90px, 14vw, 160px);
  height: clamp(90px, 14vw, 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-box svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.loader-logo-box svg .logo-base-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5px;
}

.loader-logo-box svg .logo-glow-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px #ffffff) drop-shadow(0 0 14px #ffffff);
  animation: contourGlowSpin 2.2s linear infinite;
}

@keyframes contourGlowSpin {
  0% { stroke-dashoffset: var(--path-length, 400); }
  100% { stroke-dashoffset: 0; }
}

/* ==========================================================================
   4. HEADER : 5 BOUTONS À GAUCHE + SWITCH FR/EN À DROITE
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 1vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 8000;
  pointer-events: none;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.nav-btn, .lang-btn {
  background: rgba(23, 23, 23, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--c-lightest);
  border: 1px solid var(--c-mid-dark);
  padding: 9px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav-btn:hover, .nav-btn.active, .lang-btn:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
  border-color: var(--c-lightest);
}

.brand-logo-wrap {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.lang-btn .active-lang {
  text-decoration: underline;
  font-weight: bold;
}

.burger-btn {
  display: none;
  background: rgba(23, 23, 23, 0.85);
  border: 1px solid var(--c-mid-dark);
  width: 40px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.burger-btn span {
  width: 18px;
  height: 1.5px;
  background: var(--c-lightest);
}

/* ==========================================================================
   5. GESTION DES VUES & MARGES LATÉRALES (1vw)
   ========================================================================== */
.view-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.view {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.view.active-view {
  display: block;
  opacity: 1;
}

.page-inner {
  padding: 110px 1vw 60px;
  max-width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 85px);
}

/* ==========================================================================
   6. PAGE D'ACCUEIL : SLIDER + FLÈCHES < > + FILET DE SCROLL À DROITE
   ========================================================================== */
#view-home {
  width: 100%;
  position: relative;
}

.home-hero-section {
  width: 100vw;
  height: 101vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.home-slider {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  will-change: transform;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.home-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.home-slide video,
.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-slide-caption {
  position: absolute;
  bottom: 12%;
  left: 1vw;
  z-index: 10;
  color: #ffffff;
  mix-blend-mode: difference;
  max-width: 80vw;
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.home-slide.active .home-slide-caption {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0);
}

.home-slide-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.home-slide-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
}

.home-hero-right-hud {
  position: absolute;
  bottom: 0;
  right: 1.5vw;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  mix-blend-mode: difference;
}

.home-slider-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 30px;
}

.slider-arrow-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 300;
  line-height: 1;
  padding: 6px 8px;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.slider-arrow-btn:hover {
  opacity: 1;
  transform: scale(1.18);
}

.scroll-cue-line {
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.scroll-cue-line.scrolled-away {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(16px);
  pointer-events: none;
}

.scroll-cue-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

.scroll-cue-line:hover .scroll-cue-label {
  opacity: 1;
}

.scroll-cue-track {
  position: relative;
  width: 1px;
  height: 58px;
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.scroll-cue-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #ffffff;
  animation: scrollLineFlow 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLineFlow {
  0% { transform: translateY(-110%); }
  100% { transform: translateY(220%); }
}

/* --- SECTIONS 2 & 3 FUSIONNÉES --- */
.home-identity-about-merged {
  position: relative;
  z-index: 6;
  margin-top: -2px;
  width: 100%;
  min-height: 135vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16vh 4vw 110px;
  overflow: hidden;
  pointer-events: none;
}

.home-identity-content,
.home-about-section {
  pointer-events: auto;
}

.home-merged-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.65) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 76%,
    rgba(0, 0, 0, 0.65) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}

.home-banner-photo {
  position: absolute;
  top: -18%;
  bottom: -18%;
  left: 0;
  right: 0;
  z-index: 1;
  will-change: transform;
}

.home-banner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.home-banner-blur-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 1) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 1) 85%,
    rgba(0, 0, 0, 1) 100%
  );
}

.home-banner-fade-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(23, 23, 23, 0) 0%,
    rgba(23, 23, 23, 0.25) 34%,
    rgba(23, 23, 23, 0.68) 66%,
    rgba(23, 23, 23, 0.92) 88%,
    var(--c-darkest) 100%
  );
}

.home-identity-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1500px;
  margin: 26vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.home-banner-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #ffffff;
  mix-blend-mode: difference;
}

.home-banner-logo {
  width: clamp(48px, 6vw, 84px);
  height: clamp(48px, 6vw, 84px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-banner-logo svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.home-banner-name {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
}

.home-info-floating-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.home-info-float {
  font-family: var(--font-title);
  font-size: clamp(0.9rem, 1.12vw, 1.12rem);
  line-height: 1.42;
  color: var(--c-lightest);
  white-space: pre-line;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.home-info-float-left {
  grid-column: 1 / 5;
  text-align: left;
}

.home-info-float-right-1 {
  grid-column: 7 / 10;
  text-align: left;
}

.home-info-float-right-2 {
  grid-column: 10 / 13;
  text-align: left;
}

.home-about-section {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1500px;
  margin: 14vh auto 0;
}

.home-about-inner {
  max-width: 760px;
  margin-left: 0;
}

.home-about-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.12vw, 1.08rem);
  line-height: 1.75;
  color: var(--c-lightest);
  white-space: pre-line;
}

/* --- SECTION 4 : Savoir-faire (Hauteur augmentée + Blocs Rectangulaires) --- */
.home-expertise-section {
  position: relative;
  z-index: 4;
  margin-top: -45px;
  padding: 20px 4vw 110px;
}

.home-expertise-inner {
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}

.home-section-label {
  position: relative;
  z-index: 8;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-mid-light);
  margin-bottom: 12px;
}

.home-expertise-physics-stage {
  position: relative;
  width: 100%;
  height: clamp(440px, 58vh, 620px);
  overflow: visible;
  user-select: none;
}

.expertise-pill {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(23, 23, 23, 0.9);
  border: 1px solid var(--c-mid-light);
  border-radius: 0;
  color: var(--c-lightest);
  padding: 16px 28px;
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.05vw, 1.9rem);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.3s ease;
}

.expertise-pill.physics-active {
  opacity: 1;
}

.expertise-pill::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: background 0.25s ease;
}

.expertise-pill:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
  border-color: var(--c-lightest);
  z-index: 15;
}

.expertise-pill:hover::before {
  background: var(--c-darkest);
}

/* --- SECTION 5 : Bloc « Un projet ? » en Mode Clair + Effet Parallaxe --- */
.home-cta-parallax-wrap {
  position: relative;
  z-index: 7;
  padding: 40px 1vw 130px;
  overflow: hidden;
}

.home-cta-light-block {
  background-color: var(--c-lightest);
  color: var(--c-darkest);
  padding: clamp(54px, 7.5vw, 108px) clamp(24px, 4vw, 64px);
  width: 100%;
  will-change: transform;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 74px;
}

.home-cta-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-cta-big-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--c-darkest);
}

.home-cta-big-email {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3.8vw, 3.6rem);
  line-height: 1.1;
  color: var(--c-darkest);
  text-decoration: underline;
  text-underline-offset: 6px;
  word-break: break-all;
  transition: opacity 0.25s ease;
}

.home-cta-big-email:hover {
  opacity: 0.65;
}

.home-cta-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(23, 23, 23, 0.2);
  padding-top: 32px;
  align-items: start;
}

.home-cta-info-col {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-darkest);
  white-space: pre-line;
}

.home-cta-insta-col {
  display: flex;
  justify-content: flex-end;
}

.home-cta-insta-link {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  text-transform: uppercase;
  color: var(--c-darkest);
  text-decoration: none;
  border: 1px solid var(--c-darkest);
  padding: 12px 24px;
  transition: background 0.25s ease, color 0.25s ease;
}

.home-cta-insta-link:hover {
  background: var(--c-darkest);
  color: var(--c-lightest);
}

/* --- SECTION 6 : Grille de tous les projets + Petit lien Archive sans case --- */
.home-all-projects-section {
  position: relative;
  z-index: 7;
  padding: 0 1vw 70px;
}

.archive-bottom-cta-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 16px 0 8px;
}

.archive-minimal-link {
  background: none;
  border: none;
  padding: 4px 0;
  color: var(--c-mid-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.78;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.archive-minimal-link:hover {
  color: var(--c-lightest);
  opacity: 1;
  transform: translateX(4px);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   7. PAGE PROJETS : MENU DÉPLIANT FILTRES & VIGNETTES VERTICALES
   ========================================================================== */
.filters-dropdown {
  margin-bottom: 28px;
}

.filters-toggle-btn {
  background: transparent;
  border: 1px solid var(--c-mid-dark);
  color: var(--c-lightest);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.filters-toggle-btn:hover,
.filters-dropdown.open .filters-toggle-btn {
  border-color: var(--c-lightest);
}

.filters-count-badge {
  font-size: 0.75rem;
  color: var(--c-mid-light);
}

.filters-chevron {
  font-size: 1rem;
  line-height: 1;
}

.filters-collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding-top 0.3s ease;
}

.filters-dropdown.open .filters-collapsible {
  max-height: 320px;
  opacity: 1;
  padding-top: 18px;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--c-mid-dark);
  background: rgba(23, 23, 23, 0.6);
}

.filter-item {
  background: transparent;
  border: none;
  color: var(--c-mid-light);
  font-family: var(--font-body);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.filter-circle {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--c-lightest);
  display: inline-block;
  transition: background-color 0.2s ease;
}

.filter-item.active {
  color: var(--c-lightest);
}

.filter-item.active .filter-circle {
  background-color: var(--c-lightest);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.project-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.45;
  overflow: hidden;
  background-color: var(--c-mid-dark);
}

.card-media-box img,
.card-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .card-media-box img,
.project-card:hover .card-media-box video {
  transform: scale(1.07);
}

.card-hover-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  mix-blend-mode: difference;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.45s ease, filter 0.45s ease;
  pointer-events: none;
}

.project-card:hover .card-hover-title {
  opacity: 1;
  filter: blur(0px);
}

.card-under-info {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-meta-line {
  font-size: 0.78rem;
  color: var(--c-mid-light);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

.card-bottom-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--c-lightest);
}

/* ==========================================================================
   8. PAGE ARCHIVE : PLEIN ÉCRAN & CERCLES ULTRA-OPTIMISÉS (GPU TRANSFORM)
   ========================================================================== */
.archive-page-inner {
  position: relative;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.archive-header-row {
  position: absolute;
  top: 100px;
  left: 2vw;
  z-index: 15;
  pointer-events: none;
}

.archive-big-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.archive-bubbles-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  user-select: none;
}

.archive-empty-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--c-mid-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.archive-bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  border-radius: 50%;
  overflow: hidden;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform-origin: center center;
  will-change: transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.25s ease;
}

.archive-bubble:hover {
  border-color: rgba(255, 255, 255, 0.9);
  z-index: 20;
}

.archive-bubble-inner {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  will-change: transform;
  pointer-events: none;
}

.archive-bubble-inner img,
.archive-bubble-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   9. PAGE PROJET INDIVIDUELLE + MODÈLE 3D AGRANDI À DROITE DE LA DESCRIPTION
   ========================================================================== */
.detail-hero-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background-color: var(--c-mid-dark);
  overflow: hidden;
  margin-bottom: 48px;
}

.detail-hero-box img,
.detail-hero-box video,
.detail-hero-box iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* Ligne contenant la description à gauche et le modèle 3D plus grand à droite */
.detail-info-row {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(360px, 50%);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 60px;
}

.detail-info-right {
  width: 100%;
  max-width: 760px;
  text-align: left;
}

.detail-3d-col {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 440px;
}

.detail-3d-col.hidden {
  display: none !important;
}

.three-model-stage {
  width: clamp(460px, 36vw, 660px);
  height: clamp(460px, 36vw, 460px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.three-model-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.detail-title {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.detail-meta {
  font-size: 0.85rem;
  color: var(--c-mid-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.detail-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-lightest);
  white-space: pre-line;
  text-align: left;
}

/* Lien cliquable optionnel sous la description du projet */
.detail-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--c-lightest);
  font-family: var(--font-body);
  font-size: 0.86rem;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
  letter-spacing: 0.05em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.detail-project-link:hover {
  opacity: 0.7;
  transform: translateX(3px);
}

.detail-project-link.hidden {
  display: none;
}

.detail-gallery-scroll-wrap {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 80px;
}

.detail-gallery-scroll-wrap.hidden {
  display: none;
}

.detail-gallery-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.detail-gallery {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  height: 92vh;
  width: max-content;
  padding: 0 1vw;
  column-gap: var(--gallery-gap, 0.5vw);
  row-gap: 0;
  will-change: transform;
}

.gallery-media-item {
  grid-row: var(--row-start, 1) / span var(--row-span, 2);
  height: 100%;
  width: max-content;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.gallery-media-item img,
.gallery-media-item video {
  height: 100%;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.gallery-media-item .gallery-youtube-wrap {
  height: 100%;
  width: auto;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}

.gallery-media-item iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.detail-secondary-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 80px;
}

.detail-secondary-row.hidden {
  display: none;
}

.detail-secondary-box {
  width: 52%;
  max-width: 760px;
  text-align: left;
}

.detail-secondary-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-mid-light);
  white-space: pre-line;
  text-align: left;
}

.detail-bottom-nav {
  border-top: 1px solid var(--c-mid-dark);
  padding-top: 36px;
  margin-bottom: 50px;
}

.back-projects-btn, .cta-btn {
  background: transparent;
  color: var(--c-lightest);
  border: 1px solid var(--c-lightest);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: background 0.25s ease, color 0.25s ease;
}

.back-projects-btn:hover, .cta-btn:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
}

.other-projects-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.carousel-mini-card {
  flex: 0 0 150px;
  aspect-ratio: 3 / 3.45;
  position: relative;
  overflow: hidden;
  background: var(--c-mid-dark);
  border: 1px solid var(--c-mid-dark);
}

.carousel-mini-card img,
.carousel-mini-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-mini-card:hover img,
.carousel-mini-card:hover video {
  transform: scale(1.08);
}

.carousel-mini-title {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  font-size: 0.72rem;
  font-family: var(--font-title);
  color: #ffffff;
  mix-blend-mode: difference;
  text-transform: uppercase;
}

.detail-archive-btn-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   10. PAGE À PROPOS & PAGE CONTACT (LINKTREE) & FOOTER
   ========================================================================== */
.about-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(280px, 460px);
  justify-content: center;
  gap: 64px;
  align-items: start;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 24px;
}

.about-photo-box img {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  display: block;
}

.about-text {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  line-height: 1.65;
  max-width: 48ch;
  color: var(--c-lightest);
  white-space: pre-line;
  margin-bottom: 28px;
}

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

.linktree-box {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.contact-sector {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.linktree-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.linktree-item {
  display: block;
  width: 100%;
  padding: 16px 22px;
  border: 1px solid var(--c-mid-light);
  color: var(--c-lightest);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, color 0.25s ease;
}

.linktree-item:hover {
  background: var(--c-lightest);
  color: var(--c-darkest);
}

.site-footer {
  border-top: 1px solid var(--c-mid-dark);
  padding: 24px 1vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--c-mid-light);
}

.site-footer a {
  color: var(--c-lightest);
  text-decoration: none;
}

/* ==========================================================================
   11. RESPONSIVE MOBILE (GALERIE VERTICALE PLEINE LARGEUR & MODÈLE 3D MASQUÉ)
   ========================================================================== */
@media (max-width: 860px) {
  .site-header { padding: 14px 18px; }
  .burger-btn { display: flex; }

  .nav-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--c-darkest);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-left.mobile-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-btn { font-size: 1.15rem; padding: 12px 24px; }
  .page-inner { padding: 90px 2vw 40px; }
  .projects-grid { grid-template-columns: 1fr; gap: 20px; }

  .home-info-floating-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .home-info-float-left,
  .home-info-float-right-1,
  .home-info-float-right-2 {
    grid-column: 1 / -1;
  }

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

  /* Masque le modèle 3D sur mobile / tablette */
  .detail-3d-col,
  .three-model-stage {
    display: none !important;
  }

  /* Galerie projet en colonne verticale pleine largeur sur mobile */
  .detail-gallery-scroll-wrap {
    width: 100%;
    margin-left: 0;
    height: auto !important;
    margin-bottom: 48px;
  }

  .detail-gallery-sticky {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
  }

  .detail-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    gap: 14px;
    transform: none !important;
  }

  .gallery-media-item {
    grid-row: auto !important;
    width: 100%;
    height: auto;
  }

  .gallery-media-item img,
  .gallery-media-item video {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
  }

  .gallery-media-item .gallery-youtube-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-expertise-physics-stage {
    height: 460px;
  }

  .expertise-pill {
    padding: 12px 20px;
    font-size: 1.05rem;
  }

  .home-cta-bottom-grid { grid-template-columns: 1fr; gap: 20px; }
  .home-cta-insta-col { justify-content: flex-start; }
  .detail-info-right, .detail-secondary-box { width: 100%; max-width: 100%; text-align: left; }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
    padding: 0 16px;
  }
  .about-text { max-width: 100%; }
  #cursor-dot, #cursor-trail-container { display: none; }
}