/* ==========================================================================
   RESET & CONFIGURATION DE BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray: #999;
  --light: #f2f2f2;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

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

/* ---- BRANDING & NAVIGATION ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 40px;
  z-index: 100;
  background: transparent;
  mix-blend-mode: difference; 
}

.brand-name {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: var(--white);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  will-change: opacity;
}

/* ---- FLÈCHE HERO ---- */
.hero-arrow {
  position: fixed;    
  top: 78vh;                  
  left: 50%;
  transform: translateX(-50%);
  font-size: 38px;            
  font-weight: 100;           
  color: var(--white);
  mix-blend-mode: difference; 
  cursor: pointer;
  z-index: 98;       
  opacity: 0.75;
  padding: 20px;              
  transition: transform 0.3s ease, opacity 0.2s ease;
  will-change: opacity, transform;
}

.hero-arrow:hover {
  opacity: 1;
  transform: translate(-50%, 5px);
}

/* ---- LAYOUT CENTRALISE ---- */
.layout {
  display: block; 
  position: relative;
  background: var(--white);
  padding-top: 20px;
}

.content {
  width: 100%;
  padding: 40px;
}

/* ---- GRILLE DE PROJETS ---- */
.grid {
  columns: 3;
  column-gap: 30px;
  animation: softFade 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.project {
  break-inside: avoid;
  margin-bottom: 30px;
  cursor: pointer;
}

.thumb {
  width: 100%;
  overflow: hidden;
  background: var(--light);
}

.thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  will-change: transform;
}

.project:hover .thumb img {
  transform: scale(1.02);
  opacity: 0.92;
}

.project-title {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0;
  transform: translateY(3px);
  padding: 12px 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project:hover .project-title {
  opacity: 0.8;
  transform: translateY(0);
}

/* ==========================================================================
   SECTION ABOUT ET SA BANNIÈRE (EFFET FLASH SUR FOND BLANC)
   ========================================================================== */
#section-about.flash-active {
  animation: flashFade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.about-hero-banner {
  width: 100%;
  height: 45vh;
  overflow: hidden;
  margin: 60px 0 40px 0;
  background-color: var(--white); /* Devient blanc pur par défaut */
}

.about-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-container {
  display: flex;
  justify-content: space-between;
  gap: 10%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px 40px;
  align-items: flex-start;
}

.about-bio {
  flex: 0 1 62%; 
}

.about-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.about-bio .bio-lead {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  margin-bottom: 32px;
}

.about-meta {
  flex: 0 0 30%; 
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.meta-block {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 8px;
}

.meta-link, .meta-value {
  font-size: 14px;
  color: #000;
  text-decoration: none;
  line-height: 1.5;
}

.meta-link {
  width: fit-content;
  transition: color 0.2s ease;
}

.meta-link:hover {
  color: #666;
}

/* Animation flash blanc */
@keyframes flashFade {
  0% {
    opacity: 0;
    background-color: var(--white);
  }
  20% {
    opacity: 0.3;
  }
  100% {
    opacity: 1;
  }
}

/* ==========================================================================
   LIGHTBOX ET SLIDER
   ========================================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--white);
  padding: 90px 40px 40px;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox-meta {
  position: fixed;
  top: 36px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1002;
}

.lightbox-counter {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gray);
  font-family: var(--font);
}

.lightbox-close {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--black); }

.lightbox-title {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.slider-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.slider-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-height: 75vh;
}

.slider-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  animation: fadeInImage 0.4s ease forwards;
}

.slider-arrow {
  font-size: 44px;
  font-weight: 100;
  color: var(--black);
  cursor: pointer;
  padding: 20px;
  user-select: none;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.slider-arrow:hover { opacity: 1; }
.slider-arrow.prev:hover { transform: translateX(-4px); }
.slider-arrow.next:hover { transform: translateX(4px); }

@keyframes fadeInImage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETTE)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid { columns: 2; }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;  
    gap: 48px;
    padding: 0 24px 60px 24px;
  }
  
  .about-bio, .about-meta {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .site-header { padding: 24px 20px; }
  .content { padding: 20px; }
  .grid { columns: 1; column-gap: 0; }
  .project { margin-bottom: 20px; }
  .lightbox { padding: 80px 20px 20px; }
  .slider-arrow { font-size: 32px; padding: 10px; }
  .project-title { opacity: 0.6; transform: none; }
  .hero-arrow { top: 70vh; font-size: 44px; }
  .lightbox-meta { top: 24px; left: 20px; right: 20px; }
}

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