/* ============================================================
   SITE.CSS — Feuille de style principale du site public
   ------------------------------------------------------------
   SOMMAIRE :
     1. Variables & Reset
     2. Typographie
     3. Navbar publique
     4. Hero & Bouton Directeur
     5. Carrousel d'articles (Splide.js) + Date/Heure
     6. Sections communes (Features + Login animés)
     7. News Section
     8. Page Article
     9. Breadcrumb
    10. Sidebar d'article
    11. Section "أخبار ذات صلة"
    12. Galerie Photos (Carrousel Splide.js)
    13. Footer
    14. Boutons & CTA
    15. Formulaires publics
    16. Utilitaires & Animations (Scroll Reveal)
    17. Pages spécifiques (كلمة المدير)
    18. Impression
    19. Responsive Global
   ============================================================ */


/* ============================================================
   1. VARIABLES & RESET
   ============================================================ */
:root {
    --primary-color:   #090942;
    --primary-light:   #1e1e6e;
    --accent-color:    #f39c12;
    --accent-light:    #ffc107;
    --text-dark:       #2c3e50;
    --text-muted:      #7f8c8d;
    --bg-light:        #f8f9fa;
    --border-color:    #e9ecef;
    --success-color:   #28a745;
    --danger-color:    #dc3545;
    --cyan-color:      #2ee6d6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.8;
}

a {
    text-decoration: none;
}


/* ============================================================
   2. TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 10px;
}


/* ============================================================
   3. NAVBAR PUBLIQUE
   ============================================================ */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 900;
    color: #fff !important;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.navbar-nav .nav-link i {
    color: var(--accent-color);
    font-size: 0.95rem;
}

/* Flèche des menus déroulants */
.navbar-nav .dropdown-toggle::after {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
    content: "";
    border-top: 0.35em solid;
    border-right: 0.35em solid transparent;
    border-bottom: 0;
    border-left: 0.35em solid transparent;
    color: var(--accent-color);
    transition: transform 0.25s ease;
}

.navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    display: none !important;
    content: none !important;
}

/* Menu déroulant */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    padding: 8px;
    margin-top: 10px;
    min-width: 240px;
    animation: fadeInDropdown 0.25s ease;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-nav .dropdown-menu .dropdown-item-main {
    background: linear-gradient(135deg, #f8f9fa, #eef1f5);
    border-radius: 8px;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
}

.navbar-nav .dropdown-menu .dropdown-item-main:hover {
    background: linear-gradient(135deg, #eef1f5, #e4e8ee);
    transform: translateX(-3px);
}

.navbar-nav .dropdown-menu .dropdown-item-main i:first-child {
    color: var(--accent-color);
    font-size: 1rem;
}

.navbar-nav .dropdown-menu .dropdown-item-main small {
    font-size: 0.72rem;
    color: #7f8c8d;
    font-weight: 500;
}

.navbar-nav .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

.navbar-nav .dropdown-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #f4f6f9, #eef1f5);
    color: var(--primary-color);
    transform: translateX(-4px);
    padding-right: 20px;
}

.navbar-nav .dropdown-menu .dropdown-item.active {
    background: rgba(243, 156, 18, 0.12);
    color: var(--accent-color);
    font-weight: 700;
    border-right: 3px solid var(--accent-color);
}

.navbar-nav .dropdown-menu .dropdown-item i {
    color: var(--accent-color);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.navbar-nav .dropdown-menu .dropdown-divider {
    margin: 6px 4px;
    border-color: var(--border-color);
    opacity: 0.7;
}


/* ============================================================
   4. HERO & BOUTON DIRECTEUR
   ============================================================ */
.hero-section {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url('../images/vitrine_institut.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-titleh {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Lien Directeur ===== */
.hero-director-link-wrapper {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.hero-director-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: #fff;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 35px rgba(243, 156, 18, 0.45);
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: pulse-director-link 3s ease-in-out infinite;
}

.hero-director-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine-director 3s ease-in-out infinite;
}

@keyframes shine-director {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}

@keyframes pulse-director-link {
    0%, 100% { box-shadow: 0 10px 35px rgba(243, 156, 18, 0.45); }
    50%      { box-shadow: 0 15px 45px rgba(243, 156, 18, 0.7); }
}

.hero-director-link:hover {
    transform: translateY(-4px) scale(1.02);
    color: #fff;
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 15px 45px rgba(243, 156, 18, 0.7);
    border-color: #fff;
}

.hero-director-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform 0.4s ease;
    border: 3px solid #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.hero-director-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.hero-director-icon i {
    font-size: 1.6rem;
    color: #fff;
}

.hero-director-link:hover .hero-director-icon {
    transform: rotate(-10deg) scale(1.1);
    background: rgba(255, 255, 255, 0.35);
}

.hero-director-link:hover .hero-director-icon img {
    transform: scale(1.15);
}

.hero-director-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.3;
}

.hero-director-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 3px;
}

.hero-director-subtitle {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-director-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.hero-director-link:hover .hero-director-arrow {
    transform: translateX(-6px);
}


/* ============================================================
   5. CARROUSEL D'ARTICLES (Splide.js) + DATE/HEURE
   ============================================================ */
.carousel-section {
    background: linear-gradient(135deg, #090942 0%, #0a1f2e 100%);
    padding: 18px 0 16px;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-section .container-fluid {
    padding: 0 20px;
    position: relative;
}

/* ===== En-tête (عاجل + Date/Heure) ===== */
.carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.carousel-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.carousel-label {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 900;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    animation: pulse-label 2s infinite;
    white-space: nowrap;
}

.carousel-label i {
    font-size: 1rem;
    animation: pulse-icon 1.5s infinite;
}

/* ===== Date & Heure compacte ===== */
.carousel-datetime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(46, 230, 214, 0.25);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.carousel-datetime:hover {
    background: rgba(46, 230, 214, 0.12);
    border-color: rgba(46, 230, 214, 0.5);
}

.carousel-datetime i {
    color: var(--cyan-color);
    font-size: 0.9rem;
}

.carousel-datetime-sep {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.carousel-time {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.5px;
    min-width: 65px;
}

/* ===== Splide Personnalisation ===== */
#articlesSplide {
    padding: 4px 0;
}

#articlesSplide .splide__track {
    overflow: hidden;
    padding-bottom: 8px;
}

#articlesSplide .splide__list {
    align-items: stretch;
}

#articlesSplide .splide__slide {
    height: auto;
    padding: 0 4px;
}

#articlesSplide .splide__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(46, 230, 214, 0.4);
    background: rgba(9, 9, 66, 0.85);
    backdrop-filter: blur(10px);
    color: var(--cyan-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 1;
}

#articlesSplide .splide__arrow:hover {
    background: var(--cyan-color);
    color: #090942;
    border-color: var(--cyan-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 230, 214, 0.5);
}

#articlesSplide .splide__arrow svg {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

#articlesSplide .splide__arrow--prev { right: -10px; }
#articlesSplide .splide__arrow--next { left: -10px; }

#articlesSplide .splide__pagination {
    bottom: -20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

#articlesSplide .splide__pagination__page {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

#articlesSplide .splide__pagination__page:hover {
    background: rgba(46, 230, 214, 0.7);
    transform: scale(1.3);
}

#articlesSplide .splide__pagination__page.is-active {
    width: 28px;
    border-radius: 5px;
    background: var(--cyan-color);
    box-shadow: 0 0 12px rgba(46, 230, 214, 0.7);
    transform: none;
}

/* ===== Carte article dans le carrousel ===== */
.carousel-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(46, 230, 214, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    height: 100%;
    box-sizing: border-box;
}

.carousel-item:hover {
    background: rgba(46, 230, 214, 0.15);
    border-color: var(--cyan-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(46, 230, 214, 0.25);
    color: #fff;
}

.carousel-image {
    width: 90px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #0a1f2e;
    border: 1px solid rgba(46, 230, 214, 0.3);
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carousel-item:hover .carousel-image img {
    transform: scale(1.1);
}

.carousel-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carousel-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    width: fit-content;
}

.carousel-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-date {
    font-size: 0.75rem;
    color: var(--cyan-color);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.carousel-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(46, 230, 214, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-color);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.carousel-item:hover .carousel-arrow {
    background: var(--cyan-color);
    color: #090942;
    transform: translateX(-5px);
}


/* ============================================================
   6. SECTIONS COMMUNES — Features + Login Animés
   ============================================================ */
.features-section {
    padding: 70px 0 80px;
    background-color: #fff;
}

/* ===== Carte principale ===== */
.feature-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 28px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: cardAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.feature-login-card.delay-1 { animation-delay: 0.1s; }
.feature-login-card.delay-2 { animation-delay: 0.25s; }
.feature-login-card.delay-3 { animation-delay: 0.4s; }

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.feature-login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.feature-login-card:hover::after { left: 130%; }

.feature-login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 0 0 4px 4px;
    transition: width 0.4s ease;
}

.feature-login-card:hover::before { width: 100%; }

.feature-login-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
    border-color: rgba(243, 156, 18, 0.3);
}

/* ===== Icône ===== */
.feature-login-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(9, 9, 66, 0.25);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.feature-login-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(243, 156, 18, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotateDashed 12s linear infinite;
    animation-play-state: paused;
}

@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.feature-login-card:hover .feature-login-icon {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.45);
    animation-play-state: paused;
}

.feature-login-card:hover .feature-login-icon::after {
    opacity: 1;
    animation-play-state: running;
}

/* ===== Titre ===== */
.feature-login-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 0 0 14px;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.feature-login-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.feature-login-card:hover .feature-login-title {
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.feature-login-card:hover .feature-login-title::after { width: 60%; }

/* ===== Description ===== */
.feature-login-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 25px;
    flex: 1;
    transition: color 0.3s ease;
}

.feature-login-card:hover .feature-login-description { color: #444; }

/* ===== Bouton ===== */
.feature-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(9, 9, 66, 0.25);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(9, 9, 66, 0.25); }
    50%      { box-shadow: 0 8px 25px rgba(9, 9, 66, 0.4); }
}

.feature-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.feature-login-btn:hover::before { left: 100%; }

.feature-login-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(243, 156, 18, 0.5);
    animation-play-state: paused;
}

.feature-login-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.feature-login-btn:hover i { transform: translateX(-4px) scale(1.1); }

.feature-login-btn:active { transform: translateY(-1px) scale(0.98); }


/* ============================================================
   7. NEWS SECTION
   ============================================================ */
.news-section {
    padding: 70px 0 80px;
    background-color: #0a1f2e;
    color: #fff;
}

.news-section-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--cyan-color);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 10px;
    text-shadow: 0 0 25px rgba(46, 230, 214, 0.25);
}

.news-section-title i { font-size: 2.2rem; color: var(--cyan-color); }

.news-title-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 20px;
}

.news-title-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-color);
    opacity: 0.6;
}

.news-title-dots span:nth-child(2) { opacity: 0.85; }
.news-title-dots span:nth-child(3) { opacity: 1; }

.news-section-subtitle {
    color: #c7d9df;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 45px;
    line-height: 1.9;
}

.news-card {
    background: #0d2a3d;
    border: 1px solid rgba(46, 230, 214, 0.35);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--cyan-color);
    box-shadow: 0 15px 35px rgba(46, 230, 214, 0.2);
    background: #0f3049;
}

.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #051520;
    border-bottom: 2px solid rgba(46, 230, 214, 0.4);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image { transform: scale(1.08); }

.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cyan-color);
    color: #0a1f2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(46, 230, 214, 0.4);
}

.news-content {
    padding: 22px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--cyan-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--cyan-color);
    margin-bottom: 12px;
    line-height: 1.6;
    min-height: 55px;
    transition: color 0.3s;
}

.news-card:hover .news-title { color: #7ef8ee; }

.news-text {
    color: #c7d9df;
    font-size: 0.9rem;
    line-height: 1.85;
    margin-bottom: 18px;
    flex: 1;
}

.news-link {
    color: var(--cyan-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: gap 0.3s, color 0.3s;
    margin-top: auto;
}

.news-link:hover { color: #7ef8ee; gap: 14px; }


/* ============================================================
   8. PAGE ARTICLE
   ============================================================ */
.article-hero {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
    margin-bottom: 30px;
}

.article-hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: #e9ecef;
}

.article-hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.article-hero:hover .article-hero-image { transform: scale(1.03); }

.article-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.article-hero-content { padding: 35px 40px; }

.article-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.article-meta-item { display: flex; align-items: center; gap: 6px; }
.article-meta-item i { color: var(--accent-color); }

.article-lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.9;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 100%);
    border-right: 4px solid var(--accent-color);
    border-radius: 6px;
}

.article-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
    margin-bottom: 30px;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: #34495e;
    margin-bottom: 20px;
    text-align: justify;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-content h2 i { color: var(--accent-color); font-size: 1.3rem; }

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 28px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-content h3 i { color: var(--accent-color); }

/* Tableaux de résultats */
.results-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
    min-width: 800px;
}

.results-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #fff;
}

.results-table thead th {
    padding: 14px 12px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.results-table tbody td {
    padding: 14px 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.results-table tbody tr:nth-child(even) { background: #f8f9fa; }
.results-table tbody tr:hover { background: #fff9e6; transition: background 0.3s; }

.results-table .rank-badge {
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
}

.results-table .rank-badge.first  { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.results-table .rank-badge.second { background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); }
.results-table .rank-badge.third  { background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%); }

.results-table .status-admis {
    color: var(--success-color);
    font-weight: 700;
    background: #d4edda;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-block;
}

.results-table .status-attente {
    color: #856404;
    font-weight: 700;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    display: inline-block;
}

.results-table .total-score {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* Encadrés */
.info-highlight {
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ecfb 100%);
    border-right: 5px solid #3498db;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 1.05rem;
}

.info-highlight i { color: #3498db; font-size: 1.3rem; margin-left: 10px; }

.quote-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
    padding: 25px 30px;
    border-right: 5px solid var(--primary-color);
    border-radius: 8px;
    margin: 25px 0;
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: 5px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.key-points {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.key-points li {
    padding: 12px 15px 12px 50px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    font-size: 1.05rem;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.key-points li:hover {
    background: #eef1f5;
    border-right-color: var(--accent-color);
    transform: translateX(-5px);
}

.key-points li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-size: 1rem;
}


/* ============================================================
   9. BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 20px 0;
    color: #fff;
    margin-bottom: 0;
}

.breadcrumb { background: transparent; margin: 0; padding: 0; }
.breadcrumb-item a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: color 0.3s; }
.breadcrumb-item a:hover { color: #fff; }
.breadcrumb-item.active { color: #fff; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.6); }


/* ============================================================
   10. SIDEBAR D'ARTICLE
   ============================================================ */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card-title i { color: var(--accent-color); }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li i { color: var(--accent-color); font-size: 1.1rem; margin-top: 3px; min-width: 20px; }
.info-list li strong { color: var(--primary-color); display: block; font-size: 0.85rem; margin-bottom: 2px; }
.info-list li span { color: var(--text-dark); font-size: 1rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: all 0.3s;
    font-weight: 500;
}
.sidebar-link:hover { background: var(--primary-color); color: #fff; transform: translateX(-5px); }
.sidebar-link i { color: var(--accent-color); font-size: 1.1rem; }
.sidebar-link:hover i { color: var(--accent-light); }

.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.share-btn:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); color: #fff !important; }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter  { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.email    { background: #6c757d; }

.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { margin-bottom: 8px; }
.category-list li:last-child { margin-bottom: 0; }
.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    border-right: 3px solid transparent;
}
.category-list a:hover { background: #eef1f5; border-right-color: var(--accent-color); transform: translateX(-4px); }
.cat-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.cat-name { flex: 1; font-size: 0.95rem; }
.cat-count {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.mini-articles { display: flex; flex-direction: column; gap: 12px; }
.mini-article {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}
.mini-article:hover { background: #f8f9fa; }
.mini-article-img {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: #e9ecef;
}
.mini-article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mini-article:hover .mini-article-img img { transform: scale(1.1); }
.mini-article-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mini-article-body h4 {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mini-article-body small {
    color: var(--text-muted);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.mini-article-body small i { color: var(--accent-color); }


/* ============================================================
   11. SECTION "أخبار ذات صلة"
   ============================================================ */
.related-section { padding: 50px 0; background: #fff; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; font-weight: 900; color: var(--primary-color); margin-bottom: 10px; }
.section-header .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 100%);
    margin: 15px auto;
    border-radius: 2px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}
.related-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); }
.related-card-image { width: 100%; height: 180px; object-fit: cover; }
.related-card-body { padding: 20px; }
.related-card-date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.related-card-date i { color: var(--accent-color); }
.related-card-title { font-size: 1.05rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; line-height: 1.5; min-height: 50px; }
.related-card-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 12px; }
.related-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.related-card-link:hover { gap: 12px; color: #e67e22; }


/* ============================================================
   12. GALERIE PHOTOS (Carrousel Splide.js)
   ============================================================ */
.gallery-section {
    padding: 70px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.gallery-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 10px;
}

.gallery-section-title i {
    color: var(--accent-color);
    font-size: 2rem;
    animation: cameraPulse 2.5s ease-in-out infinite;
}

@keyframes cameraPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1) rotate(-3deg); }
}

.gallery-section-header .section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    margin: 15px auto;
    border-radius: 2px;
}

.gallery-section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.8;
}

.gallery-splide { padding: 4px 0; }

#gallerySplide .splide__track {
    overflow: hidden;
    padding-bottom: 12px;
}

#gallerySplide .splide__slide {
    height: auto;
    padding: 0 8px;
}

#gallerySplide .splide__arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(9, 9, 66, 0.15);
    background: #fff;
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 10;
    opacity: 1;
}

#gallerySplide .splide__arrow:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

#gallerySplide .splide__arrow svg { fill: currentColor; width: 18px; height: 18px; }
#gallerySplide .splide__arrow--prev { right: -12px; }
#gallerySplide .splide__arrow--next { left: -12px; }

#gallerySplide .splide__pagination {
    bottom: -25px;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
}

#gallerySplide .splide__pagination__page {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d5dd;
    opacity: 1;
    margin: 0;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

#gallerySplide .splide__pagination__page:hover { background: var(--accent-color); transform: scale(1.3); }
#gallerySplide .splide__pagination__page.is-active {
    width: 28px;
    border-radius: 5px;
    background: var(--accent-color);
    box-shadow: 0 0 12px rgba(243, 156, 18, 0.5);
    transform: none;
}

.gallery-item {
    display: block;
    text-decoration: none;
    color: #fff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #e9ecef;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover .gallery-image { transform: scale(1.12); }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(9, 9, 66, 0.95) 0%, rgba(9, 9, 66, 0.6) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }

.gallery-caption {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.gallery-zoom-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.5);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-zoom-icon { transform: rotate(90deg); }

.gallery-item::before {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover::before { opacity: 1; transform: translateY(0); }

.gallery-section-footer { text-align: center; margin-top: 45px; }

.btn-gallery-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s ease;
    box-shadow: 0 6px 20px rgba(9, 9, 66, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-gallery-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-gallery-all:hover::before { left: 100%; }

.btn-gallery-all:hover {
    background: linear-gradient(135deg, var(--accent-color), #e67e22);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(243, 156, 18, 0.5);
}

.btn-gallery-all i { font-size: 1.1rem; transition: transform 0.3s ease; }
.btn-gallery-all:hover i { transform: scale(1.15) rotate(-5deg); }


/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a0a5a 100%);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}
.footer h5 { font-weight: 700; margin-bottom: 20px; font-size: 1.15rem; color: var(--accent-light); }
.footer p, .footer li { color: rgba(255, 255, 255, 0.8); line-height: 1.9; }
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent-light); }
.footer .list-unstyled li { padding: 5px 0; }
.footer .list-unstyled li a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    color: var(--accent-color);
}
.footer hr { border-color: rgba(255, 255, 255, 0.1); margin: 30px 0 20px; }
.footer-copyright { text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.footer-social a:hover { background: var(--accent-color); color: #fff; transform: translateY(-3px); }


/* ============================================================
   14. BOUTONS & CTA
   ============================================================ */
.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px 5px 10px 0;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
    border: none;
    cursor: pointer;
}
.link-cta:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(243, 156, 18, 0.4); color: #fff; }
.link-cta.secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(9, 9, 66, 0.3);
}
.link-cta.secondary:hover { box-shadow: 0 6px 18px rgba(9, 9, 66, 0.4); }

.print-btn {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 5px;
    font-family: inherit;
}
.print-btn:hover { background: var(--primary-color); color: #fff; }


/* ============================================================
   15. FORMULAIRES PUBLICS
   ============================================================ */
.form-label { font-weight: 700; color: var(--primary-color); font-size: 0.9rem; }
.form-control, .form-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #dfe3e8;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(9, 9, 66, 0.1);
    outline: none;
}


/* ============================================================
   16. UTILITAIRES & ANIMATIONS (Scroll Reveal)
   ============================================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }

@keyframes fadeInDropdown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

@keyframes pulse-label { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes pulse-icon { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ===== Scroll Reveal ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Effet cascade */
.feature-login-card:nth-child(1) { transition-delay: 0.1s; }
.feature-login-card:nth-child(2) { transition-delay: 0.2s; }
.feature-login-card:nth-child(3) { transition-delay: 0.3s; }

.news-card:nth-child(1) { transition-delay: 0.1s; }
.news-card:nth-child(2) { transition-delay: 0.2s; }
.news-card:nth-child(3) { transition-delay: 0.3s; }
.news-card:nth-child(4) { transition-delay: 0.1s; }
.news-card:nth-child(5) { transition-delay: 0.2s; }
.news-card:nth-child(6) { transition-delay: 0.3s; }

.related-card:nth-child(1) { transition-delay: 0.1s; }
.related-card:nth-child(2) { transition-delay: 0.2s; }
.related-card:nth-child(3) { transition-delay: 0.3s; }

.sidebar-card:nth-child(1) { transition-delay: 0.1s; }
.sidebar-card:nth-child(2) { transition-delay: 0.2s; }
.sidebar-card:nth-child(3) { transition-delay: 0.3s; }
.sidebar-card:nth-child(4) { transition-delay: 0.4s; }

/* Variantes */
.reveal-from-right { opacity: 0; transform: translateX(60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-from-right.is-visible { opacity: 1; transform: translateX(0); }

.reveal-from-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-from-left.is-visible { opacity: 1; transform: translateX(0); }

.reveal-zoom { opacity: 0; transform: scale(0.85); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-zoom.is-visible { opacity: 1; transform: scale(1); }

.reveal-rotate { opacity: 0; transform: translateY(40px) rotate(-3deg); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-rotate.is-visible { opacity: 1; transform: translateY(0) rotate(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-from-right,
    .reveal-from-left,
    .reveal-zoom,
    .reveal-rotate,
    .feature-login-card,
    .feature-login-icon,
    .feature-login-btn {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}


/* ============================================================
   17. PAGES SPÉCIFIQUES — كلمة المدير
   ============================================================ */
.director-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0a1f2e 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.director-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(243, 156, 18, 0.15), transparent 60%);
    pointer-events: none;
}
.director-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin: 0 0 12px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}
.director-hero-title i { color: var(--accent-color); font-size: 2rem; }
.director-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}
.director-hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.director-hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); opacity: 0.6; }
.director-hero-dots span:nth-child(2) { opacity: 0.85; }
.director-hero-dots span:nth-child(3) { opacity: 1; }

.director-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.director-photo-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), #0a1f2e);
}
.director-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.director-card:hover .director-photo { transform: scale(1.05); }
.director-photo-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}
.director-card-body { padding: 25px; text-align: center; }
.director-name { font-size: 1.3rem; font-weight: 900; color: var(--primary-color); margin: 0 0 6px; }
.director-role { color: var(--accent-color); font-weight: 600; font-size: 0.95rem; margin: 0 0 15px; display: inline-flex; align-items: center; gap: 6px; }
.director-card hr { margin: 18px 0; border-color: var(--border-color); opacity: 0.7; }
.director-info-list { list-style: none; padding: 0; margin: 0; text-align: right; }
.director-info-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-dark); }
.director-info-list li i { color: var(--accent-color); margin-top: 3px; min-width: 16px; }

.director-stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0a1f2e);
    color: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(9, 9, 66, 0.2);
}
.director-stats-title { font-size: 1.1rem; font-weight: 900; margin: 0 0 18px; color: #fff; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.director-stats-title i { color: var(--accent-color); }
.director-stat-line { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.92rem; }
.director-stat-line:last-child { border-bottom: none; padding-bottom: 0; }
.director-stat-line span { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.85); }
.director-stat-line span i { color: var(--accent-color); font-size: 1rem; min-width: 18px; }
.director-stat-line strong { font-size: 1.15rem; color: var(--accent-color); font-weight: 900; }

.director-message { background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06); padding: 40px; border: 1px solid var(--border-color); }
.director-message-header { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--accent-color); }
.director-message-header i { font-size: 3rem; color: var(--accent-color); opacity: 0.3; }
.director-message-header h2 { font-size: 1.6rem; font-weight: 900; color: var(--primary-color); margin: 0; }
.director-message-content p { font-size: 1.08rem; line-height: 2; color: #34495e; margin-bottom: 20px; text-align: justify; }
.director-message-content .lead { font-size: 1.2rem; color: var(--primary-color); text-align: center; font-weight: 700; margin-bottom: 30px; }
.director-message-content h3 { font-size: 1.25rem; font-weight: 900; color: var(--primary-color); margin-top: 35px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.director-message-content h3 i { color: var(--accent-color); }

.director-highlight { background: linear-gradient(135deg, #fffbf0 0%, #fff5e0 100%); border-right: 5px solid var(--accent-color); border-radius: 10px; padding: 22px 26px; margin: 25px 0; display: flex; gap: 18px; align-items: flex-start; }
.director-highlight i { font-size: 1.8rem; color: var(--accent-color); flex-shrink: 0; margin-top: 4px; }
.director-highlight p { margin: 0; font-size: 1.05rem; color: #34495e; line-height: 1.9; }

.director-values { list-style: none; padding: 0; margin: 20px 0 30px; }
.director-values li { display: flex; gap: 16px; padding: 16px 20px; background: #f8f9fa; border-radius: 10px; margin-bottom: 12px; transition: all 0.3s; border-right: 3px solid transparent; }
.director-values li:hover { background: #eef1f5; border-right-color: var(--accent-color); transform: translateX(-4px); }
.director-values li > i { color: var(--success-color); font-size: 1.3rem; flex-shrink: 0; margin-top: 3px; }
.director-values li strong { display: block; color: var(--primary-color); font-size: 1.02rem; margin-bottom: 4px; }
.director-values li p { margin: 0; font-size: 0.92rem; color: #666; line-height: 1.7; }

.director-quote { background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%); padding: 25px 30px 25px 60px; border-right: 5px solid var(--primary-color); border-radius: 10px; margin: 30px 0; position: relative; font-style: italic; }
.director-quote i { position: absolute; top: 15px; left: 20px; font-size: 3rem; color: var(--primary-color); opacity: 0.12; }
.director-quote p { margin: 0; font-size: 1.12rem; color: var(--primary-color); font-weight: 500; line-height: 1.9; }

.director-signature { margin-top: 40px; padding-top: 25px; border-top: 2px dashed var(--border-color); text-align: left; }
.director-signature-line { font-size: 1.05rem; color: #666; margin-bottom: 25px; text-align: right; font-style: italic; }
.director-signature-block { display: inline-block; text-align: center; padding: 10px 30px; }
.director-signature-label { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 6px; font-weight: 600; }
.director-signature-name { font-size: 1.15rem; font-weight: 900; color: var(--primary-color); margin: 0; padding: 8px 20px; background: linear-gradient(135deg, #fffbf0, #fff5e0); border-radius: 8px; border: 2px solid var(--accent-color); }

.director-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; padding: 25px; background: #f8f9fa; border-radius: 14px; border: 1px solid var(--border-color); }


/* ============================================================
   18. IMPRESSION
   ============================================================ */
@media print {
    .navbar,
    .breadcrumb-bar,
    .footer,
    .related-section,
    .sidebar-card,
    .print-btn,
    .link-cta,
    .carousel-section,
    .gallery-section,
    .director-actions {
        display: none !important;
    }
    .article-hero,
    .article-content,
    .director-message,
    .director-card,
    .director-stats-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    body { background: #fff; }
}


/* ============================================================
   19. RESPONSIVE GLOBAL
   ============================================================ */

/* ===== Tablette (max 991px) ===== */
@media (max-width: 991px) {
    .navbar-nav .nav-link { padding: 10px 15px !important; border-radius: 8px; margin-bottom: 4px; }
    .navbar-nav .dropdown-menu { box-shadow: none; border: 1px solid var(--border-color); margin: 4px 0 8px; padding: 6px; background: rgba(255, 255, 255, 0.05); }

    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }

    .hero-director-link { padding: 14px 24px; gap: 14px; }
    .hero-director-icon { width: 54px; height: 54px; font-size: 1.3rem; }
    .hero-director-title { font-size: 1.05rem; }
    .hero-director-subtitle { font-size: 0.78rem; }

    /* Carrousel */
    .carousel-section { padding: 14px 0 12px; }
    .carousel-section .container-fluid { padding: 0 14px; }
    .carousel-item { padding: 12px 14px; gap: 12px; }
    .carousel-image { width: 80px; height: 62px; }
    .carousel-title { font-size: 0.88rem; }
    .carousel-label { padding: 6px 14px; font-size: 0.82rem; }
    #articlesSplide .splide__arrow { width: 40px; height: 40px; }
    #articlesSplide .splide__arrow--prev { right: -5px; }
    #articlesSplide .splide__arrow--next { left: -5px; }

    /* Features + Login */
    .feature-login-card { padding: 30px 22px 26px; }
    .feature-login-icon { width: 80px; height: 80px; font-size: 2.2rem; }
    .feature-login-title { font-size: 1.25rem; }

    /* News */
    .news-section-title { font-size: 2rem; }
    .news-section-title i { font-size: 1.7rem; }
    .news-image-wrapper { height: 180px; }

    /* Galerie */
    .gallery-section { padding: 55px 0 65px; }
    .gallery-section-title { font-size: 1.8rem; }
    .gallery-section-title i { font-size: 1.6rem; }
    .gallery-section-subtitle { font-size: 0.95rem; }
    .gallery-image-wrapper { height: 220px; }
    #gallerySplide .splide__arrow { width: 40px; height: 40px; }
    #gallerySplide .splide__arrow--prev { right: -5px; }
    #gallerySplide .splide__arrow--next { left: -5px; }

    /* Article */
    .article-hero-content { padding: 25px; }
    .article-title { font-size: 1.7rem; }
    .article-hero-image, .article-hero-image-wrapper { height: 320px; max-height: 320px; }
    .article-content { padding: 25px; }
    .article-content p { font-size: 1rem; }

    /* Directeur */
    .director-hero-title { font-size: 2rem; }
    .director-hero-title i { font-size: 1.5rem; }
    .director-message { padding: 25px; }
    .director-message-content p { font-size: 1rem; }
    .director-message-header h2 { font-size: 1.3rem; }
    .director-photo-wrapper { height: 500px; }
}

/* ===== Mobile (max 575px) ===== */
@media (max-width: 575px) {
    .hero-section { min-height: 80vh; padding: 40px 15px; }
    .hero-titleh { font-size: 1.3rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; }

    /* Hero Directeur */
    .hero-director-link-wrapper { margin-top: 25px; }
    .hero-director-link { padding: 12px 18px; gap: 12px; border-radius: 40px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 320px; }
    .hero-director-icon { width: 48px; height: 48px; font-size: 1.1rem; }
    .hero-director-text { text-align: center; flex: 1; min-width: 0; }
    .hero-director-title { font-size: 0.95rem; }
    .hero-director-subtitle { font-size: 0.72rem; }
    .hero-director-arrow { display: none; }

    /* Carrousel */
    .carousel-section { padding: 12px 0 10px; }
    .carousel-section .container-fluid { padding: 0 10px; }
    .carousel-header { margin-bottom: 10px; }
    .carousel-header-left { flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
    .carousel-label { padding: 6px 12px; font-size: 0.8rem; }
    .carousel-datetime { font-size: 0.75rem; padding: 6px 12px; gap: 6px; }
    .carousel-datetime i { font-size: 0.8rem; }
    .carousel-time { min-width: 55px; font-size: 0.75rem; }
    .carousel-item { padding: 14px; gap: 14px; border-radius: 12px; }
    .carousel-image { width: 80px; height: 70px; }
    .carousel-title { font-size: 0.9rem; }
    .carousel-date { font-size: 0.7rem; }
    .carousel-badge { font-size: 0.65rem; padding: 2px 8px; }
    .carousel-arrow { width: 26px; height: 26px; font-size: 0.75rem; }
    #articlesSplide .splide__arrow { width: 36px; height: 36px; }
    #articlesSplide .splide__arrow--prev { right: -5px; }
    #articlesSplide .splide__arrow--next { left: -5px; }
    #articlesSplide .splide__pagination { bottom: -16px; gap: 6px; }
    #articlesSplide .splide__pagination__page { width: 8px; height: 8px; }
    #articlesSplide .splide__pagination__page.is-active { width: 20px; }

    /* Features + Login */
    .feature-login-card { padding: 28px 20px 24px; border-radius: 14px; }
    .feature-login-icon { width: 70px; height: 70px; font-size: 1.9rem; margin-bottom: 18px; }
    .feature-login-title { font-size: 1.15rem; }
    .feature-login-description { font-size: 0.9rem; margin-bottom: 20px; }
    .feature-login-btn { padding: 11px 24px; font-size: 0.9rem; }

    /* News */
    .news-section { padding: 50px 15px 60px; }
    .news-section-title { font-size: 1.6rem; }
    .news-section-title i { font-size: 1.3rem; }
    .news-section-subtitle { font-size: 0.95rem; margin-bottom: 30px; }
    .news-image-wrapper { height: 200px; }
    .news-title { font-size: 1rem; min-height: auto; }

    /* Galerie */
    .gallery-section { padding: 45px 0 55px; }
    .gallery-section-title { font-size: 1.5rem; }
    .gallery-section-title i { font-size: 1.3rem; }
    .gallery-section-subtitle { font-size: 0.9rem; margin-bottom: 20px; }
    .gallery-image-wrapper { height: 200px; }
    .gallery-item:hover { transform: translateY(-4px); }
    #gallerySplide .splide__arrow { width: 36px; height: 36px; }
    #gallerySplide .splide__arrow--prev { right: 5px; }
    #gallerySplide .splide__arrow--next { left: 5px; }
    #gallerySplide .splide__pagination { bottom: -18px; gap: 6px; }
    #gallerySplide .splide__pagination__page { width: 8px; height: 8px; }
    #gallerySplide .splide__pagination__page.is-active { width: 20px; }
    .btn-gallery-all { padding: 12px 26px; font-size: 0.9rem; }

    /* Article */
    .article-title { font-size: 1.35rem; }
    .article-lead { font-size: 1rem; padding: 15px 18px; }
    .article-content { padding: 20px 15px; }
    .article-content h2 { font-size: 1.2rem; }
    .article-hero-image, .article-hero-image-wrapper { height: 220px; max-height: 220px; }
    .related-card-title { font-size: 1rem; min-height: auto; }

    /* Directeur */
    .director-hero { padding: 50px 0 40px; }
    .director-hero-title { font-size: 1.5rem; flex-direction: column; gap: 8px; }
    .director-hero-title i { font-size: 1.3rem; }
    .director-hero-subtitle { font-size: 0.9rem; }
    .director-message { padding: 20px 18px; }
    .director-message-header { gap: 12px; }
    .director-message-header i { font-size: 2rem; }
    .director-message-header h2 { font-size: 1.15rem; }
    .director-message-content p { font-size: 0.95rem; text-align: right; }
    .director-message-content .lead { font-size: 1.05rem; }
    .director-highlight { flex-direction: column; padding: 18px; }
    .director-values li { padding: 14px 16px; }
    .director-quote { padding: 20px 22px 20px 45px; }
    .director-quote i { font-size: 2rem; }
    .director-quote p { font-size: 1rem; }
    .director-signature-block { padding: 10px 15px; }
    .director-signature-name { font-size: 1rem; padding: 6px 14px; }
    .director-photo-wrapper { height: 440px; }

    /* Navbar */
    .navbar-brand { font-size: 0.9rem; }
    .navbar-nav .dropdown-menu { min-width: 100%; }
    .navbar-nav .dropdown-menu .dropdown-item { font-size: 0.88rem; }
}

/* ===== Très petit mobile (max 400px) ===== */
@media (max-width: 400px) {
    .carousel-item { padding: 12px; gap: 10px; }
    .carousel-image { width: 70px; height: 60px; }
    .carousel-title { font-size: 0.85rem; }
    .carousel-date { font-size: 0.65rem; }
    #articlesSplide .splide__arrow { width: 32px; height: 32px; }
    #articlesSplide .splide__pagination__page { width: 7px; height: 7px; }
    #articlesSplide .splide__pagination__page.is-active { width: 18px; }
    #gallerySplide .splide__arrow { width: 32px; height: 32px; }
    .gallery-image-wrapper { height: 180px; }
}