/* ==========================================================================
   DESIGN SYSTEM - ALEXIA TAILLEUR
   Visual Artist Portfolio | Premium Vanilla CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg-base: #FAF9F6;       /* Linen off-white */
  --color-bg-alt: #F3F1EC;        /* Soft studio stone */
  --color-text-main: #121212;     /* Matte charcoal black */
  --color-text-muted: #5A5956;    /* Warm gray for metadata */
  --color-border: rgba(18, 18, 18, 0.08); /* Delicate line border */
  --color-gold: #C5A059;          /* Antique metallic gold (decorative use: borders, dots, backgrounds) */
  --color-gold-light: #E5D3B3;    /* Highlight gold */
  --color-gold-dark: #A88238;     /* Shadows gold */
  --color-gold-text: #81642D;     /* Darkened gold for text — passes WCAG AA (4.5:1) on light backgrounds */
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #B38728 0%, #FBF5B7 25%, #DAA520 50%, #FBF5B7 75%, #AA771C 100%);
  --gradient-gold-hover: linear-gradient(135deg, #C5A059 0%, #FBF5B7 50%, #A88238 100%);

  /* Fonts */
  --font-headline: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --shadow-ambient: 0 20px 40px rgba(18, 18, 18, 0.04);
  --shadow-hover: 0 30px 60px rgba(18, 18, 18, 0.08);

  /* Layout spacing */
  --section-gap: 160px;
  --section-gap-mobile: 80px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom Selection */
::selection {
  background-color: var(--color-gold);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}

::-webkit-scrollbar-thumb {
  background: #E0DDD5;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  font-weight: 300;
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --------------------------------------------------------------------------
   3. NAVIGATION (SHRINKING & GLASSMORPHISM)
   -------------------------------------------------------------------------- */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(250, 249, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
              background-color 0.4s ease, 
              border-color 0.4s ease;
  height: 120px; /* Initial large height */
}

/* Shrink effect triggered by JS or Scroll Timeline */
.header-nav.shrunk {
  height: 80px;
  background-color: rgba(250, 249, 246, 0.92);
  border-color: rgba(18, 18, 18, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.nav-container {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}

.logo a {
  display: flex;
  align-items: center;
}

/* Gold leaf point next to logo */
.logo::after,
.logo::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gradient-gold);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.logo::after {
  right: -12px;
}

.logo::before {
  left: -12px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 40px;
}

.nav-social-link {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.nav-social-link:hover {
  color: var(--color-gold-text);
}

.nav-links a.nav-social-link::after {
  display: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 8px 0;
  position: relative;
  color: var(--color-text-muted);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Nav dropdown (liste des séries) */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  padding: 4px;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-dropdown-toggle:hover {
  color: var(--color-text-main);
}

.nav-item-dropdown.open .nav-dropdown-toggle {
  transform: rotate(180deg);
  color: var(--color-gold-text);
}

.nav-dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 220px;
  background-color: var(--color-bg-base);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

.nav-item-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a,
.nav-dropdown-menu li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li button:hover {
  color: var(--color-gold-text);
  background-color: var(--color-bg-alt);
}

.nav-dropdown-loading,
.nav-dropdown-empty {
  padding: 10px 24px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Sélecteur de langue (drapeaux) */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 1rem;
  border-radius: 50%;
  opacity: 0.45;
  filter: grayscale(60%);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.lang-switcher button:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.lang-switcher button.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}

/* Burger menu (Mobile) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-main);
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 2px; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 20px; }

/* Open State Burger */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
main {
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 80px;
  position: relative;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

/* Accent gold underline for titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  margin-top: 15px;
}

.section-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold-text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
#accueil {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 100px;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 4rem;
  z-index: 10;
}

.hero-tag {
  display: block;
  font-family: var(--font-headline);
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text-main);
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 550px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0px; /* Sharp corners like architectural gallery */
  box-shadow: var(--shadow-ambient);
  opacity: 0;
  transform: scale(0.95);
  animation: scaleIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   6. BIO SECTION (ASYNCHRONOUS ASYMMETRIC GRID)
   -------------------------------------------------------------------------- */
.bio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}

.bio-text-block {
  grid-column: 2 / 7;
}

.bio-image-block {
  grid-column: 8 / 13;
}

.bio-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  text-align: justify;
  hyphens: auto;
}

.bio-paragraph:last-child {
  margin-bottom: 0;
}

.studio-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  position: relative;
}

.studio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-img-wrapper:hover .studio-img {
  transform: scale(1.03);
}

/* Decorative texture overlay on hover */
.studio-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-gold);
  margin: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(0.98);
  z-index: 2;
}

.studio-img-wrapper:hover::before {
  opacity: 0.5;
  transform: scale(1);
}

/* Sub-section: Expositions & Formation */
.parcours-details {
  margin-top: 100px;
  padding-top: 80px;
  border-top: 1px solid var(--color-border);
}

.parcours-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.expositions-col {
  grid-column: 1 / 8;
}

.formation-col {
  grid-column: 9 / 13;
}

.parcours-title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: var(--color-text-main);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.parcours-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin-top: 8px;
}

.expositions-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.expo-year-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
}

.expo-year {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-text);
  line-height: 1.2;
}

.expo-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.expo-items li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(18, 18, 18, 0.05);
}

.expo-items li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.expo-items li strong {
  color: var(--color-text-main);
  font-weight: 500;
}

.formation-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.formation-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: start;
  border-bottom: 1px dashed rgba(18, 18, 18, 0.05);
  padding-bottom: 20px;
}

.formation-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.formation-year {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold-text);
  line-height: 1.2;
}

.formation-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   7. DÉMARCHE ARTISTIQUE (WABI-SABI STATEMENT)
   -------------------------------------------------------------------------- */
.demarche-bg {
  background-color: var(--color-bg-alt);
}

.demarche-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-block {
  margin: 4rem auto;
  position: relative;
}

.quote-text {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--color-text-main);
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

/* Gold stylized quote marks */
.quote-block::before {
  content: '“';
  font-family: var(--font-headline);
  font-size: 8rem;
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(197, 160, 89, 0.08);
  z-index: 1;
}

.quote-author {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold-text);
  font-weight: 600;
}

.demarche-detail {
  column-count: 2;
  column-gap: 60px;
  text-align: left;
  margin-top: 4rem;
}

.demarche-detail p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* --------------------------------------------------------------------------
   8. CRÉATIONS (BENTO/MASONRY DYNAMIC GALLERY)
   -------------------------------------------------------------------------- */
.creations-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}

.creations-intro .section-title {
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px 40px;
}

/* Asymmetric Masonry positioning */
.gallery-item {
  display: flex;
  flex-direction: column;
}

/* Item 1: Vertical, left-aligned */
.gallery-item:nth-child(1) {
  grid-column: 1 / 6;
}

/* Item 2: Horizontal, right-aligned, lower */
.gallery-item:nth-child(2) {
  grid-column: 7 / 13;
  margin-top: 120px;
}

/* Item 3: Square, left-aligned, lower */
.gallery-item:nth-child(3) {
  grid-column: 2 / 7;
  margin-top: -60px;
}

/* Item 4: Vertical, right-aligned */
.gallery-item:nth-child(4) {
  grid-column: 8 / 12;
  margin-top: 60px;
}

/* Art Image Container */
.art-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  cursor: pointer;
  background-color: var(--color-bg-alt);
}

.gallery-item:nth-child(1) .art-card { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(2) .art-card { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(3) .art-card { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(4) .art-card { aspect-ratio: 3 / 4; }

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-card:hover .art-image {
  transform: scale(1.05);
}

/* Gold leaf hover overlay */
.art-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 18, 18, 0.85); /* Premium black velvet mask */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 40px;
  text-align: center;
}

/* Gold frame border inside overlay */
.art-overlay::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--color-gold);
  opacity: 0;
  transform: scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.art-card:hover .art-overlay {
  opacity: 1;
}

.art-card:hover .art-overlay::before {
  opacity: 0.4;
  transform: scale(1);
}

.overlay-title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.overlay-action {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold-text);
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.art-card:hover .overlay-title,
.art-card:hover .overlay-action {
  transform: translateY(0);
}

/* Artwork Details below card */
.art-details {
  margin-top: 1.5rem;
  padding-left: 15px;
  border-left: 1px solid var(--color-border);
}

.art-title {
  font-size: 1.35rem;
  color: var(--color-text-main);
  margin-bottom: 0.25rem;
}

.art-meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.art-meta span {
  color: var(--color-gold-text);
  margin: 0 5px;
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION (ELEGANT GALLERY INQUIRY)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
}

.contact-info {
  grid-column: 2 / 6;
}

.contact-form-container {
  grid-column: 7 / 12;
}

.contact-lead {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  font-weight: 300;
}

.contact-details {
  margin: 3rem 0;
}

.contact-item {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: center;
}

.contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  color: var(--color-gold-text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contact-text a:hover {
  color: var(--color-gold-text);
}

.social-links {
  display: flex;
  gap: 25px;
}

.social-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link:hover {
  color: var(--color-gold-text);
  border-color: var(--color-gold);
}

/* Form Styling */
.elegant-form {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.4s ease;
}

.form-label {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Float label when focused or contains text */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -14px;
  font-size: 0.65rem;
  color: var(--color-gold-text);
  letter-spacing: 0.15em;
}

.form-input:focus {
  border-bottom-color: var(--color-gold);
}

/* Textarea specifically */
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* Button style */
.btn-submit {
  align-self: flex-start;
  background-color: var(--color-text-main);
  color: #FFFFFF;
  border: none;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
}

.btn-submit:active {
  transform: translateY(0);
}

/* Form Feedback Message */
.form-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-status.success {
  opacity: 1;
  color: #2E7D32;
}

.form-status.error {
  opacity: 1;
  color: #C62828;
}

/* --------------------------------------------------------------------------
   10. LIGHTBOX / MODAL SYSTEM (GALLERY VIEWER)
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 18, 18, 0.98); /* Pitch black gallery environment */
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  display: flex;
  max-width: 90%;
  max-height: 85vh;
  gap: 60px;
  align-items: center;
  position: relative;
}

.lightbox-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 80vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-image {
  transform: scale(1);
}

.lightbox-info {
  width: 320px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 40px;
}

.lightbox-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: #A09F9C;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.lightbox-specs {
  list-style: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-gold-text);
}

.lightbox-specs span {
  color: #FFFFFF;
  font-weight: 300;
  margin-left: 8px;
}

/* Controls */
.lightbox-close {
  position: absolute;
  top: -52px;
  right: -52px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.lightbox-toggle-info {
  position: absolute;
  top: -52px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 2;
}

.lightbox-toggle-info:hover {
  color: var(--color-gold-text);
}

.lightbox-toggle-info svg {
  display: block;
}

.lightbox-toggle-info .icon-eye-off {
  display: none;
}

.lightbox-toggle-info[aria-pressed="true"] .icon-eye {
  display: none;
}

.lightbox-toggle-info[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.lightbox-info {
  transition: opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease, width 0.35s ease, border-color 0.35s ease;
}

.lightbox.info-hidden .lightbox-info {
  opacity: 0;
  width: 0;
  padding-left: 0;
  margin-left: 0;
  border-left-color: transparent;
  overflow: hidden;
  pointer-events: none;
}

.lightbox-nav-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding: 20px;
}

.lightbox-nav-btn:hover {
  color: var(--color-gold-text);
}

.lightbox-nav-btn.prev:hover { transform: translateX(-5px); }
.lightbox-nav-btn.next:hover { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   11. FOOTER (MINIMAL AND CLEAN)
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 60px 80px;
  background-color: var(--color-bg-base);
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-socials {
  display: flex;
  gap: 30px;
}

.footer-socials a {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-socials a:hover {
  color: var(--color-gold-text);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.footer-legal-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
}

.footer-legal-link:hover {
  color: var(--color-gold-text);
}

.footer-credit {
  max-width: 1440px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.footer-credit a:hover {
  opacity: 0.7;
}

.footer-credit-logo {
  height: 32px;
  width: auto;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   12. KEYFRAMES & MICRO-ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll Entrance Animation Class */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Native Scroll Driven Animations (for supported browsers) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    /* Auto shrinking header on scroll */
    .header-nav {
      animation: shrinkHeader auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 100px;
    }

    @keyframes shrinkHeader {
      to {
        height: 80px;
        background-color: rgba(250, 249, 246, 0.92);
        border-color: rgba(18, 18, 18, 0.05);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
      }
    }
  }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE DESIGN (TABLETS & PHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --section-gap: 120px;
  }
  
  .nav-container {
    padding: 0 40px;
  }
  
  .section {
    padding: var(--section-gap) 40px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .bio-grid {
    gap: 30px;
  }
  
  .bio-text-block {
    grid-column: 1 / 7;
  }
  
  .bio-image-block {
    grid-column: 7 / 13;
  }

  .parcours-grid {
    gap: 30px;
  }
  
  .expositions-col {
    grid-column: 1 / 8;
  }
  
  .formation-col {
    grid-column: 8 / 13;
  }
  
  .demarche-detail {
    column-gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }
  
  html {
    font-size: 15px;
  }
  
  /* Navigation mobile menu */
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-bg-base);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: right 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-item-dropdown {
    flex-direction: column;
    gap: 8px;
  }

  .nav-dropdown-menu {
    position: static;
    left: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    min-width: 0;
    text-align: center;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease;
  }

  .nav-item-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding: 8px 0 0;
    overflow-y: auto;
  }

  .nav-dropdown-menu li a,
  .nav-dropdown-menu li button {
    text-align: center;
    padding: 8px 0;
    font-size: 0.8rem;
  }

  .lang-switcher {
    gap: 14px;
  }

  .lang-switcher button {
    font-size: 1.3rem;
  }

  .nav-container {
    padding: 0 24px;
  }
  
  .section {
    padding: var(--section-gap) 24px;
  }
  
  /* Hero */
  #accueil {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .hero-content {
    margin-bottom: 2.5rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* Bio Grid */
  .bio-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }
  
  .bio-text-block,
  .bio-image-block {
    width: 100%;
  }

  .parcours-details {
    margin-top: 60px;
    padding-top: 40px;
  }
  
  .parcours-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  
  .expositions-col,
  .formation-col {
    width: 100%;
  }
  
  .expo-year-group,
  .formation-item {
    grid-template-columns: 60px 1fr;
    gap: 15px;
  }
  
  .expo-year,
  .formation-year {
    font-size: 1.2rem;
  }
  
  .studio-img-wrapper {
    aspect-ratio: 4 / 5;
  }
  
  /* Démarche */
  .quote-text {
    font-size: 1.6rem;
  }
  
  .demarche-detail {
    column-count: 1;
    margin-top: 2rem;
  }
  
  /* Gallery */
  .creations-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 3rem;
  }
  
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    grid-column: auto;
    margin-top: 0;
    width: 100%;
  }
  
  /* Contact */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }
  
  .contact-info,
  .contact-form-container {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  /* Lightbox */
  .lightbox-content {
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
    padding: 40px 10px;
  }
  
  .lightbox-image-container {
    max-height: 50vh;
  }
  
  .lightbox-image {
    max-height: 45vh;
  }
  
  .lightbox-info {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 20px;
    margin-top: 20px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-toggle-info {
    top: 10px;
    right: 58px;
  }

  .lightbox.info-hidden .lightbox-info {
    width: 100%;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    border-top-color: transparent;
  }

  /* Footer */
  footer {
    padding: 40px 24px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-socials {
    justify-content: center;
  }
}

/* ==========================================================================
   BENTO PORTFOLIO & SERIES MODAL STYLES
   ========================================================================== */

.portfolio-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 180px 80px 80px 80px; /* offset for fixed header */
}

.portfolio-header {
  margin-bottom: 70px;
  text-align: center;
}

.portfolio-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold-text);
  margin-bottom: 15px;
  display: block;
}

.portfolio-title {
  font-size: 3.5rem;
  color: var(--color-text-main);
}

.btn-download-pdf {
  display: inline-block;
  margin-top: 25px;
  background-color: var(--color-text-main);
  color: #FFFFFF;
  border: none;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-download-pdf:hover {
  background-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: 30px;
  margin-top: 50px;
}

/* Bento Items */
.bento-item {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-item-img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.bento-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Bento Spans */
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.span-8 { grid-column: span 8; }
.bento-item.span-12 { grid-column: span 12; }

.bento-item.row-1 { grid-row: span 1; }
.bento-item.row-2 { grid-row: span 2; }

/* Bento Hover Overlay */
.bento-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 18, 18, 0.85) 0%, rgba(18, 18, 18, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.bento-item-overlay .overlay-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-item-overlay .overlay-action {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-light);
  transform: translateY(20px);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-delay: 0.05s;
}

/* Badge (Always Visible, disappears on hover in desktop to avoid clutter) */
.bento-item-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  padding: 10px 18px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  transition: all 0.4s ease;
}

.bento-item-badge span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
}

.bento-item-badge .badge-separator {
  color: var(--color-gold-text);
}

.bento-item-badge .badge-count {
  font-weight: 300;
  color: var(--color-text-muted);
}

.bento-item-badge .badge-cta {
  color: var(--color-gold-text);
  font-weight: 600;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.bento-item:hover .bento-item-badge .badge-cta {
  transform: translateX(4px);
}

/* Hover Actions */
.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}

.bento-item:hover .bento-item-img {
  transform: scale(1.06);
}

.bento-item:hover .bento-item-overlay {
  opacity: 1;
}

.bento-item:hover .bento-item-overlay .overlay-title,
.bento-item:hover .bento-item-overlay .overlay-action {
  transform: translateY(0);
}

.bento-item:hover .bento-item-badge {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Loader & Error states */
.bento-loader {
  grid-column: span 12;
  text-align: center;
  padding: 100px 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.portfolio-error {
  grid-column: span 12;
  text-align: center;
  padding: 80px 0;
}

.portfolio-error p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.btn-retry, .btn-submit {
  background: var(--gradient-gold);
  border: none;
  color: #FFFFFF;
  padding: 12px 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: var(--gradient-gold-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   SERIES MODAL STYLES (DETAILED VIEW)
   ========================================================================== */
.series-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.series-modal.active {
  opacity: 1;
  pointer-events: all;
}

.series-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.series-modal-content {
  position: relative;
  width: 90%;
  max-width: 1300px;
  height: 85vh;
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
  z-index: 2;
  overflow: hidden;
  transform: scale(0.97) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.series-modal.active .series-modal-content {
  transform: scale(1) translateY(0);
}

.series-modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 2.2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.series-modal-close:hover {
  color: var(--color-gold-text);
  transform: rotate(90deg);
}

.series-modal-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 100%;
}

/* Sidebar Info (Left Column) */
.series-modal-sidebar {
  padding: 60px 50px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-bg-alt);
  overflow-y: auto;
}

.series-modal-meta-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-text);
  margin-bottom: 12px;
  display: block;
}

.series-modal-title {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  color: var(--color-text-main);
  line-height: 1.2;
  margin-bottom: 8px;
}

.series-modal-year {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  display: block;
}

.series-modal-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  font-weight: 300;
}

/* Gallery (Right Column) */
.series-modal-gallery-container {
  padding: 60px;
  overflow-y: auto;
  height: 100%;
}

.series-gallery-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
}

.series-modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.series-gallery-item {
  cursor: pointer;
  transition: transform 0.4s ease;
}

.series-gallery-item:hover {
  transform: translateY(-5px);
}

.series-gallery-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.series-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.series-gallery-item:hover .series-gallery-img {
  transform: scale(1.05);
}

.series-gallery-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 18, 18, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.series-gallery-overlay span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  padding: 8px 16px;
  border-radius: 2px;
  background: rgba(18, 18, 18, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.series-gallery-item:hover .series-gallery-overlay {
  opacity: 1;
}

.series-gallery-meta {
  margin-top: 12px;
}

.series-gallery-title {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

/* Responsive adjustment for Bento and Series Modal */
@media (max-width: 1024px) {
  .portfolio-section {
    padding: 150px 40px 60px 40px;
  }
  
  .bento-grid {
    grid-auto-rows: 260px;
    gap: 20px;
  }

  .series-modal-layout {
    grid-template-columns: 320px 1fr;
  }
  
  .series-modal-sidebar {
    padding: 40px 30px;
  }
  
  .series-modal-gallery-container {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 120px 24px 60px 24px;
  }

  .portfolio-title {
    font-size: 2.5rem;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .bento-item.span-4,
  .bento-item.span-6,
  .bento-item.span-8,
  .bento-item.span-12 {
    width: 100%;
    height: 300px; /* Fixed height on mobile */
  }

  .bento-item-badge {
    opacity: 1 !important;
    bottom: 16px;
    left: 16px;
    padding: 8px 14px;
  }

  .bento-item:hover .bento-item-badge {
    transform: none;
    background-color: rgba(250, 249, 246, 0.95);
    color: var(--color-text-main);
    border-color: var(--color-border);
  }

  .bento-item-overlay {
    display: none; /* Disable overlay hover on mobile */
  }

  /* Series Modal Mobile stacked layout */
  .series-modal-content {
    width: 95%;
    height: 90vh;
  }

  .series-modal-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    overflow-y: auto;
  }

  .series-modal-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 40px 24px 30px 24px;
    overflow-y: visible;
  }

  .series-modal-gallery-container {
    padding: 30px 24px;
    height: auto;
    overflow-y: visible;
  }

  .series-modal-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }

  .series-modal-title {
    font-size: 2rem;
  }

  .series-modal-year {
    margin-bottom: 15px;
  }
}

/* ==========================================================================
   GALLERY CTA REDIRECTION
   ========================================================================== */
.gallery-cta {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  width: 100%;
}

.btn-cta {
  background-color: var(--color-text-main);
  color: #FFFFFF;
  border: 1px solid var(--color-text-main);
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  display: inline-block;
  text-align: center;
}

.btn-cta:hover {
  background-color: var(--color-gold);
  border-color: var(--color-gold);
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.15);
}

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

/* ==========================================================================
   HERO ASYNCHRONOUS TRIPTYCH CAROUSEL (WEAVING EFFECTS)
   ========================================================================== */
.hero-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg-base);
}

.triptych-column {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.triptych-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 3.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 3.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: scale(1.02);
}

.triptych-slide.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.triptych-slide.next {
  opacity: 0;
  z-index: 1;
}

/* Subtle zoom effect on hover (disabled during active transition to prevent conflicts) */
.hero-image-wrapper:hover .triptych-column:not(.transitioning) .triptych-slide.active {
  transform: scale(1.05);
}

/* --- Slide transitions for weaving effect --- */

/* Initial positions for next slide (off-screen) */
.transition-from-top .triptych-slide.next {
  transform: translateY(-100%);
  opacity: 1;
  z-index: 3;
}
.transition-from-bottom .triptych-slide.next {
  transform: translateY(100%);
  opacity: 1;
  z-index: 3;
}
.transition-from-left .triptych-slide.next {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 3;
}
.transition-from-right .triptych-slide.next {
  transform: translateX(100%);
  opacity: 1;
  z-index: 3;
}

/* Transitioning active states (moving in-screen) */
.triptych-column.transitioning .triptych-slide.next {
  transform: translateY(0) translateX(0) scale(1);
}

/* Exit positions for active slide (Push effect) */
.transition-from-top.transitioning .triptych-slide.active {
  transform: translateY(100%);
}
.transition-from-bottom.transitioning .triptych-slide.active {
  transform: translateY(-100%);
}
.transition-from-left.transitioning .triptych-slide.active {
  transform: translateX(100%);
}
.transition-from-right.transitioning .triptych-slide.active {
  transform: translateX(-100%);
}

@media (max-width: 768px) {
  .hero-triptych {
    gap: 8px; /* Tighter gap on mobile */
  }
}

/* --------------------------------------------------------------------------
   PIXEL REVEAL (initial load-in effect, inspired by Magic UI's Pixel Image)
   -------------------------------------------------------------------------- */
.pixel-reveal {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.pixel-reveal.done {
  display: none;
}

.pixel-piece {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.pixel-piece.visible {
  opacity: 1;
}

.pixel-piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 1000ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pixel-piece img.color {
  filter: grayscale(0);
}

@media (prefers-reduced-motion: reduce) {
  .pixel-piece {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .pixel-piece img {
    transition-duration: 1ms !important;
  }
}

/* ==========================================================================
   NOSCRIPT FALLBACK SYSTEM (SEO / NO-JS)
   ========================================================================== */
.noscript-portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  margin-top: 40px;
}

.noscript-series-card {
  background-color: var(--color-bg-base);
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.noscript-series-card h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--color-text-main);
  margin: 0;
}

.noscript-series-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.noscript-series-card em {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold-text);
  font-style: normal;
}

.noscript-series-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  margin-top: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.noscript-series-card img:hover {
  opacity: 1;
}

.noscript-hero-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}

.noscript-hero-triptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}




/* ==========================================================================
   LEGAL PAGE (MENTIONS LÉGALES)
   ========================================================================== */
.legal-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 180px 80px 120px 80px;
}

.legal-section .portfolio-header {
  text-align: left;
  margin-bottom: 60px;
}

.legal-content h2 {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin-top: 50px;
  margin-bottom: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content ul {
  margin: 12px 0 12px 20px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--color-gold-text);
}

@media (max-width: 768px) {
  .legal-section {
    padding: 140px 24px 80px 24px;
  }
}
