:root {
    --base-height: 10px;
}

@media (max-width: 768px) {
    :root {
        --base-height: 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    overflow-x: hidden;
}

/* Hero Section - Image Featured */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-title {
    position: relative;
    width: 75%;
    z-index: 3;
    font-size: clamp(1rem, 2vw, 2rem);
    letter-spacing: 0.2em;
    text-align: center;
    text-transform: uppercase;
    animation: fadeInUp 1.5s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 60px;
    text-transform: uppercase;
}


.recent-section {
    max-width: 1200px;
    margin: 0 auto;
}

.recent-title {
    text-align: center;
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #fff;
}

.grid {
    /* Optionnel : pour centrer la grille */
    margin: 0 auto;
}

.grid-item {
    width: 32%; /* ou 300px, selon ton design */
    margin-bottom: 20px;
    display: inline-block;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
}
.grid-item img {
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}
@media (max-width: 1015px) {
    .grid-item { width: 48%; }
}
@media (max-width: 600px) {
    .grid-item { width: 100%; }
}

.category-hero {
    position: relative;
    width: 100vw;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-title {
    position: relative;
    z-index: 3;
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}


.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-item {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.category-item img {
    width: 100%;
    height: 85%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-caption {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .category-hero {
        height: 40vh;
    }
    .hero-title {
        width: 75%;
    }
}

.galerie-title {
    position: relative;
    z-index: 3;
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}

.galerie-bg {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px; /* optionnel – arrondi plus esthétique */
}

/* Si tu veux garder le plein écran en hauteur sur grands écrans */
@media (min-width: 992px) {
  .galerie-bg {
    height: 75vh;
    width: auto;
  }
}


/* Remplacer l'animation existante par ce code */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.loading.animate {
    opacity: 1;
    transform: translateY(0);
    /* Effet de rebond léger */
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceIn {
    0% { transform: translateY(30px); opacity: 0; }
    60% { transform: translateY(-10px); }
    100% { transform: translateY(0); opacity: 1; }
}

.stats-layout {
  display: flex;
  flex-direction: column; /* élément en colonne */
  align-items: center;    /* centrer horizontalement */
  width: 100vw;
  min-height: 220px;
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
  background-color: #111;
  background-image: url('../img/fond.png');
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  gap: 24px;  /* espace vertical entre stats-center et sidebar-social */
}

.stats-center {
  display: flex;
  flex-direction: row;      /* stats côte à côte */
  justify-content: center;
  align-items: flex-end;
  gap: 90px;
  width: 100%;
}

.stat-block {
  text-align: center;
  min-width: 110px;
}


.stat-number {
  font-size: 3.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 2);
}

.social-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-decoration: none;
}

.sidebar-social {
  margin: 0;
  align-self: center;  /* pour que le lien soit centré horizontalement */
}

@media (max-width: 900px) {
  .stats-center {
    gap: 32px;
    margin: 20px 0;
  }
  
  /* sidebar-social reste centré */
  .sidebar-social {
    margin: 0;
    align-self: center;
  }
}



