/* ==========================================
   GNIMA SPORT SOLIDARITÉ - STYLES UNIFIÉS
   ========================================== */

/* Variables CSS communes */
:root {
    --primary: #FF6B00;          /* Orange énergique */
    --secondary: #2EC4B6;        /* Turquoise */
    --dark: #1A1A1A;            /* Noir */
    --light: #F8F9FA;           /* Gris clair */
    --senegal-green: #00853F;    /* Vert Sénégal */
    --senegal-yellow: #FDEF42;   /* Jaune Sénégal */
    --senegal-red: #E31B23;      /* Rouge Sénégal */
}

/* ==========================================
   STYLES DE BASE
   ========================================== */

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    background-color: var(--dark) !important;
    padding: 1rem 0;
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   BANNIÈRES HERO COMMUNES
   ========================================== */

.hero-section,
.about-hero,
.products-hero,
.events-hero,
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    background-color: rgba(234, 250, 241, 0.9);
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bannières spécifiques */
.events-hero {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/img/events-banner.jpg');
}

/* ==========================================
   DRAPEAU SÉNÉGALAIS
   ========================================== */

.senegal-flag {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(to right, 
        var(--senegal-green) 33%, 
        var(--senegal-yellow) 33% 66%, 
        var(--senegal-red) 66%);
}

.senegal-star {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--senegal-green);
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================
   SECTIONS COMMUNES
   ========================================== */

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
}

/* Sections padding standard */
.about-section,
.products-section,
.values-section,
.presentation-section,
.founder-section,
.goals-section,
.banlieue-sprint-section,
.contact-section,
.event-section {
    padding: 5rem 0;
}

.products-section,
.partners-section {
    padding: 5rem 0;
    background-color: var(--light);
}

.about-section,
.presentation-section,
.banlieue-sprint-section {
    background-color: white;
}

.founder-section {
    background-color: var(--light);
}

/* ==========================================
   CARTES COMMUNES
   ========================================== */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Cards spécifiques */
.action-card,
.product-card,
.contact-card,
.sprint-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.action-card:hover,
.product-card:hover,
.contact-card:hover,
.sprint-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card img {
    height: 250px;
    object-fit: cover;
}

/* ==========================================
   ICÔNES ET BADGES
   ========================================== */

.action-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.event-date-badge {
    background-color: var(--senegal-green);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* ==========================================
   BOUTONS
   ========================================== */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #e55a00;
    border-color: #e55a00;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
}

/* ==========================================
   SECTIONS SPÉCIFIQUES - À PROPOS
   ========================================== */

.legal-card {
    border-left: 4px solid var(--primary);
    background-color: var(--light);
}

.medal-icon {
    color: gold;
    font-size: 1.5rem;
    margin-right: 8px;
}

.goals-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.goal-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
    padding: 1.5rem;
    height: 100%;
}

.goal-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SECTIONS SPÉCIFIQUES - VALEURS
   ========================================== */

.values-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.value-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

/* ==========================================
   SECTIONS SPÉCIFIQUES - ÉVÉNEMENTS
   ========================================== */

.event-section:nth-child(odd) {
    background-color: white;
}

.event-section:nth-child(even) {
    background-color: var(--light);
}

.event-header {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.event-header h2 {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    position: relative;
    z-index: 2;
}

.event-header::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
    z-index: 1;
}

.event-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    height: 500px;
    margin: 3rem 0;
}

.event-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.event-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Positionnement des images dans la galerie */
.img-1 { grid-column: 1 / 5; grid-row: 1 / 3; }
.img-2 { grid-column: 5 / 9; grid-row: 2 / 4; }
.img-3 { grid-column: 9 / 13; grid-row: 1 / 3; }
.img-4 { grid-column: 3 / 7; grid-row: 3 / 5; }
.img-5 { grid-column: 7 / 11; grid-row: 3 / 5; }

/* ==========================================
   SECTIONS SPÉCIFIQUES - CONTACT
   ========================================== */

.form-control {
    border-radius: 10px;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

/* ==========================================
   SECTIONS SPÉCIFIQUES - PARTENAIRES
   ========================================== */

.partners-section {
    background-color: white;
    overflow: hidden;
}

.partners-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.partner-item {
    flex: 0 0 auto;
    margin: 0 2rem;
    display: flex;
    align-items: center;
}

.partner-item img {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Effet holographique pour les partenaires */
.partners-hologram {
    perspective: 1000px;
}

.hologram-card {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(46, 196, 182, 0.3);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(46, 196, 182, 0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(30deg);
    animation: hologramEffect 6s infinite linear;
}

@keyframes hologramEffect {
    0% { transform: translateY(-100%) rotate(30deg); }
    100% { transform: translateY(100%) rotate(30deg); }
}

.hologram-card img {
    position: relative;
    z-index: 2;
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(0,133,63,0.3));
}

.hologram-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 10px 30px rgba(46, 196, 182, 0.4);
}

/* ==========================================
   UTILITAIRES
   ========================================== */

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
    .event-gallery {
        height: 400px;
    }
}

@media (max-width: 768px) {
    /* Bannières hero */
    .hero-section,
    .about-hero,
    .products-hero,
    .contact-hero {
        height: 40vh;
    }
    
    .events-hero {
        height: 40vh;
    }
    
    /* Drapeau sénégalais */
    .senegal-flag {
        height: 8px;
    }
    
    .senegal-star {
        width: 10px;
        height: 10px;
    }
    
    /* Icônes */
    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .action-card {
        margin-bottom: 1.5rem;
    }
    
    /* Partenaires */
    .partner-item {
        margin: 0 1rem;
    }
    
    .partner-item img {
        height: 60px;
    }
    
    /* Galerie d'événements */
    .event-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 200px);
        height: auto;
    }
    
    .img-1, .img-2, .img-3, .img-4, .img-5 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background-color: var(--dark) !important;
    color: white;
    padding: 3rem 0;
}

footer h4 {
    color: white;
    margin-bottom: 1rem;
}

footer .social-icons a {
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: var(--primary);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   ANIMATIONS ET TRANSITIONS
   ========================================== */

* {
    transition: all 0.3s ease;
}

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}