:root {
  --primary-blue: #39ffea;
  --black: #0A0A0A;
  --white: #FFFFFF;
  --gray-light: #f8f8f8;
  --bezier-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --bezier-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bezier-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html { 
  font-size: 16px; 
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  overflow-x: hidden;
  position: relative;
  color: var(--black);
  line-height: 1.5;
  cursor: none;
}

/* Baseline Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, transparent 23px, rgba(0,0,0,0.02) 24px);
  background-size: 100% 24px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.show-grid::before {
  opacity: 1;
}

/* ===== CURSEUR MAGNÉTIQUE GSAP ===== */
.cursor {
  position: fixed; 
  width: 16px; 
  height: 16px;
  background: var(--black); 
  border-radius: 50%;
  pointer-events: none; 
  z-index: 9999;
  will-change: transform;
  transition: all 0.3s var(--bezier-expo);
  --before-scale: 0;
}

.cursor.drag-mode {
  width: 140px;
  height: 140px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Space Mono', monospace;
}

.cursor.drag-mode::after {
  content: 'Voir';
}

.cursor.view-mode {
  width: 140px;
  height: 140px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Space Mono', monospace;
}

.cursor.view-mode::after {
  content: 'Voir';
}

.cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--black);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(var(--before-scale));
  opacity: 1;
  transition: transform 0.4s var(--bezier-expo);
}

.cursor.hover {
  --before-scale: 1;
}

.cursor.hover::before {
  border: 1px solid var(--white);
}

/* ===== NAVIGATION DESKTOP ===== */
.navbar {
  position: fixed; 
  top: 0; 
  width: 100%;
  padding: 3rem 4rem;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  background: transparent;
  transition: all 0.8s var(--bezier-expo);
  z-index: 1000;
}

.navbar.scrolled {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  padding: 2rem 4rem;
}

/* Hamburger caché par défaut sur desktop */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 50px;
  height: 50px;
  background: var(--black);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  transform: scale(1.1);
}

/* Quand scrollé : cacher navbar, montrer hamburger */
.navbar.scrolled .logo,
.navbar.scrolled .nav-links {
  opacity: 0;
  pointer-events: none;
}

body.scrolled .hamburger-menu {
  display: flex;
}

/* Menu overlay avec style du site */
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  z-index: 9998;
  padding: 6rem 4rem 4rem;
  overflow: hidden;
  clip-path: circle(0% at calc(100% - 2rem - 25px) calc(2rem + 25px));
  transition: clip-path 0.6s var(--bezier-expo);
}

/* Bordure uniquement sur desktop */
@media (min-width: 769px) {
  .menu-overlay {
    border-left: 3px solid var(--black);
  }
}

.menu-overlay .menu-overlay-content {
  opacity: 0;
  transition: opacity 0.3s ease;
  transition-delay: 0s;
}

.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 2rem - 25px) calc(2rem + 25px));
}

.menu-overlay.open .menu-overlay-content {
  opacity: 1;
  transition-delay: 0.3s;
}

/* Bloquer le scroll du body quand menu ouvert */
body.menu-open {
  overflow: hidden;
}

.menu-overlay-content {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.menu-overlay-content::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60%;
  background: var(--black);
  z-index: 1;
}

.menu-navigation {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.menu-navigation::after {
  content: '';
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
}

.menu-overlay .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-overlay .nav-links li {
  border-bottom: 1px solid rgba(10, 10, 10, 0.2);
  padding: 1.5rem 0;
}

.menu-overlay .nav-links li:last-child {
  border-bottom: none;
}

.menu-overlay .nav-links a {
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-decoration: none;
  font-family: 'GT America', sans-serif;
  transition: all 0.4s var(--bezier-expo);
  position: relative;
  display: inline-block;
}

.menu-overlay .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary-blue);
  transition: width 0.6s var(--bezier-expo);
}

.menu-overlay .nav-links a:hover::after {
  width: 100%;
}

.menu-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-self: start;
  padding-top: 4rem;
}

.menu-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

.menu-info p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(10, 10, 10, 0.7);
  max-width: 400px;
}

.menu-contact {
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.5);
}

.menu-contact a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-contact a:hover {
  color: var(--primary-blue);
}

/* Mobile responsive pour le menu */
@media (max-width: 768px) {
  .menu-overlay {
    padding: 3rem 1.5rem 2rem;
  }
  
  .menu-overlay-content::before {
    display: none;
  }
  
  .menu-overlay-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
    align-items: start;
  }
  
  .menu-navigation {
    gap: 1.5rem;
  }
  
  .menu-navigation::after {
    bottom: -0.75rem;
  }
  
  .menu-overlay .nav-links li {
    padding: 0.8rem 0;
  }
  
  .menu-overlay .nav-links a {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }
  
  .menu-info {
    padding-top: 0;
    align-self: start;
    gap: 1.5rem;
  }
  
  .menu-info h3 {
    font-size: 0.95rem;
  }
  
  .menu-info p {
    font-size: 0.85rem;
  }
  
  .menu-contact {
    font-size: 0.75rem;
  }
}

.logo {
  font-weight: 700; 
  font-size: 1.3rem;
  color: var(--black); 
  text-decoration: none;
  position: relative;
  transition: all 0.4s var(--bezier-expo);
}
.logo::after {
  content: '';
  position: absolute;
  bottom: -2px; 
  left: 0; 
  width: 0; 
  height: 2px;
  background: var(--black);
  transition: width 0.6s var(--bezier-expo);
}
.logo:hover::after { width: 100%; }

.nav-links {
  display: flex; 
  list-style: none; 
  gap: 2rem;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 0;
  transition: color 0.4s var(--bezier-expo), transform 0.3s var(--bezier-expo);
}

.nav-links a:hover {
  transform: translateY(-3px);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width 0.4s var(--bezier-expo);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ===== SECTION HERO ===== */
.hero-section {
  min-height: 100vh;
  background: var(--primary-blue);
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
  z-index: 10;
}


.hero-section::before {
  content: '';
  position: absolute; 
  inset: 0;
  background: url('img/grain.gif');
  background-size: 400px;
  background-blend-mode: overlay;
  opacity: 0.13; 
  pointer-events: none; 
  z-index: 1;
}

.hero-content {
  position: relative; 
  z-index: 2; 
  text-align: center;
}

.hero-title {
  font-family: 'GT America', sans-serif;
  font-weight: 100;
  font-size: clamp(5rem, 7vw, 18rem);
  line-height: 0.8; 
  letter-spacing: -0.08em;
  color: var(--black);
}

.hero-subtitle {
  position: absolute;
  bottom: 15vh;
  right: 5vw;
  max-width: min(400px, 35vw);
  text-align: right;
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  line-height: 1.8;
  font-weight: 400;
  z-index: 2;
  color: var(--black);
}

.scroll-indicator {
  position: absolute; 
  bottom: 8rem; 
  left: 50%;
  transform: translateX(-50%);
  display: flex; 
  flex-direction: column; 
  align-items: center;
  gap: 1rem; 
  font-size: 0.7rem; 
  font-weight: 600;
  text-transform: uppercase; 
  letter-spacing: 0.2em;
  z-index: 2;
  color: var(--black);
}


@keyframes scrollDot {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; }
  50% { transform: translateX(-50%) scale(1.2); opacity: 0.7; }
}

.hero-title .word {
  display: inline-block; 
  position: relative;
  /* Caché par défaut pour éviter le flash avant l'animation */
  opacity: 0;
  transform: translateY(100px);
}

/* Overflow hidden uniquement pour les écrans larges */
@media (min-width: 769px) {
  .hero-title .word {
    overflow: hidden;
  }
}

/* Sur mobile, on montre directement sans animation */
@media (max-width: 768px) {
  .hero-title .word {
    opacity: 1;
    transform: none;
  }
}


/* ===== SECTION ABOUT STYLE ARTENA ===== */
.about-section {
  min-height: 100vh;
  background: var(--white);
  border-top: 2px solid var(--black);
  position: relative;
  z-index: 5;
}


.about-frame {
  border-right: 3px solid var(--black);
  min-height: 100vh;
  position: relative;
  border-top: 2px solid var(--black);
}

/* Section Inspirations sans bordure haute pour éviter le doublon */
#inspirations .about-frame {
  border-top: none;
}

.about-frame::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.about-frame.border-split-revealed::before {
  transform: scaleX(1);
}


.about-container {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 6rem;
  padding: 6rem 6rem;
  min-width: 0;
  min-height: 100vh;
  align-items: start;
}

.about-photo-section {
  order: 2;
}

.about-content-section {
  order: 1;
}

#inspirations .about-photo-section {
  order: 1;
  margin-top: 0;
  background: none;
  display: block;
  align-items: initial;
  justify-content: initial;
}

#inspirations .about-content-section {
  order: 2;
}

/* Section photo - à gauche */
.about-section:not(#inspirations) .about-photo-section {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8rem;
  gap: 2rem;
}

.about-main-photo {
  width: 45%;
  min-width: 300px;
  aspect-ratio: 3/4;
  background: var(--white);
  transition: all 0.4s var(--bezier-expo);
}

.about-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s var(--bezier-expo);
}

/* Section contenu - à droite */
.about-content-section {
  background: var(--white);
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Texte du haut - GROS PARAGRAPHE comme l'inspiration */
.about-top-text {
  margin-bottom: 5rem;
}

.about-intro-paragraph {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
  margin-top: 8rem;
  padding-right: 3rem;
}

/* Petites étiquettes */
.about-meta-tags {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Meta tags au-dessus de la photo */
.about-photo-section .about-meta-tags {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.meta-tag {
  font-size: 0.8rem;
  color: rgba(10, 10, 10, 0.5);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-left: 0.5rem;
}

.meta-tag.japanese-accent {
  color: rgba(10, 10, 10, 0.7);
  font-weight: 500;
}

.meta-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* Titre principal avec décorations japonaises */
.about-title-section {
  margin-top: 4rem;
  position: relative;
}

.title-decoration {
  position: absolute;
  top: -1rem;
  left: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, transparent 100%);
  opacity: 0.6;
}


/* ===== TITRES DE SECTION UNIFIÉS ===== */
.section-title-container {
  margin: 3rem 0;
  padding-left: 4rem;
}

.carousel-section .section-title-container {
  margin-top: 6rem;
}

.section-large-title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.4rem 0;
  max-width: 280px;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  padding-bottom: 1rem;
  display: block;
  white-space: normal;
  position: relative;
}

.section-large-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.section-large-title.border-revealed::after {
  transform: scaleX(1);
}

/* Animation spécifique pour "Processus Créatif" (droite vers gauche) */
.parallax-gallery-section .section-large-title::after {
  transform-origin: right;
}

.parallax-gallery-section .section-large-title.border-revealed::after {
  transform: scaleX(1);
}

.section-japanese-subtitle {
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.5);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-left: 0.2rem;
}

.about-details-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.detail-row {
  display: block;
  padding: 4rem 0;
  border-top: 2px solid transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.4s var(--bezier-expo);
}

.detail-row:first-child {
  border-top: none;
}

.detail-row[data-image]:hover {
  padding-left: 2rem;
}

.detail-row:last-child {
  border-bottom: 2px solid var(--black);
}

#inspirations .detail-row:last-child {
  border-bottom: none;
  position: relative;
}

#inspirations .detail-row:last-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -6rem;
  right: 0;
  height: 2px;
  background: var(--black);
}


.detail-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 100%;
}

.detail-meta {
  display: flex;
  gap: 4rem;
  align-items: baseline;
  margin-bottom: 0;
  position: relative;
}

.detail-number {
  font-size: 0.7rem;
  color: rgba(10, 10, 10, 0.35);
  font-family: 'Space Mono', monospace;
  font-weight: 300;
  letter-spacing: 0.1em;
  position: relative;
}

.detail-number::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 255, 234, 0.3) 0%, transparent 100%);
  transform: translateY(-50%);
}

.detail-label {
  font-size: 1.4rem;
  color: var(--black);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  transition: all 0.3s var(--bezier-expo);
}

.detail-row[data-image]:hover .detail-label {
  color: var(--primary-blue);
  transform: translateX(10px);
}

.detail-japanese {
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.4);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
  position: relative;
  margin-left: auto;
  margin-right: 2rem;
  transition: all 0.3s var(--bezier-expo);
}

.detail-japanese::before {
  content: '—';
  margin-right: 0.7rem;
  opacity: 0.2;
  font-size: 0.7rem;
}

.detail-row[data-image]:hover .detail-japanese {
  color: rgba(57, 255, 234, 0.6);
  transform: translateX(5px);
}

.detail-text {
  font-size: 1.1rem;
  color: var(--black);
  line-height: 1.8;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  margin: 0;
  max-width: 70%;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--bezier-expo);
}

.detail-row[data-image]:hover .detail-text {
  color: var(--black);
  transform: translateX(10px);
}


/* ===== SECTION PARALLAX GALLERY ===== */
.parallax-gallery-section {
  height: 350vh;
  background: var(--white);

  position: relative;
}

.parallax-frame {
  border-right: 3px solid var(--black);
  border-bottom: 2px solid var(--black);
  border-top: none;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1;
  margin-top: 2px;
}

.parallax-container {
  display: grid;
  grid-template-columns: 30% 30% 40%;
  gap: 0;
  height: 100vh;
  position: relative;
}

.parallax-column {
  position: relative;
  overflow: hidden;
}

/* Colonnes d'images - une image visible à la fois */
.left-column, .center-column {
  position: relative;
  overflow: hidden;
  background: var(--white);
  height: 100vh;
  padding: 3rem;
  box-sizing: border-box;
}

.center-column {
  background: var(--white);
}

.center-column::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 0;
  background: var(--black);
  transform-origin: top;
  transition: height 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.center-column.border-revealed::after {
  height: 100%;
}

.image-stack {
  position: absolute;
  top: 3rem;
  left: 3rem;
  width: calc(100% - 6rem);
  height: calc(300vh - 6rem);
  will-change: transform;
}

.center-column .image-stack {
  top: calc(-200vh + 3rem);
}

.image-wrapper {
  position: relative;
  margin: 0 0 1rem 0;
}

.image-stack img {
  width: 100%;
  height: calc(100vh - 6rem);
  object-fit: cover;
  border: 2px solid var(--black);
  display: block;
  margin: 0;
  box-sizing: border-box;
}


.text-column {
  padding: 0;
  display: flex;
  align-items: flex-start;
  background: var(--white);
  height: 100vh;
  box-sizing: border-box;
  position: relative;
}

.text-column .section-title-container {
  margin: 3rem 0;
  padding-left: 0;
}

.parallax-content {
  width: 100%;
  position: sticky;
  top: 120px;
  align-self: start;
  padding: 0 8rem 0 6rem;
  position: relative;
}


.section-marker {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: rgba(0, 0, 0, 0.3);
  font-family: 'Space Mono', monospace;
  z-index: 10;
}


.parallax-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.highlight-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--black);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-item {
  display: flex;
  gap: 2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.process-number {
  font-size: 0.7rem;
  color: rgba(10, 10, 10, 0.35);
  font-family: 'Space Mono', monospace;
  font-weight: 300;
  min-width: 20px;
}

.process-label {
  font-size: 1.25rem;
  color: var(--black);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.parallax-text .detail-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(10, 10, 10, 0.7);
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

/* ===== PAGE PHOTOS ===== */

/* Hero section */
.photos-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 8vw, 8rem) 2rem 2rem;
  background: var(--white);
  position: relative;
}

.photos-hero-content {
  text-align: center;
  max-width: 800px;
}

.photos-title {
  font-family: 'GT America', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 100;
  line-height: 0.85;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.photos-title .word {
  display: inline-block;
}

.photos-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 300;
  color: rgba(10, 10, 10, 0.6);
  margin-bottom: 2rem;
}

.photos-description {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--black);
  max-width: 600px;
  margin: 0 auto;
}

/* Galerie principale */
.gallery-main {
  padding: 0;
  background: var(--white);
  min-height: 100vh;
}

.gallery-flow {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-gap: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.gallery-grid-4 {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.gallery-grid-4 .photo-frame.empty {
  visibility: hidden;
}

.gallery-separator {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

/* Frames individuels */
.photo-frame {
  position: relative;
  cursor: pointer;
}

.photo-container {
  position: relative;
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: none !important;
  transform: none !important;
}

/* Pour gallery-grid-4, pas d'animation */
.gallery-grid-4 .photo-frame img {
  clip-path: none !important;
  opacity: 1 !important;
}

/* Animation seulement pour gallery-flow */
.gallery-flow .photo-frame img {
  clip-path: inset(100% 0% 0% 0%);
}

/* État initial pour animation d'entrée - seulement pour gallery-flow */
.gallery-flow .photo-frame {
  opacity: 0;
}

/* Pour gallery-grid-4, toujours visible */
.gallery-grid-4 .photo-frame {
  opacity: 1 !important;
}

/* État animé contrôlé par JS */
.photo-frame.animate-ready {
  opacity: 0;
}

.photo-container {
  position: relative;
  overflow: hidden;
}

/* Variables CSS pour l'animation */
.photo-container {
  --mask-scale: 0;
  --mask-visibility: hidden;
  --grain-opacity: 0;
}

/* Quand animation prête, masquer par défaut */
.photo-frame.animate-ready .photo-container {
  --mask-scale: 1;
  --mask-visibility: visible;
}

/* Masque de révélation cyan élégant */
.photo-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #00d4ff 100%);
  z-index: 2;
  transform: scaleX(var(--mask-scale));
  transform-origin: left;
  visibility: var(--mask-visibility);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effet de grain photographique pendant la révélation */
.photo-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, transparent 2px, rgba(255,255,255,0.15) 2px),
    radial-gradient(circle at 75% 75%, transparent 1px, rgba(0,0,0,0.08) 1px),
    radial-gradient(circle at 50% 50%, transparent 0.5px, rgba(57, 255, 234, 0.03) 0.5px);
  background-size: 15px 15px, 20px 20px, 8px 8px;
  z-index: 3;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  animation: grainFloat 8s ease-in-out infinite;
}

/* Disposition asymétrique créative */
.photo-frame[data-index="1"] {
  grid-column: 1 / span 8;
}

.photo-frame[data-index="2"] {
  grid-column: 10 / span 6;
  margin-top: -2rem;
}

.photo-frame[data-index="3"] {
  grid-column: 17 / span 7;
  margin-top: -4rem;
}

.photo-frame[data-index="4"] {
  grid-column: 1 / span 9;
  margin-top: 3rem;
}

.photo-frame[data-index="5"] {
  grid-column: 11 / span 5;
  margin-top: 1rem;
}

.photo-frame[data-index="6"] {
  grid-column: 17 / span 6;
  margin-top: -1rem;
}

.photo-frame[data-index="7"] {
  grid-column: 2 / span 7;
  margin-top: 4rem;
}

.photo-frame[data-index="8"] {
  grid-column: 10 / span 8;
  margin-top: 2rem;
}

.photo-frame[data-index="9"] {
  grid-column: 19 / span 5;
  margin-top: -3rem;
}

.photo-frame[data-index="10"] {
  grid-column: 6 / span 7;
  margin-top: 5rem;
}

/* Caption élégante */
.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 3rem 2rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--bezier-expo);
}

.photo-title {
  display: block;
  font-family: 'GT America', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.photo-location {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
}

.photo-tech {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
}

/* Hover effects */
.photo-frame:hover .photo-caption {
  transform: translateY(0);
}



/* CTA Section */

.photos-cta-btn:hover .arrow {
  transform: translateX(5px);
}

/* État actif pour la navigation */
.nav-links a.active {
  color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 1280px) and (min-width: 1201px) {
  .gallery-flow {
    grid-template-columns: repeat(15, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  
  .photo-frame[data-index="1"] { grid-column: 1 / span 5; }
  .photo-frame[data-index="2"] { grid-column: 6 / span 5; margin-top: -1rem; }
  .photo-frame[data-index="3"] { grid-column: 11 / span 5; margin-top: -2rem; }
  .photo-frame[data-index="4"] { grid-column: 1 / span 5; margin-top: 2rem; }
  .photo-frame[data-index="5"] { grid-column: 6 / span 5; margin-top: 0.5rem; }
  .photo-frame[data-index="6"] { grid-column: 11 / span 5; margin-top: -0.5rem; }
  .photo-frame[data-index="7"] { grid-column: 1 / span 5; margin-top: 3rem; }
  .photo-frame[data-index="8"] { grid-column: 6 / span 5; margin-top: 1.5rem; }
  .photo-frame[data-index="9"] { grid-column: 11 / span 5; margin-top: -2rem; }
  .photo-frame[data-index="10"] { grid-column: 1 / span 5; margin-top: 4rem; }
}

@media (max-width: 1200px) {
  .gallery-flow {
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  
  .photo-frame[data-index="1"] { grid-column: 1 / span 4; }
  .photo-frame[data-index="2"] { grid-column: 5 / span 4; margin-top: -1rem; }
  .photo-frame[data-index="3"] { grid-column: 9 / span 4; margin-top: -2rem; }
  .photo-frame[data-index="4"] { grid-column: 1 / span 4; margin-top: 2rem; }
  .photo-frame[data-index="5"] { grid-column: 5 / span 4; margin-top: 0.5rem; }
  .photo-frame[data-index="6"] { grid-column: 9 / span 4; margin-top: -0.5rem; }
  .photo-frame[data-index="7"] { grid-column: 1 / span 4; margin-top: 3rem; }
  .photo-frame[data-index="8"] { grid-column: 5 / span 4; margin-top: 1.5rem; }
  .photo-frame[data-index="9"] { grid-column: 9 / span 4; margin-top: -2rem; }
  .photo-frame[data-index="10"] { grid-column: 1 / span 4; margin-top: 4rem; }
}

@media (max-width: 768px) {
  .gallery-flow {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 3rem 1.5rem;
  }

  .gallery-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 3rem 1.5rem;
  }
  
  .photo-frame[data-index="1"] { grid-column: 1 / span 6; margin-top: 0; }
  .photo-frame[data-index="2"] { grid-column: 1 / span 3; margin-top: 0; }
  .photo-frame[data-index="3"] { grid-column: 4 / span 3; margin-top: 0; }
  .photo-frame[data-index="4"] { grid-column: 1 / span 6; margin-top: 0; }
  .photo-frame[data-index="5"] { grid-column: 1 / span 3; margin-top: 0; }
  .photo-frame[data-index="6"] { grid-column: 4 / span 3; margin-top: 0; }
  .photo-frame[data-index="7"] { grid-column: 1 / span 6; margin-top: 0; }
  .photo-frame[data-index="8"] { grid-column: 1 / span 3; margin-top: 0; }
  .photo-frame[data-index="9"] { grid-column: 4 / span 3; margin-top: 0; }
  .photo-frame[data-index="10"] { grid-column: 1 / span 6; margin-top: 0; }
  
  .photo-caption {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .photo-title {
    font-size: 1rem;
  }
  
  .photo-location {
    font-size: 0.85rem;
  }
}

/* ===== SECTION CONTACT ===== */
.contact-section {
  min-height: 100vh;
  background: var(--primary-blue);
  border-top: 2px solid var(--black);
  position: relative;
}

.contact-frame {
  border-right: 3px solid var(--black);
  border-bottom: 2px solid var(--black);
  border-top: 2px solid var(--black);
  min-height: 100vh;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  padding: 8rem 8rem;
  min-height: 100vh;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-heading {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.4);
  font-family: 'Space Mono', monospace;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.contact-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 1rem 0;
}

.contact-subtitle {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.4);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 200;
  letter-spacing: 0.15em;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--black);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-label {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 1rem;
  color: var(--black);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.carousel-section {
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.carousel-frame {
  border-right: 3px solid var(--black);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.carousel-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28%;
  width: 2px;
  height: 100%;
  background: var(--black);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-frame.border-revealed::before {
  transform: scaleY(1);
}

.carousel-frame::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--black);
  transform: translateX(-50%);
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.carousel-frame.border-split-revealed::after {
  width: 100%;
}

/* ===== NOUVEAU CAROUSEL FLICKITY ===== */
.portfolio-container {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 5rem;
  padding: 7rem 8rem;
}

.portfolio-left-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.portfolio-left-column .section-title-container {
  padding-left: 0;
  margin: 0 0 2rem 0;
}

.portfolio-left-column .section-large-title {
  max-width: 280px;
  width: fit-content;
}

.portfolio-left-column .section-large-title::after {
  width: 100%;
}

.portfolio-right-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.portfolio-intro-text {
  /* Style pour le texte d'introduction dans la colonne droite */
}

.portfolio-intro-text .about-intro-paragraph {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--black);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-left: 0;
}

.carousel {
  width: 100%;
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  padding: 2rem 0;
}

.carousel-cell {
  width: 500px;
  height: 600px;
  margin-right: 30px;
}

.carousel-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Position relative pour les carousel-cell */
.carousel-cell {
  position: relative;
}

/* Effet glitch + grain sur les cellules non-actives du carrousel */
.carousel-cell:not(.is-selected) {
  position: relative;
}

.carousel-cell:not(.is-selected)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/grain.gif');
  background-size: 400px;
  background-blend-mode: overlay;
  opacity: 0.15;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.carousel-cell:not(.is-selected) img {
  filter: blur(0.5px) contrast(1.1) saturate(0.8) brightness(0.9) hue-rotate(270deg);
  transform: scaleX(1.01) translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.carousel-cell:not(.is-selected) img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 0, 150, 0.3) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(150, 0, 255, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Masquer les points et flèches Flickity */
.flickity-page-dots {
  display: none !important;
}

.flickity-button {
  display: none !important;
}

/* ===== RESPONSIVE CAROUSEL ===== */

/* Tablette (1440px) */
@media (max-width: 1440px) {
  .portfolio-container {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
    gap: 3rem;
  }
  
  .portfolio-left-column {
    order: 1;
  }
  
  .portfolio-right-column {
    order: 2;
  }
  
  /* Transformer la bordure verticale en horizontale */
  .carousel-frame::before {
    display: none;
  }
  
  /* Créer une nouvelle bordure entre les deux colonnes */
  .portfolio-left-column::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--black);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .carousel-frame.border-revealed .portfolio-left-column::after {
    transform: scaleX(1);
  }
  
  .portfolio-left-column {
    position: relative;
    padding-bottom: 1.5rem;
  }
  
  .caption {
    margin-bottom: 2rem;
    position: static;
  }
  
  .portfolio-intro-text .about-intro-paragraph {
    font-size: 1.3rem;
    padding-left: 0;
  }
  
  .carousel-cell {
    width: 400px;
    height: 500px;
  }

}

/* Mobile (768px) */
@media (max-width: 768px) {
  .portfolio-container {
    padding: 2rem 1rem;
    gap: 2rem;
  }
  
  .portfolio-intro-text .about-intro-paragraph {
    font-size: 1.1rem;
    line-height: 1.5;
    padding-left: 0;
  }
  
  .carousel {
    padding: 1rem 0;
    position: relative;
    height: 70vh;
  }
  
  .carousel.flickity-enabled {
    overflow: visible !important;
  }
  
  .carousel.flickity-enabled .flickity-viewport {
    overflow: visible !important;
    height: 100%;
  }
  
  .carousel-cell {
    width: 85%;
    height: 100%;
    margin-right: 10px;
    position: relative;
  }
  
  .carousel-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover au lieu de contain pour remplir le cadre */
    transition: all 0.3s ease;
  }
  
  /* Image principale au centre - PLEINE TAILLE */
  .carousel-cell.is-selected {
    z-index: 10;
  }
  
  .carousel-cell.is-selected img {
    opacity: 1;
  }
  
  /* Images sur les côtés - en arrière-plan */
  .carousel-cell:not(.is-selected) {
    z-index: 1;
  }
  
  .carousel-cell:not(.is-selected) img {
    opacity: 0.3;
    filter: brightness(0.6) blur(0.5px);
  }

  
  .caption__num {
    font-size: 4rem;
  }
}





.caption {
  position: sticky;
  top: 120px;
  align-self: start;
}

.caption__num {
  font-size: 11rem;
  font-weight: 900;
  line-height: 0.8;
  border-bottom: 2px solid var(--black);
  margin-bottom: 1rem;
  transition: all 0.6s var(--bezier-expo);
  opacity: 1;
  display: block;
  max-width: 280px;
}

.caption__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.4rem 0;
  max-width: 260px;
  transition: all 0.6s var(--bezier-expo);
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.caption__tag {
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  margin-bottom: 1.6rem;
  max-width: 220px;
  transition: all 0.6s var(--bezier-expo);
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.caption__view {
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 3px;
  transition: all 0.3s var(--bezier-expo);
  display: inline-block;
  color: var(--black);
  opacity: 1;
}

.caption__view:hover {
  transform: translateX(5px);
  border-bottom-color: var(--black);
}















/* ===== EFFET VHS/GLITCH SIMPLE ===== */
.about-main-photo.glitch img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(270deg);
  transform: scaleX(1.01) translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.project-main-photo.glitch img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(315deg);
  transform: scaleX(1.01) translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.parallax-column .image-wrapper img.glitch {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(270deg);
  transition: all 0.3s ease;
  position: relative;
}

.about-main-photo.glitch img::after,
.project-main-photo.glitch img::after,
.parallax-column .image-wrapper img.glitch::after,
.thumbnail.glitch img::after,
.main-image-container.glitch img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 0, 150, 0.3) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(150, 0, 255, 0.3) 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: simple-glitch 0.5s infinite linear;
}

@keyframes simple-glitch {
  0% { transform: translateX(-1px); opacity: 0.6; }
  50% { transform: translateX(1px); opacity: 0.8; }
  100% { transform: translateX(-1px); opacity: 0.6; }
}



/* ===== EFFET DE RÉVÉLATION DE TEXTE ===== */
.text-reveal {
  color: #999;
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.revealed {
  color: var(--black);
}

.hero-subtitle {
  color: var(--black);
}

.about-intro-paragraph {
  color: #999;
  transition: color 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-intro-paragraph.revealed {
  color: var(--black);
}

/* ===== ANIMATION COULISSEMENT BAS→HAUT POUR LES IMAGES ===== */

/* Conteneurs d'images avec overflow caché */
.about-main-photo {
  overflow: hidden;
  position: relative;
}


/* Images qui coulissent de bas en haut */
.about-main-photo img {
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* État révélé */
.about-main-photo.image-revealed img {
  transform: translateY(0);
}

/* ===== EFFET GIF GRAIN AU HOVER SUR LES IMAGES ===== */
.about-main-photo,
.project-main-photo,
.parallax-column .image-wrapper {
  position: relative;
}

.about-main-photo::before,
.project-main-photo::before,
.thumbnail::before,
.main-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/grain.gif');
  background-size: 400px;
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

/* Appliquer le grain sur chaque image-wrapper individuel */
.parallax-column .image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/grain.gif');
  background-size: 400px;
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.about-main-photo:hover::before,
.parallax-column .image-wrapper:hover::before {
  opacity: 0.3;
}

.project-main-photo:hover::before,
.thumbnail.glitch::before,
.main-image-container.glitch::before {
  opacity: 0.15;
}



/* ===== SECTION INSPIRATIONS - MOODBOARD STYLE ===== */
.inspirations-moodboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 40vh 30vh 20vh;
  gap: 2rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 80vh;
}

.mood-item {
  grid-row: var(--row);
  grid-column: var(--col);
  grid-row-end: span var(--span-row, 1);
  grid-column-end: span var(--span-col, 1);
  overflow: hidden;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--bezier-expo);
}


.mood-item.large {
  /* Utilise grid-row: 1 / 3 pour occuper 2 rows */
}

.mood-item.medium {
  /* Row 1, col 2 */
}

.mood-item.small {
  /* Row 2, col 2 */
}

.mood-item.wide {
  /* Row 3, col 1/3 pour occuper 2 cols */
}

.mood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s var(--bezier-expo);
}

.mood-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/grain.gif');
  background-size: 300px;
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.mood-item:hover::before {
  opacity: 0.3;
}

.mood-item:hover img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(270deg);
  transform: scaleX(1.01) translateX(-1px);
  transition: all 0.3s ease;
}




/* Responsive */
@media (max-width: 1024px) {
  #inspirations .about-container {
    flex-direction: column;
  }
  
  #inspirations .about-photo-section {
    order: 2;
  }
  
  #inspirations .about-content-section {
    order: 1;
  }
  
  .inspirations-moodboard {
    grid-template-rows: 30vh 25vh 15vh;
    min-height: 60vh;
  }
}

@media (max-width: 768px) {
  .inspirations-moodboard {
    grid-template-columns: 1fr;
    grid-template-rows: 40vh 35vh 30vh 25vh;
    min-height: auto;
    gap: 1.5rem;
  }
  
  .mood-item {
    grid-column: 1 !important;
    grid-row: auto !important;
    grid-column-end: auto !important;
    grid-row-end: auto !important;
  }
}

/* ===== SCÉNARIO SCROLL : REVEAL PROGRESSIF DES BORDURES EXISTANTES ===== */


/* 3. Detail rows - révélation des vraies bordures top existantes */
.detail-row {
  position: relative;
}

.detail-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.detail-row.border-revealed::before {
  transform: scaleX(1);
}

/* Inspirations : bordures du centre vers la gauche */
#inspirations .detail-row::before {
  left: -6rem;
  right: 0;
  transform-origin: right;
}



/* ===== LIGNE DIRECTRICE PRINCIPALE ===== */

/* SCÉNARIO SCROLL : Trait principal About qui commence sous Explorer */
.about-scroll-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--black);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  z-index: 5;
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Garder le pseudo-élément original caché */
.about-container::after {
  content: '';
  position: absolute;
  left: calc(50% + 2.1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.about-container.border-revealed::after {
  transform: translateX(-50%) scaleY(1);
}





/* ===== ANIMATIONS ===== */
.caption.updating .caption__title {
  transform: translateY(-10px);
  opacity: 0.7;
}

.caption.updating .caption__tag {
  transform: translateY(-10px);
  opacity: 0.7;
}

.caption.updating .caption__num {
  transform: scale(0.95);
}

/* ===== KEYFRAMES ===== */
@keyframes grainFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(10px, -10px); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* ===== MEDIA QUERIES RESPONSIVE ===== */

/* En dessous de 1580px : réduire la taille des titres */
@media (max-width: 1580px) {
  .section-large-title {
    font-size: 2.5rem;
  }
}

/* Solution responsive automatique pour éviter le débordement */
@media (min-width: 1441px) {
  .portfolio-left-column .section-large-title {
    font-size: clamp(1.8rem, 1.8vw, 3rem);
    max-width: clamp(180px, 20vw, 280px);
  }
}

/* En dessous de 1441px : enlever le trait central about-scroll-line */
@media (max-width: 1441px) {
  .about-scroll-line {
    display: none;
  }
}

@keyframes morphBorder {
  0%, 100% { border-radius: 0; }
  50% { border-radius: 8px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1440px) {
  .caption__num {
    font-size: 7rem;
  }
  .about-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .about-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 4rem;
    padding: 4rem 2rem;
  }
  .about-photo-section {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .about-main-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 3/4;
    margin: 0 auto;
  }
  .about-large-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    white-space: normal;
  }
  .detail-row {
    flex-direction: column;
    gap: 2rem;
  }
  .about-intro-paragraph {
    font-size: 1.2rem;
  }
  
  /* Mobile : 1 seule colonne (texte puis toutes les images) */
  .parallax-gallery-section {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: relative !important;
  }
  
  .parallax-frame {
    height: auto !important;
    position: relative !important;
    top: auto !important;
  }
  
  .parallax-container {
    grid-template-columns: 1fr;
    height: auto;
    gap: 0;
    padding: 0;
  }
  
  /* Texte en premier */
  .text-column {
    order: 1;
    height: auto !important;
    min-height: auto !important;
    padding: 4rem 2rem;
    background: var(--white);
    overflow: visible !important;
  }
  
  /* Images après le texte */
  .parallax-column.left-column {
    order: 2;
    height: auto !important;
    overflow: visible !important;
    padding: 2rem;
    background: var(--white);
    display: block !important;
    position: relative !important;
  }
  
  .parallax-column.center-column {
    display: none !important;
  }
  
  /* Images alignées horizontalement */
  .left-column .image-stack {
    position: static !important;
    height: auto !important;
    width: 100% !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  
  .left-column .image-wrapper {
    margin-bottom: 0 !important;
    display: block !important;
    flex: 0 0 auto !important;
  }
  
  .left-column .image-stack img {
    height: 400px !important;
    width: 320px !important;
    display: block !important;
    object-fit: cover !important;
    margin: 0 !important;
  }
  
  /* S'assurer que les sections suivantes se positionnent correctement */
  .about-section {
    position: relative !important;
  }
  
  #inspirations {
    margin-top: 0 !important;
  }
  
  .parallax-content {
    position: static;
    padding: 0;
  }
  
  .section-marker {
    font-size: 4rem;
  }
  
  .section-large-title {
    font-size: 1.8rem;
    max-width: none;
  }
  
  /* Afficher tous les process items sur mobile */
  .process-list {
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
  }
  
  .process-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Contact responsive */
  .contact-container {
    grid-template-columns: 1fr;
    padding: 4rem 2rem;
  }
  .about-divider {
    height: 1px;
    width: 100%;
  }
}

/* ===== MOBILE SPÉCIFIQUE (très petits écrans) ===== */
@media (max-width: 768px) {
  /* FIX UNIVERSAL MOBILE: barre grise + font-weight */
  .hero-title {
    line-height: 1.2 !important; /* Évite le chevauchement qui crée la barre grise */
    font-weight: 700 !important; /* Force le gras sur tous les mobiles pour cohérence */
    letter-spacing: -0.04em !important; /* Réduire l'espacement pour éviter débordements */
    text-align: center !important; /* Centrer parfaitement */
    overflow: hidden !important; /* Empêcher tout débordement */
    width: 100% !important; /* Forcer la largeur complète */
  }
  
  /* FIX DÉFINITIF BARRE GRISE: Supprimer TOUTES les bordures verticales sur mobile */
  .menu-overlay,
  .about-frame,
  .carousel-frame,
  .parallax-frame,
  .contact-frame,
  .project-frame,
  .gallery-frame,
  .gallery-left-section {
    border-left: none !important;
    border-right: none !important;
  }
  
  /* Cacher complètement le menu-overlay qui a une bordure gauche */
  .menu-overlay:not(.open) {
    display: none !important;
  }
  
  /* Quand le menu est ouvert, on le montre */
  .menu-overlay.open {
    display: block !important;
  }
  
  /* Fix pour la barre grise sur mobile - désactiver overflow:hidden et autres propriétés */
  .hero-title .word {
    overflow: visible !important;
    transform: none !important;
    position: static !important;
  }
  
  /* Supprimer tout pseudo-élément potentiel sur le hero title */
  .hero-title .word::before,
  .hero-title .word::after {
    display: none !important;
  }
  
  /* S'assurer que le hero-title n'a pas d'éléments cachés */
  .hero-title {
    position: relative;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* Supprimer tout pseudo-élément du hero-title */
  .hero-title::before,
  .hero-title::after {
    display: none !important;
  }
  
  /* Garder le grain mais éviter les débordements */
  .hero-section::before {
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Forcer un background propre sur la section hero */
  .hero-section {
    background: var(--primary-blue) !important;
    position: relative;
  }
  
  /* S'assurer qu'aucun élément ne dépasse ou n'apparaît à gauche du titre */
  .hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Corriger la superposition du texte hero */
  .hero-subtitle {
    position: static;
    margin: 2rem auto;
    max-width: 90%;
    text-align: center;
    bottom: auto;
    right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .scroll-indicator {
    position: static;
    margin: 2rem auto 4rem;
    transform: none;
    left: auto;
    bottom: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .hero-section {
    padding: 4rem 1rem;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .hero-content {
    order: 1;
    margin-bottom: 2rem;
    margin-top: 4rem;
  }
  
  .hero-subtitle {
    order: 2;
    margin-bottom: 2rem;
  }
  
  .scroll-indicator {
    order: 3;
  }
  
  .carousel-section .section-marker {
    top: 1rem;
    font-size: 2.5rem;
  }
  
  .parallax-gallery-section .section-marker {
    top: 1rem;
    font-size: 2.5rem;
  }
  
  .carousel-section .section-title-container {
    margin-top: 6rem;
    margin-bottom: 3rem;
  }
  
  .parallax-gallery-section .section-title-container {
    margin-top: 4rem;
    margin-bottom: 3rem;
  }
  
  .caption {
    margin-top: -3rem;
    padding-bottom: 16vh;
  }
  
  
  
  
  
  
  /* Corriger débordement horizontal */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-content, .about-container, .parallax-container, .carousel-frame, .about-frame {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* S'assurer qu'aucun élément ne dépasse */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Corrections spécifiques page projet */
  .project-hero-container,
  .project-container,
  .gallery-container,
  .project-frame,
  .gallery-frame {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Éléments potentiellement problématiques */
  .project-hero-image,
  .project-main-photo,
  .main-image-container,
  .gallery-thumbnails {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Curseur désactivé sur mobile */
  .cursor {
    display: none;
  }
  
  body {
    cursor: auto;
  }
  
  
  /* Titres de section plus petits */
  .section-large-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
  }
  
  /* Menu mobile : hamburger toujours visible */
  .navbar {
    display: none;
  }
  
  .hamburger-menu {
    display: flex !important;
  }
}

/* ===== PAGE PROJET ===== */
.project-hero {
  min-height: 100vh;
  padding: 8rem 0 4rem;
  background: var(--white);
  position: relative;
}

.project-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
  margin-bottom: 8rem;
}

/* Côté gauche - Titre */
.project-hero-left {
  position: relative;
  padding-top: 2rem;
  padding-right: 4rem;
}


.project-category {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  color: var(--black);
  opacity: 0.7;
}

.project-title {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4rem;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  position: relative;
  padding-bottom: 1.5rem;
  max-width: none;
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 2px;
  background: var(--black);
}


.japanese-elements {
  position: absolute;
  top: 50%;
  right: -2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.japanese-elements .japanese-mark {
  font-size: 1.5rem;
  color: var(--black);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.japanese-elements .vertical-line {
  width: 2px;
  height: 4rem;
  background: var(--black);
}

/* Côté droit - Présentation */
.project-hero-right {
  position: relative;
}

.project-frame {
  position: relative;
  padding: 3rem;
  border: 2px solid var(--black);
  background: var(--white);
}


.project-hero-right {
  position: relative;
}


.project-subtitle {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--black);
  font-family: 'Inter', sans-serif;
}

.project-description-preview {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 3rem;
  opacity: 0.85;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.project-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
}

.project-details-grid .detail-item:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-family: 'Space Mono', monospace;
  color: var(--black);
  opacity: 0.6;
  font-weight: 400;
}

.detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  font-family: 'Inter', sans-serif;
}


/* Image hero */
.project-hero-image {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.project-main-photo {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  border: 2px solid var(--black);
}

.project-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-main-photo.image-revealed img {
  transform: translateY(0);
}

.image-meta {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.meta-tag {
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.1rem;
}


/* Section contenu projet */
.project-content-section {
  background: var(--white);
  position: relative;
}

.project-frame {
  border-right: 3px solid var(--black);
  min-height: 42vh;
  overflow: hidden;
  position: relative;
}

.project-frame::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--black);
  transform: translateX(-50%);
  transform-origin: center;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.project-frame.border-split-revealed::before {
  width: 100%;
}

.project-container {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 6rem;
  padding: 6rem 6rem;
  min-width: 0;
  min-height: 42vh;
  align-items: start;
}

/* Titre à gauche */
.project-title-section {
  position: relative;
}


/* Texte à droite */
.project-text-section {
  position: relative;
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.description-text p {
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.description-text p:last-child {
  margin-bottom: 0;
}

/* Section galerie avec colonnes */
.project-gallery-section {
  background: var(--white);
  position: relative;
}

.gallery-frame {
  border-right: 3px solid var(--black);
  overflow: hidden;
  position: relative;
}

.gallery-container {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
  align-items: start;
}

/* Colonne gauche - Texte et miniatures */
.gallery-left-section {
  padding: 6rem 4rem 2rem 6rem;
  border-right: 3px solid var(--black);
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Zone scrollable des images */
.gallery-scrollable-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Masquer la barre de scroll */
.gallery-scrollable-area::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gallery-scrollable-area::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-scrollable-area::-webkit-scrollbar-thumb {
  background: transparent;
}

/* Pour Firefox */
.gallery-scrollable-area {
  scrollbar-width: none;
}

/* Flèches de navigation */
.gallery-navigation {
  position: absolute;
  right: 0.8em;
  bottom: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 20;
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--bezier-expo);
  font-size: 1rem;
  color: var(--black);
}

.nav-arrow:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.gallery-intro {
  margin-bottom: 4rem;
}


.gallery-intro .section-large-title {
  margin-bottom: 2rem;
}

.gallery-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  opacity: 0.8;
  font-family: 'Inter', sans-serif;
}

/* Grille de miniatures 3 colonnes */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
}

.thumbnail.active {
  border-color: var(--primary-blue);
}

.thumbnail.glitch img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(270deg);
  transform: translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.main-image-container.glitch img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(315deg);
  transform: translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.thumbnail img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}


/* Colonne droite - Image principale */
.gallery-right-section {
  padding: 12rem 6rem 6rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
}

.gallery-content-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.image-with-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}


/* Masquer l'image-info sur desktop */
.image-info {
  display: none;
}

/* Afficher l'image-info seulement sur mobile */
@media (max-width: 768px) {
  .image-info {
    display: block;
  }
}

.vision-section {
  flex: 0 0 400px;
  padding-top: 15rem;
}

.vision-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--black);
}

.vision-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--black);
}

.image-title-section {
  flex: 0 0 auto;
  padding: 0 0 1.5rem 0;
  text-align: center;
}

.image-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  margin: 0;
  position: relative;
  display: inline-block;
}

.image-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-blue);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
  .vision-section {
    flex: none;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
    order: 1;
  }
  
  .image-title-section {
    padding: 0 0 1rem 0;
  }
  
  .image-title {
    font-size: 1.4rem;
  }
  
  .gallery-content-layout {
    flex-direction: column;
  }
}

.image-specs {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  color: var(--black);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.spec-value {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--black);
}

/* Responsive pour les specs */
@media (max-width: 768px) {
  .image-specs {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .spec-item {
    min-width: 100px;
  }
  
  .spec-label {
    font-size: 0.65rem;
  }
  
  .spec-value {
    font-size: 0.8rem;
  }
}

.main-image-container {
  position: relative;
  width: 70%;
  min-width: 400px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 2px solid var(--black);
}

/* Responsive pour écrans moyens */
@media (max-width: 1600px) {
  .main-image-container {
    width: 80%;
    min-width: 350px;
  }
}

@media (max-width: 1466px) {
  .main-image-container {
    width: 90%;
    min-width: 300px;
  }
  
  .gallery-content-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .vision-section {
    flex: none;
    width: 100%;
    padding-top: 0;
    order: 2;
  }
  
  .image-with-specs {
    order: 1;
  }
}


.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-thumbnails {
  display: none;
}

/* Assurer que mobile-thumbnails est visible sur mobile */
@media (max-width: 768px) {
  .mobile-thumbnails {
    display: block !important;
  }
}


/* Responsive pour la galerie */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    display: grid;
  }
  
  .gallery-left-section {
    display: flex;
    flex-direction: column;
    order: 4;
    padding: 0;
  }
  
  .gallery-intro {
    display: none;
  }
  
  .mobile-gallery-intro {
    display: block !important;
    padding: 6rem 0 2rem;
  }
  
  .mobile-gallery-intro .section-large-title {
    border-bottom: 2px solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .gallery-right-section {
    order: 2;
    padding: 0rem 2rem;
  }
  
  .gallery-scrollable-area::-webkit-scrollbar {
    display: none;
  }
  
  .gallery-scrollable-area {
    scrollbar-width: none;
    max-width: 100%;
    overflow-y: hidden;
  }
  
  /* Masquer la galerie desktop sur mobile */
  .gallery-left-section .gallery-thumbnails {
    display: none;
  }
  
  /* Afficher seulement la galerie mobile horizontale */
  .mobile-thumbnails {
    display: block !important;
  }
  
  /* Styles des thumbnails pour Flickity */
  .mobile-thumbnails .thumbnail {
    /* Largeur basée sur la largeur de la fenêtre pour une meilleure prédiction */
    width: 80vw; /* Ajustez ce pourcentage selon le nombre d'images souhaitées */
    margin: 0 0.5rem;
    flex-shrink: 0; /* Empêche les cellules de se rétrécir */
    /* S'assurer que l'image à l'intérieur remplit la cellule */
    height: auto;
  }

  .mobile-thumbnails .thumbnail img {
    width: 100%;
    height: auto; /* ou height: 100% si vous voulez un remplissage spécifique */
    display: block;
    aspect-ratio: 4/5; /* Pour maintenir le ratio d'aspect */
  }

  /* Flickity container */
  .mobile-thumbnails.flickity-enabled {
    overflow: hidden; /* Pour cacher les cellules non sélectionnées */
    touch-action: pan-x pinch-zoom;
    display: flex; /* Utiliser flexbox */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .mobile-thumbnails.flickity-enabled .flickity-viewport {
    overflow: visible; /* Pour voir les images partielles */
    flex: 1;
    /* Prevent momentum scrolling conflicts */
    -webkit-overflow-scrolling: auto;
  }

  .mobile-thumbnails.flickity-enabled .flickity-slider {
    display: flex;
    align-items: center;
    touch-action: pan-x pinch-zoom;
  }
  
  /* Prevent any momentum scrolling on the carousel */
  .mobile-thumbnails.flickity-enabled[data-lenis-prevent] {
    -webkit-overflow-scrolling: touch;
  }
  
  .gallery-left-section #navUp {
    transform: rotate(-90deg);
  }
  
  .gallery-left-section #navDown {
    transform: rotate(-90deg) scaleX(-1);
  }
  
  .image-info {
    padding-top: 2rem;
  }
  
  .image-with-specs {
    flex-direction: column;
    gap: 2rem;
  }
  
  /* New Mobile Carousel Double Layer Styles */
  .mobile-carousel-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }
  
  .carousel-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .carousel-interaction-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
  }
  
  .carousel-interaction-layer:active {
    cursor: grabbing;
  }
  
  .carousel-current-image {
    width: 85%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    max-height: 100%;
  }
  
  .carousel-prev-image,
  .carousel-next-image {
    position: absolute;
    top: 50%;
    width: 70%;
    height: auto;
    object-fit: contain;
    opacity: 0.3;
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: brightness(0.6) blur(0.5px);
    max-height: 75%;
    transform: translateY(-50%);
  }
  
  .carousel-prev-image {
    left: -45%;
    transform: translateY(-50%) scale(0.75);
  }
  
  .carousel-next-image {
    right: -45%;
    transform: translateY(-50%) scale(0.75);
  }
  
  
  
  .main-image-container {
    order: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .image-specs {
    order: 2;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 1rem;
  }
  
  .spec-item {
    text-align: center;
  }
  
  .gallery-left-section .gallery-navigation {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    order: 1;
  }
  
  .gallery-scrollable-area {
    order: 2;
  }
  
  .gallery-left-section #navUp {
    transform: rotate(-90deg);
  }
  
  .gallery-left-section #navDown {
    transform: rotate(-90deg) scaleX(-1);
  }
  
  .gallery-left-section {
    position: relative;
  }
  
  
}


/* Infos image */
.image-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

/* Masquer mobile-gallery-intro sur desktop */
.mobile-gallery-intro {
  display: none;
}

.image-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}

.image-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  opacity: 0.8;
  font-family: 'Inter', sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .project-hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 2rem;
  }
  
  .japanese-elements {
    position: static;
    flex-direction: row;
    justify-content: center;
    transform: none;
    margin-top: 2rem;
  }
  
  .japanese-elements .japanese-mark {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
  
  .japanese-elements .vertical-line {
    width: 4rem;
    height: 2px;
  }
  
  .project-frame {
    padding: 2rem;
  }
  
  .project-details-grid {
    grid-template-columns: 1fr;
  }
  
  .project-hero-image {
    padding: 0 2rem;
  }
  
  .image-container {
    height: 40vh;
  }
  
  .project-container {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
  }
  
}

/* ===== PROJECTS LIST PAGE ===== */
.projects-header {
  padding: 120px 4rem 80px 4rem;
  background: var(--white);
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  max-width: 1600px;
  margin: 0 auto;
}

.projects-header-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.projects-filter {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.filter-label {
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  color: var(--black);
  opacity: 0.6;
  letter-spacing: 0.1rem;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  color: var(--black);
  opacity: 0.6;
  cursor: none;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s var(--bezier-expo);
}

.filter-btn.active,
.filter-btn:hover {
  opacity: 1;
}

.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--black);
}

.projects-list {
  padding: 0;
  background: var(--white);
}

.projects-list-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 4rem);
}

.project-item {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 3vw, 4rem);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  cursor: none;
  transition: all 0.3s var(--bezier-expo);
}



.project-item:last-child {
  border-bottom: none;
}


.project-title-date {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 0 0 clamp(160px, 15vw, 220px);
  order: 2;
}

.project-link {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--black);
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 3px;
  transition: all 0.3s var(--bezier-expo);
  align-self: flex-start;
  margin: 0.5rem 0;
  display: inline-block;
  white-space: nowrap;
}

.project-link:hover {
  transform: translateX(5px);
  border-bottom-color: var(--black);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}

.project-date {
  font-size: 0.85rem;
  color: var(--black);
  opacity: 0.6;
  font-family: 'Space Mono', monospace;
}

.project-description {
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  line-height: 1.6;
  color: var(--black);
  opacity: 0.8;
  font-family: 'Inter', sans-serif;
  flex: 1;
  order: 3;
  padding-right: 2rem;
}

.project-category {
  flex: 0 0 auto;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.7;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 1rem 0;
  border-left: 1px solid rgba(10, 10, 10, 0.1);
  padding-left: 1rem;
  order: 4;
}

.category-label {
  font-size: 0.85rem;
  color: var(--black);
  opacity: 0.6;
  font-family: 'Inter', sans-serif;
}

.category-tags {
  font-size: 0.85rem;
  color: var(--black);
  opacity: 0.8;
  font-family: 'Space Mono', monospace;
  line-height: 1.5;
}

.project-thumbnail {
  flex: 0 0 clamp(350px, 30vw, 500px);
  height: clamp(200px, 18vw, 280px);
  background: var(--gray-light);
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  cursor: none;
  order: 1;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumbnail.glitch img {
  filter: blur(0.8px) contrast(1.3) saturate(1.5) brightness(0.85) hue-rotate(270deg);
  transform: translateX(-1px);
  transition: all 0.3s ease;
  position: relative;
}

.project-thumbnail.glitch img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 0, 150, 0.3) 0%, 
    transparent 25%, 
    transparent 75%, 
    rgba(150, 0, 255, 0.3) 100%);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: simple-glitch 0.5s infinite linear;
}

.project-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/grain.gif');
  background-size: 400px;
  background-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.project-thumbnail.glitch::before {
  opacity: 0.15;
}

/* Responsive Projects List - Ajustements fins */
@media (max-width: 1200px) and (min-width: 1025px) {
  .project-thumbnail {
    flex: 0 0 320px;
    height: 200px;
  }
  
  .project-title-date {
    flex: 0 0 160px;
  }
  
  .project-description {
    font-size: 0.95rem;
  }
  
  .category-tags {
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .project-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }
  
  .project-thumbnail {
    order: -1;
    width: 100%;
    flex: unset;
    height: 200px;
  }
  
  .project-title-date {
    flex: unset;
    order: unset;
  }
  
  .project-description {
    flex: unset;
    order: unset;
    padding-right: 0;
  }
  
  .project-category {
    writing-mode: unset;
    border-left: none;
    padding-left: 0;
    flex: unset;
    order: unset;
    align-self: unset;
    opacity: 0.8;
  }
  
  .projects-filter {
    gap: 1rem;
  }
  
  .projects-header {
    padding: 100px 0 40px 0;
  }
  
  .projects-header-content {
    justify-content: center;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-filter {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .filter-label {
    font-size: 0.8rem;
  }
  
  .filter-btn {
    font-size: 0.8rem;
  }
  
  .project-item {
    padding: 1.5rem 1rem;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .project-thumbnail {
    height: 180px;
  }
}

/* Media query pour écrans avec hauteur limitée */
@media (max-height: 850px) and (min-width: 769px) {
  .hero-subtitle {
    bottom: max(3rem, 5vh);
    font-size: clamp(0.9rem, 1vw, 1rem);
  }
}

/* Fix pour section marker 03 écrasé entre 1025px et 1441px */
@media (max-width: 1441px) and (min-width: 1025px) {
  #inspirations .about-photo-section {
    padding-top: 4rem;
  }
  
  #inspirations .inspirations-moodboard {
    margin-top: 2rem;
  }
}

/* Media queries pour Mac 1280x800 et résolutions similaires */
@media (max-width: 1280px) and (min-width: 1025px) {
  /* Hero section - réduire la taille du titre */
  .hero-title {
    font-size: clamp(4rem, 12vw, 14rem);
    line-height: 0.85;
  }
  
  .hero-subtitle {
    position: absolute;
    bottom: 10vh;
    right: 3rem;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    max-width: min(350px, 30vw);
  }
  
  /* Scroll indicator - ajuster pour éviter les superpositions */
  .scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
  }

  /* About section */
  .about-container {
    padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 4vw, 4rem);
    grid-gap: clamp(1.5rem, 3vw, 3rem);
  }
  
  .about-description {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    line-height: 1.5;
  }
  
  /* Réduire la photo about pour 1280x800 */
  .about-main-photo {
    width: 35%;
  }
  
  /* Gallery section */
  .gallery-container {
    padding: clamp(3rem, 6vw, 6rem) 1.5rem;
  }
  
  .gallery-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
  }
  
  
  
  
  
    
  
  /* Section titles */
  .section-large-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  /* Project hero */
  .project-hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
  }
  
  .project-hero-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }
  
  /* Gallery flow - ajuster pour 1280px */
  .gallery-flow {
    grid-template-columns: repeat(14, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    padding: 0 1.5rem;
  }
  
  /* Main image container */
  .main-image-container {
    width: 85%;
    min-width: 400px;
  }
  
  /* Navigation responsive */
  .nav-logo {
    font-size: 1.1rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
  }
  
  /* Réduire les espacements généraux */
  .section {
    padding: clamp(3rem, 6vw, 5rem) 0;
  }
}

/* Appliquer le même style MacBook aux écrans plus petits */
@media (max-width: 1024px) {
  
  
}

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