/* =============================
   IMPORTS & VARIABLES
============================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700;900&family=Roboto:wght@300;400;500&display=swap');

:root {
  --bleu:     #0d6efd;
  --bleu-dark:#0950c5;
  --noir:     #111111;
  --blanc:    #ffffff;
  --gris-bg:  #f4f4f4;
  --gris-card:#e8e8e8;
  --shadow:   0 4px 20px rgba(13,110,253,0.15);
}

/* =============================
   RESET & BASE
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--gris-bg);
  color: var(--noir);
}

/* =============================
   HEADER
============================= */
header {
  background-color: var(--noir);
  color: var(--blanc);
  padding: 0;
  border-bottom: 4px solid var(--bleu);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo {
  height: 60px;
  width: auto;
}

.header-text h1 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blanc);
  line-height: 1;
}

.header-text p {
  font-size: 0.85rem;
  color: var(--bleu);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
}

/* =============================
   NAVIGATION / FILTRES
============================= */
nav {
  background-color: var(--blanc);
  border-bottom: 1px solid var(--gris-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.filter-btn {
  background: none;
  border: none;
  padding: 18px 28px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--bleu);
  background-color: rgba(13,110,253,0.05);
}

.filter-btn.active {
  color: var(--bleu);
  border-bottom: 3px solid var(--bleu);
  background-color: rgba(13,110,253,0.05);
}

/* =============================
   HERO / TITRE DE SECTION
============================= */
.section-hero {
  background: linear-gradient(135deg, var(--noir) 0%, #1a1a2e 100%);
  color: var(--blanc);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.section-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13,110,253,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.section-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}

.section-hero h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-hero h2 span {
  color: var(--bleu);
}

.section-hero p {
  margin-top: 10px;
  color: #aaa;
  font-size: 0.95rem;
}

/* =============================
   COMPTEUR DE PHOTOS
============================= */
.photo-count {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 0 48px;
  font-size: 0.9rem;
  color: #888;
}

.photo-count span {
  font-weight: 700;
  color: var(--bleu);
}

/* =============================
   GALERIE - GRILLE
============================= */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* =============================
   CARTE PHOTO
============================= */
.photo-card {
  background: var(--blanc);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.photo-card .day-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bleu);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================
   LIGHTBOX
============================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

.lightbox.open {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(13,110,253,0.3);
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#lightbox-close:hover {
  background: #e00;
  border-color: #e00;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lightbox-nav button {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.6rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.lightbox-nav button:hover {
  background: var(--bleu);
  border-color: var(--bleu);
}

.lightbox-counter {
  color: #fff;
  font-size: 0.95rem;
  min-width: 70px;
  text-align: center;
}

/* =============================
   MESSAGE VIDE
============================= */
.empty-msg {
  text-align: center;
  padding: 80px 48px;
  color: #aaa;
  font-size: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.empty-msg span {
  display: block;
  font-size: 3rem;
  margin-bottom: 12px;
}

/* =============================
   FOOTER
============================= */
footer {
  background-color: var(--noir);
  color: #666;
  text-align: center;
  padding: 24px 48px;
  font-size: 0.8rem;
  border-top: 3px solid var(--bleu);
  margin-top: 40px;
}

footer strong {
  color: var(--bleu);
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .header-inner,
  .nav-inner,
  .section-hero-inner,
  .photo-count,
  .gallery-section,
  .empty-msg,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-text h1  { font-size: 1.3rem; }
  .header-logo     { height: 45px; }
  .section-hero    { padding: 36px 0; }
  .section-hero h2 { font-size: 1.5rem; }

  .gallery-section {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }

  .filter-btn { padding: 14px 18px; font-size: 0.85rem; }
}

.stats-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 48px;
  text-align: center;
}
