/* ============================================================
   CÉDRICK LAMANDE — Design Studio Photographique
   Version 4.0 — Refonte Complète 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Raleway:wght@300;400;500;600&display=swap');

/* ============================================================
   VARIABLES CSS — Palette extraite du site original
   ============================================================ */

:root {
  /* Couleurs principales */
  --color-bg:           #1e1e1e;   /* Fond principal = couleur menu burger original */
  --color-menu:         #1e1e1e;   /* Fond colonne 1/3 droite */
  --color-panel:        #fdf8f0;   /* Fond panneaux clairs (ivory) */
  --color-cream:        #f5ede0;   /* Fond bio / about */
  --color-deep:         #2a4035;   /* Fond contact & section sombre */

  /* Accent / Or */
  --color-accent:       #c9a84c;   /* Or principal — ornements, hover, CTA */
  --color-accent-light: #e8c97a;   /* Or clair */
  --color-accent-dark:  #9b7a2a;   /* Or foncé */

  /* Texte */
  --color-text:         #3d2e1e;   /* Corps de texte principal */
  --color-text-muted:   #7a6550;   /* Texte secondaire / muted */
  --color-text-light:   rgba(255,255,255,0.82);
  --color-text-dim:     rgba(255,255,255,0.45);

  /* Couleurs utilitaires */
  --color-cta:          #c9a84c;   /* Bouton CTA principal */
  --color-link:         #c9a84c;   /* Liens */
  --color-separator:    rgba(201, 168, 76, 0.3); /* Séparateurs / ornements */
  --color-white:        #ffffff;
  --color-charcoal:     #1e1e1e;
  --color-sage:         #6b8f71;
  --color-terracotta:   #b05e3a;

  /* Typographies */
  --font-deco:   'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Raleway', sans-serif;

  /* Effets */
  --transition:     all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.25s ease;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --shadow-gold:    0 8px 30px rgba(201, 168, 76, 0.25);
  --shadow-dark:    0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-light);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { 
  max-width: 100%; 
  display: block; 
  user-select: none; 
  -webkit-user-drag: none; 
  -webkit-touch-callout: none;
}
button { font-family: var(--font-sans); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 3px; }


/* ============================================================
   ORNEMENTS
   ============================================================ */

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem 0;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  max-width: 160px;
}

.ornament-icon {
  color: var(--color-accent);
  font-size: 1rem;
  animation: shimmer 3s ease-in-out infinite;
}


/* ============================================================
   ÉCRAN D'INTRO — Séquence animée plein écran
   ============================================================ */

#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Phase 1 : Citation */
#intro-quote-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0 8%;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
  z-index: 9100;
}

#intro-quote-wrap.visible {
  opacity: 1;
  visibility: visible;
}


#intro-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.6;
  letter-spacing: 0.03em;
  max-width: 900px;
  display: inline-block;
}

.intro-letter {
  opacity: 0;
  transform: translateY(-100vh);
  animation: letterFall 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
}

@keyframes letterFall {
  0% {
    opacity: 0;
    transform: translateY(-100vh);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

#intro-quote-author {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-top: 0;
  opacity: 0;
  transition: opacity 1.2s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
  align-self: center;
  display: inline-block;
}

#intro-quote-author.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.5s;
}

/* ── Slides = galerie photos désormais désactivées (cover_image est le seul visuel statique) ── */



.carousel-slide.active {
  opacity: 1;
  transform: scale(1); /* Smooth settle into focus */
}

/* Curseur typewriter */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.7s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Phase 2 : Nom photographe */
#intro-name-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
  padding: 0 5%;
  z-index: 9200;
}


#intro-name-wrap.visible { opacity: 1; }

#intro-name-main {
  font-family: var(--font-deco);
  font-size: clamp(2.8rem, 8vw, 7.5rem);
  color: var(--color-white);
  line-height: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#intro-name-main .firstname {
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
}

#intro-name-main .lastname {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -0.5rem;
}

#intro-profession {
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.6em; /* Increased spacing */
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease 0.8s, transform 1s ease 0.8s; /* Delayed fade-in */
}

#intro-name-wrap.visible #intro-profession {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.8em; /* Even more dramatic spacing on entry */
  transition: opacity 1.5s ease 0.8s, transform 1.5s ease 0.8s, letter-spacing 2s ease 0.8s;
}

/* Poetic Transition: Opacity + Scale + Blur + Translate */
#intro-screen.transitioning #intro-name-wrap {
  opacity: 0;
  transform: scale(0.85) translateY(-30px);
  filter: blur(15px);
  transition: opacity 1.2s ease, transform 1.2s ease, filter 1.2s ease;
}

/* Scroll indication in intro */
#intro-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.8s ease 1.5s;
  color: var(--color-text-dim);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

#intro-name-wrap.visible #intro-scroll-hint { opacity: 1; }

.scroll-line-intro {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}


/* ============================================================
   LAYOUT PRINCIPAL — 2/3 + 1/3
   ============================================================ */

#main-view {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: visible;
}

#main-view.visible {
  opacity: 1;
  visibility: visible;
}

/* Colonne gauche — Carrousel 3/4 */
.col-carousel {
  flex: 0 0 75%;
  width: 75%;
  position: relative;
  overflow: hidden;
  background: var(--color-charcoal);
  padding: 30px; /* Ajout des marges autour des photos */
}

/* Colonne droite — Menu 1/4 */
.col-menu {
  flex: 0 0 25%;
  width: 25%;
  background: var(--color-menu);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 4rem 2.5rem 2rem;
  position: relative;
  overflow-y: auto;
  border-left: 1px solid var(--color-separator);
}

/* Nom en haut de la colonne droite */
.menu-logo {
  text-align: center;
  width: 100%;
  margin-bottom: 4rem;
}

.menu-logo-name {
  font-family: var(--font-deco);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.menu-logo-sig {
  max-width: 160px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.menu-logo-sub {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.2rem;
}

/* Navigation principale — menu vertical */
.main-nav {
  list-style: none;
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

.main-nav > li {
  margin: 0;
}

.main-nav > li > a,
.main-nav > li > button.nav-toggle {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav > li > a::after,
.main-nav > li > button.nav-toggle::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.35s ease;
}

.main-nav > li > a:hover,
.main-nav > li > button.nav-toggle:hover,
.main-nav > li > a.active,
.main-nav > li > button.nav-toggle.active {
  color: var(--color-accent);
}

.main-nav > li > a:hover::after,
.main-nav > li > button.nav-toggle:hover::after,
.main-nav > li > a.active::after,
.main-nav > li > button.nav-toggle.active::after {
  width: 40%;
}

/* Séparateur ornement entre items */
.nav-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
}
.nav-divider span {
  color: var(--color-separator);
  font-size: 0.5rem;
  letter-spacing: 0.4em;
}

/* ============================================================
   PROJET ASTRO — Accordion menu
   ============================================================ */

.astro-accordion {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.astro-accordion.open {
  max-height: 600px;
}

.astro-sub-list {
  list-style: none;
  padding: 0.2rem 0 0.8rem;
}

.astro-sub-list li a {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text-dim);
  padding: 0.35rem 1rem;
  letter-spacing: 0.12em;
  transition: color 0.25s ease, padding-left 0.25s ease;
  text-align: center;
}

.astro-sub-list li a:hover {
  color: var(--color-accent-light);
  padding-left: 1.4rem;
}

/* Flèche toggle astro */
.nav-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  transition: transform 0.35s ease;
  vertical-align: middle;
}

.nav-toggle.open .nav-arrow { transform: rotate(180deg); }


/* ============================================================
   CARROUSEL — Plein hauteur
   ============================================================ */

.carousel-wrap {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
  /* Support de flou pour thématiques restreintes */
  transition: filter 0.6s ease;
}

.carousel-wrap.is-restricted {
  filter: blur(12px) grayscale(0.5);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: contain; 
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--color-bg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  /* Transition par défaut (utilisée sur l'accueil) */
  transition: opacity 1.2s ease-in-out;
}

/* DESACTIVATION DES ANIMATIONS SUR L'ACCUEIL */
body[data-page="home"] .carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  animation: none !important;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* Animations d'Entrée (Gauche vers Droite) */
.carousel-slide.nav-next {
  animation: slideInFromLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-slide.nav-prev {
  animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animations de Sortie (Dezoom + Fondu) */
.carousel-slide.exit-left,
.carousel-slide.exit-right {
  animation: disappearToBack 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  z-index: 1; /* Reste en dessous de la nouvelle qui arrive */
}

@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes disappearToBack {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.92); opacity: 0; }
}

/* Overlay subtil */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,8,5,0.15) 0%,
    transparent 40%,
    rgba(10,8,5,0.5) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Flèches carrousel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--color-accent);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.carousel-arrow:hover {
  background: var(--color-accent);
  color: var(--color-charcoal);
  border-color: var(--color-accent);
}

.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: 1px solid rgba(201, 168, 76, 0.4);
  transition: all 0.3s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.4);
}

/* Infos photo en bas à gauche */
.photo-info {
  display: none !important; /* Hide titles on images across all pages */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(10,8,5,0.7) 0%, transparent 100%);
  transition: opacity 0.4s ease;
}

.photo-info-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent-light);
  letter-spacing: 0.06em;
}

.photo-info-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 0.3rem;
}

/* Indicateur X/Y */
.photo-counter {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-text-dim);
}


/* ============================================================
   PAGE GALERIE — photos.php (layout 2/3 + 1/3)
   ============================================================ */

body.page-galerie #main-view {
  position: relative;
  inset: auto;
  min-height: 100vh;
  opacity: 1;
  visibility: visible;
}


/* ============================================================
   PAGE PORTFOLIO — portfolio.php
   ============================================================ */

body.page-portfolio {
  background: var(--color-bg);
}

.portfolio-header {
  padding: 3rem 5%;
  text-align: center;
}

.portfolio-header h1 {
  font-family: var(--font-deco);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  letter-spacing: 0.1em; /* Increased letter-spacing for premium feel */
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.portfolio-header .section-label {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* Mini nav retour */
.back-nav {
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  transition: color 0.25s;
  z-index: 100;
}

.back-nav:hover { color: var(--color-accent); }
.back-nav i { font-size: 0.7rem; }

/* Grille thèmes — centrée, aérée (Modifiée pour 4 colonnes, 2 lignes) */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 1rem 5% 8rem; /* Plus d'espace en bas pour le footer */
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  height: auto; /* Hauteur auto pour éviter le bug de chevauchement */
  align-content: start;
}

@media (max-width: 1024px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    padding-bottom: 6rem;
  }
}

@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: 1fr;
    height: auto;
    padding-bottom: 4rem;
  }
}

.theme-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  min-height: 40vh;
  background: var(--color-charcoal);
  display: block;
  text-decoration: none;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.03);
}

.theme-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s ease;
  z-index: 10;
}

.theme-card:hover .theme-card-bg {
  transform: scale(1.08);
}

@media (min-width: 1025px) {
  .theme-card {
    height: calc(50% - 6px); /* Pour 2 lignes exactes */
  }
  .themes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .theme-card {
    flex: 0 0 calc(25% - 9px);
    aspect-ratio: auto;
    height: calc(50vh - 80px); /* Cartes plus hautes */
  }
}

.theme-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.9);
}

.theme-card-overlay {
  position: absolute;
  inset: 0;
  /* z-index:30 > slides(z:2) > theme-carousel(z:1) */
  z-index: 30;
  pointer-events: none;
  /* Gradient plus profond pour garantir la lisibilité du titre */
  background: linear-gradient(
    to top,
    rgba(5,3,1,0.92) 0%,
    rgba(5,3,1,0.55) 28%,
    rgba(5,3,1,0.1)  55%,
    transparent      80%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2.2rem;
  transition: background 0.7s ease;
}

.theme-card:hover .theme-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5,3,1,0.88) 0%,
    rgba(5,3,1,0.3)  35%,
    rgba(201,168,76,0.06) 100%
  );
}

.theme-card-title {
  font-family: var(--font-deco);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.3s;
  line-height: 1.3;
  width: 90%;
}

.theme-card:hover .theme-card-title {
  color: var(--color-accent-light);
}

.theme-card-line {
  width: 30px;
  height: 1px;
  background: var(--color-accent);
  margin: 0.6rem auto 0;
  transition: width 0.35s ease;
}

.theme-card:hover .theme-card-line { width: 60px; }


/* ============================================================
   PAGE BIO — bio.php
   ============================================================ */

body.page-bio {
  background: var(--color-bg);
}

.bio-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* LÉGÈREMENT AJUSTÉ POUR LA PHOTO */
  gap: 0;
  align-items: center; /* CENTRÉ VERTICALEMENT */
  background: var(--color-bg);
}

.bio-photo-col {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 2rem 2rem; /* ESPACE POUR ÉVITER LES BORDS */
}

.bio-photo-col img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain; /* GARANTIT LA VISIBILITÉ TOTALE */
  box-shadow: var(--shadow-dark);
  filter: sepia(0.05);
}

.bio-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--color-bg) 100%);
}

.bio-content-col {
  padding: 5rem 5rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.bio-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.bio-name {
  font-family: var(--font-sans) !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

.bio-name strong {
  font-weight: 700;
  display: block;
  letter-spacing: 0.25em;
}

.bio-text {
  font-family: var(--font-sans) !important;
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2;
  margin: 1.5rem 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

/* Animation reveal bio */
.bio-content-col.revealed .bio-label,
.bio-content-col.revealed .bio-name,
.bio-content-col.revealed .bio-text,
.bio-content-col.revealed .bio-stats,
.bio-content-col.revealed .bio-ornament {
  opacity: 1;
  transform: translateY(0);
}

.bio-ornament {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

/* Stats bio */
.bio-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.bio-stat {
  border-left: 2px solid var(--color-separator);
  padding-left: 1.2rem;
}

.bio-stat .stat-val {
  font-family: var(--font-deco);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  line-height: 1;
  display: block;
}

.bio-stat .stat-lbl {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  display: block;
  margin-top: 0.3rem;
}


/* ============================================================
   PAGE SIGNE ASTRO — sign.php
   ============================================================ */

.astro-coming-soon {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1rem;
  background: var(--color-bg);
}

.astro-coming-soon .sign-title {
  font-family: var(--font-deco);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-style: italic;
  color: var(--color-white);
}

.astro-coming-soon .coming-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-dim);
  max-width: 420px;
  line-height: 1.9;
}

.astro-coming-soon .accent-line {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto;
}


/* ============================================================
   SECTION CONTACT — conservée et intégrée
   ============================================================ */

.contact-page {
  /* Hide by default for home intro, revealed via JS/visible class */
  display: none; 
  min-height: 100vh;
  background: var(--color-deep) !important;
  color: #fff;
  padding: 8rem 2rem;
  align-items: center;
  position: relative;
  z-index: 8100; /* Higher than header bar (7900) and hamburger (8000) when active */
}

.contact-page.visible {
  display: flex !important;
  visibility: visible;
  opacity: 1;
}

.contact-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

.contact-info-side h2 {
  font-family: var(--font-deco);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info-side p {
  opacity: 0.75;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2px;
}

.contact-detail-value {
  font-weight: 600;
  font-size: 0.92rem;
}

/* Formulaire contact */
.contact-form-container {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

.contact-form-container label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.45rem;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.contact-form-container input::placeholder,
.contact-form-container textarea::placeholder {
  color: rgba(255,255,255,0.28);
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.captcha-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.captcha-box input {
  width: 80px !important;
  margin-bottom: 0 !important;
  text-align: center;
}

.success-banner {
  background: rgba(107, 143, 113, 0.25);
  border: 1px solid var(--color-sage);
  color: #a8e6b0;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.error-banner {
  background: rgba(176, 94, 58, 0.2);
  border: 1px solid var(--color-terracotta);
  color: #f0a090;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}


/* ============================================================
   BOUTONS
   ============================================================ */

.cta-button {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--transition);
  cursor: pointer;
}

.cta-button.primary {
  background: var(--color-cta);
  color: var(--color-charcoal);
  border: 2px solid var(--color-cta);
}

.cta-button.primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.cta-button.secondary {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}

.cta-button.secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cta-button.ghost {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-separator);
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

.cta-button.ghost:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--color-accent);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer.site-footer {
  background: var(--color-charcoal);
  color: rgba(255,255,255,0.5);
  padding: 3rem 5% 2rem;
  text-align: center;
  border-top: 1px solid var(--color-separator);
}

.footer-logo-name {
  font-family: var(--font-deco);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.2rem;
}

.footer-logo-sig {
  max-width: 220px;
  height: auto;
  margin: 0 auto 0.5rem;
  display: block;
}

.footer-logo-title {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-tagline {
  font-size: 0.85rem;
  max-width: 380px;
  margin: 0 auto 2rem;
  opacity: 0.5;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 168, 76, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-charcoal);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.2rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}

.footer-bottom a:hover { color: var(--color-accent); }


/* ============================================================
   MOBILE OVERLAY MENU
   ============================================================ */

.mobile-hamburger {
  display: none;
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 8000;
  background: rgba(30,20,10,0.85);
  border: 1px solid var(--color-separator);
  color: var(--color-accent);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  backdrop-filter: blur(8px);
}

.mobile-header-bar {
  display: none !important; /* Reverted redesign */
}

/* Reverted to floating buttons */
.mobile-hamburger {
  position: fixed;
  top: 1rem;
  right: 1.2rem;
  z-index: 100000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 10, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
}

.mobile-back-home {
  position: fixed;
  top: 1rem;
  left: 1.2rem;
  z-index: 100000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 10, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 1.2rem;
  text-decoration: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.age-gate {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important; /* HIÉRARCHIE ROYALE 1 — LE PLUS HAUT */
  background: rgba(10, 15, 12, 0.98) !important;
  backdrop-filter: blur(40px) !important;
  display: none;
  align-items: center;
  justify-content: center;
}


.mobile-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--color-text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.mobile-nav > li > a,
.mobile-nav > li > button.mobile-nav-toggle {
  display: block;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-white);
  padding: 0.8rem 0;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: color 0.3s;
  min-height: 44px;
}

.mobile-nav > li > a:hover,
.mobile-nav > li > button.mobile-nav-toggle:hover {
  color: var(--color-accent);
}

.mobile-astro-subs {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  list-style: none;
}

.mobile-astro-subs.open { max-height: 500px; }

.mobile-astro-subs li a {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-dim);
  padding: 0.4rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
}

.mobile-astro-subs li a:hover { color: var(--color-accent-light); }

/* Bottom sheet mobile (infos photo) */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000000 !important; /* HIÉRARCHIE ROYALE 3 — SOUS LE CONTACT */

  background: rgba(20, 16, 10, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-separator);
  transform: translateY(calc(100% - 48px));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 12px 0 0;
}

.bottom-sheet.active,
.bottom-sheet.open {
  transform: translateY(0) !important;
}

.bottom-sheet-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  cursor: pointer;
  touch-action: none;
  position: relative;
  gap: 10px;
  color: var(--color-white);
  font-size: 0.9rem;
}

.bottom-sheet-handle::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

.bottom-sheet-content {
  padding: 0 1.5rem 2rem;
}

.bs-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-accent-light);
}

.bs-category {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-top: 0.3rem;
}

.bs-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.8rem;
  line-height: 1.7;
}

.bs-meta {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  padding-top: 0.8rem;
}

.bs-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bs-meta-item i {
  font-size: 0.7rem;
  opacity: 0.7;
}


/* ============================================================
   ANIMATIONS & KEYFRAMES
   ============================================================ */

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

@keyframes scrollAnim {
  0%   { transform: scaleY(1); opacity: 1; transform-origin: top; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: top; }
}

/* Reveal au scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="left"].active { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].active { transform: translateX(0); }

/* Entrance delay classes */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }


/* ============================================================
   LIGHTBOX — conservée
   ============================================================ */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

#lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 5, 0.96);
  backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(201,168,76,0.15);
}

.lightbox-caption {
  margin-top: 1.2rem;
  color: var(--color-accent);
  font-family: var(--font-deco);
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { color: var(--color-accent); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  min-height: 44px;
}

.lightbox-arrow:hover { background: var(--color-accent); color: var(--color-charcoal); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }


/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Intro */
  #intro-firstname,
  #intro-lastname {
    font-size: clamp(2.2rem, 18vw, 3.5rem);
  }

  #intro-quote {
    font-size: 1rem;
  }

  /* Layout: masquer la colonne 1/3, carrousel plein écran */
  #main-view {
    position: relative;
    inset: auto;
    min-height: 100vh;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
  }

  .col-carousel {
    flex: none;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  .col-menu {
    display: none;
  }

  /* Show mobile elements */
  .mobile-hamburger, .mobile-back-home {
    display: flex !important;
  }

  .mobile-header-bar {
    display: flex;
  }

  /* FIX: Masquer le lien back-nav desktop sur mobile (doublon avec mobile-back-home) */
  .back-nav {
    display: none !important;
  }

  /* Portfolio grille */
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 3% 4rem;
    gap: 2px;
  }

  /* Bio layout */
  .bio-layout {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .bio-photo-col {
    height: auto;
    min-height: auto;
    padding: 1rem;
  }

  .bio-photo-col img {
    max-height: 70vh;
  }

  .bio-photo-overlay {
    background: linear-gradient(to bottom, transparent 50%, var(--color-bg) 100%);
  }

  .bio-content-col {
    padding: 3rem 1.5rem 4rem;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 5%;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Lightbox arrows */
  .lightbox-arrow { width: 38px; height: 38px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 8px; right: 8px; }

  /* Flèches carrousel MASQUÉES sur mobile — navigation par swipe uniquement */
  .carousel-arrow {
    display: none !important;
  }

  /* Bottom sheet mobile — Info band */
  .bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    z-index: 100010;
    transform: translateY(calc(100% - 3rem));
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 0 1.5rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
    display: block !important;
  }
  .bottom-sheet.active,
  .bottom-sheet.open {
    transform: translateY(0);
  }
  .bottom-sheet-handle {
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding-top: 10px;
  }
  .bottom-sheet-handle::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
  }
  .bottom-sheet-content {
    opacity: 0;
    transition: opacity 0.3s 0.2s;
  }
  .bottom-sheet.active .bottom-sheet-content,
  .bottom-sheet.open .bottom-sheet-content {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .themes-grid {
    grid-template-columns: 1fr;
    padding: 2rem 4% 3rem;
    gap: 2px;
  }

  .bio-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

/* ============================================================
   Desktop: cacher les éléments mobiles
   ============================================================ */

@media (max-width: 768px) {
  /* Supprimer physiquement les flèches sur mobile pour éviter les conflits de clic */
  .carousel-arrow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-hamburger,
  .mobile-header-bar,
  .mobile-menu-overlay,
  .bottom-sheet,
  #bottom-sheet {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  
  /* Masquer les flèches sur l'accueil desktop (demande utilisateur) */
  body[data-page="home"] .carousel-arrow {
    display: none !important;
  }
}


/* Hide mobile headers on desktop */
@media (min-width: 992px) {
  .mobile-hamburger,
  .mobile-header-bar,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ============================================================
   PROTECTION & PERFECTION
   ============================================================ */

#protection-blackout {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.1s ease;
  pointer-events: none;
}

#protection-blackout.active {
  opacity: 1;
  visibility: visible;
}

/* Blur effect when focus is lost (Mobile screenshot deterrence) */
body.content-protected #main-view,
body.content-protected .page-galerie,
body.content-protected .portfolio-layout,
body.content-protected .bio-layout {
  filter: blur(40px) brightness(0.2);
  transition: filter 0.3s ease;
}

/* Transparent Image Guard */
.image-guard {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  cursor: default;
}

/* Print Protection */
@media print {
  body {
    background: #000 !important;
  }
  img, 
  .carousel-slide, 
  .gallery-item, 
  #lightbox-img {
    display: none !important;
    visibility: hidden !important;
  }
  #main-view, .col-carousel, .col-menu {
    background: #000 !important;
    color: #000 !important;
  }
  h1, h2, h3, p, a {
    color: #000 !important;
  }
}

/* Aesthetic Refinements */
.col-menu {
  scrollbar-width: none; /* Hide scrollbar for cleaner look */
}
.col-menu::-webkit-scrollbar {
  display: none;
}

.main-nav > li > a {
  transition: letter-spacing 0.4s ease, color 0.3s ease;
}

.main-nav > li > a:hover {
  letter-spacing: 0.35em;
}

#protection-overlay {
  position: fixed;
  inset: 0;
  /* Z-INDEX MAXIMUM POUR LA PROTECTION */
  z-index: 200000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none !important; /* DÉBLOCAGE V13.5 */
}


#protection-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}



#protection-overlay .logo-icon {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
  animation: p-pulse 2s infinite;
}

#protection-overlay p {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  padding: 0 2rem;
}

/* SYSTÈME 18+ (Age Gate) */
.age-gate {
  position: fixed;
  inset: 0;
  /* Z-INDEX SUPRÊME V14 (Un cran sous le burger) */
  z-index: 2147483640 !important;

  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(50px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.age-gate.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
}

/* Flou radical pour contenu restreint — APPLIQUÉ AU BG SEULEMENT */
.carousel-wrap.is-restricted {
  filter: blur(25px) grayscale(0.8) !important;
}

.theme-card-bg.is-age-restricted {
  filter: blur(12px) grayscale(0.8) !important;
}

.theme-card.unlocked .theme-card-bg {
  filter: blur(0) grayscale(0) !important;
}


/* FIX Navigation V13.2 — HIÉRARCHIE ABSOLUE DES CONTRÔLES */
.mobile-hamburger, 
.mobile-back-home {
  position: fixed !important;
  top: 1rem !important;
  z-index: 2147483647 !important; /* LE SOMMET ABSOLU DU MONDE */
  width: 48px !important;
  height: 48px !important;
  background: rgba(20, 16, 10, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--color-accent) !important; /* Bordure or pour visibilité */
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4) !important; /* Lueur d'activation */

  border-radius: 50% !important;
  color: var(--color-white) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  pointer-events: auto !important; /* GARANTIE DE CLIC */
  -webkit-touch-callout: none !important; /* EMPÊCHE LE POPUP COPIER IOS */
  user-select: none !important;
  -webkit-user-select: none !important;
}

.mobile-hamburger { right: 1.2rem !important; }
.mobile-back-home { left: 1.2rem !important; }

.mobile-hamburger:active {
  box-shadow: 0 0 25px var(--color-accent) !important;
  background: var(--color-accent) !important;
  color: #1e1e1e !important;
  border-color: #1e1e1e !important;
}

/* BANISSEMENT SUR DESKTOP (V13.2) */
@media (min-width: 992px) {
    .mobile-hamburger, 
    .mobile-back-home {
        display: none !important;
        pointer-events: none !important;
    }
}


/* FIX Mobile Contact Interior spacing V13.1 */
@media (max-width: 991px) {
  #contact-section .contact-inner {
    padding: 6rem 1.5rem 4rem !important;
    display: block !important;
  }
  #contact-section .contact-form-side {
    margin-top: 2rem;
  }
}


/* Invert logic requested by user: ONLY Home has menu, others only back button */
body[data-page="home"] .mobile-back-home { display: none !important; }
body[data-page="interior"] .mobile-hamburger { display: none !important; }

/* ============================================================
   V7.0 ROYALE — FINITIONS IMMORTELLES
   ============================================================ */

#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 500000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Crucial pour le centrage des wraps empilés */
  color: #fff;
  transition: opacity 1.2s ease;
}


#intro-quote-wrap {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#intro-quote-wrap.fade-out {
  opacity: 0;
  transform: translateY(-20px);
}

#intro-name-wrap {
  display: none;
  opacity: 0;
  text-align: center;
  width: 100%;
  /* FORCE BRUTE V10 : Centrage absolu permanent */
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}




#intro-name-wrap.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
}

/* AGE GATE SUPRÊME V13.3 — HIÉRARCHIE ROYALE 1 */
.age-gate, #age-gate {
  position: fixed !important;
  inset: 0 !important;
  /* Z-INDEX SUPRÊME V14 (Juste sous le burger) */
  z-index: 2147483640 !important;
  background: rgba(10, 15, 12, 0.99) !important;
  backdrop-filter: blur(50px) !important;

  display: none !important; /* MASQUÉ PAR DÉFAUT (VÉROU DÉBLOCAGE) */
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  align-items: center;
  justify-content: center;
}

.age-gate.active, #age-gate.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}



.age-gate.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}



.fade-in-long {
  animation: fadeInLong 1.5s forwards;
}

@keyframes fadeInLong {
  from { opacity: 0; }
  to { opacity: 1; }
}

#intro-screen.hidden {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -1 !important; /* SÉCURITÉ TOTALE V13.5 */
}


/* Informations Photos (Desktop - Colonne Droite V9.2) */
#photo-info-display {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--color-white);
  margin-top: 2rem;
  min-height: 140px;
}

.info-content-v9 {
  animation: slideUpFade 0.7s var(--ease-out) forwards;
}

.info-title {
  display: block;
  font-family: var(--font-deco);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  color: var(--color-white);
  font-style: italic;
  letter-spacing: 0.03em;
}

.info-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.info-sub-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  opacity: 0.8;
}

.info-sub-meta span i {
  margin-right: 7px;
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.7;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Masquage de l'info desktop sur mobile */
@media (max-width: 991px) {
  #photo-info-display { display: none !important; }
}

/* Contact Section (Senior V13.1 Fix) — HIÉRARCHIE ROYALE 2 */
  section#contact-section.contact-page {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important; 
    background-color: #2a4035 !important; 
    background: #2a4035 !important;
    display: none;
    align-items: flex-start; /* Changé de center à flex-start pour le scroll mobile */
    justify-content: center;
    overflow-y: auto !important;
    width: 100vw !important;
    height: 100vh !important;
    padding: 0; /* Padding géré par l'inner */
    backdrop-filter: blur(20px);
  }

/* Boutons de Fermeture Contact V13.2 — SUPPRESSION SUPERPOSITION */
.contact-close-pc {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: none; /* Masqué par défaut */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 20000005;
    transition: all 0.3s ease;
}
.contact-close-pc:hover { background: #fff; color: #000; transform: rotate(90deg); }

.contact-back-mob {
    position: fixed;
    top: 2.5rem; /* Abaissé pour éviter les encoches/status bar */
    left: 1.5rem;
    background: var(--color-accent); /* Couleur or pour être bien visible */
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: none; /* Masqué par défaut */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20000005;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@media (min-width: 992px) {
    #contact-section.active .contact-close-pc { display: flex !important; }
}
@media (max-width: 991px) {
    #contact-section.active .contact-back-mob { display: flex !important; }
}

#contact-section.active {

  display: flex !important;
}

.contact-inner {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255,255,255,0.03);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    /* FORCE VISIBILITY V12.5 */
    opacity: 1 !important; 
    visibility: visible !important;
    transform: none !important;
    color: #fff !important;
}

.contact-inner * {
    color: inherit; /* Force héritage du blanc */
    opacity: 1 !important;
    visibility: visible !important;
}

.form-group-contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent) !important;
}

.form-group-contact input, 
.form-group-contact textarea {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.8rem;
    color: #fff !important;
    border-radius: 4px;
    font-family: var(--font-sans);
}


/* ============================================================
   MOBILE BOTTOM SHEET (INFO BAND)
   ============================================================ */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 20, 18, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 2147483647 !important; /* ROYALE ABSOLU */
    transform: translateY(calc(100% - 60px)); /* Affiche juste la poignée */
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    color: #fff;
    display: none;
}
.bottom-sheet.active {
    transform: translateY(0) !important;
}

/* Cache automatique sur l'accueil (index.php) V13.0 */
body[data-page="home"] .bottom-sheet,
.page-home .bottom-sheet {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Affichage uniquement sur les pages intérieures (Portfolio/Galerie) ET UNIQUEMENT MOBILE */
@media (max-width: 991px) {
    body[data-page="interior"] .bottom-sheet,
    .page-portfolio .bottom-sheet,
    .page-galerie .bottom-sheet {
        display: block !important;
    }
}

/* BANISSEMENT DESKTOP (V13.1) */
@media (min-width: 992px) {
    .bottom-sheet {
        display: none !important;
    }
}




/* V14.8 - Nettoyage Conflits */


@media (max-width: 991px) {
    body[data-page="interior"] .bottom-sheet { 
        display: block !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

.bottom-sheet.active {
    transform: translateY(0) !important;
}

.bottom-sheet-handle {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #0f1412; /* Fond solide pour éviter le mélange */
    position: sticky;
    top: 0;
    z-index: 100;
    pointer-events: auto !important;
}

.bottom-sheet-handle span {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-accent);
}

/* Poignée visuelle */
.bottom-sheet-handle::before {
    content: '';
    position: absolute;
    top: 12px;
    width: 40px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.bottom-sheet-content {
    margin-top: 0; /* Sticky handle handles the space */
    padding: 2.5rem 1.5rem 5rem;
    text-align: center;
    max-height: 85vh;
    overflow-y: auto;
    background: #0f1412;
}

/* Animations Intro V15.2 */
#intro-quote-wrap.visible, #intro-name-wrap.visible {
    opacity: 1;
    visibility: visible;
}

.bs-title {
    font-family: var(--font-deco);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-style: italic;
    color: #fff;
}

.bs-category {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.age-gate-content {
    background: rgba(10,15,12,0.95);
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
}

.age-gate-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.age-gate-btn {
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-accent);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.age-gate-btn.btn-enter {
    background: var(--color-accent);
    color: #000;
}

.age-gate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* === ALIGNEMENT DESIGN V15.1 === */
.bs-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    padding: 15px 0;
}

.bs-meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #b1b1b1;
    font-family: 'Raleway', sans-serif;
}

.bs-meta-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-accent); /* OR ROYAL */
}

.bs-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e1e1e1;
    margin-top: 10px;
}

.bs-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 5px;
}

/* ============================================================
   MODIFICATION 3 & 4 — CARROUSEL CENTRÉ
   ============================================================ */

.centered-carousel-view {
  background-color: var(--color-bg);
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start; /* Start from top to allow scrolling */
  height: 100vh;
  width: 100vw;
  display: flex !important;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 40px 0; /* Alleviate edges */
}

.carousel-container-centered {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  margin: auto; /* Center in scrollable view */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

.centered-border {
  border: none; /* SUPPRESSION DE LA BORDURE */
  box-shadow: none; /* SUPPRESSION DE L'OMBRE */
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: transparent; /* FOND TRANSPARENT */
}

.info-centered-bottom {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent; /* SUPPRESSION DU FOND SOMBRE */
  color: var(--color-text-light);
  min-height: auto;
  border-top: none; /* SUPPRESSION DU SÉPARATEUR */
  text-align: center;
}

.info-centered-bottom .info-title {
  font-size: 1.4rem !important;
  margin-bottom: 0.5rem !important;
}

.info-centered-bottom .info-cat {
  margin-bottom: 0.5rem !important;
}

.back-nav-centered {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
}

.back-nav-centered:hover {
  opacity: 0.7;
}

.carousel-dots-centered {
  position: absolute;
  bottom: 120px; /* Au dessus du bandeau info */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
}

.photo-counter-centered {
  position: absolute;
  bottom: 120px;
  right: 2rem;
  z-index: 100;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
}

/* Cache la sidebar sur mobile (Modif 3) */
@media (max-width: 768px) {
  .centered-carousel-view .col-menu {
    display: none !important;
  }
  .carousel-container-centered {
    width: 95vw;
    height: 70vh;
  }
  .centered-border {
    border-width: 0;
  }
  .info-centered-bottom {
    padding: 1rem;
    font-size: 0.9rem;
    background: transparent;
  }
}
/* REFINEMENT: Suppression du bandeau dépliant et affichage des infos */
.bottom-sheet, #bottom-sheet {
  display: none !important;
}

/* Sur mobile, on garde le bouton cercle flottant et on cache le lien texte */
@media (max-width: 768px) {
  .centered-carousel-view .back-nav-centered {
    display: none !important;
  }
  .centered-carousel-view .mobile-back-home {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .centered-carousel-view {
    height: auto;
    min-height: 100vh;
    padding-top: 5rem;
    overflow-y: visible;
  }
  .carousel-container-centered {
    width: 100vw;
    height: auto;
    justify-content: flex-start;
  }
  .centered-border {
    border-width: 0;
    height: auto;
    aspect-ratio: 4/5;
  }
  .info-centered-bottom {
    display: block !important;
    position: relative;
    margin-top: 5px;
/* === ALIGNEMENT DESIGN V15.1 === */
.bs-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    padding: 15px 0;
}

.bs-meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.95rem;
    color: #b1b1b1;
    font-family: 'Raleway', sans-serif;
}

.bs-meta-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-accent); /* OR ROYAL */
}

.bs-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #e1e1e1;
    margin-top: 10px;
}

.bs-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 5px;
}

/* ============================================================
   MODIFICATION 3 & 4 — CARROUSEL CENTRÉ
   ============================================================ */

.centered-carousel-view {
  background-color: var(--color-bg);
  flex-direction: column !important;
  align-items: center;
  justify-content: flex-start; /* Start from top to allow scrolling */
  height: 100vh;
  width: 100vw;
  display: flex !important;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding: 40px 0; /* Alleviate edges */
}

.carousel-container-centered {
  position: relative;
  width: 90vw;
  max-width: 1400px;
  margin: auto; /* Center in scrollable view */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

.centered-border {
  border: none; /* SUPPRESSION DE LA BORDURE */
  box-shadow: none; /* SUPPRESSION DE L'OMBRE */
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background: transparent; /* FOND TRANSPARENT */
}

.info-centered-bottom {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent; /* SUPPRESSION DU FOND SOMBRE */
  color: var(--color-text-light);
  min-height: auto;
  border-top: none; /* SUPPRESSION DU SÉPARATEUR */
  text-align: center;
}

.info-centered-bottom .info-title {
  font-size: 1.4rem !important;
  margin-bottom: 0.5rem !important;
}

.info-centered-bottom .info-cat {
  margin-bottom: 0.5rem !important;
}

.back-nav-centered {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 1000;
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s;
}

.back-nav-centered:hover {
  opacity: 0.7;
}

.carousel-dots-centered {
  position: absolute;
  bottom: 120px; /* Au dessus du bandeau info */
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
}

.photo-counter-centered {
  position: absolute;
  bottom: 120px;
  right: 2rem;
  z-index: 100;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--color-text-dim);
  letter-spacing: 0.1em;
}

/* === REFINEMENTS MOBILES COMPLETS (V16.2) === */
@media (max-width: 768px) {
  .centered-carousel-view .col-menu {
    display: none !important;
  }
  
  .centered-carousel-view {
    height: auto;
    min-height: 100vh;
    padding-top: 5rem;
    overflow-y: visible;
  }

  .carousel-container-centered {
    width: 100vw;
    height: auto;
    justify-content: flex-start;
  }

  .centered-border {
    border-width: 0;
    height: auto;
    aspect-ratio: 4/5;
  }

  .info-centered-bottom {
    display: block !important;
    position: relative;
    margin-top: 5px;
    padding: 1rem;
    font-size: 0.9rem;
    background: transparent;
    min-height: auto;
  }

  .centered-carousel-view .back-nav-centered {
    display: none !important;
  }

  .centered-carousel-view .mobile-back-home {
    display: flex !important;
  }
}

/* REFINEMENT: Suppression du bandeau dépliant et affichage des infos */
.bottom-sheet, #bottom-sheet {
  display: none !important;
}

/* Styling pour les icônes SVG natives (Astro Project) */
.zodiac-svg-icon {
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wheel-segment:hover .zodiac-svg-icon {
  transform: scale(1.35);
  filter: drop-shadow(0 0 5px rgba(255, 230, 150, 0.8));
}

.wheel-segment {
  cursor: pointer;
  transition: opacity 0.3s;
}

/* Horizontal Photo Info Layout V16 */
.info-horizontal-v16 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.info-title-p {
    color: var(--color-accent);
    font-weight: 700;
}
.info-star {
    color: var(--color-accent);
    font-size: 0.65rem;
    opacity: 0.7;
}
.info-rights {
    font-size: 0.7rem;
    font-style: italic;
    opacity: 0.6;
}
.info-desc-v16 {
    margin-top: 1rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

/* Photo blur in gallery for adult content */
.gallery-item.is-restricted img {
  filter: blur(12px);
}
.gallery-item.is-restricted:hover img {
  filter: blur(4px);
  transition: filter 0.5s ease;
}
