/* Reset et variables */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #20B2AA;
    /* Teal/Turquoise */
    --primary-light: #48D1CC;
    /* Lighter teal */
    --primary-dark: #008B8B;
    /* Darker teal */
    --accent: #FF8C00;
    /* Bright Orange */
    --accent-light: #FFA500;
    /* Lighter orange */
    --secondary: #000080;
    /* Dark Navy Blue */
    --secondary-light: #191970;
    /* Lighter navy */
    --coral: #FF7F50;
    /* Reddish-Orange/Coral */
    --coral-light: #FF6347;
    /* Lighter coral */
    --text-dark: #0f172a;
    /* Original dark text color */
    --text-muted: #64748b;
    /* Original muted text color */
    --bg-primary: #ffffff;
    /* White */
    --bg-secondary: #F0F8FF;
    /* Very light blue tint */
    --bg-accent: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    /* Teal to Navy gradient */
    --shadow-sm: 0 1px 3px 0 rgba(32, 178, 170, 0.1), 0 1px 2px 0 rgba(0, 0, 128, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(32, 178, 170, 0.1), 0 2px 4px -1px rgba(0, 0, 128, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(32, 178, 170, 0.1), 0 4px 6px -2px rgba(0, 0, 128, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(32, 178, 170, 0.1), 0 10px 10px -5px rgba(0, 0, 128, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Animations */
/* Old keyframe animations removed - using enhanced ones instead */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Old animations removed - using enhanced scroll animations instead */

/* Header avancé */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(32, 178, 170, 0.15);
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(32, 178, 170, 0.08);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%);
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 40px rgba(32, 178, 170, 0.1);
    border-bottom: 1px solid rgba(32, 178, 170, 0.2);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
    transition: var(--transition);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 120px;
    height: 100px;
    border-radius: 9px;
    transition: var(--transition);
    box-shadow: 0 15px 40px rgba(32, 178, 170, 0.4), 0 0 20px rgba(32, 178, 170, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    object-fit: cover;
    object-position: center;
}

.logo:hover {
    transform: scale(1.15) rotate(3deg);
    box-shadow: 0 25px 50px rgba(32, 178, 170, 0.6), 0 0 30px rgba(32, 178, 170, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}



/* Add a subtle glow effect */
.logo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(32, 178, 170, 0.3), rgba(0, 0, 128, 0.3));
    border-radius: 11px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.logo:hover::after {
    opacity: 1;
}

/* Mobile logo enhancements */
@media (max-width: 768px) {
    .logo {
        width: 250px;
        height: 220px;
        border-radius: 20px;
        box-shadow: 0 30px 80px rgba(32, 178, 170, 0.7), 0 0 40px rgba(32, 178, 170, 0.5);
        border: 6px solid rgba(255, 255, 255, 0.6);
        object-fit: cover;
        object-position: center;
    }



    .logo:hover {
        transform: scale(1.3) rotate(2deg);
        box-shadow: 0 40px 90px rgba(32, 178, 170, 0.9), 0 0 60px rgba(32, 178, 170, 0.6);
    }

    .logo-section {
        gap: 2.5rem;
    }

    .brand-text h1 {
        font-size: 2.8rem;
    }

    .brand-text .tagline {
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .logo {
        width: 300px;
        height: 260px;
        border-radius: 25px;
        border: 8px solid rgba(255, 255, 255, 0.7);
        object-fit: cover;
        object-position: center;
    }



    .logo:hover {
        transform: scale(1.35) rotate(1deg);
    }

    .brand-text h1 {
        font-size: 3.2rem;
    }

    .brand-text .tagline {
        font-size: 1rem;
    }
}

.brand-text h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -3px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(32, 178, 170, 0.1);
}

.brand-text .tagline {
    font-size: 0.75rem;
    /* Made smaller as requested */
    color: #000080;
    /* Dark navy color for better contrast */
    font-weight: 700;
    /* Increased font weight */
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.4;
    margin-top: 0.2rem;
}

/* Navigation moderne */
.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.8rem;
    /* Consistent spacing */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
    border-radius: 0 0 20px 20px;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding: 0.8rem 0;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    /* Prevent line breaks */
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Active state for current page */
.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, #FF8C00 0%, #FF7F50 100%);
    /* Bright orange to coral gradient */
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 12px 30px rgba(255, 140, 0, 0.4);
    /* Enhanced shadow */
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.6);
    background: linear-gradient(135deg, #FF7F50 0%, #FF6347 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero section révolutionnaire */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 50%, #FF7F50 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Add top padding to account for fixed header */
    padding-bottom: 4rem;
    /* Add bottom padding for better separation */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.03)" points="0,1000 1000,800 1000,1000"/><circle fill="rgba(255,255,255,0.02)" cx="200" cy="200" r="100"/><circle fill="rgba(255,255,255,0.02)" cx="800" cy="300" r="150"/></svg>');
    background-size: cover;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(32, 178, 170, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 127, 80, 0.3) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

/* Visual separator between hero and content */
.hero-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    /* Add margin to separate from next section */
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero h1 strong {
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(32, 178, 170, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    color: white;
    font-size: 28px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-whatsapp:hover {
    transform: scale(1.15) translateY(-5px);
    background: linear-gradient(135deg, #20b358 0%, #1ebe5a 100%);
    box-shadow: 0 25px 50px rgba(37, 211, 102, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-whatsapp:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 450px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: float 8s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

/* Animated School Visual */
.animated-school-visual {
    width: 100%;
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 15%;
}

.floating-icon:nth-child(2) {
    top: 30%;
    right: 20%;
}

.floating-icon:nth-child(3) {
    bottom: 25%;
    left: 20%;
}

.floating-icon:nth-child(4) {
    bottom: 35%;
    right: 15%;
}

.central-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

.school-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 4s ease-in-out infinite;
}

.stats-bubbles {
    position: absolute;
    bottom: 20%;
    display: flex;
    gap: 2rem;
    z-index: 3;
}

.stat-bubble {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    text-align: center;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInUp 1s ease-out forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform: translateY(30px);
}

.stat-bubble .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.stat-bubble .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-cards {
    position: absolute;
    top: -30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: float 5s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    min-width: 140px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cards avancées */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Changed to show 4 cards in one row */
    gap: 1.5rem;
    /* Reduced gap to fit 4 cards better */
    margin-top: 3rem;
}

/* Responsive adjustments for the 4-column layout */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on medium screens */
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 1.8rem;
    /* Slightly reduced padding to fit 4 cards */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0;
    /* Allow cards to shrink if needed */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(32, 178, 170, 0.4);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    margin-top: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 18px;
    z-index: -1;
}

.card-image:not([src]),
.card-image[src=""],
.card-image[src*="undefined"] {
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.card:hover .card-image {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Large Icon Design for Program Cards */
.card-icon-large {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    border-radius: 18px;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.card-icon-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card:hover .card-icon-large::before {
    left: 100%;
}

.card-icon-large i {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-icon-large .icon-label {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card:hover .card-icon-large {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.card:hover .card-icon-large i {
    transform: scale(1.1) rotate(5deg);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
    margin-top: 2rem;
    /* Add extra margin to prevent overlap */
}

.section:first-of-type {
    margin-top: 0;
    /* Remove margin from first section */
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.1) 0%, rgba(0, 0, 128, 0.1) 100%);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(32, 178, 170, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 400;
}

/* Team moderne */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Changed to show 4 team members in one row */
    gap: 2rem;
    margin-top: 3rem;
}

/* Responsive adjustments for the 4-column team layout */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on medium screens */
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

.team-member {
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 1.8rem;
    /* Slightly reduced padding to fit 4 cards */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 0;
    /* Allow cards to shrink if needed */
}

.member-image {
    width: 180px;
    /* Slightly reduced from 200px to fit better */
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.member-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(32, 178, 170, 0.3);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 30px rgba(32, 178, 170, 0.4);
}

/* Galerie interactive */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 178, 170, 0.9) 0%, rgba(0, 0, 128, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Contact avancé */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="rgba(32,178,170,0.03)" cx="100" cy="100" r="80"/><circle fill="rgba(0,0,128,0.03)" cx="900" cy="200" r="120"/><polygon fill="rgba(32,178,170,0.02)" points="0,1000 1000,800 1000,1000"/></svg>');
    background-size: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 15px;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.15);
    transform: translateY(-2px);
}

.contact-info {
    padding: 1.5rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #20B2AA 0%, #000080 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(32, 178, 170, 0.3);
}

.map-container {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer moderne */
.footer {
    background: linear-gradient(135deg, #000080 0%, #191970 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: var(--transition);
    color: var(--primary);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 15px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

/* Additional cool effects */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 5s;
    animation-duration: 25s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 10s;
    animation-duration: 18s;
}

/* Enhanced animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 1s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 1s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        height: 300px;
    }

    .floating-cards {
        top: 0;
        right: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.show {
        display: flex;
    }

    .cta-button {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-image {
        height: 250px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-description {
        font-size: 0.9rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .form-input {
        font-size: 0.85rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Hide statistics on mobile */
    .stats-grid {
        display: none;
    }

    /* Reduce logo size on mobile */
    .logo {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .logo::before {
        font-size: 1.6rem;
    }

    /* Adjust header content spacing for mobile */
    .header-content {
        padding: 1rem 0;
    }

    .logo-section {
        gap: 0.8rem;
    }

    .brand-text h1 {
        font-size: 1.6rem;
    }

    .brand-text .tagline {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-image {
        height: 200px;
    }

    .card-image {
        height: 150px;
    }

    .gallery-image {
        height: 180px;
    }

    .map-container {
        height: 200px;
    }

    /* Further reduce logo size for very small screens */
    .logo {
        width: 40px;
        height: 40px;
    }

    .logo::before {
        font-size: 1.4rem;
    }

    .brand-text h1 {
        font-size: 1.4rem;
    }

    .brand-text .tagline {
        font-size: 0.6rem;
    }

    /* Hide floating elements on mobile */
    .floating-elements,
    .floating-element,
    .floating-icon,
    .pulse-ring,
    .school-icon,
    .stats-bubbles,
    .stat-bubble {
        display: none !important;
    }
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* À propos section specific styling */
#apropos {
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    margin-top: 0;
    /* Ensure no extra margin */
}

#apropos .section-header {
    margin-top: 0;
    padding-top: 2rem;
    /* Add some top padding */
}

.team-member:hover .member-image {
    transform: scale(1.05);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}