/* =========================================
   STYLE DÉDIÉ À LA PAGE D'ACCUEIL (HOME)
   S'appuie sur les variables de style.css
   ========================================= */

/* === CONFIGURATION GLOBALE ACCUEIL === */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === SECTION HÉRO (Bannière) === */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
    color: white;
    padding: 80px 20px 100px;
    text-align: center;
    overflow: hidden; /* Pour contenir les formes décoratives */
}

.hero-content {
    position: relative;
    z-index: 2; /* Au-dessus des formes décoratives */
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.95;
}

.hero-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--warning-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Boutons du Héro */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 51, 18, 0.4);
    transition: var(--transition);
    border: none;
}

.btn-cta:hover {
    background-color: #c4260a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 51, 18, 0.6);
    color: white;
    text-decoration: none;
}

.btn-outline-light {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

/* Formes décoratives animées (Background) */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    pointer-events: none;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
}

/* === SECTION INTRODUCTION === */
.intro-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.intro-text h2 {
    color: var(--dark-gray);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.intro-text p {
    font-size: 1.2rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === SECTION ACTIVITÉS (Grille) === */
.activities-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--medium-gray);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Cartes d'activité */
.activity-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    height: 100%; /* Uniformise la hauteur */
    display: flex;
    flex-direction: column;
}

.card-decoration {
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    margin-bottom: 20px;
    transition: width 0.3s ease;
}

.activity-card h3 {
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.activity-card p {
    color: var(--medium-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Effets Hover interactifs Activités */
.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--secondary-color);
}

.activity-card:hover .card-decoration {
    width: 100%;
    background-color: var(--secondary-color);
}

.activity-card:hover h3 {
    color: var(--primary-color);
}


/* === SECTION STATISTIQUES (Interactive & Bleue) === */
.stats-section {
    background: linear-gradient(135deg, #002b55 0%, #004080 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Motif de fond subtil */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 25%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* La Carte Statistique */
.stat-card {
    background: rgba(255, 255, 255, 0.05); /* Transparence légère "Glass" */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Rebond léger */
    overflow: hidden;
}

.stat-content {
    position: relative;
    z-index: 2;
}

/* Le Chiffre */
.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--warning-color);
    line-height: 1;
    margin-bottom: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Le Label */
.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* Barre rouge animée au survol */
.stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    transform: scaleX(0); /* Caché par défaut */
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* === EFFETS HOVER STATISTIQUES === */
.stat-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: white;
}

.stat-card:hover .stat-number {
    color: var(--primary-color);
    transform: scale(1.1);
}

.stat-card:hover .stat-label {
    color: var(--dark-gray);
}

.stat-card:hover .stat-bar {
    transform: scaleX(1);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 20px;
    }

    .btn-cta, .btn-outline-light {
        width: 100%;
        margin-bottom: 10px;
    }

    .stats-grid {
        gap: 40px;
    }

    .stat-number {
        font-size: 3rem;
    }
}