/* --- VARIABLES ET RESET --- */
:root {
    --primary-color: #E94F37;
    --secondary-color: #2A2D34;
    --text-color: #424143;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main), sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

ul { list-style: none; }
a { text-decoration: none; }

/* --- HEADER ET NAVIGATION --- */
.main-header {
    background-color: var(--secondary-color);
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo img.eebb {
    height: 60px;
    width: auto;
    display: inline;
    
}

.main-nav .menu-items {
    display: flex;
    gap: 20px;
}

.main-nav .menu-items a {
    color: var(--white);
    font-weight: 400;
    transition: color 0.3s;
}

.main-nav .menu-items a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- SECTION ACCUEIL (HERO) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
    margin-top:70px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
}

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

.hero-content {
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-top:55px;
    margin-bottom: 55px;
    min-height: 120px; /* Pour l'animation texte */
}

.hero-content h2 {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 50px;
}

/* Bouton avec l'animation de pulsation */
.btn-hero {
    margin-top:55px;
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    animation: pulse-attention 3s infinite;
    transition: transform 0.3s ease;
}

.btn-hero:hover {
    animation: none;
    transform: scale(1.05);
    background-color: #d1432e;
}

@keyframes pulse-attention {
    0%, 20%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(233, 79, 55, 0); }
    10% { transform: scale(1.08); box-shadow: 0 0 20px rgba(233, 79, 55, 0.6); }
}

/* --- SECTIONS GÉNÉRALES --- */
.section-padding { padding: 80px 20px; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--secondary-color); color: var(--white); }

.container { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }

.section-title { margin-bottom: 40px; }
.section-title h3 { font-size: 2rem; text-transform: uppercase; margin-bottom: 10px; text-align: center; }
.section-title hr { width: 50px; height: 4px; background: var(--primary-color); border: none; margin: 0 auto; }
.about-content p {text-align:center;}
/* --- VIDÉO ET DONS --- */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
}

.don-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 25px 20px rgba(0,0,0,0.05);
    max-width: 450px;
    margin: 0 auto;
    color: var(--text-color);
}

.don-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 15px; }

.copy-container {
    display: flex;
    margin: 20px 0;
}

.copy-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    background: #f9f9f9;
}

.copy-container button {
    padding: 12px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* --- FOOTER ET RÉSEAUX --- */
.social-icons { margin-top: 30px; }
.social-icons a {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0 15px;
    transition: color 0.3s;
}

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

footer {
    background-color: #1a1c20;
    padding: 50px 20px 20px;
    color: #bbb;
}
.time {text-align: center;}
.horaire { color: #888; margin-top: 15px; text-align: center;}
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 0.8rem; text-align: center;}

/* --- BOUTON RETOUR HAUT --- */
.btn-back-to-top {
    position: fixed;
    bottom: 25px; right: 25px;
    width: 45px; height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
    z-index: 2000;
}

.btn-back-to-top.show { opacity: 1; visibility: visible; }

/* preloader starts */
/* --- STYLE DU PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Fond blanc propre */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Au-dessus de tout le reste */
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    height: 80px;
    margin-bottom: 20px;
    animation: pulse-logo 2s infinite ease-in-out;
}

/* Animation de pulsation sur le logo */
@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Le Spinner circulaire */
.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid rgba(233, 79, 55, 0.1);
    border-top: 3px solid #E94F37; /* Ton rouge primaire */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader p {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* Classe pour cacher le loader en douceur */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}
/* preloader ends */

/* --- BOUTON FLOTTANT WHATSAPP --- */
.whatsapp-float-share {
    position: fixed;
    bottom: 90px; /* Positionné au-dessus du bouton "Back to top" (qui est à ~25px) */
    right: 25px;
    background-color: #25D366;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 1500;
    transition: all 0.3s ease;
}

/* Petit texte "Partager" qui apparaît au survol sur PC */
.share-label {
    position: absolute;
    right: 60px;
    background: #333;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    white-space: nowrap;
}

.whatsapp-float-share:hover {
    transform: scale(1.1);
    color: white;
    background-color: #20ba5a;
}

.whatsapp-float-share:hover .share-label {
    opacity: 1;
    visibility: visible;
}

/* Animation discrète pour inciter au clic */
@keyframes shake {
    0%, 90%, 100% { transform: rotate(0deg); }
    93% { transform: rotate(10deg); }
    95% { transform: rotate(-10deg); }
    97% { transform: rotate(10deg); }
}

.whatsapp-float-share {
    animation: shake 5s infinite;
}

/* Ajustement pour mobile */
@media screen and (max-width: 480px) {
    .whatsapp-float-share {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Caché par défaut (PC) */
.close-menu {
    display: none;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 768px) {
    .hamburger-menu { display: block; }

    .main-nav .menu-items {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .main-nav .menu-items.active { right: 0; }
    .main-nav .menu-items li { margin: 15px 0; }
    .main-nav .menu-items a { font-size: 1.4rem; }

    .hero-content h1 { font-size: 1.8rem; min-height: 5rem; }
    .section-padding { padding: 50px 20px; }

    .logo img.eebb {
    
    display: none;  
    
    .hero-section img{
    /* margin-top: 10px; */
}
}
}

/* --- BADGE WHATSAPP EN LIGNE --- */
.whatsapp-link {
    position: relative; /* Pour positionner le badge par rapport à l'icône */
    display: inline-block;
}

.online-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    width: 12px;
    height: 12px;
    background-color: #25D366; /* Vert WhatsApp */
    border: 2px solid var(--secondary-color); /* Cercle de séparation */
    border-radius: 50%;
    z-index: 1;
}

/* L'effet de pulsation autour du point vert */
.online-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.8;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.radio-control {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#playPauseBtn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    transition: 0.3s;
}

#playPauseBtn:hover {
    transform: scale(1.05);
    background-color: #d1432e;
}

#radioStatus {
    font-size: 0.8rem;
    font-style: italic;
    color: #aaa;
}

/* --- LOGO DANS LE MENU MOBILE --- */

/* 1. Caché par défaut (Desktop) */
.mobile-only-logo {
    display: none;
}

/* 2. Affiché uniquement sur Mobile */
@media screen and (max-width: 768px) {
    .mobile-only-logo {
        display: block;
        width: 100%;
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .mobile-only-logo img {
        height: 80px; /* Taille du logo dans le menu */
        width: auto;
    }

    .mobile-only-logo hr {
        width: 50px;
        margin: 15px auto 0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Ajustement de la liste pour laisser de la place en haut */
    .main-nav .menu-items {
        justify-content: flex-start; /* Aligne le contenu vers le haut au lieu du centre */
        padding-top: 40px;
    }

    /* --- MENU MOBILE AMÉLIORÉ --- */

/* On cache les éléments spécifiques au mobile sur Desktop */
.close-menu, .mobile-only-logo {
    display: none;
}

@media screen and (max-width: 768px) {
    /* Style du bouton Fermer (X) */
    .close-menu {
        display: block;
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
    }

    /* Style du Logo dans le menu */
    .mobile-only-logo {
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .mobile-only-logo img {
        height: 70px;
        width: auto;
    }

    .mobile-only-logo hr {
        width: 40px;
        border: 1px solid var(--primary-color);
        margin: 15px auto 0;
        opacity: 0.5;
    }

    /* Ajustement de la navigation mobile */
    .main-nav .menu-items {
        justify-content: flex-start; /* Aligne le contenu vers le haut */
        padding-top: 60px; /* Espace pour le bouton X */
    }

    /* Animation du lien au survol/clic mobile */
    .main-nav .menu-items li a {
        font-size: 1.3rem;
        padding: 10px;
        display: block;
    }
}
}

