/* ============================================================
   EPIM AFRIQUE - Institutional Website Stylesheet V2.4
   Complete & Functional with Original Design Charter
   ============================================================ */

/* ============================================================
   1. UI CHARTER & VARIABLES
   ============================================================ */
:root {
    /* Colors - EPIM Brand Identity */
    --primary-color: #0f3b63; /* Bleu Nuit Institutionnel */
    --primary-light: #1a5a96;
    --primary-dark: #0a2844;
    --accent-color: #7d213b;  /* Bordeaux/Rouge Foncé */
    --accent-light: #a04258;
    --gold: #d4af37;          /* Doré pour les accents */
    --gold-light: #e5c158;
    --white: #FFFFFF;
    --light-bg: #f8f9fa;      /* Gris très clair pour les fonds */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #9CA3AF;
    --gray-500: #6c757d;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing & Sizing */
    --section-padding: 5rem;
    --section-padding-mobile: 3rem;
    --navbar-height: 80px;

    /* Shadows & Radius */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================================
   2. BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.skip-to-main:focus {
    left: 1rem;
    top: 1rem;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-light);
}

.text-gold { 
    color: var(--gold) !important; 
}

.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

.blockquote-light {
    color: var(--gray-200);
    border-left-color: var(--gold);
}

/* ============================================================
   4. LAYOUT & SECTIONS
   ============================================================ */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title.text-white {
    color: var(--white) !important;
}

.section-title.text-center::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold));
    border-radius: 2px;
}

.section-title.text-start::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--gold));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }
}

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.875rem;
    border-bottom: 2px solid var(--gold);
}

.top-bar-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--white);
    transition: color var(--transition-base);
}

.top-bar a:hover {
    color: var(--gold);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.navbar {
    background-color: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: height var(--transition-base);
}

.navbar.scrolled .navbar-logo {
    height: 45px;
}

.partnership-badge {
    display: flex;
    flex-direction: column;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--gold);
    line-height: 1.2;
}

.partnership-badge span {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.partnership-badge strong {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: color var(--transition-base);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

.dropdown-menu-custom {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    margin-top: 0.5rem !important;
}

.dropdown-header {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    padding: 0.75rem 1.5rem 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--accent-color);
    padding-left: 2rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

.btn-apply {
    background: var(--accent-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.btn-apply:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* ============================================================
   6. HERO SECTIONS
   ============================================================ */
.hero-video {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-dark);
}

.hero-bg-video {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; 
    min-height: 100%;
    width: auto; 
    height: auto;
    object-fit: cover;
    z-index: 1;
    filter: brightness(50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 1rem;
}

.hero-title {
    color: var(--white);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--gray-200);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle strong {
    color: var(--gold);
}

.hero-buttons {
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-link {
    display: inline-block;
    color: var(--gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================================
   7. STATISTICS SECTION
   ============================================================ */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.stat-card {
    background-color: rgba(255,255,255,0.05);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--white);
    transition: var(--transition-base);
}

.stat-card:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212,175,55,0.3);
}

.stat-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-left: 0.25rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-200);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* ============================================================
   8. VALUE CARDS & WHY EPIM SECTION
   ============================================================ */
.why-epim-section {
    background-color: var(--light-bg);
}

.value-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 2px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
}

.value-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* ============================================================
   9. PEDAGOGY SECTION
   ============================================================ */
.pedagogy-section {
    background-color: var(--primary-dark);
    padding: 4rem 0;
}

.pedagogy-card {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-xl);
}

.pedagogy-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.pedagogy-content {
    padding: 3rem;
}

.pedagogy-badge {
    display: inline-block;
    background-color: var(--gold);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.pedagogy-title {
    color: var(--gold);
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.pedagogy-flags {
    font-size: 1.5rem;
    vertical-align: middle;
}

.pedagogy-keywords {
    color: var(--gray-300);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pedagogy-text {
    font-size: 1.05rem;
    color: var(--gray-200);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pedagogy-content .blockquote {
    font-style: italic;
    color: var(--gray-200);
    border-left: 3px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.pedagogy-content .blockquote-footer {
    color: var(--gold);
}

.pedagogy-content .blockquote-footer cite {
    color: var(--gray-300);
}

.director-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-lg);
    margin: 2rem auto;
}

.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info p {
    margin-bottom: 0.1rem;
    line-height: 1.5;
}

.director-info .director-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.director-info .director-title {
    font-size: 1rem;
    font-style: normal;
    color: var(--gray-200);
}

@media (max-width: 991px) {
    .pedagogy-content {
        text-align: center;
        padding: 2rem;
    }
    
    .pedagogy-content .blockquote {
        text-align: left;
    }
    
    .pedagogy-image {
        min-height: 300px;
    }
}

/* ============================================================
   10. PROGRAM CARDS
   ============================================================ */
.program-card-modern {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    overflow: hidden;
}

.program-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.program-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.program-card-modern:hover .program-image img {
    transform: scale(1.1);
}

.program-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--gold);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    z-index: 1;
}

.program-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.program-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.program-meta-item {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.program-meta-item i {
    color: var(--gold);
    margin-right: 0.5rem;
}

.program-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-base);
}

.program-link:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* Placeholder for Missing Images */
.program-image-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--gray-300);
}

.program-image-placeholder i {
    font-size: 4rem;
}

/* ============================================================
   11. CERTIFICATION CARDS
   ============================================================ */
.certification-card {
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certification-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.certification-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-card p {
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 1rem;
}

.cert-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-base);
    margin-top: auto;
}

.cert-link:hover {
    color: var(--gold);
}

/* ============================================================
   12. TESTIMONIALS SECTION
   ============================================================ */
.bg-testimonials {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    position: relative;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.2rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 1rem;
    left: 2rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* ============================================================
   13. CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 4rem 0;
}

.cta-box {
    background-color: rgba(255,255,255,0.05);
    border: 2px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--gray-200);
    margin-bottom: 0;
}

.btn-cta {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
}

.btn-cta:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   14. WELCOME MODAL
   ============================================================ */
.welcome-modal .modal-content {
    background-color: var(--primary-dark);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.welcome-modal .modal-header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--gold);
    padding: 1rem 1.5rem;
}

.welcome-modal-logo {
    height: 40px;
}

.welcome-modal .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
}

.welcome-modal .btn-close:hover {
    opacity: 1;
}

.welcome-modal .modal-body {
    padding: 2.5rem;
    text-align: center;
}

.welcome-modal-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.welcome-modal-text {
    color: var(--gray-300);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.logos-title {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.logos-title::before,
.logos-title::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 1px;
    background-color: var(--gold);
    opacity: 0.5;
    vertical-align: middle;
    margin: 0 1rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-item {
    max-height: 50px;
    filter: brightness(0) invert(1) opacity(0.8);
    transition: all var(--transition-base);
}

.logo-item:hover {
    filter: none;
    transform: scale(1.1);
}

.welcome-modal .modal-footer {
    border-top: 1px solid var(--gold);
    justify-content: center;
    padding: 1.5rem;
}

.welcome-modal .modal-footer .btn-primary {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--primary-dark);
    font-weight: 700;
}

.welcome-modal .modal-footer .btn-primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-300);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background-color: var(--gold);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    color: var(--gray-400);
    margin-bottom: 0;
}

/* ============================================================
   16. UTILITIES & COMPONENTS
   ============================================================ */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.btn-primary-custom:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    color: var(--white);
}

.btn-outline-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--gold);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background-color: var(--gold-light);
    transform: translateY(-5px);
}

.text-center {
    text-align: center !important;
}

.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

/* ============================================================
   17. ADDITIONAL COMPONENTS
   ============================================================ */
.stat-card-simple { 
    padding: 1rem; 
}

.stat-card-simple .stat-label { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    color: var(--gray-300); 
}

.stat-card-simple .stat-value { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--white); 
}

.info-card-alt {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.info-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.accreditation-card {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.accreditation-card .card {
    transition: all var(--transition-base);
    border: 2px solid transparent;
    height: 100%;
}

.accreditation-card:hover .card {
    border-color: var(--gold);
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.accreditation-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.accreditation-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

.news-content {
    padding: 2rem;
    flex-grow: 1;
}

.campus-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    padding: 2rem;
    text-align: center;
    border: 2px solid transparent;
}

.campus-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gold);
}

/* ============================================================
   18. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    
    .partnership-badge {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-video {
        height: 50vh !important;
        min-height: 350px;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .value-card,
    .program-card-modern,
    .certification-card,
    .news-card,
    .campus-card {
        margin-bottom: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .cta-box {
        padding: 2rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .logos-grid {
        gap: 1rem;
    }
    
    .logo-item {
        max-height: 35px;
    }
    
    .welcome-modal .modal-body {
        padding: 1.5rem;
    }
    
    #backToTop {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================================
   PREMIUM EPIM – STYLE BACHELOR (bleu nuit + doré)
   ============================================================ */

.bachelor-premium-card {
    background: linear-gradient(135deg, #0b1a33 0%, #132a53 100%);
    border-radius: 22px;
    padding: 2.2rem;
    border: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* halo doré subtil */
.bachelor-premium-card::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(251,191,36,0.45), rgba(251,191,36,0.15));
    z-index: -1;
}

/* TITRES */
.bachelor-premium-card h3,
.bachelor-premium-card h4,
.bachelor-premium-card .premium-title {
    color: #fbbf24;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 1rem;
}

/* icônes premium */
.bachelor-premium-card i {
    color: #fbbf24 !important;
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* texte */
.bachelor-premium-card p,
.bachelor-premium-card li {
    color: #e5e7eb;
    font-size: 1rem;
    line-height: 1.6;
}

/* list icons */
.bachelor-premium-card .premium-check {
    color: #fbbf24 !important;
}

/* badges premium */
.badge-premium {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251,191,36,0.5);
    color: #fbbf24;
    padding: 0.4rem 0.75rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive */
@media(max-width: 992px) {
    .bachelor-premium-card {
        padding: 1.5rem;
    }
}

