:root {
  --color-bg: #ffffff;
  --color-bg-alt: #0b0d10;
  --color-border: #1f2227;
  --color-text: #f4f4f4;
  --color-text-defaut: #000000;
  --color-text-muted: #8c9098;
  --color-text-soft: #b5b9c2;
  --color-accent-soft: #9da1aa;
  --color-text-primary: #ffffff;
  --color-text-muted: #aaaaaa;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;

  --space-xl: 2.8rem;
  --header-height-mobile: 56px;

  --thumb-height: 230px;
}

/* =======================================================
   FIX URGENT - CONTENU À GAUCHE + CENTRAGE
   ======================================================= */
body.theme-dark {
  padding: 0 !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

.page-main {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 5.6rem 20px 3.75rem 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.text-page,
.about-page {
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.text-content {
  width: 100% !important;
  max-width: 700px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* =======================================================
   FIX GLOBAL - POLICE SUR TOUTES LES PAGES
   ======================================================= */
html, body, * {
  font-family: var(--font-base) !important;
}

/* PAGES ABOUT & CONTACT */
.text-page, .about-page {
  padding-top: 3.75rem !important;
  padding-inline: 10px;
}

.page-main .text-content {
  max-width: 500px !important;
  /* margin: 0 auto 2.5rem !important; */
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.text-content h1, .text-content h2 {
  color: var(--color-text) !important;
  letter-spacing: 0.08em;
}

body.theme-dark {
  outline: 5px solid red;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body.theme-dark {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
}

a {
  color: inherit;
}


.breadcrumb-item a {
  color: #7a7f88;
  text-decoration: none;
  transition: color 0.18s ease-out;
}

.breadcrumb-separator {
  color: #7a7f88;
  margin: 0 0.2rem;
}

.breadcrumb-item[aria-current="page"] {
  color: #7a7f88;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* ACCESSIBILITÉ : Texte caché visuellement mais accessible aux lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* PAGES INTERNES */
.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* padding: 6.4rem 0 3.4rem;
  padding-top: 3.75rem; */
  background-color: var(--color-bg);
}

.gallery-page,
.text-page,
.home-page {
  padding-inline: 10px;
}

/* Wrapper des pages texte */
.text-page {
  padding-inline: 10px;
}

.page-header {
  max-width: 900px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.page-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-defaut);
  padding-block: 1.4rem;
  text-transform: uppercase;
}

.home-intro {
  max-width: 900px;
  margin: 2rem auto 2rem;
  padding: 0 10px;
  text-align: center;
}

.home-intro {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}

.home-title {
  font-size: 1.8rem;
  margin: 0;
}

.home-baseline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-soft);
}

/* Contenu centré avec largeur confortable */
.text-content {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.text-content h2 {
  color: var(--color-text);
  letter-spacing: 0.08em;
}

.text-content p {
  margin-bottom: 1rem;
}

.text-content section {
  margin-bottom: 1.8rem;
}

.home-hero-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 2rem;
}

.hero-image {
  position: relative;
  inline-size: 100%;
  max-width: 1200px;
  margin: 0 10px;
  margin-top: -2rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.hero-image-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
}

.hero-image-placeholder {
  inline-size: 100%;
  block-size: 420px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: linear-gradient(135deg, #2a313b, #151922);
}

/* ==========================
   RESPONSIVE GLOBAL (bases.css)
   ========================== */
@media (max-width: 768px) {

  /* grille home : 2 colonnes, marges correctes */
  .hero-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 2rem 2px !important;
    gap: 0.6rem !important;
  }

  /* 🟡 MARGES LATÉRALES PAGES GALERIE */
  /* main.page-main.gallery-page {
    max-width: 1400px;
    margin: 0 auto;   
    padding: 60px 20px 60px !important;
  box-sizing: border-box;
  } */

  /* galeries internes */
  .gallery {
    padding: 2rem 0.5rem !important;
  }
    .page-main {
    padding-top: 40px !important;    /* mobile : espace base header → vignettes */
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-bottom: 2.6rem !important;
  }
  /* pages typées : on laisse .page-main gérer les marges latérales */
  .gallery-page,
  .text-page,

  .home-page {
    padding-inline: 0 !important;
  }

  .page-header {
    margin-bottom: 1.6rem;
    padding-inline: 2px !important;
  }

  .page-header h1 {
    margin: 0 0 0.5rem;
  }

  .page-subtitle {
    font-size: 0.85rem;
  }

  .text-content {
    padding-inline: 4px !important;
  }

  .about-page {
    padding: 80px 5px !important;
  }

  .contact-page {
    padding: 80px 5px !important;
  }

  /* logo un peu plus petit qu'en desktop mais lisible */
  .brand-mark {
    width: 60px !important;
    height: 60px !important;
  }

  /* MARGES LATÉRALES HOME */
  main.page-main.home-page {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
}

/* FIX PORTFOLIO SUBMENU - ESPACE BLANC SOUS "PORTFOLIO" */
@media (max-width: 1024px) {
  .nav-item-portfolio {
    width: 100% !important;
  }

  .nav-item-portfolio.is-open .nav-portfolio-submenu {
    display: block !important;
    margin-top: -8px !important;
    padding-top: 0 !important;
  }

  .nav-portfolio-submenu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
  }

  .nav-portfolio-submenu li {
    margin: 0 !important;
    padding: 0.3rem 1rem !important;
  }

  .nav-portfolio-submenu a {
    color: #b0b0b0 !important;
    text-decoration: none !important;
    display: block !important;
  }

  .nav-portfolio-submenu a:hover {
    color: #ffffff !important;
  }
}

/* RESPONSIVE MOBILE - CENTRER TITRE HEADER 31/12/2025 */
@media (max-width: 1024px) {
  .brand-title {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
  }

  .brand-text {
    text-align: center !important;
    width: 100% !important;
  }

  .brand-title {
    font-size: 14px !important;

  }

  .brand {
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Ajustement spécifique pour la page À propos */
.about-page .text-content {
  margin-bottom: 1.5rem;
}

/* SIXIÈME TENTATIVE */
/* État par défaut : étoiles vides */
.lightbox-star {
  cursor: pointer;
  font-size: 1.4rem;
  color: #555555;
  transition: color 0.15s ease-out, transform 0.1s ease-out;
}

/* État sélectionné : note enregistrée */
.lightbox-star.is-filled {
  color: #ffffff;
}

/* État survol (prévisualisation de la note) */
.lightbox-stars:hover .lightbox-star {
  color: #777777;
}

.lightbox-stars:hover .lightbox-star:hover,
.lightbox-stars:hover .lightbox-star:hover ~ .lightbox-star {
  color: #ffffff;
}

/* PAGE ABOUT (À PROPOS) */
.about-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.about-page p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.about-intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

/* PROPRIÉTÉS DES TITRES ET SOUS-TITRES DES VIGNETTES DE PAGE DE GALERIES */
.gallery-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0));
  color: #f0f0f0;
  font-size: 1.2rem;
}

.gallery-figure .gallery-subtitle {
  color: #e8e8e8;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.gallery-item .gallery-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* 28/12 MODIFICATION PAGE ACCUEIL SOIT 8 CATÉGORIES */
.hero-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* DESKTOP : GRILLE 4 COLONNES AVEC MARGES POUR LES GALERIES (COMME POUR L'ACCUEIL) */
.gallery-list {
  column-count: 4;
  column-gap: 1.5rem;
  padding: 2rem;
}

/* 🚨 FIX HAMBURGER ACCUEIL MOBILE */
@media (max-width: 1024px) {
  .hero-gallery { 
    grid-template-columns: repeat(3, 1fr);
  }
  .home-header .main-nav {
    display: none !important;
  }
  
  .home-header .main-nav.is-open {
    display: block !important;
  }
  
  .home-header .nav-portfolio-submenu {
    display: none !important;
  }
  
  .home-header .nav-item-portfolio.is-open .nav-portfolio-submenu {
    display: block !important;
  }
}

/* MARGES UNIFORMES ACCUEIL/GALERIE */
.home-page .hero-gallery,
.gallery-page .gallery {
  /* padding: 2rem 1.5rem !important; */
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* =======================================================
   PAGES ABOUT & MENTIONS-LEGALES
   ======================================================= */

.about-page {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 80px 20px !important;
}

.about-page .text-content {
  max-width: 700px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.about-page .page-header {
  max-width: 700px !important;
  margin: 0 auto 1rem auto !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.about-page h1 {
  color: #000000 !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  font-size: 1.8rem !important;
  text-align: left !important;
  margin-top: 0 !important;
}

.about-page h2 {
  color: #000000 !important;
  margin: 0.8rem 0 0.5rem 0 !important;
  padding: 0 !important;
  font-size: 1.2rem !important;
  text-align: left !important;
}

.about-page p {
  margin: 0 0 0.8rem 0 !important;
  padding: 0 !important;
  line-height: 1.6 !important;
  color: #000000 !important;
  font-size: 0.95rem !important;
  text-align: left !important;
}

/* =======================================================
   FIX CONTACT FORM - RECENTRAGE
   ======================================================= */

.contact-page {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 80px 20px !important;
}

.contact-page .page-header {
  max-width: 700px !important;
  margin: 0 auto 2rem auto !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.contact-page h1 {
  color: #000000 !important;
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
  font-size: 1.8rem !important;
  text-align: center !important;
}

.contact-page .page-subtitle {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 0.95rem !important;
  color: #000000 !important;
  text-transform: uppercase !important;
}

.contact-page .text-content {
  max-width: 600px !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 0 !important;
}

.contact-page .contact-form {
  max-width: 600px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

/* FIX HAMBURGER - SUPPRIMER ESPACE BLANC (TOUTES LES PAGES) */
@media (max-width: 1024px) {
  .site-header .main-nav.is-open,
  .home-header .main-nav.is-open {
    display: block !important;
    margin-top: -13px !important;
    background-color: var(--color-bg-alt) !important;
  }

  body {
    overflow-x: hidden !important;
  }

  /* Reste du CSS mobile... */
}

/* FIX HAMBURGER - BANDE BLANCHE (TOUTES LES PAGES) */
@media (max-width: 1024px) {
  header .main-nav.is-open,
  .site-header .main-nav.is-open,
  .home-header .main-nav.is-open {
    display: block !important;
    margin-top: -13px !important;
    background-color: var(--color-bg-alt) !important;
  }

  body {
    overflow-x: hidden !important;
  }
}

/*  ==========================
   LOGO DANS LE HEADER
   ========================== */

/* Conteneur global marque (logo + texte) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bloc qui contient l'image du logo */
.brand-mark {
  width: 48px;        /* taille du logo desktop */
  height: 48px;
  flex-shrink: 0;     /* ne pas écraser le logo si le header se resserre */
}

/* Image du logo */
.logo-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Texte "Adrien – Photographies" */
.brand-text .brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  color: var(--color-text-muted);
}

/* HEADER LIGNE PRINCIPALE */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #05070b;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px !important;   /* ← au lieu de 12px 20px */

}

/* LOGO PLUS GRAND */
.brand-mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* FORCER LA TAILLE DU LOGO */
.brand-mark {
  width: 60px !important;    /* ajuste la valeur si besoin */
  height: 60px !important;
  flex: 0 0 auto !important;
}

.logo-image {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
}

/* COMPENSATION POUR HEADER STICKY/FIXED */
/* .page-main {
  padding-top: 80px;   
} */


/* MARGE ENTRE HEADER ET GALERIE */
body > main > section.hero-gallery {
margin-top: -100px !important;
}
/* 17h42 */
/* ESPACE GLOBAL SOUS LE HEADER */
.page-main {
  padding-top: 60px;    /* valeur que tu veux en desktop */
}

/* ESPACE GLOBAL SOUS LE HEADER – VERSION FINALE */
.page-main.gallery-page {
  max-width: 1400px;
  /* margin: 0 auto !important; */
  margin: 0 auto;
  padding: 50px 20px 60px !important;  /* valeur desktop par défaut */
  box-sizing: border-box;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.series-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.series-card:hover {
  transform: scale(1.02);
}

.series-figure {
  position: relative;
  margin: 0;
}

.series-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.series-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: transparent;
  transition: background-color 0.4s ease;
  z-index: 1;
}

.series-card:hover::before {
  background-color: var(--dominant-color, rgba(0,0,0,0.75));
}

.series-card:hover .series-cover {
  filter: brightness(0.8);
}

.series-meta {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
  z-index: 2;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}

.series-card:hover .series-meta {
  opacity: 1;
  transform: translateY(0);
}

.series-title {
  font-size: 1.4rem;
  margin: 0 0 0.5rem 0;
  font-weight: bold;
}

.series-subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}
