/* Variables CSS pour la palette de couleurs - Harmonisation scientifique */
:root {
    --royal-blue: #003057;
    --deep-blue: #002244;
    --accent-blue: #004080;
    --light-blue: #e6f3ff;
    --navy: #001122;
    --gold: #C8965D; /* Nouveau bronze doré harmonieux avec beige */
    --accent-warm: #B8956A; /* Couleur d'accent chaude */
    --text-warm: #8B6F47; /* Texte chaud pour contraste */
    
    /* Hiérarchie des fonds (progression 8%) */
    --bg-primary: #ECF0F4;      /* Niveau 0: Fond universel (couleur spécifiée) */
    --bg-secondary: #ffffff;     /* Niveau 1: Conteneurs principaux */
    --bg-tertiary: #f8fafc;     /* Niveau 2: Sous-conteneurs (gris clair) */
    --bg-accent: #e2e8f0;       /* Niveau 3: Éléments passifs */
    
    /* Textes (contraste WCAG) */
    --text-primary: #0f172a;    /* Contraste 16:1 */
    --text-secondary: #334155;  /* Contraste 8:1 */
    --text-tertiary: #64748b;   /* Contraste 4.5:1 */
    
    /* Système d'espacement modulaire (base 8px) */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    
    /* Espacements spécifiques */
    --section-gap: var(--space-lg);        /* Entre sections */
    --container-padding: var(--space-lg);  /* Padding conteneurs */
    --card-gap: var(--space-md);          /* Entre cartes */
    --content-gap: var(--space-xl);       /* Entre contenus */
    
    /* Ancienne compatibilité */
    --white: var(--bg-secondary);
    --light-gray: var(--bg-primary);
    --medium-gray: var(--text-tertiary);
    --dark-gray: var(--text-secondary);
    
    /* Variations du nouveau bleu */
    --blue-50: #f0f7ff;
    --blue-100: #e6f3ff;
    --blue-200: #cce7ff;
    --blue-300: #99d1ff;
    --blue-400: #4da6ff;
    --blue-500: #004080;
    --blue-600: #003057;
    --blue-700: #002244;
    --blue-800: #001833;
    --blue-900: #001122;
    
    --font-primary: 'Source Sans Pro', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Évite le défilement horizontal global */
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: transparent;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Conteneur principal pour centrage robuste */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    padding-top: 82px !important; /* Espace fixe : 50px navbar + 32px gap = toujours 82px */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    width: 100%;
}

/* Images et médias responsive */
img, 
video, 
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Protection contre les débordements de texte */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    border: none;
    height: 50px;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    background: inherit;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(1400px - 2 * var(--space-lg));
    height: 100%;
    background: rgba(236, 240, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0 0 20px 20px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 
        0 2px 8px rgba(0, 48, 87, 0.08),
        0 1px 4px rgba(0, 48, 87, 0.04),
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 -1px 0 rgba(0, 48, 87, 0.1) inset;
    z-index: -1;
}

.navbar.scrolled::before {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--royal-blue); /* Même épaisseur pour éviter le décalage */
    box-shadow: 
        0 4px 12px rgba(0, 48, 87, 0.15),
        0 2px 6px rgba(0, 48, 87, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 rgba(0, 48, 87, 0.1) inset;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    position: relative;
}
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.5rem 0;
    flex-shrink: 0;
    margin-left: -0.5rem; /* Pousse le logo légèrement plus à gauche */
}

.logo-banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    /* Évite les problèmes de rendu */
    isolation: isolate;
    /* Effet hover subtil */
    transition: var(--transition);
    border-radius: 12px;
    padding: 0.5rem;
}

.logo-banner:hover {
    background: rgba(30, 58, 138, 0.03);
    transform: scale(1.02);
}

.banner-image {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    /* Force la transparence complète */
    background: transparent !important;
    /* Évite les artefacts de mélange */
    mix-blend-mode: normal;
    /* Optimisation pour la qualité d'image */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    /* Support des écrans haute résolution */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Anti-aliasing amélioré */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
}

.logo-icon-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-light);
}

.banner-image:hover {
    transform: scale(1.05);
}

.logo-text h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--royal-blue);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--medium-gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* Gap augmenté entre les boutons */
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: flex-end;
    margin-right: 4rem; /* Plus d'espace à droite */
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 0.8rem; /* Légèrement plus grand */
    position: relative;
    padding: 0.7rem 0.8rem; /* Padding légèrement augmenté */
    margin: -0.6rem 0;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 48, 87, 0.08) 0%,
        rgba(0, 64, 128, 0.12) 50%,
        rgba(0, 48, 87, 0.08) 100%
    );
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--royal-blue);
    transform: translateY(-2px);
    text-shadow: 0 1px 2px rgba(0, 48, 87, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent,
        var(--royal-blue),
        var(--accent-blue),
        transparent
    );
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px 2px 0 0;
}

.nav-link:hover::after {
    width: 100%;
}



.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--royal-blue);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: auto;
    min-height: clamp(180px, 25vh, 220px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    padding: var(--space-lg);
    margin: 0 var(--space-lg) var(--section-gap) var(--space-lg);
    box-shadow:
        0 4px 12px rgba(0, 48, 87, 0.12),
        0 1px 4px rgba(0, 48, 87, 0.08),
        inset 0 0 60px rgba(139, 125, 107, 0.08);
    transition: all 0.3s ease;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary); /* Couleur de fond du site */
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Suppression de l'overlay sombre */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-warm); /* Nouvelle couleur chaude pour harmonie */
    width: 95vw;
    max-width: 800px;
    padding: 0 1rem;
    margin-top: 0;
    padding-top: clamp(10px, 2vh, 20px);
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5); /* Ombre claire pour fond beige */
}

.title-main {
    font-size: 4vw;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    overflow: visible;
}

/* Breakpoints spécifiques pour forcer une ligne */
@media (max-width: 600px) {
    .hero {
        max-width: 100vw;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }
    .title-main {
        font-size: 5vw;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 6vw;
    }
}

@media (max-width: 400px) {
    .title-main {
        font-size: 7vw;
    }
}

@media (max-width: 350px) {
    .title-main {
        font-size: 8vw;
    }
}

@media (min-width: 1200px) {
    .title-main {
        font-size: 48px;
    }
}

.title-main {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease-out forwards;
}

.title-accent {
    display: block;
    color: var(--gold);
    font-size: 3vw;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease-out 0.2s forwards;
}

@media (max-width: 600px) {
    .title-accent {
        font-size: 4vw;
    }
}

@media (max-width: 480px) {
    .title-accent {
        font-size: 5vw;
    }
}

@media (max-width: 400px) {
    .title-accent {
        font-size: 6vw;
    }
}

@media (min-width: 1200px) {
    .title-accent {
        font-size: 36px;
    }
}

.hero-description {
    font-size: clamp(0.9rem, 2vw + 0.2rem, 1.15rem);
    margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
    line-height: 1.7; /* Amélioration de l'interlignage */
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
    text-align: center;
    max-width: clamp(420px, 88vw, 520px);
    margin-left: auto;
    margin-right: auto;
}

.hero-description p {
    margin-bottom: 1rem; /* Espacement uniforme entre paragraphes */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.75rem; /* Espace optimisé entre étoile et texte */
    text-align: left; /* Texte aligné à gauche après l'étoile */
}

.hero-description p:last-child {
    margin-bottom: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    height: 50px;
    white-space: nowrap;
}

.btn-hero {
    min-width: 220px;
    height: 55px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: var(--royal-blue); /* Couleur sombre pour fond beige */
    border: 2px solid var(--royal-blue);
}

.btn-secondary:hover {
    background: var(--royal-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 1.5px; /* Largeur réduite */
    height: 25px; /* Hauteur réduite */
    background: var(--royal-blue);
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3.5px; /* Ajusté pour le centrage avec la nouvelle largeur */
    width: 8px; /* Largeur de pointe réduite */
    height: 8px; /* Hauteur de pointe réduite */
    border-right: 1.5px solid var(--royal-blue); /* Bordure plus fine */
    border-bottom: 1.5px solid var(--royal-blue);
    transform: rotate(45deg);
}

/* Sections communes - Espacement modulaire */
section {
    padding: var(--content-gap) 0;
    margin-bottom: var(--section-gap);
}

.section-header {
    text-align: center;
    margin-bottom: var(--content-gap);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--royal-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Programmes Section */
.programmes {
    background: var(--bg-secondary);
    margin: 0 var(--space-lg) var(--section-gap) var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 48, 87, 0.08);
    padding: var(--content-gap) var(--space-lg);
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: var(--card-gap);
    margin: 0 auto;
    align-items: stretch;
    grid-auto-rows: 1fr;
    transition: grid-template-columns 0.3s ease;
}

/* Force toutes les cartes à avoir exactement les mêmes dimensions */
.programmes-grid > .programme-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1;
}

.programme-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-accent);
    border-radius: 20px;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 48, 87, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%; /* Force la largeur à être identique */
    min-height: 0; /* Évite les problèmes de hauteur flex */
    box-sizing: border-box; /* Inclut padding et border dans les dimensions */
}

.programme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 48, 87, 0.12);
    border-color: var(--royal-blue);
}

.programme-card.featured {
    border: 2px solid var(--gold);
    /* Taille normale au repos */
}

.programme-card.featured.bundle-card {
    border: 2px solid #2E7D32 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8e9 100%);
    /* Force les mêmes dimensions que les autres cartes */
    width: 100% !important;
    max-width: none !important;
    flex: 1 1 0 !important; /* Force flex equal */
    box-sizing: border-box !important;
}

.programme-card.featured:hover {
    transform: translateY(-8px) scale(1.05); /* Animation au hover */
    box-shadow: 0 12px 30px rgba(200, 150, 93, 0.15);
}

.programme-card.featured.bundle-card:hover {
    border-color: #1B5E20 !important;
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.15);
    transform: translateY(-8px) scale(1.05); /* Animation au hover pour l'offre combinée */
}

.programme-card.featured.bundle-card .featured-badge {
    background: #2E7D32; /* Même vert pour le badge */
    color: white;
}

.programme-card.featured.bundle-card:hover {
    border-color: #1B5E20 !important; /* Vert plus foncé au hover */
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15); /* Ombre verte */
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--white);
    font-size: 2rem;
}

.programme-card h3 {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: 0.5rem;
}

.programme-card p {
    color: var(--medium-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1; /* Assure que le contenu prend l'espace disponible */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem; /* Espace consistent en bas */
}

/* Assurer une hauteur cohérente pour tous les éléments de carte */
.programme-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.programme-card .card-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    flex-grow: 1;
    padding-left: 1.5rem; /* Espace pour les icônes */
}

.programme-card .card-features li {
    padding: 0.5rem 0;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.4;
}

.programme-card .card-features li:before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.price {
    font-weight: 600;
    color: var(--royal-blue);
    font-size: 1.1rem;
}

.btn-card {
    background: var(--royal-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-card:hover {
    background: var(--deep-blue);
    transform: translateY(-2px);
}

.bundle-card .btn-card:hover {
    background: #1B5E20; /* Vert plus foncé au hover */
    transform: translateY(-2px);
}

.programme-card.featured.bundle-card .btn-card {
    background: #2E7D32; /* Bouton vert pour l'offre combinée */
    color: white;
}

.programme-card.featured.bundle-card .btn-card:hover {
    background: #1B5E20; /* Vert plus foncé au hover */
    transform: translateY(-2px);
}

.programme-card.featured.bundle-card .price {
    color: #2E7D32 !important; /* Prix en vert commercial - forcé */
    font-weight: 800;
}

.programme-card.featured.bundle-card .card-icon {
    background: linear-gradient(135deg, #2E7D32, #4CAF50); /* Icône en vert */
    color: white;
}

.programme-card.featured.bundle-card h3 {
    color: #1B5E20; /* Titre en vert foncé */
}

.programme-card.featured.bundle-card .card-duration {
    background: linear-gradient(135deg, #2E7D32, #4CAF50); /* Durée en vert */
    color: white;
}

.programme-card.featured.bundle-card .card-features li::before {
    color: #2E7D32; /* Puces en vert */
    font-size: 0.8rem;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0.5rem;
}

/* Excellence Section - DISABLED
.excellence {
    background: var(--bg-secondary);
    margin: 0 var(--space-lg) var(--section-gap) var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 48, 87, 0.08);
    padding: var(--content-gap) 0;
}

.excellence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.excellence-text h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    color: var(--royal-blue);
    margin-bottom: 2rem;
}

.excellence-text p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--royal-blue);
    font-family: var(--font-primary);
}

.stat-label {
    color: var(--medium-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.excellence-visual {
    position: relative;
    height: 400px;
}

.floating-elements {
    position: relative;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.floating-card i {
    color: var(--royal-blue);
    font-size: 1.5rem;
}

.floating-card span {
    font-weight: 500;
    color: var(--dark-gray);
}
*/

/* Admission Section - DISABLED
.admission {
    background: var(--bg-secondary);
    margin: 0 var(--space-lg) var(--section-gap) var(--space-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 48, 87, 0.08);
    padding: var(--content-gap) 0;
}
*/

/* Admission Form Styles - DISABLED
.admission-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border: 1px solid var(--bg-accent);
    padding: var(--space-xl);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 48, 87, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
*/

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--royal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.contact-info i {
    color: var(--royal-blue);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Animations */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

/* Responsive Design */

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    
    .programmes {
        padding: var(--content-gap) var(--space-md);
        margin: var(--space-lg) var(--space-sm);
    }
    
    .programmes-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .programme-card {
        padding: 2rem 1.5rem;
        width: 100% !important; /* Force la même largeur sur tablette */
    }
    
    .programme-card.featured.bundle-card {
        width: 100% !important;
        max-width: none !important;
    }
    
    .excellence-content {
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile et tablettes */
@media (max-width: 768px) {
    /* Navigation mobile */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 50px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 50px);
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
        padding: 3rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
        display: block;
    }
    
    /* Logo mobile */
    .logo-container {
        gap: 0.75rem;
    }
    
    .banner-image {
        height: 28px;
        max-width: 110px;
    }
    
    .nav-container {
        height: 50px; /* Cohérent avec la version desktop */
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        top: 50px; /* Ajusté à la nouvelle hauteur */
        height: calc(100vh - 50px);
        gap: 0.8rem;
        margin-right: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 0.6rem 0.7rem;
        font-weight: 600;
    }
    
    .logo-text h2 {
        font-size: 1.5rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    /* Hero mobile */
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-hero {
        min-width: 280px;
        width: 100%;
        max-width: 320px;
    }
    
    /* Sections mobile */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* Programmes mobile */
    .programmes {
        margin: var(--space-md) 0;
        padding: var(--space-xl) var(--space-sm);
    }
    
    .programmes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .programme-card {
        padding: 1.5rem 1rem;
        margin: 0; /* Supprime les marges pour cohérence */
    }
    
    .programme-card.featured {
        transform: none; /* Pas de transformation sur mobile */
        margin: 0;
    }
    
    .programme-card.featured.bundle-card {
        transform: none; /* Pas de transformation sur mobile */
    }
    
    /* Désactiver les hover effects sur mobile */
    .programme-card.featured:hover {
        transform: translateY(-8px) !important; /* Seulement translateY sur mobile */
    }
    
    .programme-card.featured.bundle-card:hover {
        transform: translateY(-8px) !important; /* Seulement translateY sur mobile */
    }
    
    /* Corrections icônes mobile */
    .programme-card .card-features {
        padding-left: 1.2rem; /* Réduit l'espace sur mobile */
    }
    
    .programme-card .card-features li {
        padding: 0.4rem 0;
        font-size: 0.9rem;
    }
    
    .programme-card .card-features li:before {
        left: -1.2rem;
        font-size: 0.7rem;
        width: 0.8rem;
        height: 0.8rem;
        top: 0.4rem;
    }
    
    /* Excellence mobile */
    .excellence-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .excellence-text h2 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Éléments flottants mobile */
    .excellence-visual {
        height: auto;
    }
    
    .floating-elements {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-card {
        position: static;
        animation: none;
        justify-content: center;
        margin: 0;
    }
    
    /* Formulaire mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admission-form-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Petits mobiles */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 50px; /* Maintien de la cohérence */
    }
    
    .nav-menu {
        top: 50px; /* Ajusté à la hauteur de la navbar */
        height: calc(100vh - 50px);
        padding: 2rem 0;
    }
    
    /* Logo très petit écran */
    .logo-container {
        gap: 0.5rem;
    }
    
    .banner-image {
        height: 22px;
        max-width: 80px;
    }
    
    .nav-container {
        height: 50px; /* Maintien cohérent */
        padding: 0 1rem;
    }
    
    .nav-menu {
        margin-right: 0;
        justify-content: center;
        gap: 0.6rem;
    }
    
    .logo-text h2 {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        display: none; /* Masquer sur très petits écrans */
    }
    
    /* Hero très petit écran */
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn-hero {
        min-width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    /* Cartes très petit écran */
    .programme-card {
        padding: 1.5rem 1rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Formulaire très petit écran */
    .admission-form-container {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Statistiques très petit écran */
    .stat-number {
        font-size: 2rem;
    }
    
    .excellence-text h2 {
        font-size: 2rem;
    }
}

/* Très grands écrans */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 7rem;
    }
    
    .section-title {
        font-size: 4.5rem;
    }
}

/* Mode paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn-hero {
        min-width: 200px;
        font-size: 0.9rem;
    }
}/*
 Fallback si l'image ne se charge pas */
.banner-image {
    background-color: var(--bg-primary);
    border-radius: 8px;
}

.banner-image:not([src]), 
.banner-image[src=""] {
    display: none;
}

/* Alternative avec texte si pas d'image */
.logo-banner:has(.banner-image:not([src])) + .logo-text h2::before,
.logo-banner:has(.banner-image[src=""]) + .logo-text h2::before {
    content: "🎓 ";
    color: var(--royal-blue);
    margin-right: 0.5rem;
}

/* Amélioration de la qualité d'image */
.banner-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Animation au chargement */
.banner-image {
    opacity: 0;
    animation: fadeInLogo 0.6s ease-out 0.2s forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}/* Opti
misation pour écrans haute résolution (Retina, 4K) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .banner-image {
        /* Force le navigateur à utiliser la résolution native */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Amélioration supplémentaire pour la netteté */
.banner-image {
    /* Évite le flou lors du redimensionnement */
    transform: translateZ(0);
    will-change: transform;
}/* Solut
ion alternative si problème de transparence persiste */
.logo-container {
    /* Assure que le logo a exactement le même fond que la navbar */
    background: inherit;
    border-radius: 8px;
    padding: 5px 10px;
}

/* Amélioration pour PNG avec transparence */
.banner-image {
    /* Force le rendu optimal des PNG transparents */
    opacity: 1;
    filter: none;
}

/* Glassmorphism géré dans la définition principale de .navbar::before */

/* Animation d'entrée du logo */
.banner-image {
    animation: logoEntrance 0.8s ease-out;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Amélioration des liens navigation */
.nav-menu li {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Effet de vague au hover */
.nav-menu li:hover {
    animation: navWave 0.6s ease-out;
}

@keyframes navWave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

/* Responsive navbar améliorée */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}

/* Effet de particules au hover des liens */
.nav-link:hover {
    position: relative;
}

.nav-link:hover::before {
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { 
        background-position: -200% 0; 
    }
    100% { 
        background-position: 200% 0; 
    }
}

/* Amélioration de l'effet 3D de la navbar - position déjà définie plus haut */

.navbar::after {
    box-shadow: 0 1px 3px rgba(0, 48, 87, 0.1);
}

/* Responsive pour les nouveaux effets */
@media (max-width: 768px) {
    .nav-menu li {
        height: auto;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        margin: 0;
        border-radius: 8px;
    }
    
    .nav-link::before {
        border-radius: 8px;
    }
    
    .nav-link::after {
        border-radius: 0 0 8px 8px;
    }
}

/* Animation d'entrée pour les liens */
.nav-menu li {
    animation: fadeInNav 0.6s ease-out backwards;
}

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

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

/* Layout centré amélioré */
@media (min-width: 1400px) {
    body {
        border-radius: 0 0 25px 25px;
        margin-top: 0;
        background: transparent; /* Transparence totale même sur grands écrans */
    }
    
    /* Harmonisation des marges - navbar déjà définie plus haut */
    section:not(.hero):not(.landing-blocks) {
        margin: 0 20px;
        border-radius: 20px;
        background: var(--white);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
        margin-bottom: 2rem;
        overflow: hidden;
    }
    
    .programmes,
    .excellence,
    .admission {
        background: var(--bg-secondary) !important;
        margin: 0 20px var(--section-gap) 20px !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px rgba(0, 48, 87, 0.08) !important;
        padding: var(--content-gap) 0 !important;
    }
    
    .footer {
        margin: 0 20px;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
    }
    
    /* Hero comme carte indépendante */
    .hero {
        margin: clamp(70px, 8vh, 100px) 40px var(--section-gap) 40px;
        border-radius: 25px;
        background: var(--white);
        box-shadow: 0 12px 40px rgba(0, 48, 87, 0.2);
        padding: var(--space-2xl);
    }
    
    /* Landing blocks avec même alignement */
    .landing-blocks {
        margin: 0 20px !important;
        border-radius: 20px !important;
    }
}

/* Amélioration responsive pour le nouveau layout */
@media (max-width: 1400px) {
    .navbar {
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }
    
    .navbar::before {
        border-radius: 0;
        box-shadow: 
            0 1px 6px rgba(0, 0, 0, 0.02),
            0 1px 2px rgba(0, 0, 0, 0.01),
            0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }
    
    body {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Ajustements pour tablettes */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 1rem 1rem;
        text-transform: none;
        font-weight: 500;
    }
}/* Équi
librage de la navbar */
.nav-right {
    display: flex;
    align-items: center;
    min-width: 120px;
    justify-content: flex-end;
}

/* Amélioration du hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(0, 48, 87, 0.05);
}

/* Harmonisation responsive */
@media (max-width: 768px) {
    .nav-menu {
        justify-content: flex-start;
    }
    
    .nav-right {
        min-width: auto;
    }
}

/* Correction de l'alignement sur très grands écrans */
@media (min-width: 1600px) {
    .navbar {
        max-width: 1500px;
    }
    
    .nav-container {
        max-width: 1420px;
    }
    
    .container {
        max-width: 1420px;
    }
}

/* About Section - Horizontal Layout */
.about-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 25px rgba(0, 48, 87, 0.2);
}

.about-content h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    color: var(--royal-blue);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.feature i {
    color: var(--royal-blue);
    font-size: 1.2rem;
}

.landing-block {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.info-block {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f1e8 100%);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.info-block::before {
    background: linear-gradient(90deg, var(--gold), #d97706);
}

.cta-block {
    background: var(--white);
    border: 1px solid rgba(0, 48, 87, 0.1);
}

.landing-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.block-content {
    position: relative;
    z-index: 1;
}

.block-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.2);
}

.info-block .block-icon {
    background: linear-gradient(135deg, var(--gold), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.landing-block h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--royal-blue);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.landing-block p {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Stats mini pour le bloc info */
.block-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-mini {
    text-align: center;
}

.stat-number-mini {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-primary);
    line-height: 1;
}

.stat-label-mini {
    font-size: 0.75rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Boutons CTA */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-block {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    min-width: auto;
    height: auto;
}

.btn-outline {
    background: transparent;
    color: var(--royal-blue);
    border: 2px solid var(--royal-blue);
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--royal-blue);
    color: var(--white);
    transform: translateY(-1px);
}

/* Responsive pour les blocs */
@media (max-width: 768px) {
    .blocks-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .landing-block {
        padding: 2rem 1.5rem;
    }
    
    .block-stats {
        justify-content: space-around;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Ajustement pour le layout centré */
@media (min-width: 1400px) {
    .landing-blocks {
        margin: 0 20px;
        border-radius: 20px;
        background: var(--bg-primary);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
        margin-bottom: 2rem;
        overflow: hidden;
    }
}

/* Animation d'entrée des blocs */
.landing-block {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInBlock 0.8s ease-out forwards;
}

.landing-block:nth-child(1) {
    animation-delay: 0.2s;
}

.landing-block:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideInBlock {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nouvelles cartes programmes améliorées */
.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.card-subtitle {
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0.25rem 0 0.75rem 0;
    opacity: 0.8;
}

.card-duration {
    background: var(--light-blue);
    color: var(--royal-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.card-content {
    margin-bottom: 2rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 1.5rem;
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--royal-blue);
    font-weight: bold;
}

.price-bundle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.price-old {
    text-decoration: line-through;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.price {
    font-weight: 700;
    color: var(--royal-blue);
    font-size: 1.25rem;
}

/* Responsive pour about section */
@media (max-width: 768px) {
    .about-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .about-content {
        padding: 2rem 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
}

/* Ajustement pour le layout centré */
@media (min-width: 1400px) {
    .about-section {
        margin: 0 20px;
        border-radius: 20px;
        background: var(--bg-primary);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
        margin-bottom: 2rem;
        overflow: hidden;
    }
}/* Améliorat
ions professionnelles */
.hero-description strong {
    color: var(--gold);
    font-weight: 700;
}

.hero-description em {
    color: #e6f3ff;
    font-style: normal;
    font-weight: 600;
}

/* Amélioration des cartes programmes */
.programme-card {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.programme-card:hover {
    border-left-color: var(--royal-blue);
    transform: translateY(-8px);
}

.programme-card.featured {
    border-left-color: var(--gold);
    background: linear-gradient(135deg, #fefefe 0%, #f8f9ff 100%);
}

.card-duration {
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.card-features li {
    font-weight: 500;
    color: var(--dark-gray);
}

.card-features li::before {
    color: var(--gold);
    font-weight: 900;
}

.btn-card {
    background: linear-gradient(135deg, var(--royal-blue), var(--accent-blue));
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.3);
}

.btn-card:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--royal-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 48, 87, 0.4);
}

.price {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--royal-blue);
}

.featured .price {
    color: var(--gold);
}

/* Responsive pour le hero en carte */
@media (max-width: 768px) {
    :root {
        --space-lg: 1rem;
        --space-xl: 2rem;
        --content-gap: 2.5rem;
        --section-gap: 1.5rem;
        --container-padding: 1rem;
    }
    
    .hero {
        margin: calc(80px + var(--space-lg)) var(--space-sm) var(--section-gap) var(--space-sm);
        padding: var(--space-lg);
        border-radius: 15px;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .programmes, .excellence, .admission {
        margin: 0 var(--space-sm) var(--section-gap) var(--space-sm) !important;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 0.75rem;
        --space-xl: 1.5rem;
        --content-gap: 2rem;
        --section-gap: 1rem;
        --container-padding: 0.75rem;
        --card-gap: 1rem;
    }
    
    .hero {
        margin: calc(80px + var(--space-lg)) var(--space-xs) var(--section-gap) var(--space-xs);
        padding: var(--space-lg);
        border-radius: 12px;
    }
}

/* Adaptation fluide pour tous les écrans */
@media (min-width: 1200px) {
    .hero-title {
        font-size: clamp(1.4rem, 1.8vw, 2rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 1.2vw, 1.1rem);
        max-width: 500px;
    }
}

@media (max-width: 360px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-description {
        font-size: 0.7rem;
        line-height: 1.4;
    }
}

/* Optimisation pour écrans très larges */
@media (min-width: 1600px) {
    .hero {
        max-width: 1400px;
        margin: 0 auto;
    }
}/* Sépa
rateur avec étoiles */
.description-separator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.8rem 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.star {
    color: var(--gold); /* Nouveau bronze doré */
    font-size: 1.2rem; /* Légèrement plus grand */
    text-shadow: 0 2px 4px rgba(139, 111, 71, 0.3); /* Ombre chaude */
    animation: starTwinkle 3s ease-in-out infinite; /* Animation plus douce */
    margin-right: 0;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(200, 150, 93, 0.4)); /* Lueur dorée subtile */
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(200, 150, 93, 0.4));
    }
    50% {
        opacity: 0.85;
        transform: scale(1.08);
        filter: drop-shadow(0 0 12px rgba(200, 150, 93, 0.6));
    }
}

/* Amélioration de l'espacement des paragraphes */
.hero-description p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.hero-description p:last-child {
    margin-bottom: 0;
}

/* Responsive pour les étoiles */
@media (max-width: 480px) {
    .description-separator {
        margin: 0.5rem 0;
    }
    
    .star {
        font-size: 1rem;
    }
}

/* Section Contact */
.contact-section {
    display: none;
    opacity: 1;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 50px);
    margin-top: 50px;
    transition: all 0.4s ease;
}

.contact-section.active {
    display: block;
    opacity: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 4rem;
}

.contact-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.contact-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 25px rgba(0, 48, 87, 0.08),
        0 2px 10px rgba(0, 48, 87, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 550px;
}

.contact-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 48, 87, 0.12),
        0 4px 15px rgba(0, 48, 87, 0.06);
}

.contact-form-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 1rem;
}

.btn-submit {
    background: #003057 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    font-family: inherit !important;
    line-height: normal !important;
    transition: all 0.3s ease !important;
    display: block !important;
    box-sizing: border-box !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(0, 48, 87, 0.2) !important;
}

.btn-submit:hover {
    background: #001f3d !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 48, 87, 0.4) !important;
}

.btn-submit:active {
    transform: translateY(0) !important;
    color: #ffffff !important;
}

.btn-submit:disabled {
    background: #6b7280 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Force l'affichage du texte dans le bouton */
button.btn-submit {
    color: white !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

button.btn-submit * {
    color: white !important;
}

/* Message de succès */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    margin-top: 1rem;
}

.form-success.show {
    display: block;
    animation: slideInUp 0.5s ease-out;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    opacity: 0.9;
    margin: 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Actions de contact */
.contact-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-back {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

/* Responsive Contact */
@media (max-width: 768px) {
    .contact-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 1.5rem;
    }
}

/* Très petits écrans - Optimisation finale */
@media (max-width: 480px) {
    /* Layout général */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Navigation compacte */
    .nav-container {
        height: 50px;
        padding: 0 1rem;
    }
    
    .logo-text h2 {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    /* Hero optimisé */
    .hero {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .btn-hero {
        width: 100%;
        font-size: 0.95rem;
        padding: 1rem 1.5rem;
        margin-top: 1rem;
    }
    
    /* Programmes optimisés */
    .programmes {
        margin: 1rem 0;
        padding: 2rem 0.75rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .programmes-grid {
        gap: 1rem;
    }
    
    .programme-card {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 1rem;
    }
    
    .programme-card h3 {
        font-size: 1.3rem;
        margin: 1rem 0;
    }
    
    .programme-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Corrections icônes très petits écrans */
    .programme-card .card-features {
        padding-left: 1rem;
    }
    
    .programme-card .card-features li {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
    
    .programme-card .card-features li:before {
        left: -1rem;
        font-size: 0.6rem;
        width: 0.7rem;
        height: 0.7rem;
        top: 0.3rem;
    }
    
    /* Contact optimisé */
    .contact-section {
        padding: 2rem 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Évite le zoom sur iOS */
        padding: 0.75rem;
    }
    
    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Media queries pour le hero - fixes de responsivité */
@media (max-width: 600px) {
    .main-wrapper {
        padding-top: 82px !important;
    }
    
    .navbar::before {
        max-width: calc(100% - 2 * var(--space-sm));
        border-radius: 0 0 12px 12px;
    }
    
    .nav-container {
        padding: 0 var(--space-sm);
    }
    
    .hero, .programmes {
        border-radius: 12px;
        margin-left: var(--space-sm);
        margin-right: var(--space-sm);
    }
    
    .programmes-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .programmes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}