:root {
    --bs-primary: #0D47A1; /* Un bleu institutionnel fort */
    --bs-secondary: #FF8F00; /* Un orange vibrant pour les accents et CTA */
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Cairo', sans-serif; /* Pour l'arabe */

        --bs-secondary-rgb: 255, 143, 0; /* NOUVELLE LIGNE ESSENTIELLE */

}
body { font-family: var(--font-primary); }
body.lang-ar { font-family: var(--font-secondary); }

/* ======== 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 */
}

/* ... (gardez les styles du root et du body) ... */

h1, h2, h3, h4, h5, h6 { color: var(--bs-primary); }
.section-title { font-weight: 700; position: relative; padding-bottom: 15px; }
.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bs-secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
body.lang-ar .section-title::after { left: 50%; transform: translateX(50%); }
.text-secondary { color: var(--bs-secondary) !important; }
.bg-primary { background-color: var(--bs-primary) !important; }
.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover { background-color: #0B3A85; border-color: #0B3A85; }
.btn-secondary { background-color: var(--bs-secondary); border-color: var(--bs-secondary); color: #fff; }
.btn-secondary:hover { background-color: #E68100; border-color: #E68100; color: #fff;}
.btn-outline-primary { color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-outline-primary:hover { background-color: var(--bs-primary); color: #fff; }

/* --- Hero Section --- */
.hero-section { position: relative; height: 90vh; display: flex; align-items: center; }
.hero-bg { position: absolute; top:0; left:0; right:0; bottom:0; background-size: cover; background-position: center; }
.hero-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background-color: rgba(13, 71, 161, 0.7); }
.hero-content { position: relative; z-index: 2; }

/* --- Welcome & Stats --- */
.stat-card h3 { line-height: 1; }

/* --- Niveaux Éducatifs --- */
.level-card { position: relative; border-radius: 8px; overflow: hidden; height: 400px; }
.level-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.level-card:hover img { transform: scale(1.1); }
.level-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.level-card-overlay h3 { color: #fff; }
.level-card-overlay p { opacity: 0; transform: translateY(20px); transition: all 0.4s ease; }
.level-card:hover p, .level-card:hover .btn { opacity: 1; transform: translateY(0); }

/* --- Formations & News Cards --- */
.program-card, .news-card { transition: transform 0.3s ease, box-shadow 0.3s ease; border: 0; }
.program-card:hover, .news-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.program-card .card-img-top, .news-card .card-img-top { aspect-ratio: 16/9; object-fit: cover; }
.news-card-title a {
    background: linear-gradient(to right, var(--bs-primary), var(--bs-primary));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s;
}
body.lang-ar .news-card-title a { background-position: right bottom; }
.news-card:hover .news-card-title a { background-size: 100% 2px; }

/* --- CTA Section --- */
.cta-section {
    background: var(--bs-primary) url('assets/images/cta-bg-pattern.svg'); /* Mettre un pattern SVG subtil */
}

/* --- Section Événements --- */
.event-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 5px solid var(--bs-primary);
}
body.lang-ar .event-card { border-left: 0; border-right: 5px solid var(--bs-primary); }
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.event-date {
    background-color: var(--bs-secondary);
    color: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
    line-height: 1.2;
    margin-right: 1.5rem;
    flex-shrink: 0;
}
body.lang-ar .event-date { margin-right: 0; margin-left: 1.5rem; }
.event-date .day { font-size: 2rem; font-weight: 700; display: block; }
.event-date .month { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; }
.event-details .event-title { margin-bottom: 0.25rem; font-weight: 600; }

/* --- Section Témoignages --- */
.testimonial-section { background-color: var(--bs-light); }
.testimonial-card { padding: 0 2rem; }
.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: var(--bs-primary);
    border-radius: 50%;
}

/* --- Section Partenaires --- */
.partner-logo img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


/* --- Styles pour la page "À Propos" --- */

.text-start-custom { text-align: var(--bs-text-align, left) !important; }
body.lang-ar .text-start-custom { text-align: var(--bs-text-align, right) !important; }

.section-title.text-start-custom::after {
    left: 0;
    transform: none;
}
body.lang-ar .section-title.text-start-custom::after {
    left: auto;
    right: 0;
}

/* Section Fondateur */
.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -75px; /* Pour remonter sur la section précédente */
    position: relative;
    z-index: 2;
}
.founder-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    position: relative;
    padding: 0 2rem;
}
.founder-quote::before {
    content: '\201C'; /* guillemet ouvrant */
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 5rem;
    color: var(--bs-secondary);
    opacity: 0.2;
    font-family: serif;
}
body.lang-ar .founder-quote::before {
    left: auto;
    right: 0;
}

/* Section Mission & Vision */
.icon-box {
    padding: 30px;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease-in-out;
    text-align: center;
}
.icon-box .icon {
    margin: 0 auto;
    width: 64px;
    height: 64px;
    background: var(--bs-primary);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}
.icon-box .icon i {
    color: #fff;
    font-size: 28px;
}
.icon-box .title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 20px;
}
.icon-box .description {
    line-height: 1.6;
    color: #6c757d;
}
.icon-box:hover {
    border-color: var(--bs-secondary);
    box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.08);
}
.icon-box:hover .icon {
    background: var(--bs-secondary);
}

/* --- Styles pour Niveaux & Programmes (Vague 5) --- */

/* Superposition pour les en-têtes de page avec image */
.page-header {
    position: relative;
}
.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(13, 71, 161, 0.6);
}

/* Page de détail programme */
.content-section .content-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--bs-secondary);
    display: inline-block;
}
.list-styled {
    list-style: none;
    padding-left: 0;
}
.list-styled li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
body.lang-ar .list-styled li {
    padding-left: 0;
    padding-right: 25px;
}
.list-styled li::before {
    content: "\f058"; /* check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--bs-secondary);
}
body.lang-ar .list-styled li::before {
    left: auto;
    right: 0;
}

.sidebar-widget {
    background: var(--bs-light);
    position: sticky; /* Pour que la sidebar suive le scroll */
    top: 120px; /* Espace pour la navbar sticky */
}
.sidebar-widget .widget-title {
    font-size: 1.3rem;
    font-weight: 600;
}

/* --- Styles pour la page Admissions (Vague 6) --- */
.process-timeline {
    position: relative;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 16.66%; /* Pour centrer entre les deux premiers points */
    right: 16.66%;
    height: 4px;
    background-color: #dee2e6;
    display: block;
}
body.lang-ar .process-timeline::before {
    left: 16.66%;
    right: 16.66%;
}

.process-step {
    text-align: center;
    position: relative;
}
.process-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 4px solid #dee2e6;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
    z-index: 1;
}
.process-step .step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
[data-aos="fade-up"].aos-animate .process-step .step-number {
    border-color: var(--bs-secondary);
}

/* --- Page Contact --- */
.contact-info-box, .contact-form-box { background: #fff; border-radius: 8px; }
.contact-info-box .icon-circle {
    width: 50px; height: 50px; flex-shrink: 0; background-color: rgba(13, 71, 161, 0.05);
    color: var(--bs-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
body.lang-ar .contact-info-box .icon-circle { margin-right: 0; margin-left: 1rem; }

/* --- Page Événements --- */
.text-center-custom { text-align: center; }
.section-title.text-center-custom::after { left: 50%; transform: translateX(-50%); }
body.lang-ar .section-title.text-center-custom::after { left: 50%; transform: translateX(50%); }
.event-list-card { transition: all 0.3s ease; }
.event-list-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
.event-list-card .card-img-top { aspect-ratio: 16/9; object-fit: cover; }

/* --- Styles pour la Galerie Média (Vague 8) --- */
#gallery-filters .btn {
    text-transform: capitalize;
}

.gallery-item {
    transition: all .3s ease-in-out;
}
.gallery-item-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.gallery-item-inner img {
    transition: transform .4s ease;
}
.gallery-item-inner:hover img {
    transform: scale(1.05);
}
.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.7); /* Bleu primaire */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery-item-inner:hover .gallery-item-overlay {
    opacity: 1;
}
.gallery-item-overlay i {
    color: #fff;
    font-size: 2.5rem;
}
.gallery-item-overlay.video i {
    font-size: 4rem;
}


/* --- Styles pour la page Actualités (Vague 8.1) --- */
#news-category-filters .btn-filter {
    background-color: #fff; border: 1px solid #dee2e6; color: #495057; font-weight: 500;
    transition: all 0.2s ease-in-out;
}
#news-category-filters .btn-filter:hover { background-color: var(--bs-light); }
#news-category-filters .btn-filter.active { background-color: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }

.news-card-wrapper { animation: fadeIn 0.6s ease-out forwards; }
.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* --- Styles pour la Page d'Actualité Détaillée (Vague 8.2) --- */

/* En-tête Héroïque (similaire à article.php d'African Metrics) */
.article-header-hero {
    position: relative; padding: 6rem 0; min-height: 50vh;
    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;
}
.article-header-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 71, 161, 0.7);
}
.article-header-content { position: relative; z-index: 2; }
.article-header-content h1 { text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.article-meta { color: rgba(255,255,255,0.9); }
.article-meta .author-photo-small { width: 35px; height: 35px; margin-right: 10px; border: 2px solid rgba(255,255,255,0.5); }
body.lang-ar .article-meta .author-photo-small { margin-right: 0; margin-left: 10px; }

/* Corps de l'article */
.article-body { margin-top: -60px; z-index: 10; position: relative; }
.article-content-styling {
    font-size: 1.1rem; line-height: 1.8; color: #333;
}

/* Partage social en ligne */
.social-share-inline .social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px;
    border-radius: 50%; color: #fff; text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}
.social-share-inline .social-icon:hover { transform: translateY(-3px); }
.social-share-inline .facebook { background: #3b5998; }
.social-share-inline .twitter { background: #1da1f2; }
.social-share-inline .linkedin { background: #0077b5; }

/* Section Autres Actualités */
.related-articles-section {
    border-top: 1px solid #dee2e6;
}

/* --- Styles pour la nouvelle section Niveaux (Vague 9) --- */
.level-card-v2 {
    transition: all 0.3s ease-in-out;
    border: 0;
    border-bottom: 4px solid transparent;
}
.level-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-bottom-color: var(--bs-secondary);
}
.level-card-v2 .level-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.level-card-v2 .level-icon-wrapper i {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}
.level-card-v2:hover .level-icon-wrapper {
    background-color: var(--bs-primary);
}
.level-card-v2:hover .level-icon-wrapper i {
    color: #fff;
    transform: scale(1.1);
}

/* --- Footer d'Excellence (Vague 9.1) --- */
.site-footer {
    background-color: var(--bs-dark); /* Un fond sombre mais riche */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236c757d' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"); /* Motif discret */
    color: #fff;
    position: relative;
}

.site-footer .footer-logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}
.site-footer .footer-logo:hover {
    transform: scale(1.05);
}

.site-footer .footer-title {
    color: var(--bs-secondary); /* Titres en orange accent */
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.site-footer .footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--bs-primary); /* Soulignement en bleu */
}
body.lang-ar .site-footer .footer-title::after {
    left: auto;
    right: 0;
}

.site-footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Liens sociaux */
.footer-social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
body.lang-ar .footer-social-links a { margin-right: 0; margin-left: 10px; }
.footer-social-links a:hover {
    background-color: var(--bs-secondary);
    transform: translateY(-3px);
}

/* Liens rapides */
.site-footer .footer-links li {
    margin-bottom: 8px;
}
.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
body.lang-ar .site-footer .footer-links a { justify-content: flex-end; } /* Aligner les liens à droite pour l'arabe */
.site-footer .footer-links a:hover {
    color: var(--bs-secondary);
    padding-left: 10px;
}
body.lang-ar .site-footer .footer-links a:hover {
    padding-left: 0;
    padding-right: 10px;
}
.site-footer .footer-links a i {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}
.site-footer .footer-links a:hover i {
    color: var(--bs-secondary);
}

/* Infos de contact */
.site-footer .footer-contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}
.site-footer .footer-contact-info li i {
    flex-shrink: 0;
    width: 20px; /* Taille fixe pour alignement */
    margin-top: 5px;
}
body.lang-ar .site-footer .footer-contact-info li i { margin-right: 0; margin-left: 10px; }


/* Barre de copyright */
.site-footer .copyright-bar {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.site-footer .copyright, .site-footer .developer-credit {
    color: rgba(255, 255, 255, 0.6);
}
.site-footer .developer-credit a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.site-footer .developer-credit a:hover {
    color: var(--bs-secondary);
    text-decoration: underline;
}

/* Responsive pour le footer */
@media (max-width: 768px) {
    .site-footer .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    body.lang-ar .site-footer .footer-title::after {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
    .site-footer .footer-social-links {
        text-align: center;
    }
    .site-footer .footer-links a {
        justify-content: center;
    }
    body.lang-ar .site-footer .footer-links a { justify-content: center; }

    .site-footer .footer-contact-info li {
        justify-content: center;
    }
}

/* --- Section Annonces (Vague 10) --- */
.announcement-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eef0f2;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}
.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left-color: var(--bs-secondary);
}
.announcement-icon {
    font-size: 2rem;
    color: var(--bs-secondary);
    margin-right: 1.5rem;
}
body.lang-ar .announcement-icon {
    margin-right: 0;
    margin-left: 1.5rem;
}
.announcement-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.announcement-link {
    font-weight: 500;
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 0.9rem;
}
.announcement-link::after {
    content: ' \f061'; /* Arrow icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform 0.3s;
    display: inline-block;
}
body.lang-ar .announcement-link::after {
    content: ' \f060'; /* Left Arrow */
}
.announcement-card:hover .announcement-link::after {
    transform: translateX(5px);
}
body.lang-ar .announcement-card:hover .announcement-link::after {
    transform: translateX(-5px);
}

/* Style pour le lien dans le Toast */
.toast-info .toast-link {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}
.toast-info .toast-link:hover {
    text-decoration: none;
}

/* --- Styles pour la page Formations (Vague 11) --- */
.domain-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}
.domain-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--bs-primary);
    color: #fff;
}
.domain-header i {
    color: var(--bs-secondary);
    margin-right: 1rem;
}
body.lang-ar .domain-header i { margin-right: 0; margin-left: 1rem; }
.domain-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #fff;
}
.domain-body .list-group-item {
    padding: 1.25rem 2rem;
    transition: all 0.3s ease;
}
.domain-body .list-group-item:hover {
    background-color: var(--bs-light);
    transform: translateX(10px);
}
body.lang-ar .domain-body .list-group-item:hover { transform: translateX(-10px); }

.domain-body .list-group-item i {
    transition: transform 0.3s ease;
}
.domain-body .list-group-item:hover i {
    transform: scale(1.5);
}

/* --- Styles pour la page Filière Détaillée (Vague 11) --- */

/* Colonne de contenu principale */
.content-styling {
    font-size: 1.1rem;
    line-height: 1.8;
}
.content-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-light);
    display: inline-block;
}
.debouche-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.debouche-item i {
    font-size: 1.2rem;
}
body.lang-ar .debouche-item i { margin-right: 0; margin-left: 0.5rem; }

/* Sidebar */
.sidebar-widget-sticky {
    background: var(--bs-light);
    position: sticky;
    top: 120px; /* Espace pour la navbar sticky */
}
.sidebar-widget-sticky .widget-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
}
.sidebar-widget-sticky .admission-details {
    font-style: italic;
    color: #555;
    border-left: 3px solid var(--bs-secondary);
    padding-left: 15px;
}
body.lang-ar .sidebar-widget-sticky .admission-details {
    border-left: 0;
    border-right: 3px solid var(--bs-secondary);
    padding-left: 0;
    padding-right: 15px;
}

/* Animation "pulse" pour le bouton d'action principal */
.pulse-animation {
    animation: pulse-orange 2s infinite;
}
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-secondary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(var(--bs-secondary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-secondary-rgb), 0);
    }
}


/* --- Hero Carousel d'Excellence (Vague 13) --- */
.hero-carousel-section {
    position: relative;
    height: 95vh;
    min-height: 600px;
    color: #fff;
    overflow: hidden;
}
#heroCarousel, .carousel-inner, .carousel-item {
    height: 100%;
}

.carousel-image-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
}
.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Effet Ken Burns (zoom lent et panoramique) */
.carousel-item.active .ken-burns {
    animation: kenburns 20s ease-out forwards;
}
@keyframes kenburns {
    0% { transform: scale(1.0) translate(0, 0); }
    50% { transform: scale(1.1) translate(-2%, 2%); }
    100% { transform: scale(1.0) translate(0, 0); }
}

.carousel-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(13, 71, 161, 0.4) 100%);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    left: 15%; right: 15%; top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
}
body.lang-ar .carousel-caption { text-align: center; }

/* Styles pour les contrôles (flèches) */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    z-index: 3;
}
.carousel-control-icon {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}
.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
    background: var(--bs-secondary);
}

/* Indicateurs de progression (barres) */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}
.carousel-indicators button {
    width: 50px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 0;
    margin: 0 5px;
    padding: 0;
    opacity: 1;
    position: relative;
    overflow: hidden;
}
.carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.8);
}
.carousel-indicators .indicator-bar {
    display: block;
    height: 100%;
    width: 0;
    background-color: var(--bs-secondary);
}
.carousel-item.active ~ .carousel-indicators .active .indicator-bar,
.carousel-indicators .active .indicator-bar {
    animation: fill-indicator 7s linear forwards; /* Doit correspondre à data-bs-interval */
}
@keyframes fill-indicator {
    from { width: 0%; }
    to { width: 100%; }
}

/* Animation du texte */
.carousel-item .animate__animated {
    visibility: hidden;
}
.carousel-item.active .animate__animated {
    visibility: visible;
}
.carousel-item.active .animate__fadeInUp {
    animation-delay: 0.5s;
}

/* --- Styles pour le portail Emplois du Temps (Vague 13) --- */
.finder-box {
    border: 2px dashed #dee2e6;
}
.finder-box .form-label {
    font-weight: 500;
    color: var(--bs-primary);
}

/* --- Styles pour la page Niveaux (Vague 14) --- */
.pillar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
.pillar-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}
.pillar-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pillar-card-title {
    font-weight: 700;
    color: var(--bs-primary);
}
.pillar-card-body p {
    flex-grow: 1; /* Pousse le bouton vers le bas */
}

/* --- Section Pôles d'Excellence (Vague 14.1) --- */
.poles-excellence-section {
    background-color: var(--bs-light);
}

.pole-card {
    position: relative;
    height: 450px; /* Hauteur fixe pour un alignement parfait */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    display: flex;
    align-items: flex-end; /* Aligne le contenu en bas par défaut */
}

.pole-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.pole-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-out;
}

.pole-card:hover .pole-card-bg {
    transform: scale(1.1);
}

.pole-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(13, 71, 161, 0.95) 20%, rgba(13, 71, 161, 0.2) 80%);
    transition: background 0.4s ease;
}

.pole-card:hover .pole-card-overlay {
    background: linear-gradient(to top, rgba(13, 71, 161, 0.85) 10%, rgba(0,0,0, 0.1) 70%);
}

.pole-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.pole-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bs-secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.pole-card:hover .pole-card-icon {
    transform: rotate(360deg) scale(1.1);
    background-color: #fff;
    color: var(--bs-primary);
}

.pole-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pole-card-description {
    color: rgba(255, 255, 255, 0.8);
    height: 0; /* Caché par défaut */
    opacity: 0;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

.pole-card:hover .pole-card-description {
    height: 70px; /* Définir une hauteur approximative pour la transition */
    opacity: 1;
    margin-bottom: 1.5rem;
}

.pole-card .btn {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.pole-card:hover .btn {
    opacity: 1;
}

/* Responsive pour les cartes */
@media (max-width: 992px) {
    .pole-card {
        height: 400px;
    }
    .pole-card-description {
        /* On affiche la description sur tablette pour ne pas dépendre du survol */
        height: auto;
        opacity: 1;
        margin-bottom: 1.5rem;
    }
}

/* --- Vague de Style : Section "Groupe AMOUL" --- */

/* 1. Variables de style locales (pour une customisation facile) */
:root {
    --section-amoul-bg: #f8f9fa; /* Fond général de la section (gris très clair) */
    --card-border-color: #e9ecef;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.1);
    --hero-bg: var(--bs-primary); /* Fond de la carte de présentation */
    --hero-text-color: #fff;
    --muted: #6c757d;
}

/* 2. Conteneur principal de la section */
.section-wide {
    padding: 5rem 0; /* 80px en haut et en bas */
    background-color: var(--section-amoul-bg);
}

.section-inner {
    max-width: 1200px; /* Largeur maximale pour le contenu */
    margin: 0 auto;
    padding: 0 1rem; /* Marge de sécurité sur les côtés */
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 pour les cartes, 1/3 pour la présentation */
    gap: 2rem; /* Espace entre les deux colonnes */
}

/* 3. Colonne de gauche : Les cartes */
.cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espace entre chaque carte */
}

.card {
    background-color: #fff;
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card .head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.card .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 8px;
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.card:hover .icon {
    background-color: var(--bs-primary);
    color: #fff;
    transform: scale(1.1);
}

.card .text h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
}

.card .text .lead {
    margin: 0;
    font-size: 1rem; /* 16px */
    color: var(--muted);
    font-weight: 400;
}

.card .meta {
    margin-top: auto; /* Pousse cette section en bas de la carte */
    padding-top: 1rem;
    border-top: 1px solid var(--card-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .pill {
    background-color: var(--section-amoul-bg);
    color: var(--muted);
    font-size: 0.75rem; /* 12px */
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

/* 4. Colonne de droite : Présentation du Groupe */
.hero {
    background-color: var(--hero-bg);
    color: var(--hero-text-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.hero .brand {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.hero .logo {
    font-size: 1.25rem;
    font-weight: 700;
    writing-mode: vertical-rl; /* Texte vertical */
    text-orientation: mixed;
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
    padding: 1rem 0.5rem;
    border-radius: 8px;
    letter-spacing: 2px;
}

.hero .text h2 {
    color: var(--hero-text-color);
    font-size: 1.75rem; /* 28px */
    margin: 0 0 0.75rem 0;
}

.hero .text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hero .ctas {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 5. Styles des boutons (pour réutiliser) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn.btn-primary {
    background-color: var(--bs-secondary);
    color: var(--bs-primary);
    border: none;
}
.btn.btn-primary:hover {
    background-color: #fff;
    color: var(--bs-primary);
}

.btn.btn-outline {
    background-color: transparent;
    border: 1px solid var(--card-border-color);
    color: var(--bs-primary);
}
.btn.btn-outline:hover {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}
.hero .btn.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.hero .btn.btn-outline:hover {
    background-color: #fff;
    color: var(--bs-primary);
}

/* 6. Responsive Design */
@media (max-width: 992px) {
    .section-inner {
        grid-template-columns: 1fr; /* Passe à une seule colonne sur tablette */
    }
    .hero {
        /* On met la carte de présentation en premier sur mobile/tablette */
        order: -1;
    }
}

@media (max-width: 576px) {
    .section-wide {
        padding: 3rem 0; /* Espacement réduit sur mobile */
    }
    .card .head {
        flex-direction: column; /* Icône au-dessus du texte sur petit écran */
        align-items: center;
        text-align: center;
    }
    .card .meta {
        flex-direction: column;
        gap: 1rem;
    }
    .hero .brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero .logo {
        writing-mode: horizontal-tb; /* Logo redevient horizontal */
    }
    .hero .ctas {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

/* 7. Styles pour l'Arabe (RTL) */
.lang-ar .section-inner {
    direction: rtl;
}
.lang-ar .card .head {
    /* Pas de changement nécessaire grâce à `gap` */
}
.lang-ar .card .icon {
    /* Pas de changement nécessaire */
}
.lang-ar .hero .brand {
    /* Pas de changement nécessaire */
}
.lang-ar .btn svg {
    transform: scaleX(-1); /* Inverse l'icône de la flèche */
}
.lang-ar .btn-outline {
    /* Inverse la flèche */
}

/* --- Styles pour le Top Bar (Vague 14.2) --- */
#topbar {
    /* ... (styles existants) ... */
}
#topbar a.topbar-link { /* Style pour les liens textuels simples */
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}
#topbar a.topbar-link:hover {
    color: var(--bs-secondary) !important;
}

/* --- Style d'Excellence pour les Boutons d'Action Rapides --- */
.topbar-action-btn {
    background-color: rgba(255, 255, 255, 0.15); /* Fond subtil et translucide */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
    padding: 0.25rem 0.75rem; /* Padding ajusté pour un look compact */
    border-radius: 50px; /* Bords très arrondis pour un look "pilule" moderne */
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.topbar-action-btn i {
    font-size: 0.9em;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.topbar-action-btn:hover {
    background-color: var(--bs-secondary); /* Le orange vibrant au survol */
    color: var(--bs-primary); /* Texte en bleu foncé pour un contraste fort */
    border-color: var(--bs-secondary);
    transform: translateY(-2px); /* Léger effet de soulèvement */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.topbar-action-btn:hover i {
    transform: scale(1.1);
    opacity: 1;
}

/* Style pour le sélecteur de langue, pour l'harmoniser */
.language-switcher .lang-option {
    font-weight: 500;
    transition: color 0.3s ease;
}
.language-switcher .lang-option:hover {
    color: var(--bs-secondary) !important;
}

/* --- Bouton "Retour en Haut" (Vague 14.5) --- */
.back-to-top-btn {
     position: fixed;
    bottom: 20px;
    right: 20px; /* Position par défaut à droite */
    z-index: 1049; /* Élevé, mais inférieur au chatbot */

    /* Pour l'arabe, on le positionne à GAUCHE, mais on décale le chatbot à DROITE */
    body.lang-ar & {
        right: auto;
        left: 20px;
    }
    width: 45px;
    height: 45px;
    background-color: var(--bs-secondary); /* Le orange vibrant */
    color: #fff;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1.2rem;
    text-decoration: none;
    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Gère l'apparition/disparition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1; /* Juste en dessous du chatbot */
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: var(--bs-primary); /* Le bleu au survol */
    color: #fff;
    transform: translateY(-5px); /* Effet de soulèvement */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Assurer que le footer reste en arrière-plan */

/* --- Styles pour la page Coopération (Vague 15) --- */
.partner-card {
    background: #fff;
    padding: 2rem;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}
.partner-card img {
    max-width: 100%;
    max-height: 80%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.partner-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.partner-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Style de la modale */
.modal-header .partner-logo-modal { height: 50px; margin-right: 15px; }
.modal-header .partner-title-modal { margin-bottom: 0; }
.modal-header .partner-subtitle-modal { font-size: 0.9rem; }

.cooperation-detail-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.cooperation-detail-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cooperation-type-badge { font-size: 0.8rem; font-weight: bold; }

/* --- Page Équipe / Enseignants (Vague 16) --- */
.filters-bar { background: var(--bs-light); padding: 1rem; border-radius: 8px; }
#teachers-results { transition: opacity 0.3s ease; }

/* Vue Grille */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.teacher-card {
    background: #fff; text-align: center; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    overflow: hidden; transition: all 0.3s ease; cursor: pointer;
}
.teacher-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.teacher-card-img { height: 250px; background-size: cover; background-position: center top; }
.teacher-card-body { padding: 1.5rem; }
.teacher-card-name { font-weight: 600; color: var(--bs-primary); }
.teacher-card-title { color: var(--bs-secondary); font-size: 0.9rem; }

/* Vue Liste */
.teacher-list-item {
    background: #fff; display: flex; align-items: center; padding: 1rem;
    border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); margin-bottom: 1rem;
    transition: all 0.3s ease; cursor: pointer;
}
.teacher-list-item:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.teacher-list-avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 1.5rem; }
body.lang-ar .teacher-list-avatar { margin-right: 0; margin-left: 1.5rem; }
.teacher-list-info .name { font-weight: 600; }
.teacher-list-info .title { font-size: 0.9rem; color: #6c757d; }
.teacher-list-item .arrow { margin-left: auto; font-size: 1.2rem; color: #ccc; }
body.lang-ar .teacher-list-item .arrow { margin-left: 0; margin-right: auto; }


/* Fichier: assets/css/style.css */

/* ... (tous vos styles précédents) ... */

/* --- Page Équipe / Enseignants (Vague 16 - Corrigé) --- */
/* ... (gardez les styles .filters-bar, .teacher-grid, etc.) ... */

/* Panneau Latéral Off-canvas (CORRECTIONS ET AMÉLIORATIONS) */
.offcanvas {
    /* CORRECTION N°1 : Assurer que l'off-canvas est au-dessus de TOUT, y compris la navbar sticky */
    z-index: 1055; /* Bootstrap utilise 1030 pour la navbar sticky, 1050 pour le backdrop. On se met au-dessus. */
}

.offcanvas-header { 
    background-color: var(--bs-light); 
    border-bottom: 1px solid #dee2e6; /* Ligne de séparation plus marquée */
}

.offcanvas-title {
    font-weight: 600;
    color: var(--bs-primary);
}

.offcanvas-body {
    padding: 0; /* On retire le padding par défaut pour un contrôle total */
}

.profile-header { 
    text-align: center;
    background-color: var(--bs-light); /* Fond clair pour l'en-tête */
    padding-bottom: 2rem;
}

.profile-avatar { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    border: 5px solid #fff; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-top: 10px; /* Fait remonter l'avatar sur le header de l'offcanvas */
}

.profile-name { font-size: 1.8rem; font-weight: 700; margin-top: 1rem; color: var(--bs-primary); }
.profile-title { color: var(--bs-secondary); font-weight: 500; }

.profile-body-content {
    padding: 1.5rem; /* On applique le padding ici */
}

.profile-section { margin-top: 1.5rem; }
.profile-section:first-child { margin-top: 0; }

.profile-section-title { 
    font-weight: 600; 
    border-bottom: 2px solid var(--bs-light); 
    padding-bottom: 0.5rem; 
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.profile-section ul { list-style: none; padding-left: 0; }
.profile-section ul li { 
    position: relative; 
    padding-left: 25px; 
    margin-bottom: 0.5rem; 
    color: #555;
}
.profile-section ul li::before { 
    content: "\2022"; /* Puce standard */
    color: var(--bs-secondary); 
    font-weight: bold; 
    display: inline-block; 
    position: absolute;
    left: 0;
}
body.lang-ar .profile-section ul li {
    padding-left: 0;
    padding-right: 25px;
}
body.lang-ar .profile-section ul li::before {
    left: auto;
    right: 0;
}