/* Fichier : african_metrics/assets/css/style.css */
/* Rôle : Définir le style personnalisé du site African Metrics */

/* ======== Variables de Couleurs et Police ======== */
:root {
    --am-blue: #003366; /* Bleu institutionnel profond */
    --am-green: #4CAF50; /* Vert dynamique et moderne */
    --am-light-gray: #f8f9fa; /* Gris clair de Bootstrap */
    --am-dark-gray: #343a40; /* Gris foncé de Bootstrap */
    --am-font: 'Poppins', sans-serif; /* Police principale */
}

/* ======== Styles Globaux ======== */
body {
    font-family: var(--am-font);
    line-height: 1.7;
    color: #444;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--am-blue);
}

.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
/* Soulignement stylisé pour les titres de section */
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--am-green);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
#about-short .section-title::after {
    left: 0;
    transform: translateX(0);
}


/* ======== Barre de Navigation ======== */
.navbar-brand span {
    color: var(--am-blue);
    font-weight: 700;
}
.navbar-nav .nav-link {
    font-weight: 500;
    color: #555;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--am-green);
}

/* ======== Boutons Personnalisés ======== */
.btn-am-green {
    background-color: var(--am-green);
    border-color: var(--am-green);
    color: #fff;
    padding: 10px 30px;
    transition: all 0.3s;
}
.btn-am-green:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: #fff;
    transform: translateY(-2px);
}

.btn-am-blue {
    background-color: var(--am-blue);
    border-color: var(--am-blue);
    color: #fff;
}
.btn-am-blue:hover {
    background-color: #002244;
    border-color: #002244;
    color: #fff;
}

.btn-outline-am-blue {
    color: var(--am-blue);
    border-color: var(--am-blue);
}
.btn-outline-am-blue:hover {
    background-color: var(--am-blue);
    color: #fff;
}


/* ======== Section Héros ======== */
#hero {
    width: 100%;
    min-height: 80vh; /* Hauteur minimale de 80% de la vue */
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=2070&auto=format&fit=crop') center center;
    background-size: cover;
    position: relative;
}
#hero h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}


/* ======== Section Expertises (Services) ======== */
#services { background-color: var(--am-light-gray); }
.service-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--am-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}
.service-card:hover .icon-circle {
    background-color: var(--am-green);
    color: #fff;
}

/* ======== Section Chiffres Clés ======== */
#key-figures .display-4 {
    color: var(--am-green);
}

/* ======== Section Références (Projets) ======== */
#projects { background-color: var(--am-light-gray); }
.project-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.project-card .card-img-top {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ======== Section CTA Final ======== */
#cta {
    background: var(--am-blue);
}

/* ======== Responsive adjustments ======== */
@media (max-width: 768px) {
    #hero {
        min-height: 60vh;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* ... (gardez tout le CSS précédent) ... */

/* ======== Section Héros (Carousel) ======== */
/* Remplacement du style #hero par celui du carousel */
#hero-carousel-section .carousel-item {
    height: 90vh; /* Hauteur plus grande pour un effet immersif */
    min-height: 500px;
}
#hero-carousel-section .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
/* Superposition sombre pour la lisibilité du texte */
#hero-carousel-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 35, 70, 0.6);
}

#hero-carousel-section .carousel-caption {
    bottom: 0;
    left: 10%;
    right: 10%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Animation subtile pour le texte du carrousel actif */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.carousel-item.active .carousel-caption h1 {
    animation: fadeInUp 0.6s ease-in-out both;
}
.carousel-item.active .carousel-caption p {
    animation: fadeInUp 0.8s ease-in-out 0.2s both;
}
.carousel-item.active .carousel-caption .btn {
    animation: fadeInUp 1s ease-in-out 0.4s both;
}

/* Style des contrôles du carrousel */
#hero-carousel-section .carousel-control-prev, 
#hero-carousel-section .carousel-control-next {
    width: 5%;
}
#hero-carousel-section .carousel-control-prev-icon,
#hero-carousel-section .carousel-control-next-icon {
    background-color: rgba(0, 51, 102, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 50% 50%;
}

/* ======== NOUVELLE Section Formations (Accueil) ======== */
#formations-home .formation-card {
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
#formations-home .formation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
#formations-home .formation-card img {
    height: 60px; /* Taille fixe pour l'homogénéité */
    object-fit: contain;
}

/* ======== NOUVELLE Section Partenaires ======== */
#partners .partners-logo-container .partner-logo-item {
    display: inline-block;
}
#partners .partners-logo-container img {
    height: 45px; /* Hauteur max des logos */
    max-width: 150px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}
#partners .partners-logo-container a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Ajustements responsives pour le carrousel */
@media (max-width: 992px) {
    #hero-carousel-section .carousel-item {
        height: 70vh;
    }
    #hero-carousel-section .carousel-caption h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    #hero-carousel-section .carousel-item {
        height: 60vh;
    }
    #hero-carousel-section .carousel-caption {
        /* On retire la caption pour les petits écrans où elle peut gêner */
        display: none !important;
    }
}

/* On change le fond de la section projets pour alterner les couleurs */
#projects {
    background-color: #fff;
}

/* ... (gardez tout le CSS précédent) ... */

/* ======== Section Témoignages ======== */
#testimonials {
    /* Un fond bleu institutionnel pour un aspect premium */
    background-color: var(--am-blue);
    /* Un pattern SVG subtil pour ajouter de la texture sans alourdir */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    color: #fff;
}

/* Le titre de la section doit être blanc sur ce fond */
#testimonials .section-title.text-white::after {
    background: var(--am-green); /* On garde le vert pour la cohérence */
}

.testimonial-item {
    text-align: center;
    max-width: 800px; /* Evite que le texte soit trop large sur grand écran */
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover; /* Assure que la photo n'est pas déformée */
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.testimonial-item blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-item blockquote i {
    vertical-align: middle;
}

/* Style personnalisé pour les indicateurs du carrousel de témoignages */
#testimonialCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

#testimonialCarousel .carousel-indicators button.active {
    background-color: var(--am-green);
}

/* On s'assure que les flèches de contrôle ne s'affichent pas pour ce carrousel */
#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    display: none;
}

/* ... (gardez tout le CSS précédent) ... */

/* ======== Page Contact ======== */

.page-header {
    background-size: cover;
    background-position: center;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 51, 102, 0.7); /* Superposition de la couleur principale */
}
.page-header .container {
    position: relative;
    z-index: 2;
}

.contact-info-box, .contact-form-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    height: 100%;
}

.icon-circle-sm {
    width: 45px;
    height: 45px;
    flex-shrink: 0; /* Empêche l'icône de se rétrécir */
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--am-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#contactForm .form-control {
    padding: 0.75rem 1rem;
}

#contactForm .form-control:focus {
    border-color: var(--am-green);
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

/* ... (gardez tout le CSS précédent) ... */

/* ======== Page Références ======== */

/* Sous-section "Notre Approche" */
#approach-summary .approach-step .icon-circle {
    margin-left: auto;
    margin-right: auto;
}
#approach-summary .approach-step h5 {
    margin-top: 1rem;
    color: var(--am-blue);
}

/* Filtres de la galerie de projets */
#project-filters .btn-filter {
    margin: 5px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
}

#project-filters .btn-filter:hover {
    background-color: var(--am-light-gray);
    border-color: #ced4da;
}

#project-filters .btn-filter.active {
    background-color: var(--am-green);
    border-color: var(--am-green);
    color: #fff;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.4);
}

/* Animation pour l'apparition des cards */
@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.project-item-wrapper {
    animation: fadeInItem 0.5s ease-out forwards;
}

/* Style des cards de projet (déjà existant mais on peut le raffiner) */
.project-card .project-card-img-container {
    position: relative;
    overflow: hidden;
}

.project-card .card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .project-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 51, 102, 0.85); /* Bleu AM avec transparence */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}


/* Fichier : african_metrics/assets/css/formations.css */
/* Rôle : Styles spécifiques et détaillés pour la page des formations */

/* ======== Structure générale de la page ======== */
#formations-page-content {
    display: flex;
    min-height: 80vh; /* Pour assurer que les colonnes prennent de la hauteur */
}

/* Colonne de la liste des formations (gauche) */
#training-list-column {
    width: 350px;
    flex-shrink: 0;
    background-color: var(--am-light-gray);
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.training-list-header {
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.training-list-header h4 {
    margin: 0;
    color: var(--am-blue);
}

#training-list-container {
    overflow-y: auto;
    flex-grow: 1; /* Prend tout l'espace vertical restant */
}

.training-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.training-item:hover {
    background-color: #e9ecef;
}

.training-item.active {
    background-color: var(--am-green);
    color: #fff;
    position: relative;
}

.training-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--am-blue);
}

.training-item.active .training-item-title,
.training-item.active .training-item-category {
    color: #fff;
}

.training-item-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-right: 1rem;
    flex-shrink: 0;
}

.training-item-info {
    overflow: hidden;
}

.training-item-title {
    font-weight: 600;
    color: var(--am-dark-gray);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.training-item-category {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Colonne des détails de la formation (droite) */
#training-details-column {
    flex-grow: 1;
    padding: 2rem 3rem;
    position: relative; /* Pour le positionnement du loader */
}

/* État initial / Placeholder */
#training-details-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: #6c757d;
}

#training-details-placeholder .placeholder-icon {
    font-size: 4rem;
    color: #ced4da;
    margin-bottom: 1rem;
}

/* Conteneur des détails chargés */
#training-details-content {
    display: none; /* Caché par défaut */
}

.training-detail-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.training-detail-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 1.5rem;
}

.training-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--am-blue);
    margin-bottom: 0;
}

.training-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2.5rem;
}

.training-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.info-box h6 {
    color: var(--am-green);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}
.info-box h6 i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}
.info-box p, .info-box ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    font-size: 0.95rem;
    color: #6c757d;
}
.info-box ul li {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234CAF50' class='bi bi-check-circle-fill' viewBox='0 0 16 16'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E") no-repeat left 4px;
    padding-left: 25px;
    margin-bottom: 0.5rem;
}

.training-detail-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

/* Loader */
#training-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    display: none; /* Caché par défaut */
}

/* Responsive pour tablettes et mobiles */
@media (max-width: 992px) {
    #formations-page-content {
        flex-direction: column;
    }
    #training-list-column {
        width: 100%;
        height: auto;
        max-height: 40vh; /* Limite la hauteur sur mobile */
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
    #training-details-column {
        padding: 1.5rem;
    }
    .training-detail-title {
        font-size: 2rem;
    }
}


/* Fichier : african_metrics/assets/css/a-propos.css */
/* Rôle : Styles spécifiques et soignés pour la page "À Propos" */

/* ======== Section Histoire & Mission ======== */
#history-mission {
    background-color: #fff;
}
#history-mission .mission-statement {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--am-dark-gray);
    border-left: 4px solid var(--am-green);
    padding-left: 2rem;
    margin-top: 2rem;
}

/* ======== Section Valeurs Fondamentales ======== */
#values {
    background-color: var(--am-light-gray);
}
.value-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.value-card .value-icon {
    font-size: 3rem;
    color: var(--am-green);
    margin-bottom: 1.5rem;
    display: inline-block;
}
.value-card h5 {
    color: var(--am-blue);
    font-weight: 700;
}

/* ======== Section Équipe d'Experts ======== */
#team {
    background-color: #fff;
}
.team-member-card {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-member-img-container {
    position: relative;
}
.team-member-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top; /* Cadrer sur le haut du visage */
    filter: grayscale(80%);
    transition: all 0.4s ease;
}
.team-member-card:hover .team-member-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.4s ease;
}

.team-member-card .team-member-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}
.team-member-card .team-member-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

/* Animation au survol de la carte */
.team-member-card:hover .team-member-name,
.team-member-card:hover .team-member-title {
    transform: translateY(0);
    opacity: 1;
}

.team-member-details {
    padding: 1.5rem;
    background: #fff;
    text-align: left;
}
.team-member-details .biography {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #6c757d;
}
.team-member-details .linkedin-link {
    color: var(--am-blue);
    font-weight: 600;
    text-decoration: none;
}
.team-member-details .linkedin-link:hover {
    color: var(--am-green);
    text-decoration: underline;
}

/* ======== Section Engagement ======== */
#commitment {
    background-color: var(--am-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#commitment h2 {
    color: #fff;
}


/* Fichier : african_metrics/assets/css/expertises.css */
/* Rôle : Styles spécifiques pour la page "Nos Expertises" */

/* ======== Section Compétences Transversales ======== */
#transversal-skills {
    background-color: var(--am-light-gray);
}
.skill-card {
    background-color: #fff;
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
    text-align: center;
}
.skill-card .skill-icon {
    font-size: 2.5rem;
    color: var(--am-green);
    margin-bottom: 1rem;
}
.skill-card h5 {
    color: var(--am-blue);
    font-weight: 600;
}

/* ======== Section Principale des Expertises ======== */
.expertise-block {
    padding: 4rem 0;
    border-bottom: 1px solid #e9ecef;
}
.expertise-block:last-child {
    border-bottom: none;
}
/* Style pour l'alternance */
.expertise-block:nth-child(even) {
    background-color: var(--am-light-gray);
}

.expertise-image-container {
    position: relative;
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.expertise-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.expertise-image-container:hover .expertise-image {
    transform: scale(1.05);
}

.expertise-content .expertise-icon {
    font-size: 3rem;
    color: var(--am-green);
    margin-bottom: 1rem;
    display: inline-block;
}
.expertise-content .expertise-title {
    font-weight: 700;
    margin-bottom: 1rem;
}
.expertise-content .expertise-description {
    color: #495057;
    margin-bottom: 2rem;
}

.expertise-details-grid {
    margin-bottom: 2rem;
}
.expertise-details-grid h6 {
    font-weight: 600;
    color: var(--am-blue);
    margin-bottom: 0.75rem;
}
.expertise-details-grid .list-styled {
    list-style: none;
    padding-left: 0;
}
.expertise-details-grid .list-styled li {
    font-size: 0.95rem;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}
.expertise-details-grid .list-styled li::before {
    content: "\f00c"; /* Check icon from Font Awesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--am-green);
}

.related-projects-title {
    font-weight: 600;
    color: var(--am-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
}
.related-project-link {
    display: block;
    font-size: 0.9rem;
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}
.related-project-link:hover {
    color: var(--am-blue);
    background-color: rgba(76, 175, 80, 0.05);
}
.related-project-link i {
    margin-right: 0.5rem;
    color: #6c757d;
}

/* Fichier : african_metrics/assets/css/chatbot.css */
/* Rôle : Styles pour l'assistant virtuel (chatbot) */

:root {
    --chatbot-primary: var(--am-blue);
    --chatbot-secondary: var(--am-green);
    --chatbot-bg: #f4f7f9;
    --chatbot-user-msg-bg: var(--am-green);
    --chatbot-bot-msg-bg: #fff;
    --chatbot-text-light: #fff;
    --chatbot-text-dark: #333;
}

/* Bulle flottante */
#chatbot-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--chatbot-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}
#chatbot-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
#chatbot-bubble i {
    font-size: 28px;
    color: var(--chatbot-text-light);
}

/* Fenêtre de Chat */
#chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 370px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background-color: var(--chatbot-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.5) translateY(100px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}
#chatbot-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* En-tête du Chatbot */
#chatbot-header {
    background-color: var(--chatbot-primary);
    color: var(--chatbot-text-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
#chatbot-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}
#chatbot-header .bot-status {
    font-size: 0.8rem;
    opacity: 0.8;
}
#chatbot-header .bot-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--chatbot-secondary);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}
#close-chatbot {
    background: none;
    border: none;
    color: var(--chatbot-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
#close-chatbot:hover {
    opacity: 1;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Corps des messages */
#chatbot-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}
.chat-message {
    display: flex;
    margin-bottom: 1rem;
    max-width: 85%;
}
.message-content {
    padding: 0.75rem 1rem;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
}
/* Message du bot */
.bot-message {
    align-self: flex-start;
}
.bot-message .message-content {
    background-color: var(--chatbot-bot-msg-bg);
    color: var(--chatbot-text-dark);
    border-top-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* Message de l'utilisateur */
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.user-message .message-content {
    background-color: var(--chatbot-user-msg-bg);
    color: var(--chatbot-text-light);
    border-top-right-radius: 4px;
}
.typing-indicator {
    display: flex;
    align-items: center;
}
.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #aaa;
    border-radius: 50%;
    display: inline-block;
    animation:-bounce 1.3s infinite ease-in-out;
}
.typing-indicator span:nth-of-type(2) { animation-delay: -1.1s; }
.typing-indicator span:nth-of-type(3) { animation-delay: -0.9s; }

@keyframes-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Pied de page du Chatbot (zone de saisie) */
#chatbot-footer {
    padding: 1rem;
    border-top: 1px solid #ddd;
    background-color: #fff;
    flex-shrink: 0;
}
#chatbot-input-form {
    display: flex;
}
#chatbot-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    /*padding: 0.75rem 1rem;*/
    font-size: 0.95rem;
    margin-right: 0.5rem;
}
#chatbot-input:focus {
    outline: none;
    border-color: var(--chatbot-secondary);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}
#chatbot-send-btn {
    background-color: var(--chatbot-primary);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
}
#chatbot-send-btn:hover {
    background-color: #002244;
}

/* ======== VAGUE 10 : STYLES DES NOUVELLES SECTIONS ======== */

/* --- Page Blog Listing --- */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-card .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.blog-card .blog-card-title a {
    background: linear-gradient(to right, var(--am-blue), var(--am-blue));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}
.blog-card:hover .blog-card-title a {
    background-size: 100% 2px;
}
.badge.bg-am-green {
    background-color: var(--am-green) !important;
}

/* --- Page Article --- */
.article-header {
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
}
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.article-content h2, .article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-author-box {
    background: var(--am-light-gray);
    padding: 2rem;
    border-radius: 8px;
}
.article-author-box .author-photo {
    width: 80px;
    height: 80px;
}

/* --- Page Carrières --- */
.accordion-button {
    font-size: 1.1rem;
}
.accordion-button:not(.collapsed) {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--am-blue);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}
.accordion-item {
    border-radius: 0 !important;
    border-left: 0;
    border-right: 0;
}
.accordion-item:first-of-type {
    border-top-left-radius: .25rem !important;
    border-top-right-radius: .25rem !important;
}
.accordion-item:last-of-type {
    border-bottom-left-radius: .25rem !important;
    border-bottom-right-radius: .25rem !important;
}

/* --- Styles pour les filtres du blog --- */
#category-filters .btn-filter {
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
#category-filters .btn-filter:hover {
    background-color: var(--am-light-gray);
}
#category-filters .btn-filter.active {
    background-color: var(--am-blue);
    border-color: var(--am-blue);
    color: #fff;
}

/* --- Animation pour l'apparition des articles --- */
.article-card-wrapper {
    animation: fadeIn 0.6s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Style de la pagination --- */
.pagination .page-link {
    color: var(--am-blue);
}
.pagination .page-item.active .page-link {
    background-color: var(--am-blue);
    border-color: var(--am-blue);
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
}

/* ======== VAGUE 10.2 : STYLES D'EXCELLENCE POUR ARTICLE.PHP ======== */

/* --- Barre de Progression de Lecture --- */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: var(--am-green);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* --- En-tête d'Article Héroïque --- */
.article-header-hero {
    position: relative;
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-header-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    filter: blur(5px) brightness(0.8); /* Effet de flou et d'assombrissement */
    z-index: 1;
}
.article-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 35, 70, 0.6); /* Notre bleu avec plus d'opacité */
    z-index: 2;
}
.article-header-content {
    position: relative;
    z-index: 3;
}
.article-header-content h1 {
    text-shadow: 0 2px 15px rgba(0,0,0,0.5); /* Ombre portée plus forte pour la lisibilité */
}
.article-meta {
    color: rgba(255,255,255,0.8);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.article-meta .author-photo-small {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border: 2px solid rgba(255,255,255,0.5);
}

/* --- Corps de l'Article --- */
.article-body {
    margin-top: -80px; /* Fait remonter le corps sur l'image d'en-tête */
    z-index: 10;
    position: relative;
}

/* --- Barre de Partage Sociale --- */
.social-share-bar {
    position: absolute;
    top: 50px;
    left: -80px; /* Se positionne à gauche du corps de l'article */
    display: flex;
    flex-direction: column;
}
.social-share-bar .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-share-bar .social-icon:hover {
    transform: scale(1.1);
    border-radius: 10px;
}
.social-share-bar .linkedin { background: #0077b5; }
.social-share-bar .twitter { background: #1da1f2; }
.social-share-bar .facebook { background: #3b5998; }
.social-share-bar .email { background: #777; }

/* Responsive pour la barre sociale */
@media (max-width: 1200px) {
    .social-share-bar { display: none; } /* On la cache sur les écrans plus petits où elle gênerait */
}

/* --- Style du Contenu de l'Article --- */
.article-content-styling {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #343a40;
}
.article-content-styling h2, .article-content-styling h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--am-blue);
}
.article-content-styling p, .article-content-styling ul, .article-content-styling ol {
    margin-bottom: 1.5rem;
}
.article-content-styling a {
    color: var(--am-green);
    text-decoration: none;
    background-image: linear-gradient(var(--am-green), var(--am-green));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .3s;
}
.article-content-styling a:hover {
    background-size: 100% 2px;
}

/* --- Tags de l'Article --- */
.article-tags .badge {
    padding: 0.5em 1em;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.article-tags .badge:hover {
    background-color: #ddd !important;
}

/* --- Boîte Auteur --- */
.article-author-box .author-photo-large {
    width: 120px;
    height: 120px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Page Ressources --- */
.resource-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 0;
}
.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.resource-card .resource-card-img-container {
    position: relative;
}
.resource-card .card-img-top {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.resource-card .resource-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 51, 102, 0.85);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ======== Top Bar (Nouveau) ======== */
#topbar {
    font-size: 0.9rem;
}
#topbar a {
    text-decoration: none;
    transition: color 0.3s ease;
}
#topbar a:hover {
    color: var(--am-blue) !important;
}

/* ======== Navbar améliorations ======== */
.navbar-nav .nav-item {
    margin: 0 5px;
}
.navbar-nav .nav-link {
    padding: 10px 15px;
    font-weight: 500;
    color: #444;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--am-green);
    background-color: rgba(76, 175, 80, 0.05);
}
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
}
.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background-color: var(--am-light-gray);
    color: var(--am-green);
    padding-left: 25px; /* Petit effet de décalage au survol */
}