/* --- VARIABLES GLOBALES --- */
:root {
    --bleu-biblique: #00264d;
    --or-lumiere: #d4af37;
    --blanc-pur: #ffffff;
    --gris-fond: #f4f7f6;
    --noir-overlay: rgba(0, 38, 77, 0.65);
    --transition: all 0.3s ease;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 75px; 
    overflow-x: hidden;
    background-color: var(--blanc-pur);
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img { height: 50px; width: auto; border-radius: 5px; }

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--bleu-biblique);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--bleu-biblique);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active-link {
    color: var(--or-lumiere);
}

.btn-nav {
    background-color: var(--or-lumiere) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* --- SECTION ACCUEIL (HERO) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.hero-video { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--noir-overlay); }

.hero-content { z-index: 1; max-width: 1000px; padding: 0 20px; }

.welcome-text { font-size: 1.5rem; letter-spacing: 6px; margin-bottom: 10px; animation: fadeInUp 1s ease; }

.brand-name {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--or-lumiere);
    letter-spacing: 12px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease;
}

.slogan-lingala { font-size: 2.8rem; font-style: italic; color: var(--or-lumiere); margin: 15px 0; }
.slogan-french { font-size: 1.4rem; font-weight: 300; }

.edition-text-large {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--or-lumiere);
    margin: 20px 0;
    animation: urgentBlink 0.8s infinite alternate;
}
/* --- BOUTON HERO ANIMÉ --- */
.hero-btns {
    margin-top: 30px;
}

.btn-primary.blink-btn {
    display: inline-block; /* CRUCIAL : permet à l'animation de scale de fonctionner */
    background: var(--or-lumiere);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    
    /* On lie l'animation ici */
    animation: urgentBlink 0.8s infinite alternate;
}

/* Optionnel : changement de couleur au survol pour le rendre interactif */
.btn-primary.blink-btn:hover {
    background: #b8952d;
    transform: scale(1.1); /* S'agrandit légèrement au passage de la souris */
    animation-play-state: paused; /* Arrête de clignoter quand on veut cliquer */
}

/* --- SECTION À PROPOS --- */
.about-section { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.video-wrapper { 
    position: relative;
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 25px 25px 0px var(--bleu-biblique);
}

.about-video { width: 100%; display: block; border-radius: 20px; }

.experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--or-lumiere);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
}

.experience-badge .number { font-size: 1.5rem; font-weight: 700; display: block; }

.subtitle { color: var(--or-lumiere); font-weight: 700; letter-spacing: 2px; font-size: 0.9rem; }
.highlight { color: var(--or-lumiere); }

.features { margin-top: 30px; display: grid; gap: 20px; }
.feature-item { display: flex; gap: 15px; align-items: flex-start; }
.feature-item .icon { 
    background: var(--gris-fond);
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* --- SECTION ÉDITIONS (GALERIE) --- */
.editions-section { padding: 80px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.underline { width: 80px; height: 4px; background: var(--or-lumiere); margin: 15px auto; }

.gallery-title { margin: 40px 0 20px; color: var(--bleu-biblique); border-left: 5px solid var(--or-lumiere); padding-left: 15px; }

.video-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.video-item video { width: 100%; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.video-item h4 { margin-top: 10px; font-size: 1rem; text-align: center; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.photo-item { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; height: 200px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.photo-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 38, 77, 0.7); display: flex; align-items: center; 
    justify-content: center; opacity: 0; transition: 0.3s; color: white;
}
.photo-item:hover img { transform: scale(1.1); }
.photo-item:hover .photo-overlay { opacity: 1; }

/* --- SECTION RÈGLEMENT --- */
.rules-section { padding: 80px 0; background: var(--gris-fond); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.rule-card { 
    background: white; padding: 30px; border-radius: 15px; 
    position: relative; transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.rule-card:hover { transform: translateY(-10px); border-color: var(--or-lumiere); }
.rule-number { 
    font-size: 3rem; font-weight: 800; color: rgba(212, 175, 55, 0.1); 
    position: absolute; top: 10px; right: 20px;
}

/* --- FORMULAIRE D'INSCRIPTION --- */
.registration-section { padding: 100px 0; background: linear-gradient(rgba(0,38,77,0.9), rgba(0,38,77,0.9)), url('assets/img/pattern.png'); }
.form-card { 
    max-width: 700px; margin: 0 auto; background: white; 
    padding: 50px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); 
}
.form-header { text-align: center; margin-bottom: 35px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.input-group input { 
    width: 100%; padding: 14px; border: 1px solid #ddd; 
    border-radius: 8px; background: #f9f9f9; transition: 0.3s;
}
.input-group input:focus { border-color: var(--or-lumiere); outline: none; background: #fff; }

.btn-submit { 
    width: 100%; padding: 16px; background: var(--or-lumiere); 
    color: white; border: none; font-weight: 700; font-size: 1.1rem;
    border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.btn-submit:hover { background: #b8952d; transform: scale(1.02); }

/* --- CONTACT --- */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-item { display: flex; gap: 20px; margin-bottom: 25px; }
.info-item .icon { font-size: 1.8rem; }
.quick-contact input, .quick-contact textarea { 
    width: 100%; padding: 12px; margin-bottom: 15px; 
    border: 1px solid #ddd; border-radius: 5px; 
}

/* --- FOOTER --- */
.main-footer { background: var(--bleu-biblique); color: rgba(255,255,255,0.8); padding: 50px 0; text-align: center; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes urgentBlink {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.03); }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .brand-name { font-size: 3.5rem; }
    .edition-text-large { font-size: 3rem; }
    .video-wrapper { box-shadow: 15px 15px 0px var(--bleu-biblique); }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* On pourrait ajouter un menu burger ici */
    .form-grid { grid-template-columns: 1fr; }
    .hero { height: 80vh; }
    .brand-name { font-size: 2.8rem; letter-spacing: 5px; }
}
/* --- OPTIMISATION NAVIGATION MOBILE --- */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 5%;
    }

    /* On cache les liens classiques pour préparer un menu mobile */
    .nav-links {
        display: none; /* À remplacer par un menu JS si vous voulez un bouton burger */
    }

    .logo-text {
        font-size: 1.3rem;
    }
}

/* --- ADAPTATION DES GRILLES (TABLETTES & PHONES) --- */
@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }

    /* Hero Section : On réduit les tailles de texte pour éviter que ça déborde */
    .brand-name {
        font-size: 2.8rem;
        letter-spacing: 4px;
    }

    .slogan-lingala {
        font-size: 1.8rem;
    }

    .edition-text-large {
        font-size: 2.5rem;
        letter-spacing: 5px;
    }

    .welcome-text {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    /* Sections : On passe tout en une seule colonne */
    .about-grid, 
    .rules-grid, 
    .form-grid, 
    .contact-grid,
    .video-catalog {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .about-section, .registration-section, .contact-section {
        padding: 60px 5%;
    }

    /* Image et Vidéo : On ajuste les marges bizarres sur mobile */
    .video-wrapper {
        box-shadow: 10px 10px 0px var(--bleu-biblique);
    }

    /* Formulaire : On s'assure que les champs prennent toute la largeur */
    .form-card {
        padding: 25px;
    }

    .btn-submit {
        font-size: 1rem;
    }
}

/* --- OPTIMISATION NAVIGATION MOBILE --- */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 5%;
    }

    /* Le menu devient un panneau coulissant */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 65px; /* Ajusté selon la hauteur de la navbar */
        right: -100%; /* Caché à droite par défaut */
        background: rgba(255, 255, 255, 0.98);
        width: 70%;
        height: calc(100vh - 65px);
        padding: 40px;
        gap: 30px;
        box-shadow: -5px 10px 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease; /* Animation de glissement */
        align-items: flex-start;
    }

    /* Quand le menu a la classe .active, il s'affiche */
    .nav-links.active {
        right: 0;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    /* Le bouton hamburger (Trois barres) */
    .menu-toggle {
        display: block !important;
        cursor: pointer;
        font-size: 1.8rem;
        color: var(--bleu-biblique);
    }
}

/* On s'assure que le bouton hamburger est caché sur ordinateur */
.menu-toggle {
    display: none;
}
/* --- STYLE CONTENEUR ALBUM GALERIE --- */
/* --- SECTION ÉDITIONS (GALERIE) --- */
.editions-section { padding: 80px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 50px; }
.underline { width: 80px; height: 4px; background: var(--or-lumiere); margin: 15px auto; }

.gallery-title { margin: 40px 0 20px; color: var(--bleu-biblique); border-left: 5px solid var(--or-lumiere); padding-left: 15px; }

.video-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.video-item video { width: 100%; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.video-item h4 { margin-top: 10px; font-size: 1rem; text-align: center; }

/* RE-CORRECTION DE LA GRILLE DE PHOTOS */
.photo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
}

.photo-item { 
    position: relative; 
    cursor: pointer; 
    border-radius: 10px; 
    overflow: hidden; 
    height: 200px;
    width: 100%; /* S'assure que l'élément prend toute la largeur de sa cellule */
    display: block; /* Force l'élément à se comporter comme un bloc stable */
}

.photo-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.5s; 
}

.photo-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 38, 77, 0.7); display: flex; align-items: center; 
    justify-content: center; opacity: 0; transition: 0.3s; color: white;
}
.photo-item:hover img { transform: scale(1.1); }
.photo-item:hover .photo-overlay { opacity: 1; }