/* Styles de base */
i {
    color: inherit !important;
}
body {
    font-family: 'Montserrat', sans-serif;
    color: #0A0A0A;
    background-color: #F0F3F5;
}

.hero-section {
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.4) 100%);
}

/* Effets visuels */
.neon-effect {
    box-shadow: 0 0 10px #b45b1d, 0 0 20px rgba(180, 91, 29, 0.5);
    transition: all 0.3s ease;
}

.neon-effect:hover {
    box-shadow: 0 0 15px #b45b1d, 0 0 30px rgba(180, 91, 29, 0.7);
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* Styles de formulaire */
.input-field {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #b45b1d;
    box-shadow: 0 0 0 3px rgba(180, 91, 29, 0.2);
    outline: none;
}

/* Corrections importantes pour le responsive et l'accessibilité */

/* Fix pour le menu mobile qui ne se ferme pas en cliquant sur un lien */
@media (max-width: 768px) {
    .mobile-nav-link {
        display: block;
        padding: 0.5rem 0;
    }
}

/* Fix pour les boutons de filtrage */
.filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:focus {
    outline: 2px solid #b45b1d;
    outline-offset: 2px;
}

/* Fix pour la modal responsive */
.modal-content {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

@media (max-width: 640px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
}

/* Fix pour les images qui ne se chargent pas */
.gallery-item img,
.service-card img {
    background-color: #f3f4f6;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img::before {
    content: "Chargement...";
    color: #6b7280;
    font-size: 0.875rem;
}

/* Fix pour l'accessibilité des liens */
a:focus {
    outline: 2px solid #b45b1d;
    outline-offset: 2px;
}

/* Fix pour les boutons */
button:focus {
    outline: 2px solid #b45b1d;
    outline-offset: 2px;
}

/* Fix pour le z-index du menu mobile */
#mobile-menu {
    z-index: 40;
}

/* Fix pour la lisibilité sur les arrière-plans texturés */
.concrete-texture,
.brushed-metal {
    position: relative;
}

.concrete-texture::after,
.brushed-metal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.concrete-texture > *,
.brushed-metal > * {
    position: relative;
    z-index: 2;
}

.compact-section {
    margin: 2rem 4rem; /* Marge en haut/bas et sur les côtés */
    padding: 2rem; /* Remplissage intérieur */
    border-radius: 1.5rem; /* Bordures arrondies */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Ombre portée */
}

/* CORRECTION FORCÉE POUR LES ÉLÉMENTS ORANGE */
/* Couleur primaire orange forcée */
.text-primary, .text-primary * {
    color: #b45b1d !important;
}

.bg-primary, .bg-primary * {
    background-color: #b45b1d !important;
}

.border-primary {
    border-color: #b45b1d !important;
}

/* Boutons orange */
.bg-primary:hover {
    background-color: #9d4e19 !important;
}

/* WhatsApp button correction */
a[href*="wa.me"] {
    background-color: #b45b1d !important;
    opacity: 1 !important;
    visibility: visible !important;
}

a[href*="wa.me"] i {
    color: #000000 !important;
}

/* Pourcentages et chiffres orange */
.text-primary span,
.text-primary .text-sm,
span.text-primary {
    color: #b45b1d !important;
}

/* Icônes orange */
.text-primary i,
i.text-primary {
    color: #b45b1d !important;
}

/* Boutons de filtrage */
.filter-btn.active,
.filter-btn:hover {
    background-color: #b45b1d !important;
    color: white !important;
}

/* Checkbox personnalisée */
.bg-primary.border-primary {
    background-color: #b45b1d !important;
    border-color: #b45b1d !important;
}

/* Correction pour les éléments Tailwind */
[class*="text-primary"] {
    color: #b45b1d !important;
}

[class*="bg-primary"] {
    background-color: #b45b1d !important;
}

[class*="border-primary"] {
    border-color: #b45b1d !important;
}

/* Correction spécifique pour les liens et boutons */
a.bg-primary,
button.bg-primary,
.btn-primary {
    background-color: #b45b1d !important;
    color: white !important;
}

/* Correction pour les éléments transparents */
.neon-effect {
    background-color: #b45b1d !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ANIMATIONS POUR LA SECTION IMPACT MULTISECTORIEL */
/* Animation des statistiques */
.impact-stat {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.impact-stat:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(180, 91, 29, 0.3);
}

/* Animation des chiffres */
.impact-number {
    transition: all 0.3s ease;
    display: inline-block;
}

.impact-stat:hover .impact-number {
    transform: scale(1.2);
    color: #b45b1d !important;
    text-shadow: 0 0 10px rgba(180, 91, 29, 0.5);
}

/* Animation des pourcentages */
.impact-percentage {
    transition: all 0.3s ease;
    display: inline-block;
}

.impact-stat:hover .impact-percentage {
    transform: scale(1.15) rotate(5deg);
    color: #b45b1d !important;
    font-weight: bold;
}

/* Animation du graphique */
#impact-chart {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

#impact-chart:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(180, 91, 29, 0.2);
}

/* Animation des icônes */
.impact-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.impact-stat:hover .impact-icon {
    transform: rotate(360deg) scale(1.3);
    color: #b45b1d !important;
    filter: drop-shadow(0 0 8px rgba(180, 91, 29, 0.6));
}

/* Animation des cartes de secteur */
.sector-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(180, 91, 29, 0.2), transparent);
    transition: left 0.6s ease;
}

.sector-card:hover::before {
    left: 100%;
}

.sector-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(180, 91, 29, 0.25);
    border-color: #b45b1d;
}

/* Animation des textes */
.impact-title {
    transition: all 0.3s ease;
}

.impact-stat:hover .impact-title {
color: #b45b1d !important;
transform: translateX(5px);
}

/* Fin des animations pour la section impact */

/* Styles pour la carte interactive */
.custom-div-icon {
background: transparent !important;
border: none !important;
display: flex;
align-items: center;
justify-content: center;
}

.custom-div-icon i {
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#guinea-map {
z-index: 1;
}

.leaflet-popup-content {
margin: 8px 12px;
line-height: 1.4;
}

.leaflet-popup-content a {
color: #b45b1d;
text-decoration: none;
}

.leaflet-popup-content a:hover {
text-decoration: underline;
}

/* Animation de pulsation pour les éléments importants */
@keyframes pulse-orange {
0% {
        box-shadow: 0 0 0 0 rgba(180, 91, 29, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(180, 91, 29, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(180, 91, 29, 0);
    }
}

.pulse-on-hover:hover {
    animation: pulse-orange 1.5s infinite;
}

/* Animation pour le carrousel des partenaires */
.scroller {
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroller:hover .scroller__inner {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1.5rem)); /* 1.5rem est la moitié du gap (gap-12) */
    }
}

/* Animation de brillance */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.shine-effect {
    background: linear-gradient(90deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: shine 2s infinite;
}

/* Animation d'apparition au scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Effet de survol pour les pourcentages dans le graphique */
.chart-hover-effect {
    transition: all 0.3s ease;
}

.chart-hover-effect:hover {
    filter: brightness(1.2) saturate(1.3);
    transform: scale(1.05);
}

/* CORRECTION POUR LES BADGES DE CATÉGORIE */
/* Badges de projets avec texte noir */
.bg-primary\/10 {
    background-color: rgba(180, 91, 29, 0.1) !important;
    color: #000000 !important;
}

/* Correction spécifique pour les spans de catégorie */
span.bg-primary\/10.text-primary,
span[class*="bg-primary/10"] {
    background-color: rgba(180, 91, 29, 0.1) !important;
    color: #000000 !important;
    border: 1px solid rgba(180, 91, 29, 0.3);
}

/* Correction pour tous les badges similaires */
.text-xs.font-medium.px-2\.5.py-1.rounded {
    color: #000000 !important;
}

/* Badges avec fond orange clair et texte noir */
[class*="bg-primary/"] {
    color: #000000 !important;
}
