/* ==========================================================================
   1. VARIABLES & FONDAMENTAUX
   ========================================================================== */
:root {
    --vert-rclh: #335036;
    --bordeau-rclh: #5F212C;
    --or-rclh: #C5A059;
    --blanc: #ffffff;
    --gris-clair: #f8f9fa;
    --noir-soft: #333333;
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--noir-soft); 
    background-color: var(--blanc);
    line-height: 1.6;
}

/* Classes Utilitaires */
.bg-vert { background-color: var(--vert-rclh) !important; color: var(--blanc) !important; }
.bg-bordeau { background-color: var(--bordeau-rclh) !important; color: var(--blanc) !important; }
.text-or { color: var(--or-rclh) !important; }

/* ==========================================================================
   2. NAVIGATION (NAVBAR)
   ========================================================================== */
.navbar.navbar-rclh {
    background-color: var(--vert-rclh) !important;
    border-bottom: 4px solid var(--bordeau-rclh) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-rclh .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.navbar-rclh .nav-link:hover {
    color: var(--or-rclh) !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    filter: drop-shadow(0px 0px 2px rgba(255,255,255,0.2));
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   3. BANDEAU D'ACCUEIL (HERO) & CARROUSEL
   ========================================================================== */
.hero-home {
    height: 85vh;
    min-height: 550px;
    /* Image de fond fixe pour tout le carrousel */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url('images/1de864_59caf20751654d06bbb82448b18d0f50~mv2.avif') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

#heroCarousel {
    width: 100%;
}

/* Style de la carte de News à l'intérieur du bandeau */
.news-hero-card {
    background: rgba(255, 255, 255, 0.9); /* Fond blanc translucide */
    backdrop-filter: blur(10px); /* Flou sur l'image de fond */
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    max-width: 850px;
    width: 95%;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--noir-soft);
    margin: 0 auto;
}

.news-hero-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Fondu enchaîné Bootstrap */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Flèches de navigation */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

/* ==========================================================================
   4. BOUTONS
   ========================================================================== */
.btn-bordeau { 
    background-color: var(--bordeau-rclh); 
    color: var(--blanc); 
    border: none; 
    padding: 12px 25px; 
    transition: 0.3s; 
    font-weight: 700;
}
.btn-bordeau:hover { 
    background-color: var(--or-rclh); 
    color: var(--blanc); 
    transform: scale(1.05); 
}

.btn-or {
    background-color: var(--or-rclh) !important;
    color: var(--vert-rclh) !important;
    border: none;
    padding: 10px 25px;
    font-weight: 800;
    transition: 0.3s;
}
.btn-or:hover {
    background-color: var(--vert-rclh) !important;
    color: var(--blanc) !important;
}

/* ==========================================================================
   5. SPONSORS (TRACK ANIMATION)
   ========================================================================== */
.sponsor-section {
    background-color: var(--gris-clair);
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.sponsor-track {
    display: flex;
    gap: 40px; 
    width: max-content;
    animation: scrollLogos 40s linear infinite;
}

.sponsor-section:hover .sponsor-track { animation-play-state: paused; }

.sponsor-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blanc);
    width: 180px; 
    height: 100px;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid var(--vert-rclh); 
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sponsor-card img { width: 100%; height: 100%; object-fit: contain; }

.sponsor-hover-info {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(95, 33, 44, 0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
    padding: 5px; text-align: center; border-radius: 10px;
}

.sponsor-hover-info span { color: var(--or-rclh); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }

.sponsor-card:hover { border-color: var(--bordeau-rclh); transform: translateY(-5px); }
.sponsor-card:hover .sponsor-hover-info { opacity: 1; }

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); } 
}

/* ==========================================================================
   6. ACTUALITÉS (GRID CARDS)
   ========================================================================== */
.card-news { 
    border: none; 
    border-bottom: 5px solid var(--vert-rclh); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.card-news:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

.news-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--gris-clair);
}
.news-img-container img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   7. CALENDRIER & LISTES
   ========================================================================== */
#calendar {
    min-height: 600px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.fc-event-terrain { background-color: var(--vert-rclh) !important; border: none !important; }
.fc-event-clubhouse { background-color: var(--bordeau-rclh) !important; border: none !important; }

/* ==========================================================================
   8. CATÉGORIES (FOOTER SECTION)
   ========================================================================== */
.category-box {
    display: block;
    padding: 30px 15px;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}
.category-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--or-rclh) !important;
    transform: translateY(-5px);
}
.hover-or:hover { color: var(--or-rclh) !important; padding-left: 5px; transition: 0.2s; }

.bi-heptagon-fill {
    display: inline-block;
    transform: rotate(45deg);
    font-size: 0.7rem;
    color: var(--or-rclh);
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .hero-home { height: auto; padding: 100px 0; }
    .news-hero-img { height: 200px; }
    .news-hero-card { margin-top: 20px; }
    .display-1 { font-size: 2.8rem; }
}