
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #000000;
  color: #222;
  line-height: 1.6;
}

header {
  background: #000000;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;    /* crée un nouveau stacking context */
  z-index: 1000;         /* un grand nombre pour passer devant la vidéo */
  background: #000;      /* assure-toi d’avoir un fond opaque */
}

/* Force les logos/images d’entête à ne jamais dépasser leur conteneur */
header img,
header .logo {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-top: 1rem !important;
}

header h1 {
  font-family: 'Fugaz One', cursive;
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
}

.lang-selector {
  margin-bottom: 1rem;  /* ajuste cette valeur à ton goût */
}

nav {
  position: relative;
  z-index: 1001;
  background: #000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  /* 1. HAUTEUR INTERNE : remplace margin-top par du padding */
  padding: 1rem 0 !important;          /* 1rem en haut et en bas */

  border-bottom: 3px solid #fbe580;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  /* margin-top: 0;         <-- assure-toi qu'il n'y a plus de margin-top ici */
}

/* 1) Cacher le bouton hamburger en desktop/tablette */
.hamburger {
  display: none;
}

nav a {
  color: #fbe580;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s;
}

nav a:hover {
  background: #383838;
}

.container {
  /* la largeur totale (incluant padding) ne dépassera jamais 100% du viewport */
  box-sizing: border-box;
  width: calc(100% - 4rem);   /* 100% – (2rem à gauche + 2rem à droite) */
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

h1.main-title {
  font-family: 'Audiowide', cursive;
  font-size: 2.5rem;
  color: #fbe580;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-family: 'Audiowide', cursive;  /* hérite de nav a */
  color: #fbe580;                      /* même couleur */
  text-transform: uppercase;           /* idem */
  font-weight: bold;                   /* idem */
  font-size: 1.25rem;                  /* un peu plus petit que nav */
  text-align: center;                  /* centré au‑dessus de la grille */
  margin: 2rem 0 1rem;                 /* espace au‑dessus et en dessous */
}

.section-subtitle {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: left;
  font-family: 'Roboto', sans-serif; /* identique au texte */
}

span.dt {
  display: block;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #7b1e1e;
  font-family: 'Fugaz One', cursive;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

span.dt2, span.dt3 {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #7b1e1e;
  font-family: 'Fugaz One', cursive;
  font-weight: bold;
}

p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: justify;
}

img.float-right {
  float: right;
  margin: 0 0 1rem 1rem;
  max-width: 280px;
  border-radius: 4px;
}

img.float-left {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 280px;
  border-radius: 4px;
}

footer {
  background-color: #000000; /* Couleur de fond rouge foncé */
  color: #fbe580; /* Couleur du texte */
  padding: 20px 0; /* Padding vertical pour aérer le footer */
  text-align: center; /* Centrer tout le contenu du footer */
}

.footer-content {
  display: inline-flex; /* Utiliser Flexbox pour aligner le texte et l'icône sur la même ligne */
  justify-content: center; /* Centrer les éléments horizontalement */
  align-items: center; /* Aligner les éléments verticalement */
  gap: 10px; /* Espacement entre le texte et l'icône */
}

.facebook-icon {
  width: 20px; /* Taille de l'icône */
  height: 20px; /* Taille de l'icône */
  transition: transform 0.3s ease; /* Animation lors du survol */
}

.facebook-icon:hover {
  transform: scale(1.2); /* Agrandir légèrement l'icône au survol */
}

.lang-selector strong {
  color: #fbe580;   /* ta nouvelle couleur */
}

.lang-selector a {
  font-family: 'Fugaz One', cursive;
  color: #c78100;
  font-size: 0.95rem;
  text-decoration: #fbe580;
  font-weight: bold;
  text-transform: uppercase;
  background-color: #fbe580;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: background 0.3s;
}
.lang-selector a:hover {
  background-color: #6d6d6d;
}


.hero-video {
  /* neutralisation de tout filtre */
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;

  /* positionnement plein‑largeur sous .hero */
  position: absolute;          /* <<< impératif */
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  /* taille complète du conteneur */
  width: auto;
  height: 100%;
  min-width: 100%;

  /* recadrage */
  object-fit: cover;
  object-position: top center;

  /* bien derrière le header */
  z-index: -1;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh !important;            /* ou la hauteur que tu préfères */
  overflow: hidden;
  border-bottom: 3px solid #fbe580;
  margin-bottom: 0rem;   /* enlève tout espace sous la vidéo */
}

.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  text-align: center;
  z-index: 5;
}

.hero-overlay.hidden {
  display: none !important;
}

.sound-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.sound-toggle:focus {
  outline: 2px solid #fff;
}

img.float-right:not([src*="photo-9"]),
img.float-left:not([src*="photo-9"]) {
  max-width: 340px;
}

.swiper-caption {
  text-align: center;
  font-size: 1.2rem;
  color: #7b1e1e;
  margin-top: 0.5rem;
  font-weight: bold;
  font-family: 'Fugaz One', cursive;
}
.swiper-button-next,
.swiper-button-prev {
  color: #aaa; /* ta couleur personnalisée */
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #7b1e1e;
}

form {
      max-width: 700px !important;
      margin: 3rem auto;
      background: #fff;
      padding: 1.5rem;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    form label {
      display: block;
      margin: 0.5rem 0 0.2rem;
      font-weight: bold;
    }
    form input, form textarea {
      width: 100% !important;
      padding: 0.5rem;
      margin-bottom: 1rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }
    form button {
      background: #b71c1c;
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      font-weight: bold;
      border-radius: 5px;
      cursor: pointer;
    }
    form button:hover {
      background: #7b1e1e;
    }
    
.contact-container {
  max-width: 1200px;
  width: 100%;
}

.section::after {
  content: "";
  display: table;
  clear: both;
}


.team-grid {
  display: grid;
  /* 5 colonnes fixes = largeur exacte de tes vignettes */
  grid-template-columns: repeat(5, 150px);
  /* espaces verticaux/horizontaux = tes anciens row/col gaps */
  row-gap: 20px;
  column-gap: 60px;
  /* centre la grille dans .container */
  justify-content: center;
  padding-top: 40px;  /* ton espace avant la première ligne */
  margin: 0 auto;     /* horizontalement centré */
}

/* Pour éviter tout “marge par défaut” de <figure> */
.member-card {
  margin: 0;
}


.member-card {
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
}


.member-card img {
  width: 150px;
  height: 200px;
  object-fit: contain;
  border-radius: 0px;
}

/* 1. Aligne le texte à gauche de l’image */
.member-card figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* ← passe de center à flex-start */
  margin-top: 0px;
  color: #fbe580;
}

/* 2. Rapproche la fonction du nom */
.member-card figcaption .role {
  font-style: italic;
  margin-top: -0.5rem;          /* ← réduit l’espace (au lieu de 4px) */
  color: #fbe580;
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.modal.open {
  display: block;
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
.modal-content {
  position: relative;
  width: 600px;
  max-width: 90%;
  margin: 60px auto;
  background: #fff;
  padding: 20px;
  border: 4px solid #fbe580;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
#modal-close {
  position: fixed !important;
  top: 10px !important;             /* ou 50px si tu veux plus bas pour prev/next */
  font-size: 1.5rem;
  color: #fbe580;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
#modal-prev,
#modal-next {
  position: fixed !important;
  top: 100px !important;             /* ou 50px si tu veux plus bas pour prev/next */
  font-size: 1.5rem;
  color: #fbe580;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
#modal-close { top: 10px; right: 10px; }
#modal-prev { left: 10px; }
#modal-next { right: 10px; }
.section {
  color: #fbe580;  
}




/* 1) Déclare les animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 2) Attribue-les au modal quand on l’ouvre */
.modal.open .modal-overlay {
  animation: fadeIn 0.5s ease forwards;
}
.modal.open .modal-content {
  animation: popIn 0.5s ease forwards;
}

/*── Animations de fermeture ───────────────────────────────────────────────────*/
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes popOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* Quand on ajoute la classe .closing au modal… */
.modal.closing .modal-overlay {
  animation: fadeOut 0.5s ease forwards;
}
.modal.closing .modal-content {
  animation: popOut  0.5s ease forwards;
}

.playlist-section {
  padding: 2rem 0;
}

.playlist-section .section-title {
  /* hérite déjà du style existant */
  margin-bottom: 1.5rem;
}

.playlist-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;             /* espace entre les colonnes */
  max-width: 900px;      /* ajuste selon ton container */
  margin: 0 auto;        /* centre sous le titre */
}

.playlist-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlist-content li {
  position: relative;
  padding-left: 0.75rem; /* espace pour le tiret */
  margin-bottom: 0.5rem;
  color: #fbe580;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
}

.playlist-content li::before {
  content: "–";          /* tiret comme puce */
  position: absolute;
  left: 0;
  color: #fbe580;
}

.section p + p {
  margin-top: 2rem;
}

/* Chrome, Edge et Safari */
.modal-content::-webkit-scrollbar {
  width: 12px;               /* largeur de la barre */
}
.modal-content::-webkit-scrollbar-track {
  background: #000;          /* couleur de fond du rail */
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #fbe580; /* couleur du curseur */
  border-radius: 6px;        /* coins arrondis du curseur */
  border: 3px solid #000;    /* espace autour du curseur */
}
.modal-content::-webkit-scrollbar-thumb:hover {
  background-color: #ffd700; /* survol */
}

/* Firefox */
.modal-content {
  scrollbar-width: thin;              /* “auto”, “thin” ou “none” */
  scrollbar-color: #fbe580 #000;      /* thumb track */
}

footer {
  border-top: 3px solid #fbe580;  /* ligne rouge de 3px */
  margin-top: 3rem;               /* espace au‑dessus, à ajuster */
  padding-top: 1rem;              /* petit padding pour respirer */
}


/* ─── Override pour que rien ne soit tronqué ─── */
.container,
.section,
.team-grid {
  overflow: visible !important;
}

/* Ajoute cet extrait à la fin de ton styles.css */
header .logo {
  display: block;
  margin: 0 auto;
  /* Espace sous le logo, pousse la lang-selector vers le bas */
  margin-bottom: 1rem; /* ajuste à ce que tu veux */
}










/* GALERIE POLAROID*/

/* 1) Mur « masonry » avec colonnes fluides */
.polaroid-wall {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

/* 2) Chaque Polaroid */
.polaroid {
  display: inline-block;
  width: 100%;              /* remplit la colonne */
  margin: 0 0 1rem;
  transform: rotate(var(--r)) translate(var(--x), var(--y));
  background: #fff;
  padding: 0.5rem 0.5rem 1rem;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  break-inside: avoid;      /* empêche les coupures de polaroid */
}

/* 3) Images adaptatives */
.polaroid img {
  display: block;
  width: 100%;
  height: auto;
}

/* 4) Légende */
.polaroid figcaption {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ─── Responsiveness ──────────────────────────────────────────── */
/* Mobile : 1 colonne */
@media (max-width: 600px) {
  .polaroid-wall {
    column-count: 1;
  }
}

/* Tablette : 2 colonnes */
@media (min-width: 601px) and (max-width: 900px) {
  .polaroid-wall {
    column-count: 2;
  }
}

/* Desktop large : 4 colonnes */
@media (min-width: 1201px) {
  .polaroid-wall {
    column-count: 4;
  }
}

@media (max-width: 600px) {
  /* 1. Sur index.html : centrer et réduire les images incluses dans le texte */
  /* on cible à la fois les images flottantes et toute img à l’intérieur des sections */
  img.float-left,
  img.float-right,
  .section img {
    float: none !important;             /* plus de float */
    display: block !important;          /* mode bloc pour centrer */
    margin: 1rem auto !important;       /* marge verticale + centré */
    max-width: 75% !important;          /* réduction à 75% de la largeur */
    height: auto !important;
  }
  }

/* ─── Tablettes (≤ 900px) ───────────────────────────────────────── */
@media (max-width: 900px) {
  /* Grille équipe : 3 colonnes flexibles */
  .team-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) !important;
    column-gap: 1rem !important;
    row-gap: 1.5rem !important;
  }

  /* Modale plus fluide */
  .modal-content {
    width: 80% !important;
    max-width: none !important;
    margin: 40px auto !important;
    padding: 1rem !important;
  }
  .modal-content img {
    max-width: 100% !important;
    height: auto !important;
  }

}




@media (max-width: 600px) {
  /* Container padding réduit */
  .container {
    padding: 0.5rem !important;
  }

   /* Nav en colonne */
  nav {
    flex-direction: column !important;
  }
  nav a {
    width: 100% !important;
    text-align: center !important;
  }

  /* Grille équipe : 2 colonnes */
  .team-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr)) !important;
    column-gap: 0.5rem !important;
    row-gap: 0.75rem !important;
  }

  /* Modale full‑width mobile */
  .modal-content {
    width: 90vw !important;      /* 90% de la viewport width */
    max-width: none !important;
    margin: 20px auto !important;
    padding: 0.75rem !important;
    border-width: 2px !important;
  }
  .modal-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fleches accessibles */
  #modal-prev,
  #modal-next,
  #modal-close {
    font-size: 1.8rem !important;
    padding: 0.25rem !important;
  }
  #modal-prev { top: 50px !important; left: 5px !important; }
  #modal-next { top: 50px !important; right: 5px !important; }
  #modal-close { top: 10px !important; right: 10px !important; }
}
@media (max-width: 900px) {
  /* 1. On centre TOUS les éléments de la bio (image + nom + texte) */
  .modal-content .bio-content {
    display: flex;
    flex-direction: column;
    align-items: center !important;   /* centre horizontal */
    text-align: center !important;    /* centre le texte */
    padding: 1rem !important;
  }

  /* 2. On force l’ordre : image d’abord, puis titre (h1 ou .name), puis paragraphes */
  .modal-content .bio-content > img {
    order: 1;
    margin-bottom: 1rem;
    max-width: 80vw;
    height: auto;
  }
  .modal-content .bio-content > h1,
  .modal-content .bio-content > .name {
    order: 2;
    margin: 0 0 1rem !important;
    white-space: nowrap;              /* empêche la coupure du prénom et nom */
    font-size: 1.5rem;                /* ajuste si nécessaire */
  }
  .modal-content .bio-content > p {
    order: 3;
    margin: 0.5rem 0 0 !important;
    line-height: 1.4;
  }

  /* 3. Si ton titre est parfois généré dans un <p class="name"> */
  .modal-content .bio-content .name {
    display: block !important;
  }
}
@media (max-width: 900px) {
  /* 1) Désactivation du position absolute pour le titre */
  .modal-content h1,
  .modal-content .name {
    position: static !important;
    order: 2 !important;            /* pour qu’il suive l’image */
    margin: 1rem 0 !important;      /* espace au‑dessous de l’image */
    text-align: center !important;  /* centrage */
    white-space: normal !important; /* autorise le retour à la ligne si besoin */
  }

  /* 2) S’assure que l’image est bien en order 1 */
  .modal-content img {
    order: 1 !important;
    margin: 0 auto 1rem !important;
  }

  /* 3) Le paragraphe de bio en order 3 (déjà en place si tu l’as ajouté) */
  .modal-content p {
    order: 3 !important;
  }
}
@media (max-width: 900px) {
  /* 1) Transforme .bio-header en colonne centrée */
  .modal-content .bio-content .bio-header {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
  }

  /* 2) Annule le float sur l’image pour qu’elle soit centrée */
  .modal-content .bio-content .bio-header img {
    float: none !important;
    margin: 0 0 1rem !important;
    max-width: 80vw;
    height: auto;
  }

  /* 3) Remets le titre dans le flux, juste sous l’image */
  .modal-content .bio-content .bio-header h1,
  .modal-content .bio-content .bio-header .name {
    position: static !important;
    float: none !important;
    margin: 0 0 1rem !important;
    white-space: normal !important;
    order: 2;
  }

  /* 4) Texte de la bio */
  .modal-content .bio-content .bio-text {
    order: 3;
    width: 100%;
  }

  /* 1. Affiche le bouton hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  margin: 1rem;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  width: 100%;
  height: 3px;
  background: #fbe580;
  border-radius: 2px;
}

/* 2. Masque les liens par défaut */
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  flex-direction: column;
  background: #000;
  border-top: 2px solid #fbe580;
}
.nav-links a {
  display: block;
  width: 100%;
  padding: 0.75rem 0rem;
  text-align: center;
  border-bottom: 1px solid #333;

}

/* 3. Quand on ajoute nav.open, on déroule les liens */
nav.open .nav-links {
  display: flex;
}
}






/* ─── Cacher la scrollbar sans bloquer le scroll ───────────────────────────── */
@media (max-width: 900px) {
  html, body {
    /* Firefox */
    scrollbar-width: none;
    /* IE 10+ */
    -ms-overflow-style: none;
  }
  /* Chrome, Safari, Opera */
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
  }
}
/* ─── Forcer le header/hero et leur bordure à pleine largeur ───────────────── */
.hero, header, nav {
  position: relative;
  /* On prend 100% de la largeur de la fenêtre, pas de la .container */
  width: 100vw;
  /* On centre ce bloc de 100vw sur le viewport */
  left: 50%;
  transform: translateX(-50%);
  /* On s’assure qu’aucun rebord (gouttière) ne persiste */
  margin: 0;
  padding: 0;
}

/* Toujours masquer toute overflow horizontale */
html, body {
  overflow-x: hidden;
}

/* Réduire la taille de la vidéo */
@media (max-width: 600px) {
  .hero {
    height: 20vh !important;
  }
}

@media (max-width: 1200px) {
  .hero {
    height: 50vh !important;
  }
}




/* ─── Lightbox : overlay plein écran ─────────────────────────────────────── */
#lightbox {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85) !important;
  z-index: 9999 !important;
  overflow: hidden;
}

/* Quand on enlève .hidden, on passe en flex et on couvre tout l’écran */
#lightbox:not(.hidden) {
  display: flex !important;
}

/* Image du slide : limitée à l’écran */
#lightbox .slide-polaroid img {
  max-width: 80vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
}

/* S’assure que les flèches et le bouton × sont au-dessus */
#lightbox .close,
#lightbox .prev,
#lightbox .next {
  position: absolute !important;
  font-size: 2rem !important;
  color: #fbe580 !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 10000 !important;
}

/* Positionnement des contrôles */
#lightbox .close { top: 20px; right: 20px; }
#lightbox .prev  { left: 20px;  top: 50%; transform: translateY(-50%); }
#lightbox .next  { right: 20px; top: 50%; transform: translateY(-50%); }


/* ─── Lightbox tablette (601–900px) ───────────────────────────────────────── */
@media only screen and (min-width: 601px) and (max-width: 900px) {
  /* 1) Cacher les flèches Prev/Next */
  #lightbox .prev,
  #lightbox .next {
    display: none !important;
  }

  /* 2) Activer le scroll horizontal dans le slide */
  #lightbox .slide-polaroid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* 3) Chaque image prend 100% de la largeur du viewport pour un swipe propre */
  #lightbox .slide-polaroid img {
    flex: 0 0 100% !important;
    width: 100% !important;
    scroll-snap-align: center !important;
    
  }
}

/* Polaroid version mobile : plus petits */

/* Mur masonry */
.polaroid-wall {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

/* Polaroid base */
.polaroid {
  display: inline-block;
  width: 100%;
  margin: 0 0 0rem;
  background: #fff;
  padding: 0.5rem 0.5rem 1.5rem;
  box-shadow: 1px 4px 10px rgba(0,0,1);
  cursor: pointer;
  break-inside: avoid;
  
  transform: rotate(var(--r)) translate(var(--x), var(--y)) scale(var(--scale, 1));
  transition: transform 0.3s ease;
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
}



.polaroid-btn {
  
   
  cursor: pointer;
}


/* Responsive colonnes */
@media (max-width: 600px) {
  .polaroid-wall {
    column-count: 1;
    padding: 0.5rem;
    column-gap: 0.4rem;
  }
}
@media (min-width: 601px) and (max-width: 900px) {
  .polaroid-wall {
    column-count: 2;
  }
}
@media (min-width: 1201px) {
  .polaroid-wall {
    column-count: 4;
  }
}

@media (max-width: 600px) {
  .polaroid {
    margin-top: -6rem; /* chevauchement */
    position: relative;
    z-index: 1;
  }

  .polaroid:first-child {
    margin-top: 0; /* pas de chevauchement sur le premier */
  }
}

@media (max-width: 900px) {
  .slide-polaroid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .slide-polaroid img {
  flex: 0 0 100%;
  height: auto;
  object-fit: contain;
  scroll-snap-align: center;
  pointer-events: auto;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0 1rem; /* espace intérieur pour éviter les débordements */
}

  .lightbox .prev,
  .lightbox .next {
    display: none !important;
  }
}

.carousel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.carousel img {
  max-width: 90vw;
  max-height: 90vh;
  flex: 0 0 100%;
  scroll-snap-align: center;
  object-fit: contain;
  padding: 0 1rem;
}

/* Carrousel tactile pour lightbox */
.lightbox .carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 1rem;
  scroll-padding-left: 1rem;
}

.lightbox .carousel img {
  flex: 0 0 80vw;
  max-width: 80vw;
  height: auto;
  object-fit: contain;
  scroll-snap-align: center;
  border-radius: 8px;
  box-sizing: border-box;
}

.lightbox .carousel {
  scroll-padding-left: 1rem;
}

/* LIGHTBOX TACTILE */
.lightbox .carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding: 2rem 1rem;
  box-sizing: border-box;
  max-width: 100vw;
}

.lightbox .carousel img {
  flex: 0 0 auto;
  max-width: 100%;
  height: auto;
  scroll-snap-align: center;
  object-fit: contain;
  border-radius: 8px;
}



/* Modal Galerie simplifié */
#gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#gallery-modal.open {
  display: flex;
}
#gallery-modal .modal-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;

  /* Taille explicite */
  width: 95vw;
  height: 90vh;

  /* Optionnel : tu peux toujours conserver un petit margin ou padding */
  margin: 0;           /* plus de marge qui rogne la boîte */
  padding: 20px 80px;  /* 20px haut/bas, 80px gauche/droite */

  background: #000;
  border: 4px solid #fbe580;
  box-sizing: border-box;
  overflow: hidden;
}

#gallery-modal img#gallery-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
#gallery-modal button {
  position: absolute;
  background: none;
  border: none;
  color: #fbe580;
  font-size: 2rem;
  cursor: pointer;
}
#gallery-close {
  top: 8px;
  right: 12px;
}
#gallery-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
#gallery-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.polaroid-wall {
  visibility: hidden;
}

/* Ne touche PAS au scroll global : sinon molette KO */
html, body {
  overscroll-behavior: auto;
  overscroll-behavior-y: auto;
}


/* Sur iOS Safari, on empêche aussi */
body { touch-action: auto; }


.polaroid-wall {
  overscroll-behavior-y: none;  /* empêche le pull-to-refresh en scrollant dans la galerie */
}

/* GALLERIE VIDEO */

/* === VARIABLES LAYOUT VIDÉO === */
:root {
  --pv-width: 300px;                             /* largeur du Polaroid */
  --pv-video-scale: 0.5;  
  --pv-panel-w: calc(var(--pv-width) * 1.5);       /* largeur du panel vidéo */
  --pv-panel-h: calc(var(--pv-panel-w) * 9 / 16);/* hauteur du panel (16:9) */
  --pv-gap: 4rem;                                /* espacement vertical */
  --pv-offset: 8px;                              /* écart latéral cadre → panel */
}

.video-gallery {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--pv-gap);
  max-width: 800px;
  margin: 0 auto;
  padding: var(--pv-gap);
  justify-items: start; /* par défaut cadres à gauche */
}

.polaroid-video {
  position: relative;
  width: var(--pv-width);         /* récupère la largeur définie en variable */
  cursor: pointer;
  isolation: isolate;
  justify-self: start;
}

.polaroid-video.reverse {
  justify-self: end;    /* cadre à droite */
}

.polaroid-video::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  box-sizing: border-box;
  border: 10px solid #fff;        /* épaisseur cadre général */
  border-bottom-width: 260px;      /* + épaisseur pour la légende */
  background: #fff;
  z-index: 3;
}
/* 1) Losange jaune derrière le polaroid */
.polaroid-video::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: calc(var(--pv-width) + 20px);
  height: calc(var(--pv-width) + 20px);
  transform: translate(-50%, -50%) rotate(45deg);
  border: 2px solid #fbe580;
  background: none;
  z-index: 0; /* juste sous le cadre blanc */
}

.polaroid-video img {
  position: relative;
  z-index: 4;
  display: block;
  width: 90%;                     /* ajuste à 90% pour laisser 5% de marge à gauche/droite */
  margin: 10px auto 0;            /* 10px de marge en haut, centré horizontalement */
  height: auto;
}

.polaroid-video figcaption {
  position: relative;
  z-index: 5;
  margin: 5px auto 0;             /* espace au-dessus de la légende */
  width: 90%;                     /* même largeur que l’image */
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Orbitron', cursive;  /* ou 'Fugaz One', 'Orbitron', selon l’ambiance */
  font-size: 1rem;                    /* ajustez la taille */
  letter-spacing: 0.05em;             /* un peu d’espacement pour respirer */
  text-transform: none;          /* optionnel : tout en majuscules */
  color: #790000;    
  background: none;               /* déjà géré par le ::before */
}

.polaroid-video__panel {
  position: absolute;
  top: 55%;
  left: calc(100% + var(--pv-offset));
  width: var(--pv-panel-w);
  height: var(--pv-panel-h);
  transform: translate(-100%, -50%);
  transition: transform 0.6s ease;
  z-index: 1;
  overflow: hidden;
}

.polaroid-video.open .polaroid-video__panel {
  transform: translate(0, -50%);
}

.polaroid-video.reverse .polaroid-video__panel {
  left: auto;
  right: calc(100% + var(--pv-offset));
  transform: translate(100%, -50%);
}

.polaroid-video.reverse.open .polaroid-video__panel {
  transform: translate(0, -50%);
}

.polaroid-video__panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* Assure-toi que chaque .polaroid-video a un stacking context par défaut */
.polaroid-video {
  position: relative; 
  z-index: 1;            /* contexte de base */
}

/* Quand on ouvre, on remonte toute la carte au‑dessus des autres */
.polaroid-video.open {
  z-index: 100;          /* suffisamment haut pour couvrir tout */
}

.video-cta {
  text-align: center;
  margin-top: 2rem;       /* espace entre la galerie et le CTA */
}

.video-cta a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.video-cta img {
  width: 48px;            /* ajuste la taille du logo */
  height: auto;
  margin-bottom: 0.5rem;  /* espace entre logo et texte */
}

.video-cta span {
  font-family: 'Audiowide', cursive; /* ou la police de ton choix */
  color: #fbe580;        /* même jaune que tes losanges */
  font-size: 1rem;
}

/* ─── TABLETTES (≤ 900px) ───────────────────────────────────── */
@media (max-width: 900px) {
  /* 1) Réduire légèrement les polaroids */
  :root {
    --pv-width: 200px;
    --pv-panel-w: calc(var(--pv-width) * 1.5);
    --pv-panel-h: calc(var(--pv-panel-w) * 9/16);
    --pv-gap: 2rem;
    --pv-offset: 6px;
  }

  /* 2) Ajuster le conteneur */
  .video-gallery {
    padding: 1.5rem;
  }
}

/* ─── MOBILES (≤ 600px) ────────────────────────────────────── */
@media (max-width: 600px) {
  /* 1) Polaroids plus compacts */
  :root {
    --pv-width: 140px;
    --pv-panel-w: calc(var(--pv-width) * 1.5);
    --pv-panel-h: calc(var(--pv-panel-w) * 9/16);
    --pv-gap: 1rem;
    --pv-offset: 4px;
  }
  }
@media (max-width: 900px) {
  /* 2) Galerie full‑width, padding réduit */
  .video-gallery {
    padding: 0.5rem;
  }
  }
@media (max-width: 900px) {
  /* 3) Désactiver l’effet “sliding” pour simplifier l’UX */
  .polaroid-video__panel {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: none;
    transition: none;
    margin-top: 1rem;
  }
  }
@media (max-width: 600px) {
  /* 4) L’iframe fait 100% de la largeur */
  .polaroid-video__panel iframe {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 900px) {
/* 5) Réduire la bande blanche sous le Polaroid */
  .polaroid-video::after {
    /* si tu avais border:10px; border-bottom-width:35px; */
    /* on passe à : */
    border: 8px solid #fff;       /* cadre général un peu plus fin */
    border-bottom-width: 20px;    /* bande inférieure réduite */
  }
  }
 @media (max-width: 600px) {
/* 6) Réduire la taille des titres sur mobile */
  .polaroid-video figcaption {
    font-size: 0.6rem;
  }
  }
 @media (max-width: 600px) {
/* OVERRIDE : panel ouvert = overlay presque full‑width */
.polaroid-video.open .polaroid-video__panel {
  /* supprime height: auto et max-height */
  position: fixed !important;
  top: 55vh !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90vw !important;
  /* calcule 16/9 de 90vw */
  height: calc(90vw * 9 / 16) !important;
  max-height: none !important;
  transition: none !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}
}

@media (max-width: 900px) {
/* OVERRIDE : panel ouvert = overlay presque full‑width */
.polaroid-video.open .polaroid-video__panel {
  /* supprime height: auto et max-height */
  position: fixed !important;
  top: 50vh !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 90vw !important;
  /* calcule 16/9 de 90vw */
  height: calc(90vw * 9 / 16) !important;
  max-height: none !important;
  transition: none !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}
}
@media (max-width: 900px) {
/* iframe adaptatif */
.polaroid-video.open .polaroid-video__panel iframe {
  width: 100% !important;
  /* faire aussi une hauteur fixe à 100% du panel */
  height: 100% !important;
  border: 3px solid #fbe580 !important; /* bord jaune */
  box-sizing: border-box !important;    /* pour inclure la bordure dans la taille */
  border-radius: 2px !important;        /* optionnel, coins arrondis */
}
}

/* =========================================================
   CONCERTS – OVERRIDE PROPRE (à coller TOUT EN BAS du CSS)
   ========================================================= */

/* Hero concerts en flux normal (évite les décalages) */
/* ===== CONCERTS : HERO EN FOND + CONTENU AU-DESSUS ===== */

/* ===== CONCERTS : HERO EN ARRIERE-PLAN (COMME AVANT) ===== */

/* HERO concerts : en flux normal, sous le nav */
.hero-concerts{
  width: 100vw;
  margin: 0;
  margin-top: -3px;   /* remonte la bordure jaune */
  overflow: hidden;
  position: relative; /* important : pas absolute */
  z-index: 0;
}

.hero-concerts img{
  display: block;
  width: 100vw;
  height: auto;
  margin: 0;
  padding: 0;
}


@media (max-width: 900px){
  .hero-concerts{ height: 30vh; }
}
@media (max-width: 600px){
  .hero-concerts{ height: 20vh; }
}

/* Le contenu passe AU-DESSUS de l'image */
.concerts-container{
  position: relative;
  z-index: 1;
}

/* Bandeau "prochain concert" */
.next-concert{
  max-width: 900px !important;
  margin: 0 auto 1.5rem !important;
  background: #222;
  color: #fbe580;
  padding: 1rem;
  border: 2px solid #fbe580;
  border-radius: 4px;
}
.next-concert h2{ margin: 0 0 .5rem; }

/* ===== DESKTOP : vrai tableau 4 colonnes ===== */
@media (min-width: 901px){
  .concerts-table{
    width: 100% !important;
    margin: 0 auto 2rem !important;
    border-collapse: collapse;
    table-layout: fixed; /* stabilité */
  }

  .concerts-table td{
    padding: .6rem 1rem;
    vertical-align: middle;
    color: #fbe580;
    font-family: 'Roboto', sans-serif;
  }

  .td-date{ width: 140px; white-space: nowrap; }
  .td-venue{
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .td-ticket{ width: 170px; white-space: nowrap; text-align: left; }
  .td-status{ width: 140px; white-space: nowrap; text-align: left; }

  /* Pas de flex dans les td -> sinon ça casse l’alignement */
  .td-ticket, .td-status{ display: table-cell !important; }
}

/* Bouton */
.btn-ticket{
  display: inline-block;
  padding: .3rem .6rem;
  border: 2px solid #fbe580 !important;
  background: #fbe580 !important;
  color: #000 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-radius: 6px;
  white-space: nowrap;
}
.btn-ticket:hover{ background: #ffd700 !important; }

/* Statut (texte simple) */
.ticket-status{
  font-weight: 700;
}

/* ===== MOBILE/TABLETTE : mode cartes lisibles ===== */
@media (max-width: 900px){
  .concerts-container{ padding: 1.25rem !important; }

  .concerts-table{
    width: 100% !important;
    margin: 0 auto 2rem !important;
    border-collapse: collapse;
    table-layout: auto;
  }

  .concerts-table tr{
    display: block;
    margin-bottom: 1rem;
  }

  .concerts-table td{
    display: block;
    padding: .25rem 0;
  }

  .td-date{ font-weight: 700; }
}


/* ===== FIX CONCERTS : contenu par-dessus la photo (override final) ===== */

/* La photo sert de fond (elle reste visible derrière) */
.hero-concerts{
  position: relative !important;
  height: 80vh !important;
  overflow: hidden !important;
  margin-top: -3px !important;  /* colle à la bordure jaune */
  z-index: 0 !important;
}

.hero-concerts img{
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Le bloc concerts passe par-dessus la photo */
.concerts-container{
  position: relative !important;
  z-index: 1 !important;
  margin-top: -70vh !important;  /* REMONTE le tableau sur la photo */
}

/* Ajustements responsive */
@media (max-width: 900px){
  .hero-concerts{ height: 30vh !important; }
  .concerts-container{ margin-top: -18vh !important; }
}
@media (max-width: 600px){
  .hero-concerts{ height: 20vh !important; }
  .concerts-container{ margin-top: -12vh !important; }
}




/* =========================================================
   FIX SCROLL (concerts) SANS DEPLACER LE TABLEAU
   ========================================================= */

/* 1) Si le hero recouvre la page, il ne doit jamais capter la molette / touch */
.page-concerts .hero-concerts,
.page-concerts .hero-concerts * {
  pointer-events: none !important;
}

/* 2) Le contenu reste cliquable et au-dessus */
.page-concerts .concerts-container {
  position: relative;
  z-index: 2;
}

/* 3) Sécurité : on ne bloque jamais le scroll vertical */
html, body {
  overflow-y: auto !important;
}

/* Sécurise les overlays : fermés = ne captent rien */
#gallery-modal,
#lightbox,
.modal {
  pointer-events: none;
}

/* Ouverts = captent */
#gallery-modal.open,
#lightbox:not(.hidden),
.modal.open {
  pointer-events: auto;
}

