/* ---- SECTION PHOTOS ---- */
#photos-section {
  padding: 40px 0;
  background: #121212;
}
#photos-section h2 {
  text-align: center;
  font-size: 26px;
  color: #F54927;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  cursor: pointer;
}
.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.photo-card:hover img {
  transform: scale(1.05);
}
.photo-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.75);
  color: #F54927;
  text-align: center;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- SECTION VIDÉOS ---- */
#videos-section {
  padding: 50px 0;
  background: #1a1a1a;
}
#videos-section h2 {
  text-align: center;
  font-size: 26px;
  color: #F54927;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
  background: #000;
}
.video-card video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.75);
  color: #F54927;
  text-align: center;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---- Responsive PHOTOS / VIDEOS ---- */
@media (max-width: 600px) {
  .photo-grid,
  .video-grid {
    padding: 0 12px;
  }

  .photo-card img {
    height: 220px; /* un peu moins haut pour éviter le scroll infini sur mobile */
  }
  .video-card video {
    height: 160px;
  }
  .photo-overlay,
  .video-overlay {
    font-size: 13px;
    padding: 6px 8px;
  }
}

/* === LIGHTBOX GLOBALE === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.8);
}

/* --- Boutons --- */
.lightbox button {
  position: absolute;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
}
.lightbox button:hover {
  background: rgba(245,73,39,0.8);
}

/* Fermer */
.lightbox-close {
  top: 10px;
  right: 15px;
  font-size: 34px;
  line-height: 1;
}

/* Navigation */
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Responsive lightbox */
@media (max-width: 700px) {
  .lightbox-prev,
  .lightbox-next {
    /* flèches plus petites puis masquées sur mobile, 
       tu utilises le swipe dans ton JS */
    display: none;
  }

  .lightbox-close {
    font-size: 30px;
    padding: 6px 10px;
  }
}

/* === MÉDIAS FLOUS POUR UTILISATEURS NON CONNECTÉS === */
.user-guest .photo-card img,
.user-guest .video-card video {
  filter: blur(18px) brightness(40%);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}

/* Overlay “Connectez-vous” */
.user-guest .photo-card::before,
.user-guest .video-card::before {
  content: "🔒 Connectez-vous pour voir";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 25px;
  opacity: 0.9;
  text-align: center;
  z-index: 5;
}

.user-guest .photo-card,
.user-guest .video-card {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
}

/* Si l'utilisateur est connecté → tout net */
.user-logged .photo-card img,
.user-logged .video-card video {
  filter: none;
  pointer-events: auto;
}

/* ======= SECTION NEWS ======= */
#news {
  background: #1a1a1a;
  padding: 40px 20px;
  color: #fff;
}
#news h2 {
  text-align: center;
  font-size: 26px;
  color: #F54927;
  margin-bottom: 25px;
  text-transform: uppercase;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}
.article-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(245,73,39,0.4);
}
.article-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.article-card .content {
  padding: 15px;
}
.article-card h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}
.article-card p {
  font-size: 14px;
  color: #ccc;
}
.article-card .source {
  display: inline-block;
  color: #F54927;
  text-decoration: none;
  margin-top: 10px;
  font-weight: 500;
}
.article-card .source:hover {
  text-decoration: underline;
}

/* ======= SECTION INTRO / HERO ADULTE ======= */
#intro-section {
  padding: 40px 20px 20px;
  background: radial-gradient(circle at top left, rgba(245,73,39,0.25), transparent 55%),
              #111;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#intro-section .intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: flex-start;
}

.intro-text h1 {
  font-size: 26px;
  line-height: 1.3;
  margin: 8px 0 15px;
  color: #fff;
}

.intro-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,73,39,0.15);
  border: 1px solid rgba(245,73,39,0.7);
  color: #ff8a65;
}

.intro-lead {
  font-size: 15px;
  line-height: 1.7;
  color: #f1f1f1;
  margin-bottom: 12px;
}

.intro-text p {
  font-size: 14px;
  line-height: 1.6;
  color: #d5d5d5;
}

.intro-text strong {
  color: #ffffff;
}

/* Liste des avantages */
.intro-list {
  margin: 15px 0 8px;
  padding-left: 0;
  list-style: none;
}
.intro-list li {
  font-size: 14px;
  margin-bottom: 4px;
  color: #e0e0e0;
}

.intro-small {
  font-size: 12px;
  color: #aaaaaa;
  margin-top: 10px;
}

/* Bloc de droite */
.intro-highlight {
  background: linear-gradient(145deg, #1b1b1b, #141414);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 18px 18px 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.intro-highlight h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #F54927;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-highlight p {
  font-size: 13px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* CTA */
.intro-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #F54927;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.2s;
  box-shadow: 0 8px 18px rgba(245,73,39,0.5);
}
.intro-cta:hover {
  background: #ff6a49;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(245,73,39,0.65);
}

.intro-cta-ok {
  background: rgba(76,175,80,0.2);
  border: 1px solid rgba(76,175,80,0.7);
  box-shadow: none;
}

/* Responsive INTRO */
@media (max-width: 900px) {
  #intro-section .intro-inner {
    grid-template-columns: 1fr;
  }
  .intro-highlight {
    margin-top: 10px;
  }
}

@media (max-width: 600px) {
  #intro-section {
    padding: 25px 15px 15px;
  }
  .intro-text h1 {
    font-size: 22px;
  }
}
