/* ==================================================
   1. VARIABLES & SYSTEME DE THEME
================================================== */
:root {
  --violet: #5f5fa5;
  --violet-ink: #201f2e;
  --bg: #f6f4f0;
  --bg-card: #ffffff;
  --mint: #a8e6c3;
  --pink: #f3b8d0;
  --sky: #a9d6f5;
  --peach: #f7c8a0;
  --tech: #8fe3d9;
  --status-green: #7cb88f;
  --line: #ffffff;
  --line-dark: rgba(32, 31, 46, 0.10);
  --radius: 20px;
  --nav-h: 76px;
}

[data-theme="dark"] {
  --bg: #0d0e15;
  --violet-ink: #e0dcf0;
  background-color: #0d0e15;
  color: var(--violet-ink);
}

.fixed-lang-switcher {
  display: none;
}
/* ==================================================
   2. REGLAGES DE BASE & BODY TRANSPARENT
================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: transparent !important; /* Laisse voir le conteneur d'étoiles */
  color: var(--violet-ink);
  font-family: 'Inter', sans-serif;
  cursor: none;
  overflow-x: hidden;
}

selection {
  background: var(--violet);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

h1, h2, h3, .display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

.eyebrow, .tag, .pixel-word {
  font-family: 'Silkscreen', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================
   PRELOADER (ÉCRAN DE CHARGEMENT)
================================================== */
/* Style de base du preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #0d0e15; /* Doit correspondre à la couleur de fond du site */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Une courbe d'accélération nette et haut de gamme pour le volet droit */
  transition: transform 0.8s cubic-bezier(0.87, 0, 0.13, 1);
  will-change: transform;
}

/* Positionnement de la vague SVG tout en bas du preloader */
.preloader-curtain {
  position: absolute;
  top: 99%; /* Léger chevauchement pour éviter les lignes d'espacement */
  left: 0;
  width: 100%;
  height: 120px; /* Hauteur de la courbe */
  fill: #0d0e15; /* Même couleur que le preloader */
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* STATE : Une fois chargé */
#preloader.loaded {
  /* Fait remonter l'ensemble du bloc + la hauteur de la vague */
  transform: translateY(-115vh);
  pointer-events: none;
}

#preloader.loaded .loader-content {
  opacity: 0;
  transform: translateY(-30px);
}

.loader-logo {
  width: 168px !important;
  height: 168px !important;
  max-width: 168px !important;
  max-height: 168px !important;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .loader-logo {
  filter: brightness(0) invert(1); /* ou ajuster selon votre comportement original s'il ne devait pas être filtré */
}

.loader-content .container {
  --uib-size: 45px;
  --uib-color: #ffffff;
  --uib-speed: 1.75s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: var(--uib-size);
  height: calc(var(--uib-size) * 0.6);
  padding-bottom: 0;
}

.loader-content .cube {
  flex-shrink: 0;
  width: calc(var(--uib-size) * 0.2);
  height: calc(var(--uib-size) * 0.2);
  animation: jump var(--uib-speed) ease-in-out infinite;
}

.loader-content .cube__inner {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 25%;
  background-color: var(--uib-color);
  transform-origin: center bottom;
  animation: morph var(--uib-speed) ease-in-out infinite;
  transition: background-color 0.3s ease;
}

.loader-content .cube:nth-child(2),
.loader-content .cube:nth-child(2) .cube__inner {
  animation-delay: calc(var(--uib-speed) * -0.36);
}

.loader-content .cube:nth-child(3),
.loader-content .cube:nth-child(3) .cube__inner {
  animation-delay: calc(var(--uib-speed) * -0.2);
}

[data-theme="dark"] .loader-content .container {
  --uib-color: #ffffff;
}

@keyframes jump {
  0%, 30%, 75% {
    transform: translateY(0px);
    animation-timing-function: ease-out;
  }
  50% {
    transform: translateY(-200%);
    animation-timing-function: ease-in;
  }
}

@keyframes morph {
  0%, 10%, 40%, 70%, 85%, 100% {
    transform: scaleY(1);
  }
  20%, 25% {
    transform: scaleY(0.6) scaleX(1.3);
    animation-timing-function: ease-in-out;
  }
  30% {
    transform: scaleY(1.15) scaleX(0.9);
    animation-timing-function: ease-in-out;
  }
  75% {
    transform: scaleY(0.8) scaleX(1.2);
  }
}

/* ==================================================
   3. ARRIÈRE-PLAN DÉGRADÉ & ETOILES INFINIES
================================================== */
.star-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transition: background 0.4s ease;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, var(--bg) 70%, #e8e4dc 100%);
}

[data-theme="dark"] .star-bg {
  background: radial-gradient(ellipse at bottom, #201f2e 0%, #090a0f 100%);
}

.star-bg .stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: transparent;
  box-shadow:
    5vw 15vh 0 #201f2e, 12vw 45vh 0 #201f2e, 22vw 85vh 0 #201f2e,
    35vw 25vh 0 #201f2e, 48vw 65vh 0 #201f2e, 55vw 10vh 0 #201f2e,
    68vw 75vh 0 #201f2e, 78vw 30vh 0 #201f2e, 88vw 90vh 0 #201f2e,
    15vw 95vh 0 #201f2e, 42vw 40vh 0 #201f2e, 92vw 15vh 0 #201f2e,
    5vw 115vh 0 #201f2e, 12vw 145vh 0 #201f2e, 22vw 185vh 0 #201f2e,
    35vw 125vh 0 #201f2e, 48vw 165vh 0 #201f2e, 55vw 110vh 0 #201f2e,
    68vw 175vh 0 #201f2e, 78vw 130vh 0 #201f2e, 88vw 190vh 0 #201f2e,
    15vw 195vh 0 #201f2e, 42vw 140vh 0 #201f2e, 92vw 115vh 0 #201f2e;
  animation: animStar 40s linear infinite;
  transition: box-shadow 0.4s ease;
}

[data-theme="dark"] .star-bg .stars {
  box-shadow: 
    5vw 15vh 0 #ffffff, 12vw 45vh 0 rgba(255,255,255,0.8), 22vw 85vh 0 #ffffff,
    35vw 25vh 0 #ffffff, 48vw 65vh 0 rgba(255,255,255,0.6), 55vw 10vh 0 #ffffff,
    68vw 75vh 0 #ffffff, 78vw 30vh 0 rgba(255,255,255,0.9), 88vw 90vh 0 #ffffff,
    15vw 95vh 0 #ffffff, 42vw 40vh 0 rgba(255,255,255,0.7), 92vw 15vh 0 #ffffff,
    5vw 115vh 0 #ffffff, 12vw 145vh 0 rgba(255,255,255,0.8), 22vw 185vh 0 #ffffff,
    35vw 125vh 0 #ffffff, 48vw 165vh 0 rgba(255,255,255,0.6), 55vw 110vh 0 #ffffff,
    68vw 175vh 0 #ffffff, 78vw 130vh 0 rgba(255,255,255,0.9), 88vw 190vh 0 #ffffff,
    15vw 195vh 0 #ffffff, 42vw 140vh 0 rgba(255,255,255,0.7), 92vw 115vh 0 #ffffff;
}

.star-bg .stars::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: transparent;
  box-shadow:
    8vw 70vh 0 #201f2e, 18vw 20vh 0 #201f2e, 28vw 50vh 0 #201f2e,
    38vw 90vh 0 #201f2e, 52vw 35vh 0 #201f2e, 62vw 80vh 0 #201f2e,
    75vw 12vh 0 #201f2e, 82vw 60vh 0 #201f2e, 95vw 45vh 0 #201f2e,
    25vw 05vh 0 #201f2e, 60vw 95vh 0 #201f2e, 80vw 85vh 0 #201f2e,
    8vw 170vh 0 #201f2e, 18vw 120vh 0 #201f2e, 28vw 150vh 0 #201f2e,
    38vw 190vh 0 #201f2e, 52vw 135vh 0 #201f2e, 62vw 180vh 0 #201f2e,
    75vw 112vh 0 #201f2e, 82vw 160vh 0 #201f2e, 95vw 145vh 0 #201f2e,
    25vw 105vh 0 #201f2e, 60vw 195vh 0 #201f2e, 80vw 185vh 0 #201f2e;
  animation: animStar 60s linear infinite;
  transition: box-shadow 0.4s ease;
}

[data-theme="dark"] .star-bg .stars::after {
  box-shadow: 
    8vw 70vh 0 #ffffff, 18vw 20vh 0 rgba(255,255,255,0.5), 28vw 50vh 0 #ffffff,
    38vw 90vh 0 #ffffff, 52vw 35vh 0 rgba(255,255,255,0.8), 62vw 80vh 0 #ffffff,
    75vw 12vh 0 #ffffff, 82vw 60vh 0 rgba(255,255,255,0.4), 95vw 45vh 0 #ffffff,
    25vw 05vh 0 #ffffff, 60vw 95vh 0 rgba(255,255,255,0.7), 80vw 85vh 0 #ffffff,
    8vw 170vh 0 #ffffff, 18vw 120vh 0 rgba(255,255,255,0.5), 28vw 150vh 0 #ffffff,
    38vw 190vh 0 #ffffff, 52vw 135vh 0 rgba(255,255,255,0.8), 62vw 180vh 0 #ffffff,
    75vw 112vh 0 #ffffff, 82vw 160vh 0 rgba(255,255,255,0.4), 95vw 145vh 0 #ffffff,
    25vw 105vh 0 #ffffff, 60vw 195vh 0 rgba(255,255,255,0.7), 80vw 185vh 0 #ffffff;
}

.star-bg .stars-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow: 
  box-shadow:
    10vw 20vh 0 #201f2e, 40vw 70vh 0 #201f2e, 70vw 35vh 0 #201f2e, 85vw 80vh 0 #201f2e,
    10vw 120vh 0 #201f2e, 40vw 170vh 0 #201f2e, 70vw 135vh 0 #201f2e, 85vw 180vh 0 #201f2e;
  animation: animStar 25s linear infinite;
  transition: box-shadow 0.4s ease;
}

[data-theme="dark"] .star-bg .stars-large {
  box-shadow: 
    10vw 20vh 0 #ffffff, 40vw 70vh 0 #a9d6f5, 70vw 35vh 0 #ffffff, 85vw 80vh 0 #f3b8d0,
    10vw 120vh 0 #ffffff, 40vw 170vh 0 #a9d6f5, 70vw 135vh 0 #ffffff, 85vw 180vh 0 #f3b8d0;
}

@keyframes animStar {
  from { transform: translateY(0); }
  to   { transform: translateY(-100vh); }
}

/* ---------- CURSEUR VIOLET NET ---------- */
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 18px; height: 18px;
  background: var(--violet);
  box-shadow: 0 0 10px rgba(95, 95, 165, 0.4);
  pointer-events: none;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0px solid var(--violet-ink);
  transition: width .35s cubic-bezier(0.16, 1, 0.3, 1),
              height .35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color .35s ease,
              border-width .35s ease,
              border-color .35s ease,
              box-shadow .35s ease;
}

#cursor .cursor-label {
  font-family: 'Silkscreen', monospace;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  opacity: 0;
  transition: opacity .2s ease .1s;
  white-space: nowrap;
}

/* Etat "découvrir" du curseur au survol d'une card projet :
   même carré, même couleur, juste plus grand pour laisser place au texte */
#cursor.card-hover {
  width: 92px;
  height: 92px;
}

#cursor.card-hover .cursor-label {
  opacity: 1;
}

/* ---------- SKIP LINK & ACCESSIBILITÉ ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--violet); color: #fff; padding: 12px 18px;
  z-index: 10001; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

/* ---------- NAVBAR ---------- */
header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 30px -10px rgba(32, 31, 46, 0.1);
  overflow: hidden;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* Styles de base des éléments */
.nav-avatar,
.nav-links-list,
.nav-cta {
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: opacity .4s cubic-bezier(0.65, 0, 0.35, 1),
              transform .3s cubic-bezier(0.65, 0, 0.35, 1),
              visibility 0s 0s,
              border-color 0.3s ease-in,
              color 0.3s ease-in,
              background-color 0.3s ease-in;
}

/* État masqué (quand la classe .compact est active) */
header.nav.compact .nav-avatar,
header.nav.compact .nav-links-list,
header.nav.compact .nav-cta {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .4s cubic-bezier(0.65, 0, 0.35, 1),
              transform .4s cubic-bezier(0.65, 0, 0.35, 1),
              visibility 0s .4s;
}

/* Réapparition au survol du header SEULEMENT s'il est compact */
header.nav.compact:hover .nav-avatar,
header.nav.compact:hover .nav-links-list,
header.nav.compact:hover .nav-cta {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

header.nav.compact:hover .nav-compact-cta {
  opacity: 0;
  pointer-events: none;
}

/* --- EFFETS DE HOVER SUR LE CTA --- */
.nav-cta {
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
}

.nav-cta:hover {
  transform: scale(1.05); /* Effet d'agrandissement au survol du bouton */
  background-color: #f0f0f0;
  border-color: #ffffff;
}

.nav-avatar { 
  text-decoration: none; 
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Silkscreen', monospace; font-size: .66rem;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-circle.small { width: 30px; height: 30px; }

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-links-list li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}
.nav-links-list a {
  display: inline-block;
  color: var(--violet-ink);
  text-decoration: none !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .85rem;
  font-weight: 600;
  transition: all .25s ease;
  white-space: nowrap;
}
.nav-links-list a:hover {
  background: transparent;
  border-color: var(--violet);
  color: var(--violet-ink);
  box-shadow: 0 4px 12px rgba(32, 31, 46, 0.08);
}

.nav-cta {
  background: #201f2e;
  color: #ffffff;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.nav-cta:hover {
  transform: scale(1.1);
  box-shadow: rgba(30, 58, 95, 0.4) 0px 4px 12px -4px;
}

.nav-compact-cta {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--violet-ink);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--status-green);
  flex: 0 0 auto;
  animation: pulse-green 2.2s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(124,184,143,.55); }
  70% { box-shadow: 0 0 0 9px rgba(124,184,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,184,143,0); }
}

header.nav.compact .nav-inner {
  width: 270px;
  padding: 0px 20px;
  background: rgba(255, 255, 255, 0.3);
}

header.nav.compact .nav-avatar,
header.nav.compact .nav-links-list,
header.nav.compact .nav-cta {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  visibility: hidden;
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}

header.nav.compact:hover .nav-inner {
  width: fit-content;
}

header.nav.compact .nav-compact-cta {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

@media (max-width:760px) {
  .nav-links-list { display: none !important; }
}

/* ---------- DOT RAIL ---------- */
.dot-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dot-rail a {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: rgba(72,73,113,0.25);
  display: block;
  position: relative;
  transition: background .3s ease, transform .3s ease;
}
.dot-rail a .dot-label {
  position: absolute;
  right: 22px; top: 50%; transform: translateY(-50%);
  font-family: 'Silkscreen', monospace;
  font-size: .62rem;
  background: #201f2e;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.dot-rail a:hover .dot-label,
.dot-rail a:focus-visible .dot-label { opacity: 1; }
.dot-rail a.active {
  background: var(--violet);
  transform: scale(1.3);
}
@media (max-width:900px) { .dot-rail { display: none; } }

/* ---------- BARRE DE PROGRESSION (MOBILE UNIQUEMENT) ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 700;
  background: rgba(72, 73, 113, 0.15);
  display: none;
}
.scroll-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--violet);
  transition: width .1s linear;
}
@media (max-width: 900px) {
  .scroll-progress { display: block; }
}

/* ---------- BOUTON TALK FIXE ---------- */
.talk-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 600;
  font-family: 'Silkscreen', monospace;
  font-size: 1rem;
  color: var(--violet-ink) !important;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}
.talk-btn:hover {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(169, 214, 245, 0.35);
}
.talk-btn .bracket {
  color: var(--violet);
  font-weight: 700;
}
.talk-btn .txt { padding: 0 8px; }

section { padding: 0 24px; }
.wrap { max-width: 1100px; margin: 0 auto; }

/* ---------- HERO & POST-ITS ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  position: relative;
}

.hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  font-size: .78rem;
  color: var(--violet);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 20px; 
  height: 2px; 
  background: var(--violet);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  width: 100%;
  max-width: 1600px;
  margin-top: 25px;
  margin-bottom: 65px;
}

.hero-postit {
  position: relative;
  padding: 80px 40px;
  border-radius: 28px;
  box-shadow: 0 24px 50px -12px rgba(32, 31, 46, 0.2);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
  cursor: pointer;
  text-align: center;
}

.hero-postit:hover {
  transform: translateY(-12px) scale(1.02) rotate(0deg) !important;
  box-shadow: 0 32px 60px -15px rgba(32, 31, 46, 0.28);
}

.hero-postit.p1 { background: var(--peach); transform: rotate(-1.5deg); }
.hero-postit.p2 { background: var(--sky); transform: rotate(1deg); }
.hero-postit.p3 { background: var(--pink); transform: rotate(-1deg); }

.hero-postit .real {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.hero-postit .real svg {
  width: 200px;
  height: auto;
  display: block;
}

.hero-postit .real img.postit-icon,
.hero-postit .real img {
  width: 180px !important;
  height: 180px !important;
  object-fit: contain;
  display: block;
}

.hero-postit .real h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #201f2e;
  margin: 0;
  text-align: center;
}

.hero-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
  font-size: 48.5rem;
}

.hero h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  font-style: normal;
  color: var(--violet-ink);
  margin-bottom: 10px;
  text-align: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--violet);
}

.hero-sub {
  margin-top: 6px;
  font-size: .9rem;
  line-height: 1.5;
  color: #6b6980;
  font-weight: 400;
  text-align: center;
}

.hero-sub strong {
  color: var(--violet-ink);
  font-weight: 600;
}

.hero-scroll-hint {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Silkscreen', monospace;
  font-size: .65rem;
  color: #8b899f;
  text-align: center;
}

.hero-scroll-hint .line {
  width: 34px; 
  height: 1px; 
  background: #8b899f;
  position: relative; 
  overflow: hidden;
}

.hero-scroll-hint .line::after {
  content: "";
  position: absolute; 
  left: -100%; 
  top: 0; 
  bottom: 0; 
  width: 100%;
  background: var(--violet);
  animation: slide 1.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-postit {
    min-height: 140px;
    padding: 24px 16px;
    transform: rotate(0deg) !important;
  }
}

/* ==================================================
   PROJETS — CARTE INTERACTIVE (bandeau + zoom + curseur-frame)
================================================== */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centre les éléments horizontalement */
  text-align: center;     /* Justifie le texte au centre */
  max-width: 700px;       /* Empêche le texte d'être trop large */
  margin: 0 auto 40px auto; /* Centre le bloc entier sur la page */
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centre les boutons de filtres sous le titre */
  gap: 10px;
  margin-bottom: 36px;
}
.filters button {
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-family: 'Silkscreen', monospace;
  font-size: .68rem;
  cursor: pointer;
  transition: all .25s ease;
}
.filters button[aria-pressed="true"] {
  background: #201f2e;
  border-color: #201f2e;
  color: #fff;
}

.filters button:hover {
  border-color: #5f5fa5;
}


/* ==================================================
   PROJECTS SPLIT LAYOUT (STYLE FITOSAUNA)
================================================== */

.projects-split {
  padding: 160px 0;
  margin: 0;
  position: sticky;
  /* Panneau opaque qui se différencie nettement des autres sections.
     Le fond reste fixe par rapport à la fenêtre pendant que le contenu
     défile par-dessus : c'est ce qui crée l'effet de calque/parallaxe. */
  z-index: 1;
  min-height: 80vh; /* piste de scroll ; ajuste si besoin */
  background-color: var(--projects-bg);
  background-attachment: fixed;
  background-position: center;
  color: var(--projects-fg);
  transition: background-color .5s ease, color .5s ease;
  contain: layout paint style;
}


.projects-split .wrap {
  width: 100%;
}

.projects-left-sticky {
  border-right: 1px solid var(--projects-border);
  padding-right: 32px;
}

.projects-split .eyebrow,
.projects-split h2,
.projects-split .projects-desc {
  color: var(--projects-fg);
}

.projects-split .projects-desc {
  color: var(--projects-fg-muted);
}

.projects-split .filters button {
  background: transparent;
  color: var(--projects-fg);
  border-color: var(--projects-fg-muted);
}

.projects-split .filters button[aria-pressed="true"] {
  background: var(--projects-fg);
  color: var(--projects-bg);
  border-color: var(--projects-fg);
}

.projects-split .filters button:hover {
  border-color: var(--projects-fg);
}

.project-card .thumb::after {
  content: "↗";
  font-size: .95rem;       /* était 1.4rem */
  right: 18px;
  bottom: 18px;
  transform: translate(-4px, 4px); /* course plus courte */
}
.project-card:hover .thumb::after,
.project-card:focus-within .thumb::after {
  transform: translate(0, 0);
}

/* La card projet se détache légèrement du panneau opaque */
.project-card .thumb {
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--projects-border);
}

.project-card:focus-within .thumb .card-img {
  transform: scale(1.08);
}
.project-card:focus-within .card-body {
  transform: translateY(0%);
  opacity: 1;
}

.projects-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10%;
  align-items: start;
}

/* Colonne Gauche Fixe */
.projects-left-sticky {
  position: sticky;
  top: 120px; /* Distance par rapport au haut de l'écran */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.projects-left-sticky h2 {
  font-size: 2.2rem;
  line-height: 1.2;
}

.projects-desc {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* Filtres alignés verticalement dans la colonne de gauche */
.projects-left-sticky .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Colonne Droite (Grandes Cartes Projets) */
.projects-right-scroll {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Espace entre chaque carte projet */
}

/* ---- Carte projet : état de base = grande image + bandeau visible ---- */
.project-card {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.project-card.is-hidden {
  display: none;
}

.card-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
  border-radius: 20px;
}

/* Image du projet : zoom léger au survol de la card */
.project-card .thumb .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .thumb .card-img {
  transform: scale(1.08);
}

/* Bandeau (nom + tags) : visible par défaut, glisse vers le bas et
   disparaît au survol pour révéler l'image en plein cadre. */
.project-card .card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(32,31,46,0.92) 0%, rgba(32,31,46,0.55) 70%, rgba(32,31,46,0) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1), opacity .4s ease;
  pointer-events: none;
}

.project-card:hover .card-body {
  transform: translateY(0%);
  opacity: 1;
}

.project-card .card-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.project-card .card-body p {
  display: none;
}

.project-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card .card-tags span {
  font-family: 'Silkscreen', monospace;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 4px;
  color: #ffffff;
  background: transparent;
  border: 1.5px dashed var(--violet);
}

.project-card .card-tags span:nth-child(1) { border-color: var(--mint); }
.project-card .card-tags span:nth-child(2) { border-color: var(--pink); }
.project-card .card-tags span:nth-child(3) { border-color: var(--sky); }
.project-card .card-tags span:nth-child(4) { border-color: var(--peach); }
.project-card .card-tags span:nth-child(5) { border-color: var(--tech); }

/* Adaptabilité Mobile */
@media (max-width: 900px) {
  .projects-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-left-sticky {
    position: relative;
    top: 0;
  }
}

@media (pointer: coarse) {
  /* Sur tactile, pas de curseur personnalisé : le bandeau reste visible en permanence */
  .project-card .card-body {
    transform: translateY(0%) !important;
    opacity: 1 !important;
  }
  .project-card .thumb .card-img {
    transform: scale(1) !important;
  }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 220vh;
  display: flex;
  margin-top: -10vh;
  align-items: flex-start;
  padding-top: 120px;
  padding-bottom: 120px;
  background-color: var(--testimonials-bg);
  contain: layout paint style;
}

.testimonials .wrap {
  width: 100%;
}

.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.card.t-card {
  width: 100%;
  color: #201f2e;
  position: relative;
  border-radius: var(--radius);
  border: 2px solid #201f2e; 
  padding: 2.2em;
  box-shadow: 6px 6px 0px 0px #201f2e;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.t-grid .card.t-card:nth-child(1) { background-color: var(--mint); }
.t-grid .card.t-card:nth-child(2) { background-color: var(--pink); }
.t-grid .card.t-card:nth-child(3) { background-color: var(--sky); }
.t-grid .card.t-card:nth-child(4) { background-color: var(--peach); }
.t-grid .card.t-card:nth-child(n+5) { background-color: var(--mint); }

.card.t-card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5em;
  height: 100%;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.t-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card.t-card .card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #201f2e;
  margin: 0;
}

.card.t-card .card-job {
  font-family: 'Silkscreen', monospace;
  font-size: 0.75rem;
  color: #ffffff !important;
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}

.card.t-card .card-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.card.t-card .t-quote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #201f2e;
  font-weight: 500;
  max-width: 95%;
}

.card.t-card:hover {
  cursor: pointer;
  transform: scale(0.98);
  box-shadow: 8px 8px 0px 0px #201f2e;
}

.card.t-card:hover .card-content {
  transform: scale(0.96);
}

.card.t-card:active {
  transform: scale(0.94);
  box-shadow: 4px 4px 0px 0px #201f2e;
}

/* ==================================================
   À PROPOS DE MOI — photo plein cadre en fond de section,
   texte en superposition (empilée par-dessus les témoignages)
================================================== */
/* ==================================================
   SECTION À PROPOS DE MOI (DESKTOP & RESPONSIVE)
================================================== */

/* 1. Isolation de la version mobile sur Desktop */
.about-mobile-only {
  display: none !important;
}

/* 2. Piste de scroll & Conteneur Sticky */
.about-scroll-wrapper {
  position: relative;
  height: 200vh;        /* Piste de scroll */
  margin-top: -100vh;   /* Recouvrement sur testimonials */
  isolation: isolate;
  z-index: 3;
}

section.about {
  position: sticky !important;
  top: 0;
  z-index: 3;
  height: 100vh !important; /* Fixe pour éviter de déformer l'image */
  min-height: unset !important;
  margin-top: 0 !important;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 60px 0;
  background-color: #201f2e !important;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout paint style;
}

/* 3. Image de fond & Scrim */
.about .about-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  transform: scale(1.08);
  transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about.is-revealed .about-bg-img {
  transform: scale(1);
}

.about-scrim {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(32,31,46,0.95) 0%, rgba(32,31,46,0.7) 45%, rgba(32,31,46,0.2) 75%, rgba(32,31,46,0) 100%);
}

/* 4. Typographie & Hiérarchie (Strictement conservées) */
.about-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 60%;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.about-inner .eyebrow {
  color: #ffffff;
  display: block;
  margin-bottom: 16px;
  text-align: left;
}

.about-heading {
  color: #ffffff;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  max-width: 50%;
  margin-bottom: 36px;
  text-align: left;
}

.about-checklist {
  list-style: none;
  font-size: 1rem;
  margin: 0 0 36px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
  max-width: 50%;
}

.about-checklist li {
  color: rgba(209, 208, 219, 0.6);
  opacity: 0.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-checklist .check {
  color: var(--sky, #71b7f4);
  font-weight: bold;
  display: inline-block;
  flex-shrink: 0;
}

/* 5. Bascule Mobile / Tablette */
@media (max-width: 992px) {
  .about-scroll-wrapper {
    display: none !important; /* Désactive la version sticky sur écran réduit */
  }

  .about-mobile-only {
    display: block !important; /* Affiche le bloc mobile dédié */
  }

  .about-inner {
    max-width: 100%;
  }
}

/* ---------- FOOTER ---------- */
footer {
  position: relative; /* Remplace sticky */
  background: #201f2e;
  color: #f1f0f7;
  padding: 90px 24px 40px;
  z-index: 2;
  min-height: 60vh;
}

.footer-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding-bottom: 50px; margin-bottom: 34px;
}

footer h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); font-style: italic; max-width: 12ch; color: #fff; }

.footer-mail {
  font-family: 'Silkscreen', monospace;
  color: #7b7bc4 !important;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px dashed #7b7bc4 !important;
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-cols {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}

.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; }
.footer-nav a { text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.footer-meta {
  font-family: 'Silkscreen', monospace;
  font-size: .65rem;
  color: var(--violet-ink) !important;
  opacity: 0.65;
  display: flex; justify-content: space-between; margin-top: 50px; flex-wrap: wrap; gap: 10px;
}

.footer-highlight {
  color: #a9d6f5;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.footer-highlight:hover {
  color: #5f5fa5;
}

[data-theme="dark"] .aexp-btn,
[data-theme="dark"] .aexp-info strong {
  color: #ffffff !important;
}

[data-theme="dark"] .aexp-info .footer-meta {
  color: #a6a4bd !important;
  opacity: 1;
}

[data-theme="dark"] .aexp-panel {
  color: #d1d0db !important;
  opacity: 1;
}

/* ---------- ÉLÉMENTS FIXES EN HAUT ---------- */
.fixed-location,
.fixed-lang-switcher,
.fixed-top-right {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

.fixed-location,
.fixed-lang-switcher {
  position: fixed;
  top: 26px;
  z-index: 1000;
  font-family: 'Silkscreen', monospace;
  font-size: 0.75rem;
  color: var(--violet-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.fixed-location {
  left: 28px;
}

.fixed-top-right {
  position: fixed;
  top: 26px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 14px;
}

.fixed-top-right .fixed-lang-switcher {
  position: static;
}

.theme-toggle-btn {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: var(--violet-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn svg { width: 18px; height: 18px; }
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }

.status-dot-static {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  display: inline-block;
}

.fixed-lang-switcher .lang-link {
  color: #8b899f;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fixed-lang-switcher .lang-link:hover,
.fixed-lang-switcher .lang-link.active {
  color: var(--violet-ink);
  font-weight: 700;
}

.fixed-lang-switcher .lang-link.active {
  border-bottom: 2px solid var(--violet);
}

.fixed-lang-switcher .sep {
  color: #c4c2d0;
}

/* ---------- REVEAL AU SCROLL : rythme dynamique entre les blocs ---------- */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
              transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-item { opacity: 1; transform: none; transition: none; }
}

/* ==================================================
   4. ADAPTATIONS SPECIFIQUES MODE SOMBRE
================================================== */
[data-theme="dark"] h1 {
  color: #ffffff;
}
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p {
  color: #ffffff;
}
[data-theme="dark"] .hero .hero-postit,
[data-theme="dark"] .hero .hero-postit .real h2,
[data-theme="dark"] .hero .hero-postit .real h2 span,
[data-theme="dark"] .hero .hero-postit .real p,
[data-theme="dark"] .hero .hero-postit .real span {
  color: #201f2e !important;
}
[data-theme="dark"] li,
[data-theme="dark"] a:not(.footer-mail),
[data-theme="dark"] button,
[data-theme="dark"] .fixed-location,
[data-theme="dark"] .fixed-lang-switcher .lang-link,
[data-theme="dark"] .hero-eyebrow,
[data-theme="dark"] .hero-sub,
[data-theme="dark"] .hero-sub strong,
[data-theme="dark"] .hero-scroll-hint,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .nav-links-list a,
[data-theme="dark"] .nav-compact-cta,
[data-theme="dark"] .card-body h3 {
  color: #ffffff !important;
}

[data-theme="dark"] .hero-postit,
[data-theme="dark"] .hero-postit .real h2,
[data-theme="dark"] .hero-postit .real p,
[data-theme="dark"] .hero-postit .real span {
  color: #201f2e !important;
}

[data-theme="dark"] header.nav .nav-cta,
[data-theme="dark"] header.nav a.nav-cta {
  background-color: var(--sky) !important;
  color: #201f2e !important;
  border: 2px solid transparent !important;
}

[data-theme="dark"] header.nav .nav-cta:hover,
[data-theme="dark"] header.nav a.nav-cta:hover {
  background-color: var(--sky) !important;
  transform: scale(1.1);
  box-shadow: rgba(30, 58, 95, 0.4) 0px 4px 12px -4px;
}

[data-theme="dark"] .card.t-card {
  border-color: #ffffff !important;
  box-shadow: 6px 6px 0px 0px #ffffff !important;
}

[data-theme="dark"] .card.t-card:hover {
  box-shadow: 8px 8px 0px 0px #ffffff !important;
}

[data-theme="dark"] .card.t-card:active {
  box-shadow: 4px 4px 0px 0px #ffffff !important;
}

[data-theme="dark"] .card.t-card .card-title,
[data-theme="dark"] .card.t-card .t-quote,
[data-theme="dark"] .card.t-card .card-job {
  color: #201f2e !important;
}

[data-theme="dark"] .talk-btn {
  color: #ffffff !important;
}

[data-theme="dark"] footer {
  background-color: #201f2e !important;
  color: #f1f0f7 !important;
}

[data-theme="dark"] footer h2 {
  color: #ffffff !important;
}

[data-theme="dark"] footer .footer-mail {
  color: var(--sky) !important;
  border-bottom-color: var(--sky) !important;
}

[data-theme="dark"] footer .footer-nav a {
  color: #f1f0f7 !important;
}

[data-theme="dark"] footer .footer-meta {
  color: #a6a4bd !important;
}

[data-theme="dark"] .hero h1 em {
  color: #a9d6f5 !important;
}

[data-theme="dark"] .fixed-lang-switcher .lang-link.active {
  border-bottom-color: #ffffff !important;
}

[data-theme="dark"] .filters button {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .filters button[aria-pressed="true"] {
  background-color: #ffffff;
  color: #201f2e !important;
  border-color: #ffffff;
}

[data-theme="dark"] .theme-toggle-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle-btn .icon-moon { display: none; }

[data-theme="dark"] .nav-inner {
  background: rgba(42, 40, 60, 0.7);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] header.nav.compact .nav-inner {
  background: rgba(42, 40, 60, 0.85);
}

[data-theme="dark"] .loader-logo {
  filter: brightness(0) invert(1);
}

/* Panneau opaque de la section projets : violet ink en clair, beige chaud en sombre
   (le bleu ciel se fondait trop dans l'interface en mode sombre) */
:root {
  --beige: #ece2cd;
  --projects-bg: #201f2e;
  --projects-fg: #ffffff;
  --projects-fg-muted: rgba(255, 255, 255, 0.68);
  --projects-border: rgba(255, 255, 255, 0.18);
  --testimonials-bg: transparent;
}
[data-theme="dark"] {
  --testimonials-bg: transparent;
}

[data-theme="dark"] .testimonials {
  color: #f1f0f7;
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {
  .fixed-location,
  .fixed-lang-switcher {
    top: 14px;
    font-size: 0.65rem;
  }
  .fixed-location { left: 16px; }
  .fixed-lang-switcher { right: 16px; }

  .talk-btn {
    color: var(--violet-ink);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 18px;
  }
}



/* Force l'affichage successif des sections */
.about, 

/* ---------- SECTION EXPÉRIENCES PRO clean ---------- */


.experiences-scroll-wrapper {
  position: relative;
  height: 180vh; /* c'est ICI que va la "piste de scroll", plus sur la section elle-même */
  margin-top: -10vh;
}

.experiences-section {
  background-color: transparent;
  box-sizing: border-box;
  height: 100vh;        /* FIXE, plus de min-height:180vh */
  min-height: unset;    /* on annule l'ancienne valeur */
  margin-top: 0;         /* le margin-top négatif est passé sur le wrapper */

  position: sticky !important;
  top: 0 !important;
  z-index: 4;
  contain: layout paint style;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden !important; /* le contenu ne doit jamais dépasser ces 100vh */
  padding: 40px 60px;
}

.about-exp-title {
  font-family: 'Silkscreen', monospace;
  font-size: 1.2rem;
  margin-top: 40px;    /* était 70px */
  margin-bottom: 32px; /* était 52px */
  text-align: center;
}

.experiences-section .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* L'overflow hidden est déplacé ici pour emprisonner les étoiles */
.exp-star-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden !important; 
  border-radius: inherit;
  background: var(--bg);
}

.exp-stars {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 3px;
  background: transparent;
  box-shadow:
    5vw 15vh 0 #201f2e, 12vw 45vh 0 rgba(32, 31, 46, 0.8), 22vw 85vh 0 #201f2e,
    35vw 25vh 0 #201f2e, 48vw 65vh 0 rgba(32, 31, 46, 0.6), 55vw 10vh 0 #201f2e,
    68vw 75vh 0 #201f2e, 78vw 30vh 0 rgba(32, 31, 46, 0.9), 88vw 90vh 0 #201f2e,
    15vw 95vh 0 #201f2e, 42vw 40vh 0 rgba(32, 31, 46, 0.7), 92vw 15vh 0 #201f2e,
    5vw 115vh 0 #201f2e, 12vw 145vh 0 rgba(32, 31, 46, 0.8), 22vw 185vh 0 #201f2e,
    35vw 125vh 0 #201f2e, 48vw 165vh 0 rgba(32, 31, 46, 0.6), 55vw 110vh 0 #201f2e,
    68vw 175vh 0 #201f2e, 78vw 130vh 0 rgba(32, 31, 46, 0.9), 88vw 190vh 0 #201f2e;
  animation: animStar 40s linear infinite;
}

.exp-stars-large {
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: transparent;
  box-shadow: none;
  animation: animStar 25s linear infinite;
}

.personal-section {
  position: relative;
  z-index: 5;
  margin-top: 0;
  min-height: auto; /* retire la contrainte de 100vh */
  padding: 100px 0; /* padding généreux haut/bas à la place */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

[data-theme="dark"] .personal-section {
  background: linear-gradient(180deg, #1a1730 0%, #12101f 100%);
}

.aexp-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* légèrement réduit, était 16px, pour gagner de la place */
  max-width: 900px;
  margin: 0 auto;
  max-height: calc(100vh - 220px); /* était -260px, un peu plus de marge disponible */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}

/* Scrollbar discrète, cohérente avec ton univers sombre */
.aexp-list::-webkit-scrollbar { width: 4px; }
.aexp-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
}

/* Dès qu'un item est ouvert : les autres s'effacent et deviennent non cliquables */
.aexp-list.has-active .aexp-item:not(.active) {
  opacity: 0.35;
  transform: scale(0.97);
  pointer-events: none;
}

/* L'item ouvert grossit très légèrement SUR PLACE, ne pousse rien en dessous */
.aexp-list.has-active .aexp-item.active {
  transform: scale(1.02);
  z-index: 2;
}

.aexp-item.active .aexp-panel {
  grid-template-rows: 1fr;
  padding: 12px 16px 24px 16px; /* padding-top ajouté, était 0 16px 24px 16px */
}

/* Alignement des bordures de separation */
.aexp-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.65,0,0.35,1);
}
.aexp-item.last {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

/* Bouton / Ligne cliquable : fond transparent par défaut */
.aexp-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px; /* Padding égal en haut et en bas */
  background: transparent !important;
  border: none;
  border-radius: 12px;
  color: var(--violet-ink) !important;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

/* Fond plus clair UNIQUEMENT au survol */
.aexp-btn:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Alignements internes */
.aexp-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.aexp-info strong {
  font-size: 1.1rem;
  color: var(--violet-ink) !important;
}

.aexp-info .footer-meta {
  margin: 0 !important;
  color: var(--violet-ink) !important;
  opacity: 0.65;
}

.aexp-date .sep {
  display: inline-block;
  color: #a9d6f5 !important;
  font-weight: bold;
  transition: transform .3s ease;
}
.aexp-item.active .aexp-date .sep {
  transform: rotate(45deg);
}

/* Panneau déroulant */
.aexp-panel {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 50px;
  transition: grid-template-rows .45s cubic-bezier(0.16, 1, 0.3, 1),
              padding .45s ease;
  color: var(--violet-ink) !important;
  opacity: 0.65;
}
.aexp-panel-inner {
  margin: 0;
  padding: 0 16px;
  transition: grid-template-rows .5s cubic-bezier(0.65,0,0.35,1),
              padding .5s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.aexp-item.active .aexp-panel {
  grid-template-rows: 1fr;
  padding: 0 16px 24px 16px;
}

.aexp-item.active .aexp-panel {
  grid-template-rows: 1fr;
  padding: 0 16px 24px 16px;
}

.aexp-panel ul {
  margin-top: 12px; /* était -30px */
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aexp-panel ul li {
  font-weight: 300; /* light */
  line-height: 1.6;
}

.home-cta .txt-stack {
  width: 6.4ch; /* "Accueil" */
}
.home-cta:hover .txt-stack {
  width: 6.5ch; /* "Retour à l'accueil" */
}

.lab-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  font-family: 'Silkscreen', monospace;
  font-size: .85rem;
  font-weight: 700;
  color: var(--violet-ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); /* visible au repos, pas juste au survol */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}

.lab-cta-home {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  font-family: 'Silkscreen', monospace;
  font-size: .85rem;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); /* visible au repos, pas juste au survol */
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}

[data-theme="dark"] .lab-cta {
  color: #ffffff; /* dark inchangé */
}

.lab-cta:hover {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(169, 214, 245, 0.35);
}

.lab-cta:active {
  transform: translateY(0);
}

/* Style universel des brackets (clair et sombre) */
.bracket {
  color: var(--sky) !important;
  font-weight: 700;
  display: inline-block;
}

.lab-cta .bracket:first-child {
  margin-right: 6px;
}
.lab-cta .bracket:last-child {
  margin-left: 6px;
}

/* Conteneur à largeur FIXE et animée, plus de grid auto-sizing */
.txt-stack {
  position: relative;
  display: inline-block;
  height: 1.2em;
  padding: 0;
  overflow: hidden;
  vertical-align: middle;
  width: 3.2ch;                 /* largeur de "Lab" au repos */
  transition: width .5s cubic-bezier(0.65, 0, 0.35, 1);
}
.lab-cta:hover .txt-stack {
  width: 14.3ch;                  /* largeur de "Découvrir le Lab" */
}

.txt-layer {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  display: flex;
}

.ltr {
  display: inline-block;
  clip-path: inset(0 0% 0 0);
  transition: clip-path .28s cubic-bezier(0.65, 0, 0.35, 1);
}

.txt-default .ltr {
  clip-path: inset(0 0% 0 0);
  transition-delay: 0s !important;
}
.lab-cta:hover .txt-default .ltr {
  clip-path: inset(0 100% 0 0);
}

.txt-hover .ltr {
  clip-path: inset(0 100% 0 0);
}
.lab-cta:hover .txt-hover .ltr {
  clip-path: inset(0 0% 0 0);
}
----------
.lab-cta-home:hover {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(169, 214, 245, 0.35);
}

.lab-cta-home:active {
  transform: translateY(0);
}

.lab-cta-home .bracket:first-child {
  margin-right: 6px;
}
.lab-cta-home .bracket:last-child {
  margin-left: 6px;
}

.lab-cta-home:hover .txt-stack {
  width: 14.3ch;                  /* largeur de "Découvrir le Lab" */
}

.lab-cta-home:hover .txt-default .ltr {
  clip-path: inset(0 100% 0 0);
}

.lab-cta-home:hover .txt-hover .ltr {
  clip-path: inset(0 0% 0 0);
}

.cv-cta .txt-stack {
  width: 2.2ch; /* "CV" est plus court que "Lab" */
}
.cv-cta:hover .txt-stack {
  width: 16.3ch; /* "Découvrir mon CV" */
}

/* Alignement du CTA en bas à droite de la galerie */
.pdf-cta-wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 32px;
  padding-bottom: 20px;
}

/* Dimensions spécifiques au bouton PDF */
.pdf-cta .txt-stack {
  width: 3ch;
}

.pdf-cta:hover .txt-stack {
  width: 15ch;
}


/* 1. Isolation de la section À propos */
.about-scroll-wrapper {
  position: relative;
  height: 160vh;       /* piste de scroll, ajustable */
  margin-top: -80vh;   /* overlap sur les témoignages, déplacé ici */
}

/* Adaptation spécifique pour le CTA PDF */
.pdf-cta {
  margin-top: 24px;
}

.pdf-cta .txt-stack {
  width: 3ch; /* Largeur de "PDF" */
}

.pdf-cta:hover .txt-stack {
  width: 15ch; /* Largeur de "Lire le mémoire" */
}

/* Rétablissement Mode Sombre (inchangé) */
[data-theme="dark"] .talk-btn,
[data-theme="dark"] .lab-cta,
[data-theme="dark"] .pdf-cta {
  color: #ffffff !important;
}

section.about {
  position: sticky !important;
  top: 0;
  z-index: 3;
  height: 100vh;        /* FIXE, plus de min-height:120vh */
  min-height: 160vh;
  margin-top: -100vh;         /* déplacé sur le wrapper */
  width: 100%;
  display: flex !important;
  align-items: center;   /* centre désormais par rapport aux 100vh réels */
  justify-content: flex-start;
  overflow: hidden;
  padding: 60px 0;
  background-color: #201f2e !important;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  contain: layout paint style;
}

/* 2. Verrouillage de l'image de fond et du filtre */
.about .about-bg-img,
.about .about-scrim {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
}

.about .about-inner {
  max-width: 1100px; /* redevient le wrap standard, comme les autres sections */
  margin: 0 auto;
  text-align: left;
}


/* ==================================================
   1. EASING SUR LE SCROLL & TRANSITION DE THÈME
================================================== */
html {
  /* Easing fluide et naturel pour le défilement */
  scroll-behavior: auto;
}

/* ==================================================
   3. REVEAL TEXTE (H2) AU SCROLL
================================================== */

.reveal-word.is-in { opacity: 1; transform: translateY(0); }
h2 { overflow: visible; } /* retire le overflow global */

.reveal-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .5s cubic-bezier(0.16,1,0.3,1), transform .6s cubic-bezier(0.16,1,0.3,1);
}
.reveal-word.is-in { opacity: 1; transform: translateY(0); }

/* ==================================================
    Page d'erreur 404
================================================== */

.my-custom-face-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 500px;
  background: #ffffff00;
  color: var(--sky);
}

.my-custom-face-container .face {
  width: 200px;
}

.my-custom-face-container .face__eyes,
.my-custom-face-container .face__eye-lid,
.my-custom-face-container .face__mouth-left,
.my-custom-face-container .face__mouth-right,
.my-custom-face-container .face__nose,
.my-custom-face-container .face__pupil {
  animation: eyes 1s 0.3s forwards;
}

.my-custom-face-container .face__eye-lid,
.my-custom-face-container .face__pupil {
  animation-duration: 4s;
  animation-delay: 1.3s;
  animation-iteration-count: infinite;
}

.my-custom-face-container .face__eye-lid {
  animation-name: eye-lid;
}
.my-custom-face-container .face__mouth-left {
  animation-name: mouth-left;
}
.my-custom-face-container .face__mouth-right {
  animation-name: mouth-right;
}
.my-custom-face-container .face__nose {
  animation-name: nose;
}
.my-custom-face-container .face__pupil {
  animation-name: pupil;
}

@keyframes eye-lid {
  0%,
  40%,
  45%,
  100% {
    transform: translateY(0);
  }
  42.5% {
    transform: translateY(17.5px);
  }
}

@keyframes eyes {
  from {
    transform: translateY(112.5px);
  }
  to {
    transform: translateY(15px);
  }
}

@keyframes pupil {
  0%,
  37.5%,
  40%,
  45%,
  87.5%,
  100% {
    stroke-dashoffset: 0;
    transform: translate(0, 0);
  }
  12.5%,
  25%,
  62.5%,
  75% {
    transform: translate(-35px, 0);
  }
  42.5% {
    stroke-dashoffset: 35;
    transform: translate(0, 17.5px);
  }
}

@keyframes mouth-left {
  from,
  50% {
    stroke-dashoffset: -102;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes mouth-right {
  from,
  50% {
    stroke-dashoffset: 102;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nose {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(0, 22.5px);
  }
}

/* ==================================================
   SECTION FUN FACTS (INTÉGRATION EXPÉRIENCES)
================================================== */
.about-fun {
  margin-top: 0; /* retire l'ancien décalage fixe */
  padding-top: 0;
  width: 100%;
}

.about-fun-title {
  font-family: 'Silkscreen', monospace;
  font-size: 1.2rem;
  margin-bottom: 62px;
  text-align: center;
}

/* Grille Responsive pour les cartes */
.about-fun-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px
}

@media (max-width: 900px) {
  .about-fun-stage { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .about-fun-stage { grid-template-columns: 1fr; }
}

/* Style de base des cartes Bento */

/* Version claire par défaut */
.ff-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid var(--line-dark);
  box-shadow: 0 8px 24px -14px rgba(32, 31, 46, 0.25);
  opacity: 0;
  transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.6);
  transition: opacity .6s cubic-bezier(0.16,1,0.3,1), transform .6s cubic-bezier(0.16,1,0.3,1);
}

.ff-card.is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.ff-card:hover {
  border-color: var(--violet);
  box-shadow: 0 14px 30px -14px rgba(32, 31, 46, 0.35);
}
.ff-wk-list .cb {
  border-color: var(--violet);
}

/* Version sombre : override existant, inchangé */
[data-theme="dark"] .ff-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(5px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
[data-theme="dark"] .ff-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.4);
}
/* Carte 1: Hikes */
.ff-hikes-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Silkscreen', monospace;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.ff-photo-stack {
  position: relative;
  height: 160px;
}
.ff-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s ease;
}
.ff-photo img { width: 100%; height: 100%; object-fit: cover; }
.ff-photo.h1 { transform: rotate(-3deg); }
.ff-photo.h2 { transform: rotate(2deg); }
.ff-photo.h3 { transform: rotate(0deg); }
.ff-hikes:hover .ff-photo.h1 { transform: rotate(-8deg) translateX(-10px); }
.ff-hikes:hover .ff-photo.h2 { transform: rotate(6deg) translateX(10px); }

/* Carte 2: Weekend To Do */
.ff-wk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.ff-wk-dots i {
  display: inline-block;
  width: 6px; height: 6px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-left: 3px;
}
.ff-wk-title {
  font-weight: 700;
  margin-bottom: 10px;
}
.ff-wk-list .r {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 6px;
  opacity: 0.85;
}
.ff-wk-list .cb {
  width: 12px; height: 12px;
  border: 1.5px solid var(--sky);
  border-radius: 3px;
}

/* Carte 4: Quote */
.ff-quote { display: flex; flex-direction: column; text-align: center; }
.ff-quote-text {
  margin-top: 30px;
  font-style: normal;
  line-height: 1.5;
}

.ff-quote-text .a {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--violet-ink);
  margin-bottom: 6px;
  justify-content: center;
}
[data-theme="dark"] .ff-quote-text .a {
  color: #ffffff;
}

.ff-quote-text .b {
  font-size: .95rem;
  display: block;
  font-weight: 400;
  opacity: .6;
  justify-content: left;
}

.ff-quote-text .c {
  font-size: 1.15rem;
  display: block;
  font-weight: 600;
  color: var(--sky);
  justify-content: center;
  font-style: italic;
}

.ff-quote-cite { font-family: "Silkscreen"; font-size: 0.8rem; margin-top: 30px; opacity: 0.7; }

.ff-play-btn {
  background: var(--sky);
  color: #201f2e;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 8px;
}

/* Compatibilité Mode Sombre */
[data-theme="dark"] .ff-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.ff-lightbox {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(13,14,21,0.92);
  display: none;
  align-items: center; justify-content: center;
}
.ff-lightbox.is-open { display: flex; }
.ff-lightbox-img {
  max-width: 80vw; max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ff-lightbox-close, .ff-lightbox-prev, .ff-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.4rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
.ff-lightbox-close:hover, .ff-lightbox-prev:hover, .ff-lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}
.ff-lightbox-close { top: 24px; right: 24px; }
.ff-lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ff-lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

[data-theme="dark"] .hero-postit .real h2,
[data-theme="dark"] .hero-postit .real h2 span {
  color: #201f2e !important;
}

/* Désactive les clics et masque le dot-rail quand la lightbox est ouverte */
body.lightbox-open .dot-rail {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Optionnel : Empêche le scroll de la page sous la popup */
body.lightbox-open {
  overflow: hidden;
}

/* ---------- HERO LAB ---------- */

/* ==========================================================================
   PAGE LAB (Layout 100vh - Cartes agrandies + Pop-up)
   ========================================================================== */

body.page-lab {
  height: 100vh;
  margin: 0;
  overflow: hidden !important;
}

/* Titre centré sous la barre de navigation (plus compact sans .hero-sub) */
body.page-lab .lab-hero {
  position: absolute;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
  pointer-events: none;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body.page-lab .lab-hero .eyebrow,
body.page-lab .lab-hero h1 {
  display: block;
  margin: 0;
}

/* Zone d'affichage pleine hauteur */
body.page-lab .lab-scroll-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.page-lab .lab-scroll-section::-webkit-scrollbar {
  display: none;
}

/* Piste de défilement des cartes */
body.page-lab .lab-track {
  height: 100vh;
  display: flex;
  align-items: center;
  gap: 48px;

  /* Centrage adapté à la nouvelle taille de 740px */
  padding-left: calc(50vw - (min(105vw, 740px) / 2));
  padding-right: calc(50vw - (min(105vw, 740px) / 2));
  padding-top: 80px;

  width: max-content !important;
  will-change: transform;
  box-sizing: border-box;
}

body.page-lab .lab-track::after {
  display: none;
}

/* ---------- CARTES DU LAB (AGRANDIES) ---------- */
/* ---------- CURSEUR PERSONNALISÉ ---------- */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
}

/* ---------- CARTES DU LAB ---------- */
.lab-card {
  flex: 0 0 auto;
  width: min(105vw, 740px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: .45;
  transform: scale(.92);
  transition: opacity .4s ease, transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.lab-card-num {
  font-family: 'Silkscreen', monospace;
  font-size: .8rem;
  color: var(--violet-ink);;
}

.lab-card-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45);
}

.lab-card-media img,
.lab-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Masque l'overlay "Découvrir" lors du survol du bouton de son */
.lab-card:has(.sound-toggle-btn:hover) .hover-discover-label,
.lab-card:has(.sound-toggle-btn:hover)::after,
.lab-card-media:has(.sound-toggle-btn:hover) .hover-discover-label,
.lab-card-media:has(.sound-toggle-btn:hover)::after {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

.lab-card-info h3 {
  font-size: 1.4rem;
}

.lab-card-info p {
  margin-top: 6px;
  opacity: .75;
  font-size: .95rem;
}

/* ---------- TAGS DANS LES CARTES ---------- */
.lab-card-info .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lab-card-info .card-tags span {
  font-family: 'Silkscreen', monospace;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--violet-ink);
  background: transparent;
  border: 1.5px dashed var(--violet, #a855f7);
}

.lab-card-info .card-tags span:nth-child(1) { border-color: var(--mint, #4ade80); }
.lab-card-info .card-tags span:nth-child(2) { border-color: var(--pink, #f472b6); }
.lab-card-info .card-tags span:nth-child(3) { border-color: var(--sky, #71b7f4); }
.lab-card-info .card-tags span:nth-child(4) { border-color: var(--peach, #fb923c); }
.lab-card-info .card-tags span:nth-child(5) { border-color: var(--tech, #38bdf8); }

/* Modificateurs de ratio selon le visuel */
/* ---------- CARTES VERTICALES (AFFICHES / ZINES) ---------- */
.lab-card.is-portrait {
  /* Recalcule la largeur pour aligner la hauteur sur les cartes 4/3 (~416px max) */
  width: calc(min(105vw, 740px) * 9 / 16);
}

.lab-card.is-portrait .lab-card-media {
  aspect-ratio: 3/4;
}
/* ---------- BOUTON DE CONTRÔLE DU SON ---------- */
.sound-toggle-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100 !important;
  pointer-events: auto !important;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 14, 23, 0.75);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky, #71b7f4);
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease, color .3s ease;
}

.sound-toggle-btn:hover {
  border-color: var(--mint, #4ade80);
  color: var(--mint, #4ade80);
  background: rgba(15, 14, 23, 0.9);
  transform: scale(1.08);
}

.sound-toggle-btn svg {
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.sound-toggle-btn .icon-speaker {
  display: none;
}

.sound-toggle-btn.is-unmuted .icon-muted {
  display: none;
}

.sound-toggle-btn.is-unmuted .icon-speaker {
  display: block;
}

/* ---------- POP-UPS & MODALS ---------- */
.lab-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lab-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.lab-popup-content {
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
  max-width: 380px;
  width: 85%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-theme="dark"] .lab-popup-content {
  background: #1a1926;
}

.lab-popup-content h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.lab-popup-content p {
  margin: 0 0 24px;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-modal-content {
  position: relative;
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.modal-close-btn:hover {
  opacity: 1;
}

/* ---------- STYLE LAB-CTA ---------- */
.lab-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  font-family: 'Silkscreen', monospace;
  font-size: .85rem;
  font-weight: 700;
  color: var(--violet-ink) !important;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  outline: none;
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}


.lab-cta:hover {
  border-color: var(--sky, #71b7f4);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(169, 214, 245, 0.35);
}

.lab-cta:active {
  transform: translateY(0);
}

.bracket {
  color: var(--sky, #71b7f4) !important;
  font-weight: 700;
  display: inline-block;
}

.lab-cta .bracket:first-child { margin-right: 6px; }
.lab-cta .bracket:last-child { margin-left: 6px; }

.txt-stack {
  position: relative;
  display: inline-block;
  height: 1.2em;
  padding: 0;
  overflow: hidden;
  vertical-align: middle;
  transition: width .5s cubic-bezier(0.65, 0, 0.35, 1);
}

.txt-layer {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  display: flex;
}

.ltr {
  display: inline-block;
  clip-path: inset(0 0% 0 0);
  transition: clip-path .28s cubic-bezier(0.65, 0, 0.35, 1);
}

.txt-default .ltr {
  clip-path: inset(0 0% 0 0);
  transition-delay: 0s !important;
}

.lab-cta:hover .txt-default .ltr {
  clip-path: inset(0 100% 0 0);
}

.txt-hover .ltr {
  clip-path: inset(0 100% 0 0);
}

.lab-cta:hover .txt-hover .ltr {
  clip-path: inset(0 0% 0 0);
}

.popup-cta .txt-stack {
  width: 2.2ch;
}

.popup-cta:hover .txt-stack {
  width: 10.5ch;
}

/* ---------- RAIL DE NAVIGATION (DOT RAIL) ---------- */
#labDotRail.lab-progress {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  background: transparent !important;
}

#labDotRail a {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  display: block;
  position: relative;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

#labDotRail a.active {
  background: var(--sky, #71b7f4);
  transform: scale(1.25);
}

#labDotRail a .dot-label {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Silkscreen', monospace;
  font-size: 0.65rem;
  background: #201f2e;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#labDotRail a:hover .dot-label {
  opacity: 1;
}

/* ---------- CREDIT TEXTS ---------- */
.lab-credits {
  position: fixed;
  bottom: 12px;
  right: 16px;
  font-family: 'Silkscreen', monospace;
  font-size: 0.42rem !important;
  line-height: 1.3;
  opacity: 0.35;
  z-index: 100;
  transition: opacity 0.2s ease;
}

.lab-credits:hover {
  opacity: 0.8;
}

.lab-credits a {
  color: inherit;
  text-decoration: underline;
}

.modal-credits {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-family: 'Silkscreen', monospace;
  font-size: 0.5rem !important; /* ~8-9px */
  line-height: 1.4;
  opacity: 0.5;
}

.modal-credits a {
  color: var(--sky, #71b7f4);
  text-decoration: underline;
}

.hover-discover-label, 
.custom-cursor {
  pointer-events: none !important;
}

/* Désactive totalement le badge/overlay "Découvrir" au survol du bouton son */
.lab-card.is-hovering-sound .hover-discover-label,
.lab-card.is-hovering-sound::before,
.lab-card.is-hovering-sound::after,
.lab-card.is-hovering-sound .lab-card-media::before,
.lab-card.is-hovering-sound .lab-card-media::after {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
  transform: none !important;
}

/* ---------- RESPONSIVE MOBILE ---------- */
@media (max-width: 768px) {
  body.page-lab .lab-hero { top: 85px; }
  .lab-track { 
    gap: 24px; 
    padding-left: calc(50vw - (82vw / 2));
    padding-right: calc(50vw - (82vw / 2));
    padding-top: 60px; 
  }
  .lab-card { width: 82vw; }
}

/* ---------- STYLES GLOBAUX & REUTILISABLES ---------- */
.proj-section {
  padding: 120px 0;
}

.proj-section--alt {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .proj-section--alt {
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- NOUTEAU LAYOUT SPLIT / STICKY (TOYFIGHT) ---------- */
.project-split-section {
  padding: 120px 0 60px;
  width: 100%;
}

.project-split-container {
  width: 100%;
  max-width: 100%; /* S'étend sur tout l'écran */
  padding: 0 24px;  /* Alignement exact à 24px des bords (identique à left: 24px / right: 24px des boutons) */
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  align-items: start;
}

/* Colonne de gauche (Sticky) */
.project-info-sticky {
  position: sticky;
  top: 120px; /* Décalage sous la navbar */
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 12px;
}

.project-category-silkscreen {
  font-family: 'Silkscreen', monospace;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .6;
  display: block;
  margin-bottom: 8px;
}

.project-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* Tags stylisés selon votre charte */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px; /* Espace accentué avant la description */
}

.project-tags .tag {
  font-family: 'Silkscreen', monospace;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1.5px dashed var(--line-dark);
  background: transparent;
}

[data-theme="dark"] .project-tags .tag {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* ---------- OPTION ÉDITORIALE + ENCART CARTE ---------- */

/* Carte subtile du chapeau */
.lead-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

[data-theme="light"] .lead-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Texte du chapeau*/
.text-editorial .lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--violet-ink); /* Blanc à 70% d'opacité */
  margin: 0;
  font-weight: 300;
  text-wrap: balance;
}

/* Mots-clés du chapeau en vrai blanc 100% */
.text-editorial .lead strong {
  color: #ffffff;
  font-weight: 700;
  opacity: 1;
}

[data-theme="light"] .text-editorial .lead strong {
  color: var(--violet-ink, #0d0e15);
}

/* Paragraphes secondaires : texte courant légèrement atténué via rgba() */
.text-editorial p:not(.lead) {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7); /* Blanc à 70% d'opacité */
  margin-bottom: 1.2rem;
  text-wrap: pretty;
  hyphens: auto;
}

/* Mots-clés des paragraphes : vrai blanc à 100% d'opacité */
.text-editorial p strong {
  color: #ffffff;
  font-weight: 600;
  opacity: 1;
}

/* Ajustements pour le mode clair */
[data-theme="light"] .text-editorial p:not(.lead) {
  color: rgba(13, 14, 21, 0.7);
}

[data-theme="light"] .text-editorial p strong {
  color: var(--violet-ink, #0d0e15);
}
[data-theme="light"] .text-editorial p strong {
  color: var(--violet-ink, #0d0e15);
}

/* Colonne de droite (Galerie d'images scrollable) */
.project-media-stream {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* S'assure que la 1ère image déborde toujours du bas de la fenêtre */
.project-media-stream .media-card:first-child img {
  max-height: 80vh; /* Garde la 2e image partiellement visible sous la ligne de flottaison */
  object-fit: cover;
}

.media-card {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--bg-card);
}

[data-theme="dark"] .media-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- RESPONSIVE SPLIT ---------- */
@media (max-width: 992px) {
  .project-split-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .project-info-sticky {
    position: static;
    max-height: none;
    padding-right: 0;
  }
}

/* ---------- HERO PLEIN ÉCRAN (CONSERVE) ---------- */
.proj-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.proj-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proj-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,14,21,0.9) 0%, rgba(13,14,21,0.35) 55%, rgba(13,14,21,0.05) 100%);
}

.proj-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.proj-hero-scrollhint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: 'Silkscreen', monospace;
  font-size: .65rem;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* Rangée de 2 images côte à côte */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px; /* Même espacement vertical et horizontal */
  width: 100%;
}

/* Alignement parfait des cartes dans la rangée */
.media-row .media-card {
  height: 100%;
}

.media-row .media-card img {
  height: 100%;
  object-fit: cover; /* Conserve le remplissage harmonieux si les images ont des ratios légèrement différents */
}

/* Sur écran mobile/tablette : passage automatique en 1 colonne */
@media (max-width: 768px) {
  .media-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- BOUTONS FIXES & NAVIGATION ---------- */
.project-nav-arrow {
  position: fixed;
  bottom: 24px;
  top: auto;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Silkscreen', monospace;
  font-size: .7rem;
  color: var(--violet-ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}

[data-theme="dark"] .project-nav-arrow {
  color: #ffffff;
}

.project-nav-arrow.prev { left: 24px; }
.project-nav-arrow.next { right: 24px; }

.project-nav-arrow:hover {
  border-color: var(--sky);
  background: rgba(255,255,255,0.14);
}

.project-nav-arrow.prev:hover { transform: translateX(-3px); }
.project-nav-arrow.next:hover { transform: translateX(3px); }

.project-nav-arrow .arrow {
  color: var(--sky);
  font-weight: 700;
}

.talk-btn-proj {
  position: fixed;
  bottom: 78px;
  right: 28px;
  z-index: 600;
  font-family: 'Silkscreen', monospace;
  font-size: 1rem;
  color: var(--violet-ink) !important;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.3);
  transition: border-color .3s ease,
              background-color .3s ease,
              transform .3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow .3s ease;
}

.talk-btn-proj:hover {
  border-color: var(--sky);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(169, 214, 245, 0.35);
}

.talk-btn-proj .bracket {
  color: var(--violet);
  font-weight: 700;
}

.talk-btn-proj .txt { padding: 0 8px; }

/* Active les transitions fluides entre pages du même domaine */
@view-transition {
  navigation: auto;
}

/* Animation de la nouvelle page qui arrive par la droite */
::view-transition-new(root) {
  animation: slideFromRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

/* L'ancienne page reste fixe en arrière-plan pendant qu'elle se fait recouvrir */
::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

@keyframes slideFromRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}


/* ==================================================
   AMÉLIORATIONS MOBILE (≤768px)
================================================== */
@media (max-width: 768px) {

  /* 1. Visibilité des éléments fixes */
  .fixed-location,
  .fixed-top-right {
    display: none;
  }

  /* 2. Navbar compacte */
  header.nav.compact .nav-inner {
    width: auto;
    max-width: 78vw;
  }
  .nav-compact-cta span:not(.status-dot) {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 3. Paddings généraux */
  section {
    padding: 0 30px;
  }
  .wrap {
    padding: 0 4px;
  }

  /* 4. Hero */
  .hero {
    padding-top: calc(var(--nav-h) + 90px);
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding: 0 8px;
  }

  /* 5. Projets */
  .projects-container {
    padding: 0 16px;
  }
  .projects-left-sticky {
    padding: 0 10px;
    border-right: none;
  }
  .projects-left-sticky h2 {
    font-size: 1.7rem;
  }
  .project-card .card-body {
    padding: 18px 20px;
  }
  .project-card .thumb {
    margin: 0;
  }

/* Par défaut (Desktop), on masque la version mobile */
.about-mobile-only {
  display: none;
}


  /* 6. Testimonials (déroulement naturel sur mobile) */
  .testimonials {
    min-height: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    position: relative;
    padding: 60px 0;
  }

  .testimonials .wrap {
    width: 100%;
    padding-left: 24px !important;  /* Passe de 4px à 24px pour décoller des bords */
    padding-right: 24px !important;
    padding-bottom: 0;
    box-sizing: border-box; /* S'assure que le padding ne fait pas déborder l'écran */
  }

  @media (max-width: 768px) {

   /* ==================================================
        7. SECTION À PROPOS (Switch Desktop / Mobile)
        ================================================== */

     /* 1. Masquage de la version Desktop */
     .about-scroll-wrapper {
       display: none !important;
     }

     /* 2. Style et conteneur de la version Mobile */
     .about-mobile-only {
       display: block !important;
       padding: 0 16px !important;
       margin-bottom: 80px !important; /* Laisse de l'espace avant la section suivante */
       height: auto !important;
       overflow: visible !important;
     }

     .about-mobile-card {
       background-color: #201f2e; /* Fond violet ink */
       border-radius: 24px;
       border: 1px solid rgba(255, 255, 255, 0.08);
       padding: 24px 20px 32px 20px; /* Padding généreux, notamment en bas */
       display: flex;
       flex-direction: column;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     }

     .about-mobile-card .eyebrow {
       margin-bottom: 16px;
     }

     /* Image horizontale pleine largeur */
     .about-mobile-img-wrapper {
       width: 100%;
       margin-bottom: 24px;
     }

     .about-mobile-img {
       width: 100%;
       height: 200px; /* Format horizontal */
       object-fit: cover;
       object-position: center 25%; /* Cadrage sur le visage */
       border-radius: 16px;
       border: 1px solid rgba(255, 255, 255, 0.1);
     }

     /* Typographie & Contenu texte */
     .about-mobile-heading {
       font-size: clamp(1.2rem, 4.5vw, 1.45rem);
       line-height: 1.4;
       margin-bottom: 20px;
       color: #ffffff;
     }

     .about-mobile-checklist {
       display: flex;
       flex-direction: column;
       gap: 14px;
       margin-bottom: 28px;
       padding: 0;
       list-style: none;
     }

     .about-mobile-checklist li {
       display: flex;
       gap: 10px;
       font-size: 0.95rem;
       line-height: 1.5;
       color: rgba(255, 255, 255, 0.85);
     }

     .about-mobile-actions {
       display: flex;
       justify-content: flex-start;
       padding-top: 4px;
     }

  /* 8. Expériences */
  /* Masque le titre "Mes expériences" et les accordéons uniquement sur mobile */
  .experiences-section .about-exp-title,
  .experiences-section .aexp-item {
    display: none !important;
  }

  /* Ajuste les espacements du conteneur pour ne pas laisser un grand vide */
  .experiences-scroll-wrapper {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: relative !important;
    transform: none !important;
    overflow: visible !important;
  }

  .experiences-section {
    height: auto !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
  }
  /* 9. Fun facts */
  .about-fun-stage {
    padding: 0 12px;
  }

  /* 10. Footer & CTA */
  footer {
    padding: 60px 20px 30px;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .talk-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: .85rem;
  }
}

/* Très petits écrans (≤400px) */
@media (max-width: 400px) {
  section {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 1.35rem;
  }
  .fixed-top-right {
    right: 12px;
    top: 12px;
  }
}