/* Les styles de navigation sont maintenant dans style.css avec la nouvelle structure */
/* Ancien style .main-nav .logo remplacé par .nav-logo dans style.css */

/* Styles pour le logo circulaire */
.logo-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: whitesmoke;
    padding: 3px;
}

/* Styles pour l'image du logo à l'intérieur du cercle */
.logo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}







/* Conteneur de chaque valeur */
.value-tag-wrapper {
    position: relative; /* Permet de positionner la description par rapport à ce conteneur */
    text-align: center;
    cursor: pointer;
}

/* Style de la description cachée */
.value-description {
    position: absolute;
    bottom: calc(100% + 15px); /* Positionne la description au-dessus de la balise de valeur */
    left: 50%;
    transform: translateX(-50%); /* Centre le texte horizontalement */
    width: 250px;
    padding: 15px;
    background-color: var(--primary-blue); /* Couleur de fond de l'info-bulle */
    color: white;
    font-size: 0.9em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Rends la description invisible par défaut */
    visibility: hidden; /* Cache la description pour éviter qu'elle n'affecte la mise en page */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 5;
    text-align: center;
}

/* Flèche pointant vers le bas */
.value-description::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary-blue) transparent transparent transparent; /* Crée la flèche */
}

/* Règle au survol du conteneur parent pour afficher la description */
.value-tag-wrapper:hover .value-description {
    opacity: 1; /* Rends la description visible */
    visibility: visible;
    transform: translateX(-50%) translateY(-10px); /* Ajoute un léger effet de glissement vers le haut */
}

/* Ajustement pour le survol du tag de valeur (pour ne pas perturber l'effet de survol) */
.value-tag-wrapper:hover .value-tag {
    transform: none; /* Désactive la transformation du tag seul pour un effet plus propre */
}



/* Centrage du formulaire à un seul champ */
.contact-form-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre le contenu horizontalement */
    justify-content: center; /* Centre le contenu verticalement si nécessaire */
    text-align: center; /* Centre le texte */
    padding: 20px;
    background-color: #f9f9f9; /* Couleur de fond optionnelle pour un effet de bloc */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-input-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Ajoute un espace entre le titre, le champ et le bouton */
    max-width: 400px; /* Limite la largeur du formulaire pour un meilleur rendu */
}

/* Style pour le champ de saisie */
#email-input {
    width: 100%; /* S'assure que le champ prend la largeur du conteneur */
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 1em;
    text-align: center; /* Centre le texte de saisie */
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* Style pour le bouton */
.btn-send {
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}






/* Section des partenaires */
.partners-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #f0f8ff; /* Une couleur de fond douce pour la section */
}

.partners-section h2 {
    font-size: 2.5em;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.partners-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



/* Styles de la fenêtre de dialogue */
dialog {
    border: none;
    padding: 0;
    max-width: 800px;
    width: 90%;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.dialog-content {
    padding: 20px;
    position: relative;
    background-color: #fff;
}

#close-dialog-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

#close-dialog-btn:hover {
    color: #00A0DF;
}

.dialog-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.dialog-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.dialog-meta {
    color: #777;
    font-style: italic;
    margin-bottom: 20px;
}

.dialog-full-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}
.dialog-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.dialog-footer-logo {
    max-width: 440px; /* Ajustez la taille selon vos besoins */
    height: auto;
    display: inline-block;
}


.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Espacement entre le texte et l'icône */
    text-decoration: none;
    background-color: #00b347; /* Couleur de fond (ajustez selon votre palette) */
    color: #fff; /* Couleur du texte */
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.read-more-btn:hover {
    background-color: #007bb5; /* Une couleur légèrement plus foncée au survol */
    transform: translateY(-2px); /* Un léger effet de soulèvement au survol */
}

/* Style de l'icône à l'intérieur du bouton */
.read-more-btn .fas {
    transition: transform 0.3s ease;
}

/* Faire bouger la flèche légèrement au survol */
.read-more-btn:hover .fas {
    transform: translateX(5px);
}



/* Section Impact / Chiffres Clés - Style Statistique */
.impact-section {
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    background-color: var(--section-bg-blue); /* Utilisation d'un fond bleu clair */
}

.impact-section h2 {
    margin-bottom: 30px;
    color: var(--dark-blue);
    font-size: 2em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

.impact-grid {
    display: grid;
    /* Afficher toutes les cartes sur une seule ligne */
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

.impact-card {
    background-color: white;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    min-height: 140px;
    border-bottom: 4px solid var(--accent-green); /* Bordure d'impact */
}

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

.impact-icon {
    font-size: 2em;
    color: var(--primary-blue); /* Couleur principale pour l'icône */
    margin-bottom: 8px;
}

.impact-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-color); /* Chiffres en couleur de texte sombre */
    line-height: 1.1;
    font-family: 'Poppins', sans-serif; /* Police moderne pour les chiffres */
    margin-bottom: 8px;
}

.impact-card p {
    font-size: 0.85em;
    color: var(--dark-grey-text);
    margin: 5px 0 0;
    line-height: 1.3;
}

/* Réactivité */
@media (max-width: 1200px) {
    .impact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .impact-section {
        padding: 30px 15px;
    }
    .impact-section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .impact-grid {
        /* Empilement en 2 colonnes sur les petits mobiles */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .impact-number {
        font-size: 2em;
    }
    .impact-icon {
        font-size: 1.5em;
    }
    .impact-card {
        padding: 15px 10px;
        min-height: 120px;
    }
    .impact-card p {
        font-size: 0.75em;
    }
}

@media (max-width: 400px) {
    .impact-grid {
        /* Empilement total sur les très petits écrans */
        grid-template-columns: 1fr;
    }
}

/*
 * COULEURS SPÉCIFIQUES POUR CHAQUE CARTE D'IMPACT
 * Utilise nth-child() pour cibler les cartes individuellement
 */

/* 1. Personnes formées (Vert d'accent) */
.impact-card:nth-child(1) {
    border-bottom-color: var(--accent-green);
}
.impact-card:nth-child(1) .impact-icon {
    color: var(--accent-green); 
}

/* 2. Personnes sensibilisées (Bleu Primaire) */
.impact-card:nth-child(2) {
    border-bottom-color: var(--primary-blue);
}
.impact-card:nth-child(2) .impact-icon {
    color: var(--primary-blue);
}

/* 3. Victimes/survivantes accompagnées (Rouge/Orange pour l'urgence) */
.impact-card:nth-child(3) {
    border-bottom-color: #ff6347; /* Tomato */
}
.impact-card:nth-child(3) .impact-icon {
    color: #ff6347;
}

/* 4. Entreprises accompagnées (Violet/Gris) */
.impact-card:nth-child(4) {
    border-bottom-color: #8A2BE2; /* BlueViolet */
}
.impact-card:nth-child(4) .impact-icon {
    color: #8A2BE2;
}

/* 5. Étudiants sensibilisés (Jaune/Or pour l'éducation) */
.impact-card:nth-child(5) {
    border-bottom-color: #FFD700; /* Gold */
}
.impact-card:nth-child(5) .impact-icon {
    color: #FFD700;
}

/* 6. Sessions de soutien psychosocial (Rose/Magenta pour le soin) */
.impact-card:nth-child(6) {
    border-bottom-color: #FF69B4; /* HotPink */
}
.impact-card:nth-child(6) .impact-icon {
    color: #FF69B4;
}

/* 7. Femmes sensibilisées (Turquoise/Cyan) */
.impact-card:nth-child(7) {
    border-bottom-color: #00CED1; /* DarkTurquoise */
}
.impact-card:nth-child(7) .impact-icon {
    color: #00CED1;
}


/* 8. Distributions de médicaments (Bleu foncé) */
.impact-card:nth-child(8) {
    border-bottom-color: var(--dark-blue);
}
.impact-card:nth-child(8) .impact-icon {
    color: var(--dark-blue);
}








/* Section Espace Kimia */
.kimia-section {
    padding: 80px 40px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: var(--light-grey); /* Utilisation du gris clair pour la section */
}

.kimia-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

.kimia-section h2 {
    font-size: 2.2em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.axe-title {
    display: block;
    color: var(--accent-green);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.kimia-content {
    display: flex;
    gap: 60px;
    align-items: center; /* Centre les blocs verticalement */
}

.kimia-content .text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    align-items: flex-start;
}

.kimia-content .text-block h2,
.kimia-content .text-block h3 {
    width: 100%;
    margin-bottom: 20px;
}

.kimia-content .text-block p {
    width: 100%;
    margin-bottom: 15px;
}

.kimia-content .image-block {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.kimia-content img {
    width: 100%;
    max-width: 500px;
    min-height: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Style du bouton spécifique Kimia */
.btn-kimia {
    background: var(--primary-blue);
    color: white;
    padding: 15px 30px;
    border-radius: 50px; /* Bouton très arrondi */
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.btn-kimia:hover {
    background: var(--dark-blue);
}

/* Réactivité */
@media (max-width: 1024px) {
    .kimia-content {
        flex-direction: column; /* Empile l'image et le texte */
        gap: 30px;
        align-items: center;
    }
    .kimia-content .text-block {
        max-width: 100%;
        text-align: center;
        order: 1; /* Texte après l'image sur mobile */
    }
    .kimia-content .image-block {
        order: 0; /* Image en premier */
    }
    .kimia-content img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .kimia-section {
        padding: 40px 20px;
    }
    .kimia-section h2 {
        font-size: 1.8em;
    }
    .btn-kimia {
        padding: 12px 25px;
        font-size: 1em;
    }
}




/* Section Bannière de Reconstruction */
/* Section Bannière de Reconstruction */
.banner-reconstruction-section {
    background-color: var(--primary-blue);
    color: white; 
    padding: 30px 0; 
    text-align: center;
    width: 100vw;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


.banner-reconstruction-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

.banner-reconstruction-content h2 {
    font-size: 2.8em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: white; /* Titre en blanc */
    margin-bottom: 30px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.banner-reconstruction-content h2 i {
    font-size: 2.2rem;
    color: var(--accent-green);
}

/* Style du bouton spécifique à cette bannière */
.btn-reconstruction {
    background-color: var(--accent-green); /* Couleur d'accentuation pour le bouton */
    color: white;
    padding: 15px 40px;
    border-radius: 50px; /* Bouton très arrondi */
    font-size: 1.1em;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
}

.btn-reconstruction:hover {
    background-color: #00b347; /* Vert légèrement plus foncé au survol */
    transform: translateY(-2px); /* Léger effet de soulèvement */
}

/* Réactivité */
@media (max-width: 768px) {
    .banner-reconstruction-section {
        padding: 25px 0;
    }
    
    .banner-reconstruction-content {
        padding: 0 3%;
    }
    
    .banner-reconstruction-content h2 {
        font-size: 2em;
    }
    
    .btn-reconstruction {
        padding: 12px 30px;
        font-size: 1em;
    }
}