/* --- Variables de Couleur & Polices --- */
:root {
    --primary-color: #003366; /* Bleu foncé institutionnel */
    --secondary-color: #f39c12; /* Orange pour les accents */
    --light-color: #f4f4f4;
    --dark-color: #333;
    --text-color: #555;
    --font-family: 'Poppins', sans-serif;
}

/* --- Réinitialisation et Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #fff;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--primary-color);
    font-weight: 600;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}


/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: #002244;
}
.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background-color: #e67e22;
}


/* --- Header & Navigation --- */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
/* --- Style du Logo dans le Header --- */
.site-logo {
    text-decoration: none; /* Enlève le soulignement si le logo est cliquable */
    display: flex;         /* Permet un bon alignement vertical */
    align-items: center;
}

.logo-img {
    height: 55px; /* Hauteur fixe pour le logo. Vous pouvez ajuster cette valeur. */
    width: auto;  /* La largeur s'ajuste automatiquement pour garder les proportions. */
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.logo strong {
    color: var(--secondary-color);
}
.main-nav .nav-links {
    display: flex;
}
.main-nav .nav-links li {
    margin: 0 15px;
}
.main-nav .nav-links a {
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.main-nav .nav-links a:hover::after {
    width: 100%;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}
.main-nav .nav-links a.active {
    color: var(--secondary-color);
}
.main-nav .nav-links a.active::after {
    width: 100%; /* Souligne le lien actif */
}
.btn-primary.btn-active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}


/* --- Section Héros --- */
.hero-section {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://via.placeholder.com/1920x1080.png/003366/FFFFFF?text=Campus+Universitaire') no-repeat center center/cover;
    color: #fff;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.hero-section h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
}
.hero-section .subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Style pour le Carrousel Hero Section --- */
.hero-section-slider {
    width: 100%;
    height: 85vh; /* Hauteur du carrousel, 85% de la hauteur de la fenêtre */
    position: relative;
    color: #fff;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Superposition sombre pour la lisibilité du texte */
.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 66, 0.6); /* Fond semi-transparent */
}

.hero-content {
    position: relative; /* Pour s'afficher au-dessus de la superposition */
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1, .hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #F0C300;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Style des flèches de navigation de Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    --swiper-navigation-size: 30px; /* Taille des flèches */
}

/* Style de la pagination (points) de Swiper */
.swiper-pagination-bullet-active {
    background-color: #fff;
}

/* --- Section Features --- */
.features-section {
    padding: 80px 0;
    background: var(--light-color);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Section CTA --- */
.cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: #fff;
}
.cta-section h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
}
.cta-section p {
    margin-bottom: 25px;
}
.cta-section .btn-primary {
    background-color: #fff;
    color: var(--primary-color);
}
.cta-section .btn-primary:hover {
    background-color: var(--light-color);
}

/* --- Page Erreur 404 --- */
.error-section {
    padding: 100px 0;
    text-align: center;
}
.error-section h1 {
    font-size: 8rem;
    color: var(--secondary-color);
}
.error-section h2 {
    font-size: 2.5rem;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.footer-column ul li {
    margin-bottom: 10px;
}
.footer-column a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: var(--secondary-color);
}
.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: var(--secondary-color);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding: 20px 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-header .container {
        position: relative;
    }
    .main-nav {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 80px;
        left: 0;
        background-color: #fff;
        width: 100%;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block; /* Affiché via JS */
    }
    .main-nav .nav-links {
        flex-direction: column;
        padding: 20px;
    }
    .main-nav .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .main-header .btn {
        display: none; /* Cacher le bouton principal en mobile */
    }
    .mobile-menu-toggle {
        display: block;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}
/* --- Page Header --- */
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.page-header h1 {
    color: #fff;
    font-size: 2.8rem;
}
.page-header p {
    font-size: 1.1rem;
    color: #eee;
}

/* --- Liste des Facultés --- */
.facultes-list-section {
    padding: 80px 0;
}
.facultes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.faculte-card {
    display: block;
    color: var(--text-color);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.faculte-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.faculte-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.faculte-card-content {
    padding: 25px;
}
.faculte-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.faculte-card-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.btn-link {
    color: var(--secondary-color);
    font-weight: 600;
}
.btn-link i {
    margin-left: 5px;
}
/* --- Détails d'une Faculté --- */
.faculte-detail-section {
    padding: 80px 0;
}
.faculte-description {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.section-subtitle {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.filiere-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}
.filiere-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.filiere-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}
.filiere-level {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 15px;
    margin-bottom: 10px;
}
.filiere-actions .btn {
    margin-left: 10px;
}

/* --- Responsive pour les nouvelles sections --- */
@media (max-width: 768px) {
    .filiere-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .filiere-actions {
        margin-top: 20px;
        width: 100%;
        display: flex;
    }
    .filiere-actions .btn {
        flex-grow: 1;
        text-align: center;
    }
}
/* --- Contenu Statique & Listes --- */
.static-content-section {
    padding: 80px 0;
    font-size: 1.1rem;
    line-height: 1.8;
}
.static-content-section h2 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 20px;
}
.static-content-section hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}
.steps-list {
    list-style: none;
    counter-reset: steps-counter;
    padding-left: 20px;
}
.steps-list li {
    counter-increment: steps-counter;
    margin-bottom: 20px;
    position: relative;
}
.steps-list li::before {
    content: counter(steps-counter);
    background: var(--secondary-color);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-block;
    text-align: center;
    line-height: 30px;
    margin-right: 15px;
}
.documents-list {
    list-style: none;
    padding-left: 0;
}
.documents-list li {
    margin-bottom: 10px;
}
.documents-list i {
    color: var(--primary-color);
    margin-right: 10px;
}
.cta-section-inline {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
}
.cta-section-inline h3 {
    margin-bottom: 10px;
}

/* --- Formulaires --- */
.form-section {
    padding: 80px 0;
    background-color: var(--light-color);
}
.form-container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.form-container p {
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
.form-group button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}
fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
legend {
    padding: 0 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* --- Alertes --- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #fff;
    text-align: center;
}
.alert-success {
    background-color: #28a745;
}
.alert-danger {
    background-color: #dc3545;
}
/* --- Page Personnel --- */
.personnel-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.personnel-section .section-subtitle {
    text-align: left;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    margin-top: 40px; /* Espace entre les catégories */
    margin-bottom: 30px;
}
.personnel-section .section-subtitle:first-of-type {
    margin-top: 0;
}


.personnel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.personnel-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.personnel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.personnel-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
}

.personnel-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.personnel-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.personnel-faculte {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.personnel-contact {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.personnel-contact i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    color: var(--primary-color);
}
/* --- Liste des cours sur la page filière --- */
.filiere-item-expandable {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}
.filiere-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    cursor: pointer;
}
.cours-list-container {
    padding: 0 25px 25px 25px;
    display: none; /* Caché par défaut */
    border-top: 1px solid #eee;
    margin-top: 15px;
}
.cours-list-container h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.cours-list {
    list-style: none;
}
.cours-list li a {
    display: flex;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
    align-items: center;
}
.cours-list li a:hover {
    background-color: var(--light-color);
}
.code-cours {
    font-weight: 600;
    color: var(--primary-color);
    width: 120px;
}
.titre-cours {
    flex-grow: 1;
    color: var(--text-color);
}
.credits-cours {
    font-size: 0.9rem;
    color: #777;
    background: #e9e9e9;
    padding: 3px 8px;
    border-radius: 12px;
}

/* --- Page de détail des Cours (Syllabus) --- */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.breadcrumb a {
    color: #ccc;
}
.cours-detail-section {
    padding: 80px 0;
}
.syllabus-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}
.sidebar-widget {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}
.sidebar-widget h4 {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.enseignants-list {
    list-style: none;
}
.enseignants-list li {
    margin-bottom: 10px;
}
.enseignants-list i {
    margin-right: 8px;
    color: var(--primary-color);
}
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    background: #f9f9f9;
    border: none;
    padding: 15px;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
}
.accordion-content {
    padding: 20px;
    line-height: 1.8;
    display: none; /* Caché par défaut */
}

@media (max-width: 992px) {
    .syllabus-grid {
        grid-template-columns: 1fr;
    }
    .syllabus-sidebar {
        grid-row: 1; /* Remonte la sidebar en haut sur mobile */
        margin-bottom: 40px;
    }
}
.quick-links-404 .btn {
    margin: 10px;
}
/* --- Section Actualités --- */
.news-section { padding: 80px 0; background: var(--light-color); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden; display: flex; flex-direction: column; }
.news-card img { width: 100%; height: 200px; object-fit: cover; }
.news-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.news-content h3 { font-size: 1.3rem; margin-bottom: 15px; flex-grow: 1; }
.news-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: #777; margin-bottom: 20px; }
.news-meta i { margin-right: 5px; color: var(--secondary-color); }

/* Page de détail de l'article */
.article-header { text-align: center; margin-bottom: 30px; }
.article-header h1 { font-size: 2.8rem; }
.article-header .news-meta { justify-content: center; gap: 20px; }
.article-banner { width: 100%; height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 30px; }
.article-content { font-size: 1.1rem; line-height: 1.8; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- Section Galerie --- */
.gallery-section { padding: 80px 0; }
.gallery-filters { text-align: center; margin-bottom: 40px; }
.filter-btn { background: #f0f0f0; border: none; padding: 10px 20px; margin: 0 5px; border-radius: 20px; cursor: pointer; transition: all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 102, 0.7); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 40px; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .overlay { opacity: 1; }

/* Grille de la galerie admin */
.admin-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.admin-gallery-item { border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; }
.admin-gallery-item img { width: 100%; height: 150px; object-fit: cover; }
.video-placeholder { width: 100%; height: 150px; background: #ccc; display: flex; justify-content: center; align-items: center; font-size: 40px; color: #888; }
.admin-gallery-item .item-info { padding: 10px; text-align: center; }
.item-info p { margin: 0 0 10px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* --- Grille des Facultés --- */
/* --- Grille des Facultés (et Filières) --- */
.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.faculty-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
}

.faculty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.faculty-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.faculty-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.faculty-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.faculty-card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.faculty-card-doyen {
    font-size: 1rem;
    color: #555;
    margin: 0 0 20px;
    flex-grow: 1;
}
/* --- Styles pour les pages de détails (Faculté & Filière) --- */

/* Style pour la grande image de bannière en haut de page */
.page-header-image {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

/* Superposition sombre pour améliorer la lisibilité du texte sur l'image */
.page-header-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 66, 0.65); /* Fond bleu marine semi-transparent */
}

/* S'assure que le contenu est au-dessus de la superposition */
.page-header-image .container {
    position: relative;
    z-index: 2;
}

.page-header-image h1 {
    font-size: 3rem;
    font-weight: 700;
    color : #F0C300;
}

.page-header-image .header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Style pour le fil d'Ariane (breadcrumb) */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 1rem;
    margin-bottom: 1rem;
    list-style: none;
    background-color: transparent;
    justify-content: center;
}

.breadcrumb-item {
    padding-left: .5rem;
}

.breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #ccc;
}

.breadcrumb-item+.breadcrumb-item::before {
    float: left;
    padding-right: .5rem;
    color: #ccc;
    content: "/";
}

/* Style pour le contenu principal et la barre latérale */
.page-section .row {
    --bs-gutter-x: 3rem; /* Espace entre les colonnes */
}

.page-content p {
    line-height: 1.8;
    color: #555;
}

/* Carte latérale pour les informations clés */
.sidebar-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.sidebar-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-card ul li .fas {
    color: var(--primary-color);
    width: 20px;
    margin-right: 10px;
}

/* Section des frais de formation */
.fees-details .list-group-item {
    padding: 1rem 1.25rem;
}

.fees-details .badge {
    font-size: 1rem;
    padding: .5em .8em;
}

/* Accordéon pour la liste des cours */
.accordion-button:not(.collapsed) {
    color: var(--white);
    background-color: var(--primary-color);
}

.accordion-item {
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

/* --- Styles pour la Page du Personnel --- */
.staff-section {
    margin-bottom: 60px;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.staff-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.staff-card-image img {
    width: auto;
    height: 280px;
    object-fit: cover;
    object-position: top;
}
.staff-card-content {
    padding: 20px;
}
.staff-name {
    font-size: 1.25rem;
    margin: 0 0 5px;
    color: var(--primary-color);
}
.staff-title {
    font-size: 1rem;
    color: #555;
    margin: 0;
}
.staff-faculty {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 10px;
}
.staff-email {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.staff-email .fas {
    margin-right: 5px;
}

/* --- Styles pour la Page de Connexion Améliorée --- */

.login-page {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement */
    min-height: 100vh;      /* Prend toute la hauteur de l'écran */
    background-color: var(--background-color, #f4f7f6);
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    background-color: var(--white, #fff);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Limite la largeur sur les grands écrans */
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .site-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    margin: 0 0 5px;
    font-size: 1.8rem;
    color: var(--primary-color, #003366);
}

.login-header p {
    color: var(--gray, #6c757d);
    margin: 0;
}

.login-container .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-container input:focus {
    outline: none;
    border-color: var(--primary-color, #003366);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.login-container .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 10px;
}

.alert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.cycle-title {
    color: var(--esae-blue);
    border-left: 4px solid var(--esae-blue);
    padding-left: 0.75rem;
}
.card {
    border-radius: 0.75rem;
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}

/* ---------- PROGRAM CARDS LAYOUT ---------- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ---------- CARD ---------- */
.program-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.program-card__ribbon {
    background: var(--primary-color);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.program-card__body {
    flex-grow: 1;
    padding: 1.5rem;
}

.program-card__title {
    font-size: 1.35rem;
    margin: 0 0 .5rem;
    color: var(--primary-color);
}

.program-card__stats {
    display: flex;
    gap: 1rem;
    font-size: .9rem;
    color: var(--text-color);
}

.program-card__footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

.program-card__btn {
    width: 100%;
    font-size: .9rem;
    font-weight: 600;
    text-align: center;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: .5rem;
    padding: .5rem 0;
    transition: .25s;
}

.program-card__btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 576px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}