/* style.css */

/* --- 1. CHARTE GRAPHIQUE --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;0,900;1,700;1,900&display=swap');
:root {
    --violet: #7B13D6;
    --rouge: #F91616;
    --jaune: #FFC700;
    --vert: #43AC59;
    --blanc: #FFFFFF;
    --noir: #222222;
}

/* --- 2. STYLES GÉNÉRAUX --- */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #222;
}

/* --- 3. HEADER (VIOLET & ANIMÉ) --- */
.main-header {
    background-color: var(--violet); 
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    

    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    
    transition: top 0.3s ease-in-out;
    z-index: 1000;
}

.main-header.scrolled {
    top: 0;
}

.logo a {
    display: block;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8; 
}

.logo img {
    max-height: 50px; 
    width: auto;      
    display: block;   
}

.main-nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--blanc);
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--jaune); 
}
.btn-don {
    background-color: var(--rouge);
    color: var(--blanc) !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn-don:hover {
    background-color: var(--vert);
    color: var(--blanc) !important;
}


/* --- 4. STRUCTURE PLEINE LARGEUR (PARALLAXE) --- */
.section-fullwidth {
    width: 100%;
    padding: 80px 20px; 
    position: relative; 
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--blanc);
    box-sizing: border-box;
}

.section-fullwidth::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}

.section-fullwidth > * {
    position: relative;
    z-index: 2;
}
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}


/* --- 5. SECTION 1 : ACCUEIL (VERTE) --- */
#section-accueil {
    background-image: url('images/accueil.jpg');
    /* MODIFIÉ : On passe de 130vh à 100vh pour tenir pile dans l'écran */
    min-height: 100vh; 
    display: flex;
    align-items: flex-start;
    /* MODIFIÉ : On réduit un peu la marge du haut pour remonter le logo */
    padding-top: 15vh; 
    justify-content: center;
    text-align: center;
}

#section-accueil::before {
    background-color: rgba(67, 172, 89, 0.75);
}

/* Style pour le LOGO D'ACCUEIL */
.hero-logo {
    max-width: 80%;
    width: 1500px;   
    height: auto;  
    margin-bottom: 40px;
}

/* --- MODIFICATION HERO ACTIONS --- */
/* Nouveau conteneur global pour empiler le bouton "Listes" et les autres */
.hero-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* Espace entre le bouton du haut et le groupe du bas */
    margin-top: 60px;
}

/* Nouveau bouton Listes électorales */
.btn-listes {
    background-color: var(--violet); /* Jaune pour ressortir sur le vert */
    color: var(--blanc);
}
.btn-listes:hover {
    background-color: var(--blanc);
    color: var(--violet);
}

/* Conteneur des boutons du bas (Participer/Programme) */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap; 
    /* margin-top retiré ici car géré par le wrapper parent */
}

/* Style des boutons "Hero" */
.btn-hero {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    transform: translateY(-3px);
}
.btn-programme {
    background-color: var(--blanc);
    color: var(--noir); 
}

.btn-participer {
    background-color: var(--violet);
    color: var(--blanc);
}


/* --- 6. SECTION 2 : PARTICIPATION (JAUNE) --- */
#section-idees {
    background-image: url('images/participation.jpg');
    color: var(--noir);
    text-shadow: none;
    min-height: 115vh;
}
#section-idees::before {
    background-color: rgba(255, 199, 0, 0.75);
}

.participation-box {
    background-color: var(--blanc);
    color: var(--noir);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    max-width: 800px;
    margin: 0 auto;
}
.participation-box h2 {
    color: var(--violet);
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 20px;
}
.participation-box p {
    font-size: 1.15rem; 
    line-height: 1.8;   
    max-width: 600px;  
    margin: 0 auto 25px auto;
}

.participation-banner {
    width: 100%;               /* Prend toute la largeur de la boite */
    height: auto;              /* Garde les proportions de l'image */
    max-height: 350px;         /* Empêche l'image d'être trop haute si elle est immense */
    object-fit: cover;         /* Recadre l'image proprement si nécessaire */
    border-radius: 10px;       /* Arrondit les coins pour matcher la boite */
    margin-bottom: 25px;       /* Espace entre la photo et le titre */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Petite ombre légère */
    display: block;
}

.btn-participation {
    display: inline-block;
    margin-top: 50px; 
    background-color: var(--violet);
    color: var(--blanc);
    padding: 15px 40px; 
    border-radius: 50px; 
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
}
.btn-participation:hover {
    background-color: var(--blanc); 
    color: var(--violet); 
    transform: translateY(-3px); 
}
.btn-participation i {
    margin-left: 10px; 
}


/* --- 7. SECTION 3 : FORMULAIRE BREVO (ROUGE) --- */
#section-formulaire {
    background-image: url('images/formulaire.jpg');
    min-height: 115vh;
}
#section-formulaire::before {
    background-color: rgba(249, 22, 22, 0.75);
}
#sib-container {
    margin: 0 auto; 

}

#sib-container input, #sib-container textarea, #sib-container select {
            color: #333333 !important;
        }

/* --- 8. FOOTER --- */
footer {
    background-color: var(--noir);
    color: var(--blanc);
    padding: 30px 20px;
    position: relative; z-index: 10;
}
.footer-banner {
    margin: 0 auto 10px auto;
    padding-bottom: 15px;
    max-width: 900px;
    text-align: center;
}
.footer-banner p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blanc);
    margin: 0;
}
.footer-content {
    max-width: 900px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    flex-wrap: wrap; 
    text-align: center;
}
.footer-contact, .social-links, .footer-legal {
    flex-basis: 30%;
    min-width: 200px;
    margin-bottom: 20px;
}
.footer-content h3 {
    color: var(--blanc);
    margin-bottom: 15px;
}
.footer-contact {
    text-align: left;
}
footer a {
    color: var(--blanc);
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--jaune);
}
.social-links a {
    display: inline-block; 
    margin-right: 15px;
    font-size: 1.8rem; 
}
.footer-legal a {
    font-size: 1rem;
    line-height: 1.8rem;
}

/* --- STYLE DES FLÈCHES DE RETOUR --- */
.section-arrow-up {
    position: absolute; 
    top: 20px;          
    left: 50%;        
    transform: translateX(-50%); 
    
    color: var(--blanc);
    font-size: 2rem;   
    opacity: 0.4;       
    text-decoration: none;
    
    transition: all 0.3s ease; 
    z-index: 10;       
    cursor: pointer;
}

.section-arrow-up:hover {
    opacity: 1;         
    transform: translateX(-50%) translateY(-5px); 
}

/* --- 9. RESPONSIVE (MOBILE) --- */
@media screen and (max-width: 768px) {

    /* 1. ON CACHE LE HEADER (Menu) */
    .main-header {
        display: none;
    }

    .section-fullwidth {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* 2. SECTION ACCUEIL : HAUTEUR FIXE 100% ÉCRAN */
    #section-accueil {
        height: 100vh;      
        min-height: 100vh; 
        padding: 0;        
        display: flex;      
        flex-direction: column;
        overflow: hidden;   
    }

    /* 3. CONTENU */
    .hero-content {
        flex: 1;          
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    /* 4. LOGO */
    .hero-logo {
        width: 100%; 
        /*max-width: ;*/
        margin-top: 15vh; 
        margin-bottom: 0;
    }

    /* 5. BOUTONS */
    .hero-actions-wrapper {
        margin-top: auto;
        margin-bottom: 20vh;
        width: 100%;
        gap: 15px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .btn-hero, .btn-listes {
        width: 80%; 
        text-align: center;
        padding: 15px 0;
        font-size: 1.1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3); 
    }
    
    .participation-box {
        padding: 30px 15px; 
    }
    .participation-box h2 {
        font-size: 1.8rem; 
    }
}