/**
 * Style global du site
 */

/* Variables globales */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0056b3;
    --primary-light: rgba(13, 110, 253, 0.05);
    --primary-border: rgba(13, 110, 253, 0.1);
    --text-dark: #333;
    --text-medium: #444;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-radius: 15px;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.1);
    --transition-normal: all 0.3s ease;
}

/* Styles globaux */
body {
    font-family: 'Roboto', 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 14px;
}

/* Tailles de police standard pour le web moderne */
h1, .h1 { font-size: 2.5rem; } /* 40px */
h2, .h2 { font-size: 2rem; }   /* 32px */
h3, .h3 { font-size: 1.75rem; } /* 28px */
h4, .h4 { font-size: 1.5rem; }  /* 24px */
h5, .h5 { font-size: 1.25rem; } /* 20px */

.lead { font-size: 1.125rem; }     /* 18px */
.card-text { font-size: 1rem; }     /* 16px */

@media (max-width: 768px) {
    body { font-size: 16px; }
    h1, .h1 { font-size: 2rem; }    /* 32px */
    h2, .h2 { font-size: 1.75rem; } /* 28px */
    h3, .h3 { font-size: 1.5rem; }  /* 24px */
    h4, .h4 { font-size: 1.25rem; } /* 20px */
    h5, .h5 { font-size: 1.125rem; } /* 18px */
    .btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
    .container { padding-left: 15px; padding-right: 15px; }
}

/* Ajustement pour le header fixe */
.container-fluid, .partenaires-wrapper, .historique-wrapper {
    padding-top: 90px; /* Hauteur exacte du header */
}

/* Styles du carrousel principal */
#mainCarousel {
    margin-top: 1px;
    background-color: var(--light-bg);
    padding: 0;
}

.carousel-inner {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
}

.carousel-item {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 80%;
    max-width: 800px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.carousel-caption h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #fff;
}

.carousel-caption .btn {
    padding: 8px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    #mainCarousel {
        margin-top: 1px;
    }

    .carousel-item {
        height: 50vh;
    }
    
    .carousel-caption {
        width: 90%;
        padding: 15px;
        bottom: 20px;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Animation de la flèche */
.arrow-icon {
    display: inline-block;
    margin-left: 5px;
    animation: arrowMove 1s infinite;
}

@keyframes arrowMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections de la page d'accueil */
/* ... Existants ... */

/* =============================================================== */
/* Styles de la page Mot du Proviseur
/* =============================================================== */

.mot-proviseur-wrapper, .historique-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.mot-proviseur-wrapper .card, .historique-wrapper .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease-out forwards;
}

.mot-proviseur-wrapper .card:hover, .historique-wrapper .card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.proviseur-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    transition: var(--transition-normal);
}

.proviseur-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    padding: 4px;
    transition: var(--transition-normal);
}

.proviseur-image-container:hover img {
    transform: scale(1.05);
}

.proviseur-info h5 {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.proviseur-info p {
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    margin-bottom: 0;
}

.message-header h1 {
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.message-content {
    line-height: 1.8;
    color: var(--text-medium);
}

.message-content p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.message-content .lead {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text-dark);
}

.values-list {
    background: var(--primary-light);
    padding: clamp(0.75rem, 3vw, 1.5rem) clamp(1rem, 3vw, 2rem);
    border-radius: 10px;
    margin: clamp(1rem, 3vw, 2rem) 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.values-list li {
    margin-bottom: clamp(0.5rem, 1.5vw, 1rem);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    display: flex;
    align-items: flex-start;
}

.values-list li i {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-right: clamp(0.5rem, 1.5vw, 1rem);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.signature {
    border-top: 2px solid var(--primary-border);
    padding-top: 1.2rem;
}

.signature p {
    line-height: 1.3;
}

/* Media queries pour la page mot du proviseur */
@media (max-width: 768px) {
    .mot-proviseur-wrapper .card-body {
        padding: 1.5rem !important;
    }
    
    .proviseur-image-container {
        width: 150px;
        height: 150px;
    }
    
    .values-list li {
        align-items: flex-start;
    }
    
    .values-list li i {
        margin-top: 0.2rem;
    }
    
    .mot-proviseur-wrapper .row {
        --bs-gutter-x: 1rem;
    }
}

@media (max-width: 576px) {
    .proviseur-image-container {
        width: 120px;
        height: 120px;
    }
    
    .mot-proviseur-wrapper .card {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .values-list {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    .values-list li i {
        font-size: 0.9rem;
        margin-top: 0.3rem;
    }
}

/* =============================================================== */
/* Styles de la page Historique
/* =============================================================== */

.historique-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.historique-wrapper .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    margin-bottom: 2rem;
    border: none;
    animation: fadeIn 0.6s ease-out forwards;
}

.historique-wrapper .card-body {
    padding: 1.5rem;
}

.historique-wrapper h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.historique-wrapper p {
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: var(--text-medium);
}

/* Timeline styles */
.timeline {
    position: relative;
    padding: 1.5rem 0;
    margin-left: 0.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0.5rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    z-index: 2;
}

.timeline-content {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Proviseur card styles */
.proviseur-card {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.proviseur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.proviseur-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    padding: 3px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.proviseur-card:hover .proviseur-image {
    transform: scale(1.05);
    border-color: var(--primary-hover);
}

/* =============================================================== */
/* Styles de la page Historique
/* =============================================================== */

.historique-intro, .projects-intro, .infrastructure-intro {
    margin-bottom: 1rem;
}

.historique-intro p, .projects-intro p, .infrastructure-intro p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: justify;
}

.historique-intro p.lead, .projects-intro p.lead, .infrastructure-intro p.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-dark);
}

.timeline {
    position: relative;
    padding: 1rem 0;
    margin-top: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    z-index: 1;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    margin-left: auto;
    transition: var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

.timeline-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
    }
}

.proviseur-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.proviseur-card h5 {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.proviseur-card h6 {
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-medium);
}

.proviseur-card p {
    font-size: clamp(0.8rem, 1.2vw, 0.85rem);
    margin-bottom: 0;
    color: var(--text-light);
}

/* Media queries pour la page historique */
@media (max-width: 992px) {
    .historique-wrapper .card-body {
        padding: 1.25rem;
    }
    
    .row-cols-lg-4 > .col {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (max-width: 768px) {
    .historique-wrapper .card-body {
        padding: 1rem !important;
    }

    .proviseur-image {
        width: 120px;
        height: 120px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-dot {
        width: 12px;
        height: 12px;
        left: -4px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .proviseur-image {
        width: 100px;
        height: 100px;
    }
    
    .proviseur-card {
        padding: 1rem;
    }
    
    .row-cols-lg-4 > .col {
        width: 100%;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
}

/* =============================================================== */
/* Styles de la page Projets
/* =============================================================== */

.projects-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.projects-wrapper .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    border: none;
    animation: fadeIn 0.6s ease-out forwards;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

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

.project-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.project-header h4 {
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
}

.project-description {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    margin-bottom: 20px;
}

.project-details {
    list-style-type: none;
    padding-left: 0;
}

.project-details li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.project-details li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.progress {
    height: 20px;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.future .project-content {
    background-color: var(--bg-light);
}

/* Media queries pour la page projets */
@media (max-width: 992px) {
    .projects-wrapper .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .projects-wrapper .card-body {
        padding: 1rem !important;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-header h4 {
        font-size: 1.1rem;
    }
    
    .project-details li {
        font-size: 0.9rem;
        padding-left: 15px;
    }
    
    .project-details li:before {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .project-header {
        padding: 0.75rem !important;
    }
    
    .project-content {
        padding: 0.75rem !important;
    }
}

/* =============================================================== */
/* Styles de la page Partenaires
/* =============================================================== */

.partenaires-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.partenaires-wrapper .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    border: none;
    animation: fadeIn 0.6s ease-out forwards;
}

.partenaires-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.border-primary {
    border-width: 2px;
}

/* =============================================================== */
/* Styles de la page Projets
/* =============================================================== */

.projects-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.projects-wrapper .card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease-out forwards;
}

.projects-wrapper .card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
    transition: transform 0.3s ease;
    background-color: white;
}

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

.project-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.project-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 1.5rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: var(--text-medium);
}

.project-details {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.project-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.project-details li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
}

.progress {
    height: 0.75rem;
    border-radius: 1rem;
    background-color: rgba(0,0,0,0.05);
    overflow: hidden;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    transition: width 0.6s ease;
}

@media (max-width: 768px) {
    .project-header h4 {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .project-details li {
        font-size: 0.95rem;
    }
}

/* Styles pour les logos des partenaires */
.partner-logo-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    padding: 15px;
    overflow: hidden;
    border: 2px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partner-logo-medium {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-logo-medium:hover {
    transform: scale(1.05);
}

.partner-logo-small {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(13, 110, 253, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-logo-small:hover {
    transform: scale(1.1);
}

.partner-logo-medium img,
.partner-logo-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Styles pour l'accordéon avec logos */
.accordion-button {
    padding: 1rem;
}

.accordion-button .d-flex {
    flex: 1;
}

.partner-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

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

.partner-list {
    margin-bottom: 0;
}

.partner-list-item {
    padding: 1.5rem 0.75rem;
    transition: background-color 0.3s ease;
    border-left: none;
    border-right: none;
    border-color: rgba(0, 0, 0, 0.08);
}

.partner-list-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.padesce-header {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 5px solid var(--primary-color);
}

.padesce-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Media queries pour la page partenaires */
@media (max-width: 992px) {
    .partenaires-wrapper .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .partenaires-wrapper .card-body {
        padding: 1rem !important;
    }
    
    .partner-logo-container {
        width: 120px;
        height: 120px;
        padding: 12px;
    }
    
    .partner-logo-medium {
        width: 90px;
        height: 90px;
        padding: 10px;
    }
    
    .partner-logo-small {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
    
    .accordion-button span {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .padesce-card {
        margin-bottom: 1rem;
    }
    
    .partner-logo-container {
        width: 100px;
        height: 100px;
        padding: 10px;
        margin-bottom: 1rem;
    }
}

/* =============================================================== */
/* Styles pour la page Activités Post et Périscolaires
/* =============================================================== */

.activites-wrapper {
    background-color: var(--bg-light);
    padding-bottom: 3rem;
}

.activites-wrapper .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease-out forwards;
    margin-bottom: 2rem;
}

.activites-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.activites-wrapper .card-title {
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.activites-wrapper .card-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.activity-card {
    height: 100%;
    transition: var(--transition-normal);
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.activity-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-border);
    padding-bottom: 0.5rem;
}

.activity-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.activity-card ul li:last-child {
    border-bottom: none;
}

/* Icônes personnalisées pour les listes */
.activites-wrapper .list-unstyled li i {
    color: #ffc107;
    margin-right: 0.5rem;
}

/* Ajustements responsive */
@media (max-width: 992px) {
    .activites-wrapper .card-body {
        padding: 1.75rem;
    }
    
    .activity-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .activites-wrapper .card-body {
        padding: 1.5rem;
    }
    
    .activity-card {
        height: auto;
        margin-bottom: 1.5rem;
    }
    
    .activity-card h5 {
        font-size: 1rem;
    }
    
    .activites-wrapper .display-4 {
        font-size: calc(1.275rem + 1.5vw);
    }
}

@media (max-width: 576px) {
    .activites-wrapper .card-body {
        padding: 1.25rem;
    }
    
    .activity-card {
        padding: 0.75rem !important;
    }
    
    .activites-wrapper .row {
        --bs-gutter-x: 0.75rem;
    }
    
    .activites-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .activites-wrapper .lead {
        font-size: 1rem;
    }
}

/* =============================================================== */
/* Styles pour la page Clubs
/* =============================================================== */

.clubs-wrapper {
    background-color: var(--bg-light);
    padding-top: 80px;
    padding-bottom: 3rem;
}

.clubs-wrapper .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    animation: fadeIn 0.6s ease-out forwards;
    margin-bottom: 2rem;
    height: 100%;
}

.clubs-wrapper .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.clubs-wrapper .card-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--primary-border);
    padding: 1rem;
}

.clubs-wrapper .card-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1.2rem;
}

.clubs-wrapper .card-title i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.clubs-wrapper .card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary-border);
}

.club-info {
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--primary-border);
    margin-bottom: 1rem;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.info-title i {
    color: var(--primary-color);
}

.club-info ul li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dotted rgba(0,0,0,0.05);
}

.club-info ul li:last-child {
    border-bottom: none;
}

.club-schedule {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.club-schedule p {
    margin-bottom: 0.5rem;
}

.club-schedule i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.clubs-wrapper .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-normal);
}

.clubs-wrapper .btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Ajustements responsive */
@media (max-width: 992px) {
    .clubs-wrapper .card-body {
        padding: 1.25rem;
    }
    
    .clubs-wrapper .card-img-top {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .clubs-wrapper .card-body {
        padding: 1rem;
    }
    
    .clubs-wrapper .card-img-top {
        height: 160px;
    }
    
    .info-title {
        font-size: 0.95rem;
    }
    
    .club-info ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .clubs-wrapper .card {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .clubs-wrapper .card-header {
        padding: 0.75rem;
    }
    
    .clubs-wrapper .card-title {
        font-size: 1.1rem;
    }
    
    .clubs-wrapper h1 {
        font-size: 1.75rem;
    }
    
    .info-title {
        margin-top: 0.75rem;
    }
}

/* Page Title Styles - Standardized across site except mot-du-proviseur */
.page-title-container {
    padding-top: 3px;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.page-title i {
    margin-right: 0.75rem;
    font-size: 1.6rem;
    background: rgba(13, 110, 253, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.page-title + .lead {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Exception for mot-du-proviseur page */
.mot-proviseur-wrapper .text-primary {
    font-size: inherit;
}

/* Responsive styles for page titles */
@media (max-width: 768px) {
    .page-title-container {
        padding-top: 5px;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: 1.6rem;
        flex-wrap: wrap;
    }
    
    .page-title i {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
        margin-right: 0.5rem;
    }
    
    .page-title + .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .page-title-container {
        padding-top: 5px;
    }
    
    .page-title {
        font-size: 1.4rem;
    }
    
    .page-title i {
        font-size: 1.2rem;
        width: 30px;
        height: 30px;
    }
    
    .page-title + .lead {
        font-size: 0.95rem;
    }
}
/* =============================================================== */
/* Styles pour la page contact
/* =============================================================== */

/* Styles spécifiques pour la carte */
.contact-page-map-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 3px solid #000000;
}

.contact-page-map-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.contact-page-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Styles spécifiques pour les cartes de la page contact */
.contact-page-info,
.contact-page-form-card {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Styles pour les informations de contact */
.contact-page-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-page-item i {
    font-size: 24px;
    padding: 10px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-page-details h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.contact-page-details p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Styles pour le formulaire de contact */
#contactForm .form-control, 
#contactForm .form-select {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#contactForm .form-control:focus, 
#contactForm .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#contactForm .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
}

#contactForm .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#contactForm .form-label {
    font-weight: 500;
    color: #333;
}

/* Media queries pour la carte */
@media (max-width: 768px) {
    .contact-page-map-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-page-map-container {
        height: 300px;
    }
}

/* ========== STYLES POUR LES PAGES D'ACTUALITÉS ========== */

/* Styles pour la liste des actualités (actualites.php) */
.news-card {
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-read-more-btn {
    position: relative;
    overflow: hidden;
}

.news-read-more-btn .news-arrow-icon {
    transition: transform 0.2s;
}

.news-read-more-btn:hover .news-arrow-icon {
    transform: translateX(5px);
}

.news-pagination .page-link {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 4px;
}

.news-pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.news-pagination .disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.news-categories-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 0.25rem 0;
}

.news-categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.news-categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.news-categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.news-categories-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.news-categories-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.news-category-btn {
    white-space: nowrap;
    margin: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.news-category-btn:hover,
.news-category-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .news-category-btn {
        padding: 0.4rem 1.2rem;
        font-size: 1rem;
    }
    
    .news-categories-scroll {
        padding: 0.25rem;
    }
}

/* Styles pour la page de détail d'une actualité (actualite.php) */
.news-actualite-wrapper {
    background-color: #f8f9fa;
}

.news-article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    padding-bottom: 1rem;
}

.news-article-image-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-height: 500px;
    text-align: center;
    margin-bottom: 2rem;
}

.news-article-image-container img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.news-article-meta {
    padding: 1rem;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 10px;
    margin-bottom: 2rem;
}

.news-stats-container {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.news-stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.news-stat-item:hover {
    transform: translateY(-2px);
}

.news-stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.news-stat-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.news-stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ========== STYLES POUR LA PAGE GALERIE ========== */

.gallery-categories-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    padding: 0.25rem 0;
}

.gallery-categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    margin-bottom: 1rem;
}

.gallery-categories-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-categories-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-categories-scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gallery-categories-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-category-btn {
    white-space: nowrap;
    margin: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: fit-content;
}

.gallery-category-btn:hover,
.gallery-category-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-category-btn {
        padding: 0.4rem 1.2rem;
        font-size: 1rem;
    }
    
    .gallery-categories-scroll {
        padding: 0.25rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .gallery-category-btn {
        padding: 0.3rem 1rem;
        font-size: 0.9rem;
    }
}

.article-content-text {
    line-height: 1.8;
    color: #444;
    font-size: 1.05rem;
}

/* ========== STYLES POUR LA PAGE COURS ========== */

.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.course-card-body {
    padding: 1.5rem;
}

.course-card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Message vidéo */
.course-video-message {
    background-color: #c4302b; /* Rouge YouTube */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.course-video-message i {
    font-size: 1.1rem;
}

/* Styles pour la vidéo YouTube */
.course-ratio-16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-ratio-16x9::before {
    content: 'Chargement en cours';
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3498db;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.course-ratio-16x9::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 100px);
    transform: translate(-50%, -50%);
    color: #3498db;
    font-size: 16px;
    font-weight: 500;
    animation: loadingDots 1.5s steps(1) infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.course-ratio-16x9.loaded::before,
.course-ratio-16x9.loaded::after {
    opacity: 0;
    pointer-events: none;
}

@keyframes loadingDots {
    0% { content: '...'; left: calc(50% + 100px); }
    33% { content: '..'; left: calc(50% + 90px); }
    66% { content: '.'; left: calc(50% + 80px); }
    100% { content: '...'; left: calc(50% + 100px); }
}

/* Indicateurs de PDF et absence de média */
.course-pdf-indicator, 
.course-no-media-indicator, 
.course-pdf-unavailable-indicator {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Même ratio que vidéos 16:9 */
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.course-indicator-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.course-pdf-indicator i {
    font-size: 2.5rem;
    color: #e74c3c;
}

.course-pdf-indicator span {
    font-weight: 500;
    color: #2c3e50;
}

.course-no-media-indicator i {
    font-size: 2.5rem;
    color: #3498db;
}

.course-no-media-indicator span {
    font-weight: 500;
    color: #2c3e50;
}

.course-pdf-unavailable-indicator i {
    font-size: 2.5rem;
    color: #f39c12;
}

.course-pdf-unavailable-indicator span {
    font-weight: 500;
    color: #2c3e50;
}

.course-video {
    border: none;
    background: #f8f9fa;
}

.course-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.course-info p {
    margin-bottom: 0.25rem !important;
}

.course-info small {
    display: block;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.course-info strong {
    color: #2c3e50;
}

.course-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-btn-read, .course-btn-download {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.course-btn-read {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.course-btn-read:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-2px);
}

.course-btn-download {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.course-btn-download:hover {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

/* Styles pour les boutons désactivés */
.course-fake-buttons-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.course-fake-button {
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    opacity: 0.4;
    background-color: #9e9e9e;
    color: white;
    cursor: default;
    filter: grayscale(100%);
    user-select: none;
}

.course-fake-read-button {
    background-color: rgba(76, 175, 80, 0.6);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.course-fake-download-button {
    background-color: rgba(33, 150, 243, 0.6);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.course-pdf-message {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    color: #f39c12;
    font-size: 0.9rem;
}

.course-pdf-message i {
    margin-right: 0.5rem;
}

.course-card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
}

.course-card-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.course-pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    display: none;
}

.course-pdf-viewer iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    background: white;
}

.course-pdf-header {
    height: 50px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.course-pdf-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.course-pdf-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.course-pdf-close:hover {
    color: #ff4444;
    background: rgba(255,255,255,0.1);
}

.course-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
}

/* Styles pour le visualiseur YouTube Modal */
.course-youtube-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    display: none;
}

.course-youtube-viewer iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    background: black;
}

.course-youtube-header {
    height: 50px;
    background: #c4302b; /* Couleur rouge YouTube */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.course-youtube-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.course-youtube-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.course-youtube-close:hover {
    color: #ff4444;
    background: rgba(255,255,255,0.1);
}

/* Styles pour la pagination */
.course-pagination {
    margin: 0;
}

.course-pagination-container {
    margin-top: 2rem;
}

.course-page-item {
    margin: 0 2px;
}

.course-page-link {
    color: #2c3e50;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.course-page-item.active .course-page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.course-page-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-color: #e9ecef;
}

.course-page-item.disabled .course-page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #e9ecef;
}

/* ========== STYLES POUR LA PAGE EXERCICES ========== */

.exercise-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.exercise-card-body {
    padding: 1.5rem;
}

.exercise-card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.exercise-card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.exercise-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.exercise-info small {
    display: block;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.exercise-info strong {
    color: #2c3e50;
}

.exercise-btn-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exercise-btn-group {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.exercise-btn-read, .exercise-btn-download {
    flex: 1;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.exercise-btn-read i, .exercise-btn-download i {
    font-size: 0.85rem;
    width: 16px;
}

.exercise-btn-read {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.exercise-btn-read:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-2px);
}

.exercise-btn-download {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.exercise-btn-download:hover {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

/* Styles pour la pagination */
.exercise-pagination {
    margin: 0;
}

.exercise-pagination-container {
    margin-top: 2rem;
}

.exercise-page-item {
    margin: 0 2px;
}

.exercise-page-link {
    color: #2c3e50;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
    border-color: #e9ecef;
}

.exercise-page-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-color: #e9ecef;
}

.exercise-page-item.active .exercise-page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.exercise-page-item.disabled .exercise-page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #e9ecef;
}

/* Styles pour le visualiseur PDF */
.exercise-pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    display: none;
}

.exercise-pdf-viewer iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    background: white;
}

.exercise-pdf-header {
    height: 50px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.exercise-pdf-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.exercise-pdf-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.exercise-pdf-close:hover {
    color: #ff4444;
    background: rgba(255,255,255,0.1);
}

.exercise-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
}

/* ========== STYLES POUR LA PAGE EXAMENS OFFICIELS ========== */

.exam-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.exam-card-body {
    padding: 1.5rem;
}

.exam-card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.exam-card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.exam-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.exam-info small {
    display: block;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.exam-info strong {
    color: #2c3e50;
}

.exam-btn-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exam-btn-group {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.exam-btn-read, .exam-btn-download {
    flex: 1;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.exam-btn-read i, .exam-btn-download i {
    font-size: 0.85rem;
    width: 16px;
}

.exam-btn-read {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.exam-btn-read:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-2px);
}

.exam-btn-download {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.exam-btn-download:hover {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

/* Styles pour le visualiseur PDF */
.exam-pdf-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    display: none;
}

.exam-pdf-viewer iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    background: white;
}

.exam-pdf-header {
    height: 50px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.exam-pdf-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.exam-pdf-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.exam-pdf-close:hover {
    color: #ff4444;
    background: rgba(255,255,255,0.1);
}

/* Styles pour la pagination */
.exam-pagination {
    margin: 0;
}

.exam-pagination-container {
    margin-top: 2rem;
}

.exam-page-item {
    margin: 0 2px;
}

.exam-page-link {
    color: #2c3e50;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
    border-color: #e9ecef;
}

.exam-page-link:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-color: #e9ecef;
}

.exam-page-item.active .exam-page-link {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.exam-page-item.disabled .exam-page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #e9ecef;
}

/* Styles pour les boutons verticaux */
.exam-btn-group-vertical {
    width: 100%;
}

.exam-btn-group-vertical .btn {
    text-align: left;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.exam-btn-group-vertical .btn:last-child {
    margin-bottom: 0;
}

.exam-btn-group-vertical .btn i {
    width: 20px;
    text-align: center;
}

.exam-btn-primary {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.exam-btn-primary:hover {
    background-color: #1e88e5;
    border-color: #1e88e5;
    transform: translateY(-2px);
    color: white;
}

.exam-btn-info {
    background-color: #00bcd4;
    border-color: #00bcd4;
    color: white;
}

.exam-btn-info:hover {
    background-color: #00acc1;
    border-color: #00acc1;
    color: white;
    transform: translateY(-2px);
}

.exam-btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.exam-btn-success:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-2px);
}

.exam-btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: white;
}

.exam-btn-warning:hover {
    background-color: #f57c00;
    border-color: #f57c00;
    color: white;
    transform: translateY(-2px);
}

/* ========== STYLES POUR LES CLASSES VIRTUELLES ========== */

.virtual-class-card {
    transition: transform 0.3s ease;
}

.virtual-class-card:hover {
    transform: translateY(-10px);
}

.virtual-class-hover-card {
    transition: all 0.3s ease;
    border: none;
}

.virtual-class-premier-cycle {
    background: linear-gradient(145deg, #f0f9ff, #e6f7ff);
}

.virtual-class-second-cycle {
    background: linear-gradient(145deg, #f0fff4, #e6ffee);
}

.virtual-class-hover-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.virtual-class-icon {
    transition: transform 0.3s ease;
}

.virtual-class-premier-cycle .virtual-class-icon {
    color: #0d6efd;
}

.virtual-class-second-cycle .virtual-class-icon {
    color: #198754;
}

.virtual-class-card:hover .virtual-class-icon {
    transform: scale(1.1);
}

.virtual-class-access-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.virtual-class-premier-cycle-btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.virtual-class-second-cycle-btn {
    background-color: #198754;
    border-color: #198754;
}

.virtual-class-premier-cycle-btn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.virtual-class-second-cycle-btn:hover {
    background-color: #157347;
    border-color: #146c43;
}

.virtual-class-access-btn:hover {
    transform: scale(1.05);
}

.virtual-class-access-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.virtual-class-access-btn:hover::after {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .virtual-class-card {
        margin-bottom: 20px;
    }
    
    .virtual-class-access-btn {
        font-size: 1rem;
    }
}

.course-page-link {
    color: #2c3e50;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

/* Styles pour la page des examens officiels */
.examens-officiels .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.examens-officiels .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.examens-officiels .card-body {
    padding: 1.5rem;
}

.examens-officiels .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.examens-officiels .card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.examen-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.examen-info small {
    display: block;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.examen-info strong {
    color: #2c3e50;
}

.btn-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.examens-officiels .btn-group {
    display: flex;
    width: 100%;
    gap: 0.5rem;
}

.btn-read, .btn-download {
    flex: 1;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.btn-read {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.btn-read:hover {
    background-color: #45a049;
    border-color: #45a049;
    color: white;
    transform: translateY(-2px);
}

.btn-download {
    background-color: #2196F3;
    border-color: #2196F3;
    color: white;
}

.btn-download:hover {
    background-color: #1e88e5;
    border-color: #1e88e5;
    color: white;
    transform: translateY(-2px);
}

.btn-read i, .btn-download i {
    font-size: 0.85rem;
    width: 16px;
}

#pdfViewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1050;
    display: none;
}

#pdfViewer iframe {
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    background: white;
}

.pdf-header {
    height: 50px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pdf-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.pdf-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.pdf-close:hover {
    color: #ff4444;
    background: rgba(255,255,255,0.1);
}

/* Styles pour la pagination des examens */
.examens-officiels .pagination {
    margin: 0;
}

.examens-officiels .page-link {
    color: #2c3e50;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
}

.examens-officiels .page-link:hover {
    background-color: #eee;
    color: #2c3e50;
}

.examens-officiels .page-item.active .page-link {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.examens-officiels .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

/* Ajustement de l'espacement du conteneur de pagination */
.pagination-container {
    margin: 0;
    padding: 0;
}

.examens-officiels .btn-group-vertical {
    width: 100%;
}

.examens-officiels .btn-group-vertical .btn {
    text-align: left;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.course-page-link:hover {
    background-color: #eee;
    color: #2c3e50;
}

.course-page-item.active .course-page-link {
    background-color: #2c3e50;
    border-color: #2c3e50;
    color: white;
}

.course-page-item.disabled .course-page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
}

/* Ajustement de l'espacement du conteneur de pagination */
.course-pagination-container {
    margin: 0;
    padding: 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
    margin-bottom: 1.5rem;
}

.comment-form {
    background: rgba(13, 110, 253, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.comment-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.related-articles .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.related-articles .card:hover {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .article-title {
        font-size: 1.7rem;
    }
    
    .article-image-container {
        max-height: 400px;
    }
    
    .article-image-container img {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .stats-container {
        justify-content: flex-start;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    .article-meta {
        padding: 0.75rem;
    }

    .stat-item {
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .article-content-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem !important;
    }
    
    .article-image-container {
        max-height: 300px;
    }
    
    .article-image-container img {
        max-height: 300px;
    }
}

/* =============================================================== */
/* Styles de la page Calendrier des Examens et Résultats Officiels */
/* =============================================================== */

/* Styles généraux pour les cartes */
.card {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 1.25rem;
}

.list-group-item {
    border: none;
    background: #f8f9fa;
    margin-bottom: 5px;
    border-radius: 5px !important;
}

.alert {
    border-radius: 5px;
}

.lead {
    font-size: 1.2rem;
    color: #666;
}

/* Styles pour les résultats officiels */
.result-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: bold;
}

.stat-item p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.sequence-list {
    padding: 1rem;
}

.sequence-item {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.sequence-item:last-child {
    border-bottom: none;
}

.sequence-item h5 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Couleurs supplémentaires */
.bg-purple {
    background-color: #6f42c1;
}

.text-purple {
    color: #6f42c1;
}

.btn-purple {
    background-color: #6f42c1;
    color: white;
}

.btn-purple:hover {
    background-color: #5a32a3;
    color: white;
}

.bg-indigo {
    background-color: #4b0082;
}

.text-indigo {
    color: #4b0082;
}

.btn-indigo {
    background-color: #4b0082;
    color: white;
}

.btn-indigo:hover {
    background-color: #3a0066;
    color: white;
}

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}

.btn-outline-indigo {
    color: #4b0082;
    border-color: #4b0082;
}

.btn-outline-indigo:hover {
    background-color: #4b0082;
    color: white;
}

/* Icônes PDF en rouge */
.fas.fa-file-pdf {
    color: #dc3545;
    filter: drop-shadow(0 2px 3px rgba(220, 53, 69, 0.2));
}

/* Style simplifié pour les boutons de téléchargement PDF */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    margin: 0.2rem;
    box-shadow: none;
}

.pdf-download-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #212529;
    transform: translateY(-1px);
}

.pdf-download-btn i {
    margin-right: 0.4rem;
}

/* Style pour les boutons de téléchargement dans le tableau d'archives */
.pdf-download-btn.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .result-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

/* Styles pour les examens officiels sur un seul côté */
.exams-list {
    position: relative;
    padding: 20px 0;
}

.exam-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
    border-left: 3px solid #dee2e6;
}

.exam-badge {
    position: absolute;
    left: -18px;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.exam-badge i {
    font-size: 16px;
}

.exam-content {
    padding: 0 20px;
}

/* Styles pour la timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    color: white;
}

.timeline-badge i {
    font-size: 16px;
}

.timeline-content {
    padding: 0 20px;
    border-left: 2px solid #dee2e6;
}

.timeline-content h5 {
    color: #333;
    margin-bottom: 5px;
}

.sequence-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.sequence-card h5 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.sequence-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sequence-item h6 {
    color: #666;
    margin-bottom: 5px;
}

.sequence-item p {
    margin: 0;
    color: #888;
}

.exam-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    height: 100%;
}

.exam-card h5 {
    color: #333;
    margin-bottom: 10px;
}

.exam-card ul {
    margin-top: 15px;
}

.exam-card ul li {
    margin-bottom: 8px;
}

/* Styles pour la section de téléchargement */
.download-section .card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-section .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.download-section .fas.fa-file-pdf {
    filter: drop-shadow(0 2px 3px rgba(220, 53, 69, 0.2));
}

.download-section .btn-group {
    display: flex;
    gap: 10px;
}

.download-section .btn-outline-secondary {
    background-color: white;
    color: #6c757d;
    border-color: #6c757d;
}

.download-section .btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* =============================================================== */
/* Styles pour le règlement intérieur */
/* =============================================================== */

.internal-rules .card {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.internal-rules .card-header {
    border-bottom: none;
    padding: 1.25rem;
}

.internal-rules .time-block {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.internal-rules .time-block h5 {
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.internal-rules .table {
    margin-bottom: 0;
}

.internal-rules .table thead th {
    border-bottom: none;
}

.internal-rules .alert {
    border: none;
    border-radius: 8px;
}

.internal-rules .section-title h6::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary);
}

.internal-rules .section-title h6::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .internal-rules .card-body {
        padding: 1rem;
    }
    
    .internal-rules .time-block {
        margin-bottom: 1rem;
    }
}
