:root {
  --bg: #0f1720;
  --card: #16202c; /* Légèrement plus clair que le fond */
  --accent: #6ee7b7;
  --muted: #9aa7b2;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --maxw: 1200px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: linear-gradient(180deg, #07101a 0%, #08121a 100%);
  color: #e6eef2;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Section Hero (Éric Bertrand) --- */
.hero {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(rgba(15, 23, 32, 0.8), rgba(15, 23, 32, 0.9)), 
              url('images/hero-bg.jpg') center/cover; /* Ajoutez une image de fond si vous en avez une */
  text-align: center;
  border-bottom: 1px solid rgba(110, 231, 183, 0.2);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 15px;
  color: var(--accent);
  letter-spacing: -1px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #bdc9d1;
}

/* --- Barre de titre secondaire --- */
.topbar {
  width: 100%;
  max-width: var(--maxw);
  margin-bottom: 24px;
  text-align: center;
}
.topbar h1 { margin: 0; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }
.subtitle { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; opacity: 0.8; }

/* --- Contrôles (Recherche & Filtre) --- */
.controls {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  gap: 15px;
  margin: 0 0 40px;
  padding: 0 18px;
}

.controls input, .controls select {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
}

.controls input:focus, .controls select:focus {
  border-color: var(--accent);
}

.controls select { width: 220px; cursor: pointer; }

/* --- Galerie --- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  max-width: var(--maxw);
  padding: 0 18px 60px;
}

.card {
  flex: 0 1 350px; /* Taille plus confortable pour les photos */
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(110, 231, 183, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card img {
  width: 100%;
  height: 240px; /* Hauteur fixe pour l'uniformité */
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover img {
  transform: scale(1.05);
}

.meta {
  padding: 20px;
}

.meta h3 { 
  margin: 0; 
  font-size: 1.1rem; 
  color: #fff; 
}

.meta .desc { 
  margin: 8px 0 0; 
  font-size: 0.9rem; 
  color: var(--muted); 
  line-height: 1.4;
}

/* --- Lightbox & Media --- */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 16, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  padding: 40px;
}

.lightbox.show { display: flex; }

.lb-content {
  max-width: var(--maxw);
  width: 100%;
  display: flex;
  gap: 30px;
  align-items: center;
}

.lb-content img, .lb-content iframe {
  max-height: 85vh;
  width: 70%;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.lb-content iframe { aspect-ratio: 16/9; border: none; }

.lb-info {
  flex: 1;
  color: #fff;
}

.lb-info h3 { font-size: 1.8rem; margin: 0 0 15px; color: var(--accent); }
.lb-info p { font-size: 1.1rem; line-height: 1.6; color: var(--muted); }

/* --- Navigation & Close --- */
.nav, .close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
}

.close { position: absolute; top: 30px; right: 30px; font-size: 32px; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 50px; padding: 20px; }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.nav:hover, .close:hover { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.2rem; }
  .lb-content { flex-direction: column; text-align: center; }
  .lb-content img, .lb-content iframe { width: 100%; }
  .controls { flex-direction: column; }
  .controls select { width: 100%; }
}