/* ==========================================================================
   1. VARIABLES DU DESIGN SYSTEM (Racine)
   ========================================================================== */
:root {
    /* ---------------- Couleurs Principales ---------------- */
    --primary: #0F2942;       /* Deep Academic Navy */
    --secondary: #D97706;     /* Warm Academic Gold/Amber */
    --tertiary: #059669;      /* Botanical Sage/Emerald */
    --neutral: #475569;       /* Slate Neutral */
    
    --bg-canvas: #F8FAFC;     /* Off-white canvas */
    --surface: #FFFFFF;       /* Pure white */
    --border-light: rgba(15, 41, 66, 0.08); /* Hairline boundary */

    /* ---------------- Couleurs de Cycles ---------------- */
    --cycle-mat-1: #8B5CF6;   /* Maternelle: Soft Lavender */
    --cycle-mat-2: #F472B6;   /* Maternelle: Warm Coral */
    --cycle-mat-bg: #FFFBEB;
    
    --cycle-prim-1: #0284C7;  /* Primaire: Vibrant Azure */
    --cycle-prim-2: #10B981;  /* Primaire: Bright Meadow */
    
    --cycle-col-1: #2563EB;   /* Collège: Dynamic Cobalt */
    --cycle-col-2: #F59E0B;   /* Collège: Electric Amber */
    
    --cycle-lyc-1: #0F2942;   /* Lycée: Imperial Navy */
    --cycle-lyc-2: #B45309;   /* Lycée: Burnished Gold */

    /* ---------------- Espacements (Spacing) ---------------- */
    --space-xs: 0.25rem;      /* 4px */
    --space-sm: 0.5rem;       /* 8px */
    --space-md: 1rem;         /* 16px */
    --space-lg: 1.5rem;       /* 24px */
    --space-xl: 2.5rem;       /* 40px */
    --space-2xl: 4rem;        /* 64px */
    --space-3xl: 6rem;        /* 96px */
    
    --gutter: 1.5rem;         /* Gouttière standard */
    --container-max: 1360px;  /* Largeur max du site */

    /* ---------------- Rayons des bordures (Rounded) ---------------- */
    --radius-sm: 0.5rem;      /* 8px - Boutons */
    --radius-md: 1rem;        /* 16px - Cartes de contenu */
    --radius-lg: 1.5rem;      /* 24px - Containers Hero */
    --radius-full: 9999px;    /* Pilules & Badges */

    /* ---------------- Élévation & Ombres (Depth) ---------------- */
    --shadow-level-1: 0 4px 20px -2px rgba(15, 41, 66, 0.05), 0 2px 6px -1px rgba(15, 41, 66, 0.03);
    --shadow-level-2: 0 16px 32px -4px rgba(15, 41, 66, 0.09), 0 6px 12px -2px rgba(15, 41, 66, 0.04);
    --shadow-level-3: 0 20px 40px -8px rgba(15, 41, 66, 0.12);
    
    /* ---------------- Typographie ---------------- */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-canvas);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
}

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

button, input, textarea, select {
    font: inherit;
    border: none;
    background: none;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   3. CLASSES TYPOGRAPHIQUES (Utility Classes)
   ========================================================================== */
.display-hero {
    font-size: 56px;
    font-weight: 800;
    line-height: 64px;
    letter-spacing: -0.03em;
}

.headline-xl {
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.02em;
}

.headline-md {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.01em;
}

.body-lg { font-size: 18px; font-weight: 400; line-height: 28px; }
.body-md { font-size: 16px; font-weight: 400; line-height: 24px; color: var(--neutral); }
.body-sm { font-size: 14px; font-weight: 400; line-height: 20px; color: var(--neutral); }

.label-sm {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Typographie Responsive Mobile */
@media (max-width: 768px) {
    .display-hero {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -0.02em;
    }
    .headline-xl {
        font-size: 28px;
        line-height: 36px;
        letter-spacing: -0.01em;
    }
    .headline-lg {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: -0.01em;
    }
}

/* ==========================================================================
   4. LAYOUT / CONTENEUR PRINCIPAL
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}


/* ==========================================================================
   5. BANDEAU TICKER D'ANNONCE
   ========================================================================== */
.top-ticker {
    background-color: var(--primary);
    color: #ffffff;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1001;
}

.ticker-track {
    display: flex;
    gap: 3rem;
    animation: marqueeScroll 35s linear infinite;
    padding-left: 1rem;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.01em;
}

.ticker-badge {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-secondary {
    background-color: var(--secondary);
    color: #ffffff;
}

.badge-tertiary {
    background-color: var(--tertiary);
    color: #ffffff;
}

.badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-error {
    background-color: #ef4444;
    color: #ffffff;
}

.badge-dark {
    background-color: #1e293b;
    color: #ffffff;
}

.ticker-link {
    color: #ffdcc3;
    text-decoration: underline;
    font-weight: 600;
}

.ticker-link:hover {
    color: #ffffff;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 0.8s linear infinite;
}

/* ==========================================================================
   6. HEADER STICKY & ACTIONS
   ========================================================================== */
.main-header {
    height: 80px;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-level-1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Identité visuelle */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: var(--secondary);
}

.brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name span {
    color: var(--secondary);
}

/* Navigation centrale */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

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

/* Boutons d'action */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Action: Espace Connexion (Ghost) */
.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid rgba(15, 41, 66, 0.2);
}

.btn-outline:hover {
    background-color: rgba(15, 41, 66, 0.04);
    border-color: var(--primary);
}

/* Action: Préinscription (Accent Ambre) */
.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

/* Burger Mobile */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
}

.burger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   7. RESPONSIVE MOBILE & TABLETTE HEADER
   ========================================================================== */
@media (max-width: 1023px) {
    .burger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-level-3);
        padding: 2rem var(--gutter);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 18px;
        width: 100%;
    }

    /* Animation de la croix burger */
    .burger-btn.open .burger-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger-btn.open .burger-bar:nth-child(2) {
        opacity: 0;
    }
    .burger-btn.open .burger-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
	.btnpreinscription{
		height:35px;
		padding :1.2rem;
		font-size:11px;
		font-weight:500;
	}
}

@media (max-width: 640px) {
    .btn-outline {
        display: none; /* Masqué sur petit écran, accessible dans le menu déroulant si besoin */
    }
}




/* ==========================================================================
   8. HERO SLIDER SECTION
   ========================================================================== */
/* ==========================================================================
   8. HERO SLIDER SECTION
   ========================================================================== */
/* ==========================================================================
   8. HERO SLIDER SECTION
   ========================================================================== */
/* ==========================================================================
   8 & 9. HERO SLIDER UNIFIÉ (DESKTOP & MOBILE ROBUSTE)
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    /* Hauteur explicite : verrouille le calcul et empêche tout écrasement à 0px */
    height: 80vh;
    min-height: 600px;
    max-height: 850px;
    background-color: var(--primary);
    color: #ffffff;
    overflow: hidden;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Diapositives */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Image d'arrière-plan */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

/* Voile d'ambiance (Scrim) : laisse la photo bien visible au centre */
.hero-scrim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(15, 41, 66, 0.88) 0%,
        rgba(15, 41, 66, 0.5) 45%,
        rgba(15, 41, 66, 0.15) 80%,
        transparent 100%
    );
    z-index: 2;
}

/* Conteneur de contenu */
.hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-content {
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    color: #ffffff;
    margin-bottom: var(--space-lg);
}

.hero-desc {
    color: #eaf1ff;
    margin-bottom: var(--space-xl);
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: var(--secondary);
    color: #ffffff;
    padding: 0 1.75rem;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
}

.btn-hero-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0 1.5rem;
    height: 52px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Contrôles du slider */
.hero-controls-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hero-pagination, 
.hero-nav-buttons {
    pointer-events: auto;
}

.hero-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-dash {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dash.active {
    width: 44px;
    background-color: var(--secondary);
}

.hero-nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.hero-btn-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(15, 41, 66, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-btn-nav svg {
    width: 20px;
    height: 20px;
}

.hero-btn-nav:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* ==========================================================================
   ADAPTATION MOBILE HERO (< 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section {
        /* Hauteur fixe minimale garantie : pas d'effondrement */
        height: auto;
        min-height: 620px;
    }

    /* Le voile vertical laisse transparaître l'image au milieu */
    .hero-scrim {
        background: linear-gradient(
            180deg,
            rgba(15, 41, 66, 0.75) 0%,
            rgba(15, 41, 66, 0.35) 40%,
            rgba(15, 41, 66, 0.85) 100%
        );
    }

    /* Démarrage du texte sous le header, SANS centrage vertical destructeur */
    .hero-container {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 3.5rem;   /* Dégage le haut sous le header */
        padding-bottom: 5.5rem; /* Réserve l'espace pour les boutons du bas */
    }

    .hero-eyebrow {
        font-size: 11px;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 0.75rem;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 22px;
        margin-bottom: 1.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-ghost {
        width: 100%;
        height: 48px;
        justify-content: center;
    }

    .hero-controls-container {
        bottom: 1rem;
        width: 100%;
        padding: 0 var(--gutter);
    }

    .hero-btn-nav {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   10. SECTION COMMUNE & CYCLES
   ========================================================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-2xl);
}

.section-eyebrow {
    color: var(--secondary);
    display: inline-block;
    margin-bottom: var(--space-xs);
}

.section-title {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-desc {
    color: var(--neutral);
}

/* Grille Responsive des Cartes de Cycles */
.cycles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gutter);
}

/* Carte de Cycle (Base Level 1 Depth) */
.cycle-card {
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-level-1);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Hover State (Level 2 Dynamic Elevation) */
.cycle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-level-2);
}

/* Bande supérieure teintée (4px) */
.cycle-tint-bar {
    height: 4px;
    width: 100%;
}

/* Bloc Média / Image (Ratio 16:10) */
.cycle-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.cycle-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cycle-card:hover .cycle-media img {
    transform: scale(1.05);
}

/* Pilule de badge sur l'image */
.cycle-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: rgba(15, 41, 66, 0.85);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Corps de texte de la carte */
.cycle-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cycle-meta {
    margin-bottom: var(--space-xs);
}

.cycle-title {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

.cycle-summary {
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

/* Liste à puces des points forts */
.cycle-highlights {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.cycle-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.cycle-highlights svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Lien d'appel à l'action avec micro-glissement de flèche */
.cycle-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 700;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-light);
}

.cycle-cta-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.cycle-card:hover .cycle-cta-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   11. SOUS-PALETTES CHROMATIQUES PAR CYCLE
   ========================================================================== */
/* Maternelle (Lavande & Corail) */
.cycle-maternelle .cycle-tint-bar { background: linear-gradient(90deg, var(--cycle-mat-1), var(--cycle-mat-2)); }
.cycle-maternelle .cycle-meta { color: var(--cycle-mat-1); }
.cycle-maternelle .cycle-highlights svg { color: var(--cycle-mat-1); }
.cycle-maternelle .cycle-cta { color: var(--cycle-mat-1); }

/* Primaire (Azur Vibrant & Émeraude) */
.cycle-primaire .cycle-tint-bar { background: linear-gradient(90deg, var(--cycle-prim-1), var(--cycle-prim-2)); }
.cycle-primaire .cycle-meta { color: var(--cycle-prim-1); }
.cycle-primaire .cycle-highlights svg { color: var(--cycle-prim-2); }
.cycle-primaire .cycle-cta { color: var(--cycle-prim-1); }

/* Collège (Cobalt & Ambre Électrique) */
.cycle-college .cycle-tint-bar { background: linear-gradient(90deg, var(--cycle-col-1), var(--cycle-col-2)); }
.cycle-college .cycle-meta { color: var(--cycle-col-1); }
.cycle-college .cycle-highlights svg { color: var(--cycle-col-1); }
.cycle-college .cycle-cta { color: var(--cycle-col-1); }

/* Lycée (Navy Impérial & Or Bruni) */
.cycle-lycee .cycle-tint-bar { background: linear-gradient(90deg, var(--cycle-lyc-1), var(--cycle-lyc-2)); }
.cycle-lycee .cycle-meta { color: var(--cycle-lyc-2); }
.cycle-lycee .cycle-highlights svg { color: var(--cycle-lyc-2); }
.cycle-lycee .cycle-cta { color: var(--cycle-lyc-1); }

/* ==========================================================================
   12. RESPONSIVE POUR LA GRILLE DES CYCLES
   ========================================================================== */
/* Tablette : refonte en 2x2 */
@media (max-width: 1023px) {
    .cycles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile : pile à colonne unique */
@media (max-width: 640px) {
    .cycles-grid {
        grid-template-columns: 1fr;
    }
    .cycle-card {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}


/* ==========================================================================
   13. SECTION LE CAMPUS & STATISTIQUES
   ========================================================================== */
.campus-section {
    background-color: var(--surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Barre de statistiques / Indicateurs institutionnels */
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #163657 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-3xl);
    box-shadow: var(--shadow-level-2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: #ffffff;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 var(--space-sm);
}

.stat-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-sub {
    font-size: 12px;
    color: #ccdbf3;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Grille du Campus */
.campus-header {
    margin-bottom: var(--space-2xl);
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gutter);
}

/* Cartes d'infrastructures */
.campus-card {
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-level-1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.campus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-level-2);
}

/* Carte large (occupe 2 colonnes en desktop) */
.campus-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.campus-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.campus-card-large .campus-media {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
}

.campus-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.campus-card:hover .campus-media img {
    transform: scale(1.04);
}

.campus-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 41, 66, 0.4) 100%);
}

.campus-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campus-tag-group {
    margin-bottom: var(--space-sm);
}

.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-tertiary {
    background-color: #d1fae5;
    color: var(--tertiary);
}

.tag-secondary {
    background-color: #fef3c7;
    color: var(--secondary);
}

.tag-primary {
    background-color: #dbeafe;
    color: var(--primary);
}

.campus-card-title {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.campus-card-text {
    line-height: 1.6;
}

.campus-feature-list {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.campus-feature-list li {
    font-size: 13px;
    font-weight: 500;
    color: var(--neutral);
    position: relative;
    padding-left: 1.25rem;
}

.campus-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tertiary);
    font-weight: bold;
}

/* Carte Éco-Campus (pleine largeur) */
.campus-card-eco {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(to right, #eff6ff, #f0fdf4);
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.campus-content-side {
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.campus-media-side {
    overflow: hidden;
    height: 100%;
}

.campus-media-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eco-badges {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.eco-badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.eco-badge-item svg {
    width: 20px;
    height: 20px;
    color: var(--tertiary);
    flex-shrink: 0;
}

/* ==========================================================================
   14. RESPONSIVE CAMPUS
   ========================================================================== */
@media (max-width: 1023px) {
    .stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
        padding: var(--space-xl);
    }

    .stat-divider {
        display: none;
    }

    .campus-card-large,
    .campus-card-eco {
        grid-template-columns: 1fr;
    }

    .campus-card-large .campus-media {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .campus-media-side {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .campus-grid {
        grid-template-columns: 1fr;
    }

    .campus-card-large,
    .campus-card-eco {
        grid-column: span 1;
    }

    .campus-content-side {
        padding: var(--space-lg);
    }
}



/* ==========================================================================
   15. SECTION ADMISSIONS & FORMULAIRE

/* ==========================================================================
   15. SECTION ADMISSIONS & FORMULAIRE

/* ==========================================================================
   15. SECTION ADMISSIONS & FORMULAIRE
   ========================================================================== */
.admissions-section {
    background-color: var(--bg-canvas);
}

.admissions-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Colonne Gauche : Étapes & Réassurance */
.admissions-title {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.admissions-desc {
    margin-bottom: var(--space-xl);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.step-card {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    color: var(--secondary);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-level-1);
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

.admissions-help-card {
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-level-1);
}

.admissions-help-card svg {
    width: 32px;
    height: 32px;
    color: var(--secondary);
    flex-shrink: 0;
}

.help-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 2px 0;
}

/* Colonne Droite : Carte Formulaire */
.admissions-form-wrapper {
    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-level-2);
}

/* Alertes Feedback */
.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    font-weight: 600;
}

.form-alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #ffdad6;
    color: #ba1a1a;
    border: 1px solid #ffb4ab;
}

/* Groupes de Champs */
.form-row {
    margin-bottom: var(--space-md);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral);
    margin-bottom: 0.4rem;
}

/* Inputs & Form Fields (Hauteur 48px, Radius 0.5rem) */
.form-input {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    border: 1px solid rgba(15, 41, 66, 0.2);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

/* État focus avec halo d'ambiance */
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.12);
}

/* Sélecteurs Radio Personnalisés (20px × 20px) */
.radio-cycle-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.radio-cycle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-cycle-label:hover {
    border-color: rgba(15, 41, 66, 0.3);
}

.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(15, 41, 66, 0.3);
    border-radius: 50%;
    outline: none;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-radio::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.custom-radio:checked {
    border-color: var(--primary);
}

.custom-radio:checked::before {
    transform: scale(1);
}

.radio-cycle-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* Case à cocher Personnalisée (20px × 20px, Rayon 4px) */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: var(--space-sm) 0;
}

.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(15, 41, 66, 0.3);
    border-radius: 4px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-text {
    font-size: 13px;
    color: var(--neutral);
    line-height: 1.5;
}

/* Bouton de Soumission Admission (Ambre Doré) */
.btn-submit-admission {
    width: 100%;
    height: 52px;
    background-color: var(--secondary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.3);
    cursor: pointer;
    margin-top: var(--space-sm);
    transition: all 0.25s ease;
}

.btn-submit-admission:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   16. RESPONSIVE ADMISSIONS
   ========================================================================== */
@media (max-width: 1023px) {
    .admissions-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 640px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .radio-cycle-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .admissions-form-wrapper {
        padding: var(--space-lg);
    }
}



/* ==========================================================================
   17. COMPENSATEUR DE DÉFILEMENT (STICKY OFFSET)
   ========================================================================== */
html {
    /* Évite que le header sticky de 80px ne masque le haut des sections ciblées */
    scroll-padding-top: 80px;
}

/* ==========================================================================
   18. FOOTER INSTITUTIONNEL
   ========================================================================== */
/* ==========================================================================
   18. FOOTER INSTITUTIONNEL
   ========================================================================== */
/* ==========================================================================
   18. FOOTER INSTITUTIONNEL
   ========================================================================== */
.main-footer {
    background-color: var(--primary);
    color: #eaf1ff;
    padding-top: var(--space-3xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-3xl);
}

/* Identité institutionnelle & Badges */
.footer-logo {
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.footer-desc {
    color: #ccdbf3;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.footer-accreditations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-accreditation {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: #ffdcc3;
    letter-spacing: 0.02em;
}

/* En-têtes & Listes de navigation */
.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 1px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #ccdbf3;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

/* Coordonnées & Horaires */
.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 13px;
    color: #ccdbf3;
    line-height: 1.5;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-hours {
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hours-detail {
    color: #a0aec0;
    font-size: 13px;
    line-height: 1.5;
}

/* Sous-barre légale */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #a0aec0;
    font-size: 13px;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: #a0aec0;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   19. RESPONSIVE FOOTER
   ========================================================================== */
@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-legal-links {
        gap: 1rem;
    }
}