/* ==========================================================================
   VARIABLES & CONFIGURATION
   ========================================================================== */
:root {
    --primary: #F2A900;       /* Or EBB */
    --secondary: #002D5B;     /* Bleu EBB */
    --dark: #0A0A0B;          /* Noir industriel */
    --light: #F8F9FA;         /* Gris très clair */
    --text-muted: #9CA3AF;    /* Gris texte */
    --primary-light: rgba(242, 169, 0, 0.1);
    --transition: all 0.4s ease-in-out;
}

/* ==========================================================================
   BASE & TYPOGRAPHIE
   ========================================================================== */
body {
    font-family: 'Poppins', sans-serif;
    color: #1A1A1A;
    background: #FFF;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sentence Case Forcé pour l'élégance */
h1, h2, h3, h4, h5, .nav-link, .btn { 
    text-transform: none !important; 
}

h1::first-letter, h2::first-letter, h3::first-letter, 
h4::first-letter, h5::first-letter, .nav-link::first-letter { 
    text-transform: uppercase; 
}

.section-padding { padding: 120px 0; }
.ls-2 { letter-spacing: 2px; }

/* ==========================================================================
   NAVBAR DYNAMIQUE (HEADER)
   ========================================================================== */
.navbar { 
    transition: var(--transition); 
    padding: 25px 0; 
    z-index: 1050;
}

/* État transparent (par défaut sur le Hero) */
.nav-link { 
    color: white !important; 
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8; 
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { 
    opacity: 1; 
    color: var(--primary) !important; 
}

/* État scrollé (Fond Blanc) */
.navbar-scrolled { 
    background: #ffffff !important; 
    padding: 12px 0; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1); 
}

.navbar-scrolled .nav-link { 
    color: var(--secondary) !important; 
}

.navbar-scrolled .navbar-brand img { 
    filter: brightness(0.2); /* Rend le logo visible sur fond blanc */
}

.navbar-scrolled .navbar-toggler i { 
    color: var(--secondary) !important; 
}

/* ==========================================================================
   HERO SECTION (SPLASH SCREEN)
   ========================================================================== */
.hero-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

/* Support Vidéo ou Image de fond */
.hero-video, .hero-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: 0;
}

.hero-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(to right, rgba(0, 45, 91, 0.85), rgba(0,0,0,0.5));
    z-index: 1;
}

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

.hero-content h1 { 
    font-size: clamp(2.5rem, 8vw, 5rem); /* Responsive fluide de mobile à PC */
    color: #fff; 
    font-weight: 800; 
    line-height: 1.1; 
}

.hero-content .description { 
    color: var(--text-muted); 
    max-width: 700px;
}

/* ==========================================================================
   GALERIES (PC : MAGAZINE GRID | MOBILE : CAROUSEL)
   ========================================================================== */
/* Grille style Magazine pour PC */
.gallery-magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 15px;
}

/* Le premier élément prend 2 colonnes et 2 lignes */
.mag-item-lg { 
    grid-column: span 2; 
    grid-row: span 2; 
}

.gallery-img-wrap { 
    overflow: hidden; 
    border-radius: 8px; 
    position: relative;
    background: var(--light);
}

.img-full { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.gallery-img-wrap:hover .img-full { 
    transform: scale(1.08); 
}

/* Cache le carrousel sur PC */
.gallery-mobile { display: none; }

/* ==========================================================================
   COMPOSANTS & UTILS
   ========================================================================== */
.btn-primary {
    background-color: var(--primary);
    border: none;
    color: var(--secondary);
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: white;
    color: var(--secondary);
    transform: translateY(-3px);
}

.tri-color { 
    width: 45px; 
    height: 12px; 
    border-radius: 6px; 
    display: inline-block;
}

.transition-hover {
    transition: var(--transition);
}

.transition-hover:hover {
    background: var(--secondary) !important;
    color: white !important;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.transition-hover:hover i { 
    color: var(--primary) !important; 
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeInUp 1s ease forwards; }
.animate-up-delay { animation: fadeInUp 1s ease 0.3s forwards; opacity: 0; }
.animate-up-delay-2 { animation: fadeInUp 1s ease 0.6s forwards; opacity: 0; }

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 991px) {
    .section-padding { padding: 80px 0; }
    
    .hero-content { text-align: center; }
    .hero-content h1 { font-size: 3.2rem; }
    
    /* Switch Galerie Grid vers Carrousel */
    .gallery-magazine { display: none !important; }
    .gallery-mobile { 
        display: block !important; 
    }
    
    .gallery-mobile img {
        height: 400px;
        object-fit: cover;
        border-radius: 12px;
    }

    .navbar {
        background: var(--secondary) !important; /* Mobile : fond solide pour lisibilité */
        padding: 15px 0;
    }
}