:root {
    --primary: #002366; /* Official Navy Blue from logo */
    --primary-light: #1a237e;
    --primary-dark: #001a4d;
    --accent: #c5a021; /* Official Gold from logo */
    --accent-hover: #b08d1a;
    --text: #111827;
    --text-muted: #4b5563;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 20px;
    --container: 1280px;
}

[data-theme="dark"] {
    --primary: #00796b;
    --primary-light: #4db6ac;
    --primary-dark: #004d40;
    --text: #f9fafb;
    --text-muted: #9ca3af;
    --bg: #111827;
    --bg-alt: #1f2937;
    --white: #1f2937;
    --glass: rgba(17, 24, 39, 0.9);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-content {
    text-align: center;
    max-width: 200px;
}

/* Hero Shapes Parallax */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes .shape {
    position: absolute;
    color: var(--primary);
    opacity: 0.08;
    filter: blur(1px);
    transition: transform 0.2s ease-out;
}

.s1 { top: 15%; left: 10%; font-size: 80px; }
.s2 { top: 60%; left: 15%; font-size: 60px; }
.s3 { top: 25%; left: 45%; font-size: 40px; }
.s4 { top: 75%; left: 40%; font-size: 70px; }
.s5 { top: 40%; left: 85%; font-size: 90px; }

[data-theme="dark"] .hero-shapes .shape {
    color: var(--accent);
    opacity: 0.15;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.loader-logo img {
    width: 100px;
    height: auto;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-alt);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

body.loading {
    overflow: hidden;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image: 
        linear-gradient(rgba(0, 35, 102, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 35, 102, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border: 2px solid var(--accent);
    background: white;
    padding: 5px;
    transition: transform 0.3s ease;
}

.main-logo.circular {
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

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

.nav-pill-wrapper {
    background: rgba(0, 35, 102, 0.95);
    padding: 0.5rem 1.75rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-contact-pill {
    background: var(--accent);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 33, 0.4);
}

.btn-contact-pill i {
    width: 14px;
    height: 14px;
}

.header-controls {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .main-logo { height: 45px; width: 45px; }
}

.action-btn-pill {
    background: rgba(0, 35, 102, 0.05);
    border: 1px solid rgba(0, 35, 102, 0.1);
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.action-btn-pill:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }


.menu-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(26, 35, 126, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.23);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--text);
}

.btn-outline-dark:hover {
    background-color: var(--text);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    padding: 10rem 0 5rem;
    background-color: var(--bg);
    overflow: hidden;
}

/* Hero Improvements */
.hero-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 1rem;
        gap: 2rem;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { margin: 0 auto 2rem; font-size: 1rem; }
    .hero-stats { justify-content: center; gap: 2rem; }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn { width: 100%; text-align: center; }
    
    .img-sub { display: none; }
    .img-main img { border-radius: 20px; }
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 77, 64, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.accent-text {
    color: var(--primary);
    font-style: italic;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.h-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.h-stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-images {
    position: relative;
}

.img-main img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.img-sub {
    position: absolute;
    bottom: -30px;
    left: -50px;
    width: 250px;
}

.img-sub img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 8px solid var(--white);
}

/* Stats & Scroll Offset */
#home, #schools, #expertise, #gallery, #contact {
    scroll-margin-top: 75px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 35, 102, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 35, 102, 0.1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(197, 160, 33, 0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: var(--white);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .stat-card {
    background: var(--bg-alt);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .stat-card h3 {
    background: linear-gradient(45deg, var(--accent), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Schools */
.schools {
    padding: 6rem 0 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.school-grid {
    display: grid;
    /* --card-count injecté par PHP : 1, 2, ou 3 éléments actifs */
    grid-template-columns: repeat(var(--card-count, 3), 1fr);
    gap: 3rem;
    perspective: 1500px;
}

.school-card {
    height: 550px;
    background: var(--primary-dark);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.school-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1), filter 0.8s ease;
    filter: brightness(0.6) grayscale(20%);
    z-index: 1;
}

.school-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 35, 102, 0.95) 0%, 
        rgba(0, 35, 102, 0.4) 50%, 
        transparent 100%
    );
    z-index: 2;
}

.school-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.school-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 4;
    transform: translateZ(30px);
    box-shadow: 0 10px 20px rgba(197, 160, 33, 0.3);
}

.school-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    transform: translateZ(50px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.5s ease;
}

.school-card h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 0.8rem;
    transform: translateZ(40px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.school-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.05rem;
    max-width: 90%;
    transform: translateZ(30px);
    transition: all 0.5s ease;
}

.school-features {
    height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(20px);
}

.school-features li {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.school-features li::before {
    content: '→';
    font-size: 1.2rem;
}

/* Hover States */
.school-card:hover {
    transform: translateY(-15px) rotateX(4deg) rotateY(2deg);
    box-shadow: 0 40px 80px rgba(0, 35, 102, 0.4);
}

.school-card:hover .school-card-bg {
    transform: scale(1.1);
    filter: brightness(0.8) grayscale(0%);
}

.school-card:hover .school-card-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.school-card:hover p {
    margin-bottom: 1.5rem;
}

.school-card:hover .school-features {
    height: 140px;
    opacity: 1;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.school-card:hover .school-icon {
    transform: translateZ(60px) translateY(-10px) rotate(5deg);
    background: var(--white);
    color: var(--primary);
}

/* School Detail Buttons */
.btn-school {
    margin-top: auto;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: fit-content;
}

.btn-school:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(197, 160, 33, 0.4);
}

.btn-school i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.btn-school:hover i {
    transform: translateX(3px);
}

[data-theme="dark"] .btn-school {
    background: var(--accent);
    color: var(--white);
}

[data-theme="dark"] .btn-school:hover {
    background: var(--white);
    color: var(--primary);
}

/* Expertise Grid (Formation) */
.expertise-grid {
    display: grid;
    /* --card-count injecté par PHP : 1, 2, ou 3 filières actives */
    grid-template-columns: repeat(var(--card-count, 3), 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}


.expertise-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent);
    transition: all 0.4s ease;
}

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

.exp-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 160, 33, 0.1);
    color: var(--accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.expertise-card h3 small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.exp-list {
    list-style: none;
    margin-top: 2rem;
}

.exp-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.exp-list li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 991px) {
    .expertise-grid { grid-template-columns: 1fr; }
}

/* Bento Grid */
.bento-section {
    padding: 5rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
}

/* Bento Grid Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1rem;
    }
    
    .item-large, .item-wide, .item-tall { grid-column: span 1; grid-row: span 1; }
    .bento-item { min-height: 180px; padding: 1.25rem; }
    .bento-item h3 { font-size: 1.25rem; }
}

.bento-item {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bento-tech {
    background: linear-gradient(rgba(0,77,64,0.7), rgba(0,77,64,0.9)), url('assets/lab.png') center/cover;
    color: var(--white);
}

.bento-health {
    background: linear-gradient(135deg, #fff1f2, #fecdd3), url('https://images.unsplash.com/photo-1576091160550-2173bdd9961d?auto=format&fit=crop&q=80&w=400') center/cover;
    background-blend-mode: overlay;
    color: #9f1239;
}

.bento-beauty {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7), url('https://images.unsplash.com/photo-1560750588-73207b1ef5b8?auto=format&fit=crop&q=80&w=400') center/cover;
    background-blend-mode: overlay;
    color: #166534;
}

.bento-hotel {
    background: linear-gradient(135deg, #eff6ff, #dbeafe), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&q=80&w=400') center/cover;
    background-blend-mode: overlay;
    color: #1e40af;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-tall {
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
}

.bento-content {
    z-index: 2;
}

.bento-content i {
    color: var(--accent);
    margin-bottom: 1rem;
}

.badge {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Admissions */
.admissions {
    padding: 5rem 0;
    background-color: var(--primary);
    color: var(--white);
}

.admission-box {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.admission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.check-list {
    margin: 2rem 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--accent);
}

.admission-info {
    display: grid;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Footer Redesign */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin: 1.5rem 0;
    max-width: 350px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

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

.btn-spacer { display: none; }

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: var(--white);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* Photo Gallery */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-alt);
}

/* Gallery Marquee */
.gallery-marquee-container {
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
    background: var(--bg-alt);
}

.gallery-marquee {
    display: flex;
    gap: 1.5rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.gallery-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.gallery-item {
    width: 350px;
    flex-shrink: 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* Testimonials */
.testimonials {
    padding: 8rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card { padding: 2rem; }
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 3rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
}

.stars {
    color: #f59e0b;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.user-info strong {
    display: block;
    color: var(--primary);
}

/* FAQ */
.faq-section {
    padding: 8rem 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--bg-alt);
    padding: 1.25rem 0;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--primary);
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-answer {
    padding-top: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

/* Map Section */
.map-section {
    padding: 10rem 0;
    background: var(--bg);
}

.map-container {
    margin-top: 4rem;
}

.map-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-info {
    padding: 2.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--primary);
    color: var(--white);
}

.map-info h3 {
    font-size: 1.5rem;
}

.map-info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
}

/* Enhanced Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
}

/* Click Spark Effect */
.click-spark {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    animation: spark-grow 0.6s ease-out forwards;
}

@keyframes spark-grow {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
        border-width: 1px;
    }
}

/* Mobile Menu Overlay Update */
@media (max-width: 768px) {
    .map-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-title { font-size: 3rem; }
}
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #001a4d;
    background-image: 
        radial-gradient(circle at top right, rgba(197, 160, 33, 0.1), transparent 400px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 3000;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
    display: block;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.mobile-logo {
    height: 55px;
    width: 55px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.close-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    flex: 1;
    margin-bottom: 3rem;
}

.mobile-links {
    list-style: none;
}

.mobile-links li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.85, 0, 0.15, 1);
}

.mobile-menu.active .mobile-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu.active .mobile-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-links li:nth-child(5) { transition-delay: 0.5s; }

.nav-num {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(197, 160, 33, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.mobile-links a {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    line-height: 1.1;
    letter-spacing: -1px;
}

.mobile-links li:hover a {
    color: var(--accent);
    transform: translateX(10px);
}

.mobile-menu-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.menu-contact-info {
    margin-bottom: 2rem;
}

.menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.menu-contact-info p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.menu-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.mobile-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-actions .action-btn-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.5rem 1rem;
}

.mobile-social {
    display: flex;
    gap: 1rem;
}

.mobile-social a {
    color: var(--white);
    opacity: 0.6;
}

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


/* Responsive */
/* Tablette : si 3 cards, on passe en 2 colonnes ; 1 et 2 cards restent inchangées */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .item-large { grid-column: span 2; }

    /* 3 écoles → 2 colonnes sur tablette */
    .school-grid[style*="--card-count: 3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 3 filières → 2 colonnes sur tablette */
    .expertise-grid[style*="--card-count: 3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .nav-pill-wrapper { display: none; }
    .btn-contact-pill span { display: none; }
    .btn-contact-pill { padding: 0.6rem; }
}

@media (max-width: 768px) {
    .nav-links, .nav-pill-wrapper, .btn-contact-pill, .header-controls { display: none; }
    .menu-toggle { display: flex; }
    .hero-title { font-size: 2.2rem; }
    /* Mobile : toujours 1 colonne quelle que soit --card-count */
    .school-grid,
    .school-grid[style*="--card-count: 1"],
    .school-grid[style*="--card-count: 2"],
    .school-grid[style*="--card-count: 3"] { grid-template-columns: 1fr; justify-content: unset; }
    .expertise-grid,
    .expertise-grid[style*="--card-count: 1"],
    .expertise-grid[style*="--card-count: 2"],
    .expertise-grid[style*="--card-count: 3"] { grid-template-columns: 1fr; justify-content: unset; }
    .admission-box, .footer-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; margin-top: 2rem; }
    .admissions { padding: 4rem 0; }
    .admission-box { gap: 2rem; }
    .img-sub { display: none; }
    .gallery-item { width: 280px; }
}
