/* ========== RESET & VARIABLES ========== */
:root {
    --primary: #0B6E4F;
    --primary-dark: #084A35;
    --primary-light: #14A076;
    --secondary: #E8A838;
    --secondary-dark: #C98B1D;
    --accent: #1B4965;
    --dark: #0D1B2A;
    --gray-900: #1B2838;
    --gray-800: #2C3E50;
    --gray-700: #34495E;
    --gray-600: #5D6D7E;
    --gray-500: #85929E;
    --gray-400: #AEB6BF;
    --gray-300: #D5D8DC;
    --gray-200: #EAEEF0;
    --gray-100: #F4F6F7;
    --white: #FFFFFF;
    --danger: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
    --info: #3498DB;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== LOADER ========== */
#loader {
    position: fixed; inset: 0;
    background: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 50px; height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SCROLL TO TOP ========== */
#scrollTop {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
}
#scrollTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========== NAVBAR ========== */
#mainHeader {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9000;
    transition: var(--transition);
}
#mainHeader.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}
.navbar { padding: 12px 0; }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.3rem;
}
.logo-name { font-size: 1.25rem; font-weight: 800; color: var(--white); display: block; line-height: 1.1; }
.logo-name span { color: var(--secondary); }
.logo-sub { font-size: 0.65rem; color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 2px; }
#mainHeader.scrolled .logo-name { color: var(--dark); }
#mainHeader.scrolled .logo-sub { color: var(--gray-600); }

.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}
#mainHeader.scrolled .nav-links a { color: var(--gray-700); }
#mainHeader.scrolled .nav-links a:hover,
#mainHeader.scrolled .nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switcher {
    display: flex; align-items: center; gap: 4px;
    background: rgba(255,255,255,0.15);
    padding: 4px 8px; border-radius: var(--radius-sm);
}
#mainHeader.scrolled .lang-switcher { background: var(--gray-100); }
.lang-switcher a {
    padding: 4px 10px; border-radius: 4px;
    font-size: 0.8rem; font-weight: 600;
    color: rgba(255,255,255,0.8);
}
.lang-switcher a.active { background: var(--secondary); color: var(--white); }
#mainHeader.scrolled .lang-switcher a { color: var(--gray-600); }
.lang-sep { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
#mainHeader.scrolled .lang-sep { color: var(--gray-400); }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
#mainHeader.scrolled .menu-toggle span { background: var(--dark); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 120px 0 80px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(232,168,56,0.2);
    border: 1px solid rgba(232,168,56,0.3);
    padding: 8px 20px; border-radius: 50px;
    color: var(--secondary); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.hero-badge i { font-size: 0.75rem; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white); line-height: 1.15;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary); }
.hero p {
    font-size: 1.15rem; color: rgba(255,255,255,0.85);
    margin-bottom: 36px; max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-size: 0.95rem; font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--secondary);
    color: var(--dark);
}
.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,168,56,0.4); }
.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero-visual {
    position: absolute; right: -5%; top: 50%;
    transform: translateY(-50%);
    width: 500px; height: 500px;
    opacity: 0.1;
}
.hero-visual i { font-size: 400px; color: var(--white); }

/* Floating shapes */
.floating-shape {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: float 6s ease-in-out infinite;
}
.floating-shape:nth-child(1) { width: 300px; height: 300px; top: 10%; right: 15%; animation-delay: 0s; }
.floating-shape:nth-child(2) { width: 200px; height: 200px; bottom: 20%; right: 30%; animation-delay: 2s; }
.floating-shape:nth-child(3) { width: 150px; height: 150px; top: 30%; left: 5%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ========== SECTIONS ========== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    margin-bottom: 12px;
}
.section-label::before, .section-label::after {
    content: ''; width: 30px; height: 2px;
    background: var(--primary);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark); margin-bottom: 16px;
}
.section-desc {
    font-size: 1.1rem; color: var(--gray-600);
    max-width: 600px; margin: 0 auto;
}

/* ========== STATS ========== */
.stats-section {
    background: var(--white);
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.stat-item {
    padding: 40px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-200);
    transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gray-100); }
.stat-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--white); font-size: 1.4rem;
}
.stat-number {
    font-size: 2.5rem; font-weight: 800;
    color: var(--dark); line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.9rem; color: var(--gray-600);
    font-weight: 500;
}

/* ========== CARDS (Formations / Actualités) ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    position: relative; overflow: hidden;
}
.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-image img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 14px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.card-body { padding: 24px; }
.card-meta {
    display: flex; gap: 16px;
    font-size: 0.8rem; color: var(--gray-500);
    margin-bottom: 12px;
}
.card-meta span { display: flex; align-items: center; gap: 6px; }
.card-title {
    font-size: 1.2rem; font-weight: 700;
    color: var(--dark); margin-bottom: 10px;
    line-height: 1.3;
}
.card-text {
    font-size: 0.9rem; color: var(--gray-600);
    margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 600;
    font-size: 0.9rem;
}
.card-link:hover { gap: 12px; color: var(--primary-dark); }

/* ========== DEPARTMENTS ========== */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.dept-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.dept-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}
.dept-card:hover::before { transform: scaleX(1); }
.dept-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dept-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    color: var(--white); font-size: 1.6rem;
    transition: var(--transition);
}
.dept-card:hover .dept-icon { transform: scale(1.1) rotate(5deg); }
.dept-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.dept-desc { font-size: 0.9rem; color: var(--gray-600); }

/* ========== GALLERY ========== */
.gallery-filters {
    display: flex; justify-content: center; gap: 12px;
    margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 24px; border-radius: 50px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    font-size: 0.85rem; font-weight: 600;
    color: var(--gray-600); cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--gray-200);
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,110,79,0.9), transparent);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.gallery-overlay p { color: rgba(255,255,255,0.8); font-size: 0.8rem; }

/* ========== LIGHTBOX ========== */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
    max-width: 90vw; max-height: 85vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}
.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: var(--white); font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.1);
    border: none; border-radius: 50%;
    color: var(--white); font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ========== PAGE HERO ========== */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white); margin-bottom: 12px;
}
.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
}
.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ========== ABOUT PAGE ========== */
.about-content { padding: 80px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.about-image img { width: 100%; }
.about-image-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--secondary);
    color: var(--dark);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    font-weight: 800; font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}
.about-image-badge span { display: block; font-size: 0.75rem; font-weight: 600; }
.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--dark);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--gray-600); margin-bottom: 16px;
    font-size: 1rem;
}
.about-features {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-top: 24px;
}
.about-feature {
    display: flex; align-items: flex-start; gap: 12px;
}
.about-feature i {
    width: 36px; height: 36px; min-width: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.9rem;
}
.about-feature h4 { font-size: 0.9rem; color: var(--dark); }

/* ========== CONTACT FORM ========== */
.contact-section { background: var(--gray-100); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    display: flex; align-items: center; gap: 20px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-card-icon {
    width: 56px; height: 56px; min-width: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem;
}
.contact-card h4 { font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--gray-600); }

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem;
    font-weight: 600; color: var(--dark);
    margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11,110,79,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--gray-200);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1.3rem; color: var(--dark); }
.modal-close {
    width: 36px; height: 36px;
    background: var(--gray-100);
    border: none; border-radius: 50%;
    cursor: pointer; font-size: 1rem;
    color: var(--gray-600);
    transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: var(--white); }
.modal-body { padding: 30px; }

/* ========== FOOTER ========== */
#mainFooter {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
    font-size: 1.2rem; color: var(--white);
}
.footer-logo i { font-size: 1.5rem; color: var(--secondary); }
.footer-about p { margin-bottom: 20px; font-size: 0.9rem; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 0.9rem;
    transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-col h4 {
    color: var(--white); font-size: 1rem;
    margin-bottom: 20px; position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: ''; position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }
.footer-contact ul li {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 14px; font-size: 0.9rem;
}
.footer-contact ul li i {
    color: var(--secondary); margin-top: 4px;
    min-width: 16px;
}
.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-bottom: 1px solid var(--gray-200); }
    .stat-item:nth-child(2) { border-right: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 8999;
    }
    .nav-links.active { right: 0; }
    .nav-links a {
        color: var(--gray-800) !important;
        padding: 14px 16px;
        font-size: 1rem;
        width: 100%;
    }
    .nav-links a:hover, .nav-links a.active {
        background: var(--primary) !important;
        color: var(--white) !important;
    }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== FORMATION DETAIL MODAL ========== */
.modal-formation-image {
    width: 100%; height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    background: var(--gray-200);
}
.modal-meta {
    display: flex; gap: 20px; margin-bottom: 16px;
}
.modal-meta span {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--gray-600);
}
.modal-meta i { color: var(--primary); }