/* === VARIABLES & RESET === */
:root {
  --bg-dark: #050505;       /* Noir très profond */
  --bg-panel: #111111;      /* Fond des panneaux */
  --text-main: #e6e6e6;
  --text-muted: #888888;
  --accent: #ffffff;
  --border-color: #222222;
  
  --font-title: "Cinzel", serif;
  --font-body: "Cormorant", serif;
  
  --radius: 8px;
  --header-height: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
}
.logo { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: #fff;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.main-nav a:hover { color: var(--accent); }

/* Langs */
.langs { display: flex; gap: 5px; margin-left: 1rem; padding-left: 1rem; border-left: 1px solid #333; }
.lang-btn {
  background: none; border: none;
  color: #666; cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.8rem;
  padding: 2px 5px;
  transition: color 0.3s;
}
.lang-btn:hover, .lang-btn[aria-pressed="true"] { color: #fff; }

/* Burger */
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 25px; height: 2px; background: #fff; margin: 6px 0; transition: 0.3s; }


/* === RESPONSIVE (MOBILE & TABLETTE) === */
@media (max-width: 900px) {

  /* 1. Ajustement du Header et Burger */
  .header-inner { 
    padding: 0 1.5rem; 
  }
  
  .burger { 
    display: block; 
    z-index: 200; /* Le burger doit toujours être au-dessus du menu */
    position: relative;
  }

  /* 2. Le Menu Mobile (Fond noir plein écran) */
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Prend toute la hauteur de l'écran */
    background: var(--bg-dark); /* Fond noir opaque */
    
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Espace entre les liens */
    
    /* Animation d'ouverture */
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 150; /* En dessous du bouton burger mais au-dessus du reste */
    
    /* Pour éviter que le menu ne soit coupé sur les petits écrans en mode paysage */
    overflow-y: auto; 
    padding: 80px 0;
  }

  /* Quand le menu est ouvert (via JS) */
  .main-nav.active { 
    transform: translateY(0); 
  }

  /* Style des liens dans le menu mobile */
  .main-nav a { 
    font-size: 1.8rem; /* Plus gros pour le tactile */
    margin: 0;
    display: block;
  }

  /* 3. Correction du sélecteur de langue sur mobile */
  .langs {
    margin-left: 0;
    padding-left: 0;
    border-left: none; /* On enlève la barre verticale */
    margin-top: 1rem;
    gap: 1.5rem; /* Espacer les langues */
  }
  
  .lang-btn {
    font-size: 1.2rem; /* Plus lisible */
    padding: 10px;
  }

  /* 4. Ajustement des Sections et Textes */
  .section { 
    padding: 4rem 1.5rem; /* Marges latérales confortables */
  }
  
  .hero h1 {
    font-size: 2.5rem; /* Titre un peu plus petit sur mobile */
  }

  /* 5. Grilles d'images (1 seule colonne sur mobile) */
  .grid-albums, 
  .grid-videos { 
    grid-template-columns: 1fr; /* Une seule colonne pour bien voir les images */
    padding: 20px 0; /* Enlever le padding interne excessif */
  }
  
  /* Ajustement de la carte pour qu'elle ne soit pas coupée */
  .card {
    aspect-ratio: 16/9; /* Garder le format vidéo/photo standard */
    width: 100%;
  }

  /* 6. Mise en page "À propos" */
  .about-grid { 
    grid-template-columns: 1fr; /* Texte au-dessus, images en dessous */
    gap: 2rem;
  }
  
  .about-gallery { 
    margin-top: 1rem; 
  }

  /* 7. Formulaire de contact */
  .contact-form {
    padding: 1.5rem; /* Moins de padding interne */
  }
  
  /* Empêcher le zoom automatique sur iPhone quand on clique sur un input */
  .contact-form input, 
  .contact-form textarea {
    font-size: 16px; 
  }
}

/* === HERO === */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-dark) 70%);
  padding: 2rem;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.1em;
  color: #fff;
}
.hero .separator { color: #444; font-weight: 300; }
.hero .subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

/* === SECTIONS & ACCORDION === */
.section { padding: 4rem 2rem; max-width: 1400px; margin: 0 auto; }
.content-wrapper { max-width: 1200px; margin: 0 auto; }
.small-width { max-width: 800px; }

/* Conteneur pour regrouper proprement les accordéons */
.accordion-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-title);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #fff;
  letter-spacing: 0.1em;
}

/* === ACCORDION STYLES (Nouveau Design Épuré) === */

/* Le conteneur global du volet */
.collapsible-wrapper {
  background: transparent; /* On enlève le fond gris pour un look épuré */
  border-bottom: 1px solid #333; /* Juste une ligne fine de séparation */
  margin-bottom: 0; /* On colle les sections pour faire une liste propre */
  overflow: hidden;
  transition: background 0.3s ease;
}

.collapsible-wrapper.open {
  background: rgba(255, 255, 255, 0.02); /* Très léger éclaircissement quand ouvert */
}

/* L'entête (Le titre sur lequel on clique) */
.collapsible-header {
  padding: 2rem 1rem; /* Plus d'espace vertical pour l'élégance */
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.collapsible-header:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 2rem; /* Petit mouvement vers la droite au survol */
}

/* Le texte du titre */
.collapsible-header span {
  font-family: var(--font-title);
  font-size: 1.5rem; /* Plus gros */
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.collapsible-header:hover span,
.collapsible-wrapper.open .collapsible-header span {
  opacity: 1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* L'icône (+ / -) */
.collapsible-icon {
  font-family: "Courier New", monospace;
  font-size: 1.5rem;
  color: #666;
  transition: transform 0.4s ease, color 0.3s;
  display: inline-block;
  width: 30px; 
  text-align: center;
}

/* Rotation de l'icône quand ouvert */
.collapsible-wrapper.open .collapsible-icon {
  transform: rotate(45deg); /* Le + devient une croix */
  color: #fff;
}

/* === LE CONTENU (CORRECTION DU BUG VISUEL) === */
.collapsible-content {
  max-height: 0;
  opacity: 0; /* Ajout clé : on rend transparent quand fermé */
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  will-change: max-height, opacity;
  /* IMPORTANT : Pas de padding ici pour éviter que ça dépasse quand fermé */
  padding: 0; 
}

.collapsible-wrapper.open .collapsible-content {
  opacity: 1;
  /* Le padding est géré à l'intérieur via la grille, pas ici */
}

/* Ajustement de la grille pour qu'elle ne colle pas aux bords une fois ouvert */
.grid {
  display: grid;
  gap: 20px;
  /* C'est ici qu'on met l'espace, il sera caché par le max-height du parent */
  padding: 40px 20px 60px 20px; 
}

/* === ÉTAT OUVERT (OPEN) === */

.collapsible-wrapper.open {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-dark); /* Le fond redevient sombre quand ouvert pour laisser place aux images */
}

.collapsible-wrapper.open .collapsible-header {
  background: rgba(15, 15, 15, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Quand ouvert, la barre gauche reste allumée */
.collapsible-wrapper.open .collapsible-header::before {
  opacity: 1;
  transform: scaleY(1);
  background: #fff;
}

.collapsible-wrapper.open .collapsible-header span {
  color: #fff;
}

.collapsible-wrapper.open .collapsible-icon {
  transform: rotate(45deg);
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease-in-out;
  /* Fond subtil pour le contenu */
  background: linear-gradient(to bottom, #080808, #000);
}
/* === GRID & CARDS === */
.grid {
  display: grid;
  gap: 20px;
  padding: 24px 24px 26px;
}

/* Un peu plus de cohérence visuelle sur les cartes (propre + net) */
.card {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}
.card:hover {
  border-color: rgba(255,255,255,0.18);
}
.card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.25) 55%, transparent 85%);
}
.grid-albums { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-videos { grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); }

.card {
  position: relative;
  aspect-ratio: 16/9;
  background: #080808;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #1a1a1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: #444;
}

/* FIX IMAGES */
.card .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ESSENTIEL pour éviter l'étirement */
  display: block;
  opacity: 0.7;
  transition: opacity 0.4s, transform 0.6s;
}
.card:hover .thumb { opacity: 1; transform: scale(1.05); }

/* Card Info Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  pointer-events: none;
}
.card-title {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.card-meta {
  font-size: 0.85rem;
  color: #888;
}

/* Video Overlay */
.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 3rem;
  color: rgba(255,255,255,0.8);
  opacity: 0;
  transition: 0.3s;
  z-index: 2;
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text { font-size: 1.1rem; color: #ccc; text-align: justify; }
.about-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-gallery img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.8; transition: 0.3s; cursor: pointer;
}
.about-gallery img:hover { opacity: 1; transform: scale(1.02); }

/* === CONTACT FORM === */
.contact-form {
  background: var(--bg-panel);
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-bottom: 3rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem;
  font-family: var(--font-title); color: #aaa; font-size: 0.9rem;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  background: #050505;
  border: 1px solid #333;
  color: #fff;
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: #777;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: #fff; color: #000;
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-btn:hover { background: #ccc; }

.socials { display: flex; justify-content: center; gap: 1.5rem; }
.socials a { color: #555; width: 30px; height: 30px; transition: color 0.3s, transform 0.3s; }
.socials a:hover { color: #fff; transform: translateY(-3px); }

.copyright { text-align: center; color: #444; font-size: 0.8rem; margin-top: 3rem; }

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.96);
  z-index: 1000; display: none; flex-direction: column;
  justify-content: center; align-items: center;
}
.lightbox.active { display: flex; }
.lb-figure { width: 90%; height: 80%; display: flex; justify-content: center; align-items: center; margin: 0; }
.lb-image { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 40px #000; }
.lb-figure iframe { width: 80vw; height: 45vw; max-width: 1200px; max-height: 675px; border: none; }
.lb-close, .lb-nav {
  position: absolute; background: none; border: none; color: #fff; cursor: pointer; transition: 0.3s;
}
.lb-close { top: 20px; right: 30px; font-size: 3rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 20px; opacity: 0.5; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-caption { margin-top: 15px; color: #aaa; font-family: var(--font-title); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .header-inner { padding: 0 1.5rem; }
  .burger { display: block; z-index: 102; }
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #000; flex-direction: column; justify-content: center;
    transform: translateY(-100%); transition: transform 0.4s ease;
    z-index: 101;
  }
  .main-nav.active { transform: translateY(0); }
  .main-nav a { font-size: 1.5rem; margin: 1rem 0; }
  
  .about-grid { grid-template-columns: 1fr; }
  .about-gallery { margin-top: 2rem; }
  
  .section { padding: 3rem 1.5rem; }
  .grid { padding: 15px; gap: 15px; }
}