/* ==========================================================================
   VARIABLES DE CHARTE GRAPHIQUE (ARTICLE 3 DES STATUTS)
   ========================================================================== */
:root {
    --pnce-blue: #003366;
    --pnce-gold: #FFD700;
    --pnce-red: #CE1126;
    --pnce-green: #007A5E;
}

/* ==========================================================================
   STYLES GÉNÉRAUX
   ========================================================================== */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    color: #333333;
}

.text-justify {
    text-align: justify;
}

/* ==========================================================================
   NAVBAR & OFFCANVAS (MENU MOBILE RECONSTRUCTURÉ)
   ========================================================================== */
.navbar {
    background-color: var(--pnce-blue);
    border-bottom: 3px solid var(--pnce-gold);
    transition: all 0.3s ease;
}

.navbar-brand, .nav-link {
    color: white !important;
    font-weight: bold;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--pnce-gold) !important;
}

/* Correction définitive de l'Offcanvas blanc : forçage du thème sombre */
.offcanvas, 
.offcanvas-header, 
.offcanvas-body {
    background-color: var(--pnce-blue) !important;
    color: white !important;
}

.offcanvas .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    transition: all 0.2s ease;
}

.offcanvas .nav-link:hover {
    color: var(--pnce-gold) !important;
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 1.5rem; /* Léger effet de glissement au survol */
}

/* Force l'icône de fermeture de l'Offcanvas à devenir blanche */
.btn-close-white {
    filter: invert(1) grayscale(1) brightness(2) !important;
}

/* ==========================================================================
   HERO CARROUSEL : OPTIMISATION VISUELLE ET RESPONSIVE
   ========================================================================== */
.custom-carousel {
    height: 70vh;
    min-height: 500px;
}

/* Filtre super-sombre (75%) pour garantir le contraste et la lisibilité du texte */
.bg-slide-1 {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../img/carousel/agriculture_pnce.jpg') center/cover no-repeat;
}
.bg-slide-2 {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../img/carousel/cameroun_diversity.jpg') center/cover no-repeat;
}
.bg-slide-3 {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('../img/carousel/president_congres.jpg') center/cover no-repeat;
}

.carousel-title {
    font-size: 3rem;
    letter-spacing: 1px;
    animation: fadeInUp 0.8s ease-in-out both;
}

.carousel-text {
    max-width: 750px;
    font-size: 1.3rem;
    animation: fadeInUp 1s ease-in-out both;
}

.btn-sm-mobile {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    animation: fadeInUp 1.2s ease-in-out both;
}

/* ==========================================================================
   --- AJUSTEMENTS STRICTS POUR MOBILE (Écrans inférieurs à 768px) ---
   ========================================================================== */
@media (max-width: 767.98px) {
    .custom-carousel {
        height: 45vh !important; /* Hauteur compacte parfaite pour l'écran mobile */
        min-height: 320px !important;
    }
    
    .carousel-title {
        font-size: 1.4rem !important; /* Taille de titre très réduite et percutante */
        margin-bottom: 12px !important;
        padding: 0 10px;
    }
    
    /* Cache complètement la description pour épurer l'affichage sur smartphone */
    .carousel-text {
        display: none !important; 
    }
    
    .btn-sm-mobile {
        padding: 8px 14px !important; /* Boutons ajustés à la taille du pouce */
        font-size: 0.8rem !important;
    }
    
    .carousel-indicators {
        bottom: 5px !important; /* Remonte légèrement les indicateurs */
    }
    
    .carousel-caption {
        padding-bottom: 25px !important;
    }
}

/* ==========================================================================
   COMPOSANTS DES PAGES ET COMPTES (STATS, DASHBOARDS, CARTES)
   ========================================================================== */
.card-stats {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Section de Paiement des adhésions (5 000 FCFA - Article 10) */
.payment-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-card:hover, 
.payment-card.active {
    border-color: var(--pnce-blue);
    background-color: rgba(0, 51, 102, 0.05);
}

/* ==========================================================================
   BOUTON FLOTTANT WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    color: white;
    background-color: #128C7E;
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
