/* ---------- Structure globale ---------- */
body {
    background-color: #f8f9fa;
    /* Couleur de fond gris très clair */
    font-family: 'Segoe UI', sans-serif;
    /* Police principale */
    color: #212529;
    /* Couleur du texte (gris foncé) */
    margin: 0;
    /* Suppression des marges par défaut */
    padding: 0;
    /* Suppression des espacements internes par défaut */
}

main {
    margin: 0 0 120px 200px;
    /* Marge en bas pour éviter que le contenu chevauche le footer fixe
       Marge à gauche pour laisser la place au menu latéral */
}

/* ---------- NAVBAR ---------- */
.navbar {
    background-color: #343a40;
    /* Couleur de fond gris très foncé */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    /* Police secondaire */
    font-size: 16px;
    /* Taille du texte */
    padding: 0.5rem 0;
    /* Espacement vertical */
}

.navbar-brand {
    font-weight: bold;
    /* Texte en gras */
    text-transform: uppercase;
    /* Mise en majuscules */
    color: #fff !important;
    /* Couleur blanche */
    font-size: 16px;
    /* Taille du texte */
    letter-spacing: 1px;
    /* Espacement entre lettres */
}

.custom-collapse {
    max-height: 0;
    /* Menu caché (hauteur 0) */
    opacity: 0;
    /* Transparent */
    overflow: hidden;
    /* Masque le contenu hors zone */
    transform: translateY(-10px);
    /* Déplacement léger vers le haut */
    transition: max-height 0.5s ease, opacity 0.3s ease, transform 0.3s ease;
    /* Animation */
}

.custom-collapse.show {
    max-height: 500px;
    /* Hauteur max pour afficher le menu */
    opacity: 1;
    /* Rend visible */
    transform: translateY(0);
    /* Remet en position normale */
}

.navbar-nav .nav-link {
    position: relative;
    color: #ced4da;
    padding: 0.4rem 0.8rem;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8b7dd4;
    transform: scaleX(0);
    /* On cache complètement */
    transform-origin: left;
    /* Départ à gauche */
    transition: transform 0.3s ease-out;
}

.navbar-nav .nav-link:hover {
    color: #8b7dd4;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
    /* Elle s'étend vers la droite */
    transform-origin: left;
}

.navbar-nav .dropdown-item {
    color: #343a40;
    /* Couleur du texte (gris foncé) */
    padding: 0.4rem 0.8rem;
    /* Espacement interne */
    font-size: 12px;
    /* Taille du texte */
    transition: background-color 0.2s ease, color 0.2s ease;
    /* Animation hover */
}

.navbar-nav .dropdown-item:hover {
    background-color: #8b7dd4;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    font-size: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ---------- CARTES ---------- */
.card {
    display: flex;
    /* Affichage en flexbox */
    flex-direction: column;
    /* Contenu empilé verticalement */
    height: 100%;
    /* Carte pleine hauteur disponible */
    background-color: #fff;
    /* Fond blanc */
    border: 1px solid #dee2e6;
    /* Bordure gris clair */
    border-radius: 25px !important;
    /* Coins arrondis importants */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation hover */
}

.card:hover {
    transform: scale(1.02);
    /* Légère mise en avant */
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, 0.15);
    /* Ombre au survol */
}

.card-body {
    flex: 1 1 auto;
    /* Ajuste la taille selon le contenu */
    padding: 1rem;
    /* Espacement interne */
}

.card img {
    object-fit: cover;
    /* Image recadrée sans déformation */
    height: 250px;
    /* Hauteur fixe */
    border-bottom: 1px solid #dee2e6;
    /* Ligne de séparation */
    border-top-left-radius: 25px;
    /* Coins arrondis haut gauche */
    border-top-right-radius: 25px;
    /* Coins arrondis haut droite */
}

.card-title {
    font-size: 1.2rem;
    /* Taille du titre */
    font-weight: bold;
    /* Gras */
    color: #343a40;
    /* Couleur gris foncé */
}

/* ---------- IMAGES ---------- */
img:not(.card, .partenaires-strip img) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Animation hover */
    border-radius: 8px !important;
    /* Coins arrondis */
}

img:not(.card, .partenaires-strip img):hover {
    transform: scale(1.02);
    /* Zoom léger */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    /* Ombre */
}

/* ---------- FORMULAIRES ---------- */
textarea {
    resize: vertical;
    /* Redimensionnement vertical uniquement */
    border: 1px solid #adb5bd;
    /* Bordure gris moyen */
    padding: 0.5rem;
    /* Espacement interne */
    border-radius: 4px;
    /* Coins arrondis */
    background-color: #fff;
    /* Fond blanc */
    color: #212529;
    /* Texte gris foncé */
}

/* ---------- BOUTONS ---------- */
a.btn-secondary {
    background-color: #fff !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #8b7dd4;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

a.btn-secondary:hover {
    background-color: #8b7dd4 !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #ffffff;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}


a.btn-outline-secondary {
    background-color: #fff !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #8b7dd4;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

a.btn-outline-secondary:hover {
    background-color: #8b7dd4 !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #ffffff;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

a.btn-outline-dark {
    background-color: #fff !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #8b7dd4;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

a.btn-outline-dark:hover {
    background-color: #8b7dd4 !important;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #ffffff;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

a.btn-success {
    background-color: #8b7dd4;
    /* Même couleur que btn-secondary */
    border-color: #8b7dd4;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}


button.btn-success {
    background-color: #8b7dd4;
    /* Même couleur que btn-secondary */
    border-color: #8b7dd4;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.sumit {
    background-color: #8b7dd4;
    /* Même couleur que btn-secondary */
    border-color: #8b7dd4;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

button.btn-secondary {
    background-color: #8b7dd4;
    /* Fond gris */
    border-color: #8b7dd4;
    /* Bordure même couleur */
    color: #ffffff;
    /* Texte blanc */
    transition: background-color 0.2s ease, border-color 0.2s ease;
    /* Animation hover */
    border-radius: 100px !important;
    /* Coins arrondis importants */
}

button.btn-secondary:hover,
button.btn-success:hover {
    background-color: #675ca1;
    /* Gris plus foncé */
    border-color: #675ca1;
    /* Bordure adaptée */
}

/* ---------- SECTION MEMBRES DU BUREAU ---------- */
.bureau-card .info-block {
    padding: 0 12px;
    /* Espacement interne */
}

@media (min-width: 768px) {
    .bureau-card .info-block:not(:first-child):not(:last-child) {
        border-left: 1px solid #dee2e6;
        /* Séparation verticale entre les blocs */
    }
}

/* ---------- FOOTER ---------- */
footer.fixed-bottom {
    background-color: #343a40;
    /* Fond gris foncé */
    color: #ced4da;
    /* Texte gris clair */
    font-size: 0.85rem;
    /* Petite taille de texte */
    height: 50px;
    /* Hauteur fixe */
    padding: 12px 24px;
    /* Espacement interne */
    z-index: 1030;
    /* Au-dessus des autres éléments */
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    /* Ombre légère */
    display: flex;
    /* Alignement horizontal */
    align-items: center;
    /* Centrage vertical */
    justify-content: space-between;
    /* Espacement entre éléments */
}

footer.fixed-bottom a {
    color: #ced4da;
    /* Couleur des liens */
    text-decoration: none;
    /* Pas de soulignement */
}

footer.fixed-bottom a:hover {
    color: #fff;
    /* Blanc au survol */
    text-decoration: underline;
    /* Soulignement */
}

/* Version responsive du footer */
@media (max-width: 576px) {
    footer.fixed-bottom {
        flex-direction: column;
        /* Contenu en colonne */
        height: 65px;
        /* Plus haut pour contenir le texte */
        padding: 2px;
        /* Moins d’espace */
        text-align: center;
        /* Centrage */
    }

    footer.fixed-bottom a {
        margin-top: 2px;
        /* Espacement entre liens */
    }
}

/* ---------- PAGINATION ---------- */
.pagination .page-link {
    color: #8b7dd4;
    border: 1px solid #8b7dd4;
}

.pagination .page-link:hover {
    background-color: #8b7dd4;
    color: #fff;
}

.pagination .page-item.active .page-link {
    background-color: #8b7dd4;
    border-color: #8b7dd4;
    color: #fff;
}

/* ---------- PARTENAIRES ---------- */

.partenaires-banner {
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    width: 100%;

}

.partenaires-strip {
    display: flex;
    align-items: center;
    overflow-x: auto;
    /* bandeau scrollable horizontalement */
    padding: 8px 0;
    scrollbar-width: thin;
    max-width: 100%;
    /* Firefox */
    margin: auto;
    justify-content: center;
}

.partenaires-strip img {
    height: 70px;
    margin-right: 10px;
    margin-left: 5px;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.7;
    transition: transform .2s ease, filter .2s ease, opacity .2s ease;
}

.partenaires-strip img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
    /* Zoom léger */
    border-radius: 50%;
    /* Rend le bloc rond */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    /* Ombre */
}

@media (max-width: 576px) {
    .partenaires-strip img {
        height: 40px;
    }
}

.separator {
    align-self: stretch;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .partenaires-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .partenaires-strip {
        margin: 0px 0;
        /* Espace entre les deux blocs */
    }

    .separator {
        display: none;
        /* On masque la barre verticale pour le mobile */
    }
}