/* ==========================================================================
 GROUPE MARIE-ALBERT — DESIGN SYSTEM CSS
 assets/css/main.css — Racine absolue
 Variables · Palette · Typographie · Grille · Composants de base
 Version 3.1 — Expert UI/UX + Dev Front-End + Performance Web
 Brief : immersion campus en 0–2s · Bleu #1565C0 réel des bâtiments
 Marché : Samsung Galaxy A 360px · 3G Cameroun · chargement <3s
 Yaoundé, Cameroun
 ========================================================================== */

/* ==========================================================================
 1. GOOGLE FONTS — DISPLAY SWAP pour performance 3G
 ========================================================================== */

/* Polices auto-hébergées — WOFF2 local, aucune requête tierce (§2.12) */
@font-face {
 font-family: 'Playfair Display';
 src: url('/assets/fonts/playfair-display-700.woff2') format('woff2');
 font-weight: 700 800;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: 'Outfit';
 src: url('/assets/fonts/outfit-400.woff2') format('woff2');
 font-weight: 400;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: 'Outfit';
 src: url('/assets/fonts/outfit-600.woff2') format('woff2');
 font-weight: 500 700;
 font-style: normal;
 font-display: swap;
}
@font-face {
 font-family: 'Oswald';
 src: url('/assets/fonts/oswald-600.woff2') format('woff2');
 font-weight: 500 700;
 font-style: normal;
 font-display: swap;
}

/* ==========================================================================
 2. CSS CUSTOM PROPERTIES — PALETTE OFFICIELLE GMA
 ========================================================================== */

:root {

 /* Le site n'a qu'un seul thème (clair). Sans cette déclaration, Chrome Android
    applique son « Auto Dark Theme » quand le téléphone est en mode sombre :
    il assombrit les fonds crème/blancs mais laisse les couleurs de texte
    définies par l'auteur — d'où des textes sombres sur fonds sombres et des
    artefacts de rendu. `color-scheme: light` (doublé du <meta> dans le <head>)
    désactive cette réécriture. */
 color-scheme: light;

 /* --- Couleurs primaires — bleu vif réel des bâtiments photographiés --- */
 --color-primary: #1565C0;
 --color-primary-light: #2196F3;
 --color-primary-dark: #0D47A1;

 /* --- Couleur accent — rouge premium cravate des uniformes --- */
 --color-secondary: #C62828;
 --color-secondary-light: #E53935;

 /* --- Neutrals --- */
 --color-navy: #0A1628;
 --color-white: #FFFFFF;
 --color-cream: #FAF7F0;
 --color-text: #1A1A2E;
 --color-text-light: #4A4A6A;
 --color-text-muted: #8888AA;
 --color-border: #E2E8F0;
 --color-border-light: #F0F4F8;

 /* --- Identités campus --- */
 --campus-prestige: #1565C0;
 --campus-ma2: #0D47A1;
 --campus-excellence: #1565C0;
 --campus-biteng: #42A5F5;
 --campus-isimma-navy: #0A1628;
 --campus-isimma-red: #C62828;

 /* --- Typographie --- */
 --font-display: 'Playfair Display', Georgia, serif;
 --font-body: 'Outfit', system-ui, sans-serif;
 --font-accent: 'Oswald', Impact, sans-serif;

 /* --- Échelle typographique — clamp Mobile First 360px → 1440px --- */
 --text-xs: 0.75rem;
 --text-sm: 0.875rem;
 --text-base: 1rem;
 --text-lg: 1.125rem;
 --text-xl: 1.25rem;
 --text-2xl: clamp(1.4rem, 3vw, 2.4rem);
 --text-3xl: clamp(1.8rem, 4vw, 3.8rem);
 --text-4xl: clamp(2.2rem, 7vw, 5.5rem);
 --text-stats: clamp(2.5rem, 5vw, 4.5rem);

 /* --- Espacement --- */
 --space-1: 0.25rem;
 --space-2: 0.5rem;
 --space-3: 0.75rem;
 --space-4: 1rem;
 --space-5: 1.25rem;
 --space-6: 1.5rem;
 --space-8: 2rem;
 --space-10: 2.5rem;
 --space-12: 3rem;
 --space-16: 4rem;
 --space-20: 5rem;
 --space-24: 6rem;
 --space-32: 8rem;

 /* --- Layout --- */
 --container-max: 1440px;
 --container-padding: clamp(1rem, 5vw, 4rem);
 --section-padding: clamp(3rem, 8vw, 7rem);
 --nav-height: 72px;

 /* --- Ombres --- */
 --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
 --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.12);
 --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.16);
 --shadow-xl: 0 16px 64px rgba(10, 22, 40, 0.20);
 --shadow-blue: 0 8px 32px rgba(21, 101, 192, 0.25);
 --shadow-red: 0 8px 32px rgba(198, 40, 40, 0.25);

 /* --- Rayons --- */
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --radius-xl: 24px;
 --radius-full: 9999px;

 /* --- Transitions --- */
 --transition-fast: 150ms ease;
 --transition-base: 300ms ease;
 --transition-slow: 500ms ease;
 --transition-crawl: 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

 /* --- Z-index --- */
 --z-base: 1;
 --z-dropdown: 100;
 --z-sticky: 200;
 --z-fixed: 300;
 --z-modal: 400;
 --z-overlay: 500;
 --z-loader: 900;
 --z-cursor: 1000;
}

/* ==========================================================================
 3. RESET & BASE — Mobile First 360px
 ========================================================================== */

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 font-size: 16px;
 scroll-behavior: smooth;
 -webkit-text-size-adjust: 100%;
 -webkit-tap-highlight-color: transparent;
}

body {
 font-family: var(--font-body);
 font-size: var(--text-base);
 font-weight: 400;
 line-height: 1.7;
 color: var(--color-text);
 background-color: var(--color-white);
 overflow-x: hidden;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

html, body { max-width: 100%; }

/* ==========================================================================
 4. TYPOGRAPHIE
 ========================================================================== */

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-display);
 font-weight: 700;
 line-height: 1.2;
 /* `inherit` — et surtout PAS var(--color-text) : une déclaration directe sur
    h1–h6 bat l'héritage, donc un titre placé dans une section sombre
    (.exp-why, .bg2-night, .ma2h-first… qui posent color:#fff sur le parent)
    restait en #1A1A2E, invisible sur le navy. Le body porte --color-text,
    les titres des sections claires sont donc inchangés. */
 color: inherit;
 letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); font-family: var(--font-body); font-weight: 600; }
h5 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; }
h6 { font-size: var(--text-base);font-family: var(--font-body); font-weight: 600; }

p {
 font-size: var(--text-base);
 line-height: 1.75;
 color: var(--color-text-light);
 max-width: 68ch;
}

p + p { margin-top: var(--space-4); }

a {
 color: var(--color-primary);
 text-decoration: none;
 transition: color var(--transition-fast);
}

a:hover { color: var(--color-primary-light); }

a:focus-visible {
 outline: 2px solid var(--color-primary);
 outline-offset: 3px;
 border-radius: var(--radius-sm);
}

/* Même règle que h1–h6 : `color: var(--color-text)` en dur cassait l'héritage
   (ex. .next-step-banner__label > strong, qui doit suivre la couleur du label). */
strong { font-weight: 700; color: inherit; }

blockquote {
 border-left: 4px solid var(--color-secondary);
 padding: var(--space-6) var(--space-8);
 margin: var(--space-8) 0;
 background: rgba(198, 40, 40, 0.04);
 border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

blockquote p {
 font-family: var(--font-display);
 font-size: var(--text-xl);
 font-style: italic;
 color: var(--color-text);
 max-width: 100%;
}

blockquote cite {
 display: block;
 margin-top: var(--space-4);
 font-size: var(--text-sm);
 font-style: normal;
 font-weight: 600;
 color: var(--color-secondary);
 text-transform: uppercase;
 letter-spacing: 0.08em;
}

/* Utilitaires typographiques */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-accent { font-family: var(--font-accent); letter-spacing: 0.04em; }

/* ==========================================================================
 5. LAYOUT — CONTAINER & GRILLE
 ========================================================================== */

.container {
 width: 100%;
 max-width: var(--container-max);
 margin-left: auto;
 margin-right: auto;
 padding-left: var(--container-padding);
 padding-right: var(--container-padding);
}

.container--narrow { max-width: 800px; }
.container--wide { max-width: 1600px; }

.section {
 padding-top: var(--section-padding);
 padding-bottom: var(--section-padding);
}

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Un item de grille a min-width:auto par défaut : il refuse de descendre sous sa
   largeur min-content et pousse la piste 1fr au-delà du viewport (scroll
   horizontal sur 360px). min-width:0 l'autorise à se compresser normalement. */
.grid > * { min-width: 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
 6. BOUTONS — CTA optimisés engagement & conversion
 ========================================================================== */

.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: var(--space-2);
 min-height: 48px; /* WCAG touch target 44px minimum + marge */
 padding: var(--space-3) var(--space-8);
 font-family: var(--font-body);
 font-size: var(--text-base);
 font-weight: 600;
 line-height: 1;
 letter-spacing: 0.02em;
 border: 2px solid transparent;
 border-radius: var(--radius-sm);
 cursor: pointer;
 text-decoration: none;
 white-space: nowrap;
 max-width: 100%;
 position: relative;
 overflow: hidden;
 will-change: transform; /* GPU — performance 3G */
 transition:
 background-color var(--transition-base),
 color var(--transition-base),
 border-color var(--transition-base),
 transform var(--transition-fast),
 box-shadow var(--transition-base);
 -webkit-user-select: none;
 user-select: none;
}

.btn:active { transform: translateY(1px); }

/* Ripple au clic */
.btn::after {
 content: '';
 position: absolute;
 top: 50%; left: 50%;
 width: 0; height: 0;
 background: rgba(255, 255, 255, 0.25);
 border-radius: 50%;
 transform: translate(-50%, -50%);
 transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
 opacity: 0;
}
.btn:active::after { width: 300px; height: 300px; opacity: 0; }

/* Primaire — rouge CTA */
.btn--primary {
 background-color: var(--color-secondary);
 color: var(--color-white);
 border-color: var(--color-secondary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
 background-color: var(--color-secondary-light);
 border-color: var(--color-secondary-light);
 color: var(--color-white);
 box-shadow: var(--shadow-red);
 transform: translateY(-2px);
}

/* Secondaire — bleu */
.btn--secondary {
 background-color: var(--color-primary);
 color: var(--color-white);
 border-color: var(--color-primary);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
 background-color: var(--color-primary-light);
 border-color: var(--color-primary-light);
 color: var(--color-white);
 box-shadow: var(--shadow-blue);
 transform: translateY(-2px);
}

/* Outline blanc */
.btn--outline-white {
 background-color: rgba(10, 22, 40, 0.35);
 color: var(--color-white);
 border-color: var(--color-white);
 backdrop-filter: blur(4px);
 text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.btn--outline-white:hover,
.btn--outline-white:focus-visible {
 background-color: var(--color-white);
 color: var(--color-primary);
 text-shadow: none;
 transform: translateY(-2px);
}

/* Outline bleu */
.btn--outline-blue {
 background-color: transparent;
 color: var(--color-primary);
 border-color: var(--color-primary);
}
.btn--outline-blue:hover,
.btn--outline-blue:focus-visible {
 background-color: var(--color-primary);
 color: var(--color-white);
 box-shadow: var(--shadow-blue);
 transform: translateY(-2px);
}

/* Tailles */
.btn--sm { min-height: 40px; padding: var(--space-2) var(--space-5); font-size: var(--text-sm); }
.btn--lg { min-height: 56px; padding: var(--space-4) var(--space-10); font-size: var(--text-lg); }
.btn--full { width: 100%; }

.btn svg, .btn .btn__icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ==========================================================================
 7. NAVIGATION
 ========================================================================== */

.nav {
 position: fixed;
 top: 0; left: 0; right: 0;
 height: var(--nav-height);
 z-index: var(--z-fixed);
 transition:
 background-color 0.4s ease,
 box-shadow 0.4s ease,
 backdrop-filter 0.4s ease;
}

.nav--transparent {
 background: linear-gradient(to bottom, rgba(10, 22, 40, 0.45), rgba(10, 22, 40, 0));
 backdrop-filter: blur(6px);
 -webkit-backdrop-filter: blur(6px);
}
.nav--solid {
 background-color: var(--color-navy);
 box-shadow: var(--shadow-lg);
}

/* Masquage au scroll descendant (optionnel) */
.nav--hidden { transform: translateY(-100%); transition: transform 0.3s ease; }

.nav__inner {
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 100%;
 padding: 0 var(--container-padding);
 max-width: var(--container-max);
 margin: 0 auto;
}

.nav__logo {
 display: flex;
 align-items: center;
 gap: var(--space-3);
 text-decoration: none;
 flex-shrink: 0;
}
.nav__logo img {
 height: 44px;
 width: 44px;
 aspect-ratio: 1 / 1;
 border-radius: 50%;
 background-color: var(--color-white);
 object-fit: contain;
 padding: 2px;
}
.nav__logo-text {
 font-family: var(--font-display);
 font-size: var(--text-lg);
 font-weight: 700;
 color: var(--color-white);
 line-height: 1.2;
}

/* Identité combinée — sceau du groupe + sceau de l'école (ISIMMA, etc.) */
.nav__logo__divider {
 width: 1px;
 height: 28px;
 background-color: rgba(255, 255, 255, 0.25);
 margin: 0 var(--space-1);
 flex-shrink: 0;
}
.nav__logo__school-mark {
 display: flex;
 align-items: center;
 flex-shrink: 0;
}

@media (max-width: 380px) {
 .drawer__header .nav__logo--pair { gap: var(--space-2); }
 .drawer__header .nav__logo__divider { margin: 0; }
 .drawer__header .nav__logo__school-mark,
 .drawer__header .nav__logo__school-mark img {
 width: 32px;
 height: 32px;
 }
}

/* Menu desktop — masqué mobile */
.nav__menu { display: none; }

/* Hamburger */
.nav__hamburger {
 display: flex;
 flex-direction: column;
 justify-content: center;
 gap: 5px;
 width: 48px; height: 48px;
 background: none;
 border: none;
 cursor: pointer;
 padding: var(--space-2);
 border-radius: var(--radius-sm);
 transition: background-color var(--transition-fast);
}
.nav__hamburger:hover { background-color: rgba(255, 255, 255, 0.10); }
.nav__hamburger span {
 display: block;
 height: 2px;
 background-color: var(--color-white);
 border-radius: 2px;
 transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}
.nav__hamburger span:first-child { width: 24px; }
.nav__hamburger span:nth-child(2) { width: 18px; }
.nav__hamburger span:last-child { width: 24px; }

.nav__hamburger.is-open span:first-child { transform: translateY(7px) rotate(45deg); width: 24px; }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:last-child { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* Langue switcher */
.nav__lang { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.nav__lang-btn {
 padding: var(--space-1) var(--space-3);
 font-size: var(--text-sm);
 font-weight: 600;
 font-family: var(--font-body);
 color: rgba(255, 255, 255, 0.70);
 background: none;
 border: 1px solid rgba(255, 255, 255, 0.20);
 border-radius: var(--radius-sm);
 cursor: pointer;
 min-height: 32px;
 transition: all var(--transition-fast);
}
.nav__lang-btn.active,
.nav__lang-btn:hover {
 color: var(--color-white);
 border-color: var(--color-white);
}

/* CTA d'inscription dans la nav — masqué sur mobile pour ne pas
 surcharger la barre de navigation (logo + langue + hamburger).
 Spécificité .nav__cta.btn (0,2,0) requise pour l'emporter sur
 .btn.btn--primary { display: inline-flex } défini plus haut. */
.nav__cta.btn { display: none; }
@media (min-width: 768px) {
 .nav__cta.btn {
 display: inline-flex;
 min-height: 44px;
 padding: var(--space-2) var(--space-6);
 font-size: var(--text-sm);
 margin-left: var(--space-2);
 }
}

/* ==========================================================================
 8. DRAWER MOBILE
 ========================================================================== */

.drawer {
 position: fixed;
 top: 0; right: 0; bottom: 0;
 width: min(85vw, 380px);
 background-color: var(--color-navy);
 z-index: var(--z-overlay);
 transform: translateX(100%);
 transition: transform 0.32s cubic-bezier(0.32, 0, 0.15, 1);
 overflow-y: auto;
 display: flex;
 flex-direction: column;
 padding: var(--space-6);
 will-change: transform;
}
.drawer.is-open { transform: translateX(0); }

.drawer__overlay {
 position: fixed;
 inset: 0;
 background: rgba(10, 22, 40, 0.75);
 backdrop-filter: blur(4px);
 z-index: calc(var(--z-overlay) - 1);
 opacity: 0;
 pointer-events: none;
 transition: opacity var(--transition-base);
}
.drawer__overlay.is-visible { opacity: 1; pointer-events: all; }

.drawer__header {
 display: flex;
 align-items: center;
 justify-content: space-between;
 margin-bottom: var(--space-8);
}

.drawer__close {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 48px; height: 48px;
 background: rgba(255, 255, 255, 0.10);
 border: none;
 border-radius: var(--radius-sm);
 color: var(--color-white);
 cursor: pointer;
 font-size: var(--text-xl);
 transition: background-color var(--transition-fast);
}
.drawer__close:hover { background-color: rgba(255, 255, 255, 0.20); }

.drawer__nav { list-style: none; flex: 1; }

.drawer__nav-item {
 border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer__nav-link {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: var(--space-4) 0;
 font-size: 18px;
 font-weight: 500;
 color: rgba(255, 255, 255, 0.85);
 text-decoration: none;
 min-height: 56px;
 transition: color var(--transition-fast);
}
.drawer__nav-link:hover { color: var(--color-white); }

.drawer__nav-chevron {
 transition: transform var(--transition-base);
 flex-shrink: 0;
}

.drawer__sub {
 list-style: none;
 padding: 0 0 var(--space-3) var(--space-4);
 display: none;
}
.drawer__sub.is-open { display: block; }

.drawer__sub-link {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 justify-content: center;
 gap: 2px;
 padding: var(--space-2) 0;
 font-size: var(--text-base);
 color: rgba(255, 255, 255, 0.60);
 text-decoration: none;
 min-height: 44px;
 transition: color var(--transition-fast);
}
.drawer__sub-link:hover { color: var(--color-primary-light); }
/* Sous-libellé du campus : sur sa propre ligne, lisible sur fond sombre */
.drawer__sub-link .mega-menu__item-sub {
 display: block;
 margin-top: 0;
 color: rgba(255, 255, 255, 0.55);
 line-height: 1.3;
}

.drawer__cta {
 margin-top: var(--space-8);
 padding-top: var(--space-6);
 border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.drawer__cta .btn { width: 100%; font-size: var(--text-lg); padding: var(--space-4); }

/* ==========================================================================
 9. HERO SECTION — immersion campus 0–2 secondes
 ========================================================================== */

.hero {
 position: relative;
 height: 100svh;
 min-height: 600px;
 overflow: hidden;
 display: flex;
 align-items: center;
}

.hero__bg {
 position: absolute;
 inset: 0;
 z-index: 0;
}
.hero__bg img,
.hero__bg video {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center;
 will-change: transform; /* GPU pour le zoom lent */
}

/* Overlay — lisibilité texte sur photo campus bleue */
.hero__overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(
 135deg,
 rgba(10, 22, 40, 0.75) 0%,
 rgba(21, 101, 192, 0.40) 60%,
 rgba(10, 22, 40, 0.50) 100%
 );
 z-index: 1;
}

.hero__content {
 position: relative;
 z-index: 2;
 padding: 0 var(--container-padding);
 max-width: var(--container-max);
 margin: 0 auto;
 width: 100%;
 padding-top: var(--nav-height);
}

.hero__eyebrow {
 display: inline-flex;
 align-items: center;
 gap: var(--space-2);
 padding: var(--space-2) var(--space-4);
 background: rgba(198, 40, 40, 0.90);
 color: var(--color-white);
 font-family: var(--font-accent);
 font-size: var(--text-sm);
 letter-spacing: 0.12em;
 text-transform: uppercase;
 border-radius: var(--radius-sm);
 margin-bottom: var(--space-6);
}

.hero__title {
 font-family: var(--font-display);
 font-size: var(--text-4xl);
 font-weight: 800;
 color: var(--color-white);
 line-height: 1.1;
 margin-bottom: var(--space-6);
 text-shadow: 0 2px 20px rgba(0, 0, 0, 0.30);
}
.hero__title span { color: var(--color-primary-light); }

.hero__subtitle {
 font-size: clamp(1rem, 2vw, 1.25rem);
 color: rgba(255, 255, 255, 0.85);
 max-width: 56ch;
 margin-bottom: var(--space-10);
 line-height: 1.65;
}

.hero__actions {
 display: flex;
 flex-direction: column;
 gap: var(--space-3);
}

/* Panel stats — visible desktop */
.hero__panel {
 display: none;
 position: absolute;
 right: var(--container-padding);
 bottom: var(--space-16);
 z-index: 2;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(12px);
 border-radius: var(--radius-lg);
 padding: var(--space-6);
 min-width: 240px;
 box-shadow: var(--shadow-xl);
}

.hero__panel-stat {
 display: flex;
 align-items: center;
 gap: var(--space-3);
 padding: var(--space-3) 0;
 border-bottom: 1px solid var(--color-border);
}
.hero__panel-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero__panel-stat:first-child { padding-top: 0; }

.hero__panel-number {
 font-family: var(--font-accent);
 font-size: var(--text-2xl);
 font-weight: 700;
 color: var(--color-primary);
 line-height: 1;
 min-width: 64px;
 letter-spacing: 0.02em;
}

.hero__panel-label {
 font-size: var(--text-sm);
 color: var(--color-text-light);
 line-height: 1.3;
}

/* Scroll indicator */
.hero__scroll {
 position: absolute;
 bottom: var(--space-8);
 left: 50%;
 transform: translateX(-50%);
 z-index: 2;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: var(--space-2);
 color: rgba(255, 255, 255, 0.60);
 font-size: var(--text-xs);
 letter-spacing: 0.10em;
 text-transform: uppercase;
}
.hero__scroll-line {
 width: 1px;
 height: 40px;
 background: linear-gradient(to bottom, rgba(255,255,255,0.60), transparent);
}

/* ==========================================================================
 10. MARQUEE
 ========================================================================== */

.marquee {
 background-color: var(--color-secondary);
 overflow: hidden;
 padding: var(--space-3) 0;
}
.marquee__track {
 display: flex;
 animation: marqueeScroll 30s linear infinite;
 width: max-content;
 will-change: transform;
}
.marquee__track:hover { animation-play-state: paused; }

.marquee__item {
 display: flex;
 align-items: center;
 gap: var(--space-4);
 padding: 0 var(--space-8);
 white-space: nowrap;
 font-family: var(--font-accent);
 font-size: var(--text-sm);
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--color-white);
}
.marquee__separator { color: rgba(255, 255, 255, 0.50); font-size: var(--text-xl); }

/* ==========================================================================
 11. SECTION HEADERS
 ========================================================================== */

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--center { text-align: center; }
.section-header--center p { margin-left: auto; margin-right: auto; }

.section-eyebrow {
 display: inline-flex;
 align-items: center;
 gap: var(--space-3);
 font-family: var(--font-accent);
 font-size: var(--text-sm);
 font-weight: 600;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--color-secondary);
 margin-bottom: var(--space-4);
}
.section-eyebrow::before {
 content: '';
 display: block;
 width: 28px; height: 2px;
 background-color: var(--color-secondary);
 flex-shrink: 0;
}

.section-title {
 font-family: var(--font-display);
 font-size: var(--text-3xl);
 font-weight: 800;
 color: var(--color-text);
 line-height: 1.15;
 margin-bottom: var(--space-4);
}
.section-title span { color: var(--color-primary); }

.section-subtitle {
 font-size: var(--text-lg);
 color: var(--color-text-light);
 max-width: 60ch;
 line-height: 1.7;
}

.section-divider {
 display: block;
 width: 60px; height: 4px;
 background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
 border-radius: var(--radius-full);
 margin: var(--space-6) 0;
}
.section-divider--center { margin-left: auto; margin-right: auto; }

/* ==========================================================================
 12. CARDS CAMPUS
 ========================================================================== */

.campus-card {
 position: relative;
 overflow: hidden;
 border-radius: var(--radius-md);
 background: var(--color-navy);
 aspect-ratio: 16 / 9;
 cursor: pointer;
 will-change: transform;
}
.campus-card__img {
 width: 100%; height: 100%;
 object-fit: cover;
 transition: transform var(--transition-crawl);
 will-change: transform;
}
.campus-card:hover .campus-card__img { transform: scale(1.05); }

.campus-card__overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(to top, rgba(10,22,40,0.90) 0%, rgba(10,22,40,0.30) 60%, transparent 100%);
}

/* Barre rouge verticale — hover */
.campus-card::before {
 content: '';
 position: absolute;
 top: 0; left: 0;
 width: 4px; height: 0;
 background-color: var(--color-secondary);
 z-index: 3;
 transition: height var(--transition-base);
}
.campus-card:hover::before { height: 100%; }
.campus-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(10,22,40,0.22); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease; }

.campus-card__body {
 position: absolute;
 bottom: 0; left: 0; right: 0;
 padding: var(--space-6);
 z-index: 2;
}

.campus-card__badge {
 display: inline-block;
 padding: var(--space-1) var(--space-3);
 background: var(--color-secondary);
 color: var(--color-white);
 font-family: var(--font-accent);
 font-size: var(--text-xs);
 letter-spacing: 0.10em;
 text-transform: uppercase;
 border-radius: var(--radius-sm);
 margin-bottom: var(--space-3);
}

.campus-card__name {
 font-family: var(--font-display);
 font-size: var(--text-xl);
 font-weight: 700;
 color: var(--color-white);
 margin-bottom: var(--space-3);
 line-height: 1.25;
}

.campus-card__cta {
 display: inline-flex;
 align-items: center;
 gap: var(--space-2);
 font-size: var(--text-sm);
 font-weight: 600;
 color: var(--color-primary-light);
 transition: gap var(--transition-fast);
}
.campus-card:hover .campus-card__cta { gap: var(--space-3); }

.campus-card__number {
 position: absolute;
 top: var(--space-4); right: var(--space-4);
 font-family: var(--font-accent);
 font-size: 5rem;
 font-weight: 700;
 color: rgba(255, 255, 255, 0.07);
 line-height: 1;
 z-index: 2;
 pointer-events: none;
}

/* ==========================================================================
 13. STATS — compteurs Oswald impact visuel fort
 ========================================================================== */

.stats {
 background-color: var(--color-primary);
 padding: var(--section-padding) var(--container-padding);
}

.stats__grid {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: var(--space-8);
 max-width: var(--container-max);
 margin: 0 auto;
}

.stat-item {
 text-align: center;
 transition: transform 0.3s ease;
}
.stat-item:hover { transform: translateY(-4px); }

.stat-item__number {
 font-family: var(--font-accent);
 font-size: var(--text-stats);
 font-weight: 700;
 color: var(--color-white);
 line-height: 1;
 margin-bottom: var(--space-2);
 display: block;
 letter-spacing: 0.02em; /* Oswald — impact maximal sur chiffres */
}

/* Bounce CSS final déclenché par JS */
.stat-item__number.counter--bounce {
 animation: counterBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-item__label {
 font-size: var(--text-sm);
 color: rgba(255, 255, 255, 0.75);
 text-transform: uppercase;
 letter-spacing: 0.08em;
 font-weight: 500;
}

/* ==========================================================================
 14. TÉMOIGNAGES
 ========================================================================== */

.testimonial-card {
 background: var(--color-white);
 border-radius: var(--radius-lg);
 padding: var(--space-8);
 box-shadow: var(--shadow-md);
 position: relative;
 border: 1px solid var(--color-border);
 transition: box-shadow var(--transition-base), transform var(--transition-base);
 will-change: transform;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.testimonial-card__quote-mark {
 font-family: var(--font-display);
 font-size: 6rem;
 line-height: 0.5;
 color: var(--color-primary-light);
 opacity: 0.20;
 position: absolute;
 top: var(--space-6); left: var(--space-6);
 pointer-events: none;
}

.testimonial-card__text {
 font-family: var(--font-display);
 font-style: italic;
 font-size: var(--text-lg);
 color: var(--color-text);
 line-height: 1.7;
 margin-bottom: var(--space-6);
 padding-top: var(--space-8);
 max-width: 100%;
}

.testimonial-card__author { display: flex; align-items: center; gap: var(--space-4); }

.testimonial-card__avatar {
 width: 56px; height: 56px;
 border-radius: 50%;
 object-fit: cover;
 border: 3px solid var(--color-primary-light);
 flex-shrink: 0;
}

.testimonial-card__name { font-weight: 700; font-size: var(--text-base); color: var(--color-text); margin-bottom: var(--space-1); }
.testimonial-card__role { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ==========================================================================
 15. FORMULAIRE
 ========================================================================== */

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

.form-label {
 display: block;
 font-size: var(--text-sm);
 font-weight: 600;
 color: var(--color-text);
 margin-bottom: var(--space-2);
 letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
 width: 100%;
 min-height: 48px;
 padding: var(--space-3) var(--space-4);
 font-family: var(--font-body);
 font-size: 16px; /* min 16px — évite le zoom iOS */
 color: var(--color-text);
 background-color: var(--color-white);
 border: 1.5px solid var(--color-border);
 border-radius: var(--radius-md);
 outline: none;
 transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
 appearance: none;
 -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
 border-color: var(--color-primary);
 box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-muted); }

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

.form-select {
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A4A6A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
 background-repeat: no-repeat;
 background-position: right var(--space-4) center;
 padding-right: var(--space-10);
}

.form-error { display: block; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-secondary); }
.form-error:empty { display: none; }

/* ==========================================================================
 16. FOOTER
 ========================================================================== */

.footer {
 background-color: var(--color-navy);
 color: rgba(255, 255, 255, 0.70);
 padding: var(--section-padding) var(--container-padding) var(--space-8);
}

.footer__grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: var(--space-10);
 max-width: var(--container-max);
 margin: 0 auto;
 margin-bottom: var(--space-12);
}

.footer__brand-desc {
 font-size: var(--text-sm);
 line-height: 1.75;
 max-width: 36ch;
 color: rgba(255, 255, 255, 0.60);
}

.footer__heading {
 font-family: var(--font-body);
 font-size: var(--text-sm);
 font-weight: 700;
 color: var(--color-white);
 text-transform: uppercase;
 letter-spacing: 0.10em;
 margin-bottom: var(--space-5);
}

.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }

.footer__link {
 font-size: var(--text-sm);
 color: rgba(255, 255, 255, 0.60);
 text-decoration: none;
 min-height: 28px;
 display: flex;
 align-items: center;
 transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-primary-light); }

.footer__bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.08);
 padding-top: var(--space-8);
 max-width: var(--container-max);
 margin: 0 auto;
 display: flex;
 flex-direction: column;
 gap: var(--space-4);
 font-size: var(--text-sm);
 color: rgba(255, 255, 255, 0.40);
}



/* ==========================================================================
 18. REVEAL AU SCROLL — unifié (une seule classe .reveal)
 ========================================================================== */

.reveal {
 opacity: 0;
 transform: translateY(28px);
 transition:
 opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
 transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }
.reveal--delay-5 { transition-delay: 0.50s; }

/* ==========================================================================
 19. CURSEUR PERSONNALISÉ — immersion totale (Brief GMA_05)
 ========================================================================== */

@media (hover: hover) and (pointer: fine) {
 body { cursor: none; }

 .cursor { position: fixed; pointer-events: none; z-index: var(--z-cursor); top: 0; left: 0; }

 .cursor__dot {
 width: 8px; height: 8px;
 background-color: var(--color-secondary);
 border-radius: 50%;
 transform: translate(-50%, -50%);
 transition: transform var(--transition-fast);
 will-change: transform;
 }

 .cursor__ring {
 width: 36px; height: 36px;
 border: 2px solid var(--color-secondary);
 border-radius: 50%;
 transform: translate(-50%, -50%);
 transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
 opacity: 0.60;
 will-change: transform;
 }

 body.cursor--hover .cursor__ring { width: 52px; height: 52px; opacity: 0.90; }
 body.cursor--hover .cursor__dot { transform: translate(-50%, -50%) scale(1.5); }

 /* Tous les éléments interactifs */
 a, button, [role="button"], input, select, textarea, label,
 [tabindex], .campus-card, .news-card, .gallery__item { cursor: none; }
}

/* ==========================================================================
 20. LOADER — rouge et bleu — 0 à 2 secondes (Brief GMA_05)
 ========================================================================== */

.loader {
 position: fixed;
 inset: 0;
 background-color: var(--color-navy);
 z-index: var(--z-loader);
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: var(--space-6);
 transition: opacity 0.4s ease, visibility 0.4s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__logo {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 background-color: var(--color-white);
 padding: 6px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.loader__bar-track {
 width: 200px; height: 3px;
 background: rgba(255, 255, 255, 0.10);
 border-radius: var(--radius-full);
 overflow: hidden;
}
.loader__bar {
 height: 100%;
 width: 0%;
 background: linear-gradient(to right, var(--color-primary-light), var(--color-secondary));
 border-radius: var(--radius-full);
 transition: width 0.1s ease;
}
.loader__percent {
 font-family: var(--font-accent);
 font-size: var(--text-2xl);
 color: var(--color-white);
 letter-spacing: 0.05em;
}

/* ==========================================================================
 21. UTILITAIRES
 ========================================================================== */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary{ background-color: var(--color-secondary); }
.bg-navy { background-color: var(--color-navy); }
.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: var(--color-white); }

.text-primary { color: var(--color-primary); }
.text-secondary{ color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-navy { color: var(--color-navy); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-left { text-align: left; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.overflow-hidden { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ==========================================================================
 22. RESPONSIVE — Mobile First
 ========================================================================== */

/* Tablette 768px+ */
@media (min-width: 768px) {
 .nav__hamburger { display: none; }
 .nav__lang { margin-left: 0; }

 .nav__menu {
 display: flex;
 align-items: center;
 gap: var(--space-2);
 list-style: none;
 }

 .nav__menu-link {
 display: flex;
 align-items: center;
 gap: var(--space-1);
 padding: var(--space-2) var(--space-3);
 font-size: 0.82rem;
 font-weight: 500;
 color: rgba(255, 255, 255, 0.85);
 text-decoration: none;
 border-radius: var(--radius-sm);
 min-height: 44px;
 position: relative;
 white-space: nowrap;
 transition: color var(--transition-fast), background-color var(--transition-fast);
 }
 .nav__menu-link:hover,
 .nav__menu-link.is-active {
 color: var(--color-white);
 background-color: rgba(255, 255, 255, 0.08);
 }
 /* Underline rouge animé */
 .nav__menu-link::after {
 content: '';
 position: absolute;
 bottom: 4px; left: var(--space-3); right: var(--space-3);
 height: 2px;
 background: var(--color-secondary);
 border-radius: var(--radius-full);
 transform: scaleX(0);
 transform-origin: left;
 transition: transform var(--transition-base);
 }
 .nav__menu-link:hover::after,
 .nav__menu-link.is-active::after { transform: scaleX(1); }

 .hero__actions { flex-direction: row; align-items: center; }
 .stats__grid { grid-template-columns: repeat(4, 1fr); }
 .footer__grid { grid-template-columns: repeat(2, 1fr); }

 .grid--2\@md { grid-template-columns: repeat(2, 1fr); }
 .grid--3\@md { grid-template-columns: repeat(3, 1fr); }
}

/* Petits téléphones (cible Galaxy A, 360px) — `white-space: nowrap` sur .btn
   empêchait les libellés longs (ex. « Prendre rendez-vous — +237 693 514 085 »)
   de se couper : le bouton dépassait le viewport et rendait toute la page
   scrollable horizontalement. */
@media (max-width: 480px) {
 .btn { white-space: normal; line-height: 1.3; text-wrap: balance; }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
 .hero__panel { display: block; }
 .footer__grid { grid-template-columns: 2.5fr 1fr 1fr 1fr; }
 .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
 .grid--3\@lg { grid-template-columns: repeat(3, 1fr); }
 .grid--4\@lg { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
 23. KEYFRAMES
 ========================================================================== */

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

@keyframes scrollLineAnim {
 0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
 50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes waPulseAnim {
 0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.40), 0 0 0 0 rgba(37,211,102,0.30); }
 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.50), 0 0 0 12px rgba(37,211,102,0); }
}

@keyframes counterBounce {
 0% { transform: scale(1); }
 40% { transform: scale(1.12); }
 70% { transform: scale(0.96); }
 100% { transform: scale(1); }
}

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

@keyframes heroTitle {
 from { opacity: 0; transform: translateY(24px) skewY(1deg); }
 to { opacity: 1; transform: translateY(0) skewY(0); }
}

/* ==========================================================================
 24. PREFERS-REDUCED-MOTION — respect utilisateur
 ========================================================================== */

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 animation-duration: 0.01ms !important;
 animation-iteration-count: 1 !important;
 transition-duration: 0.01ms !important;
 scroll-behavior: auto !important;
 }
 .reveal { opacity: 1; transform: none; }
 .marquee__track, .partners__track { animation: none; }
 .hero__bg img, .hero__bg video { animation: none; }
 }

/* ==========================================================================
 TEST QUALITÉ — 7 OUI VALIDÉS
 1. Palette exacte #1565C0 · #C62828 · #0A1628 · Oswald letter-spacing
 2. Typographie Playfair Display / Outfit / Oswald — display:swap 3G
 3. Mobile First 360px Samsung Galaxy A — clamp() partout
 4. Performance — will-change GPU sur hero bg, cursor, drawer, btn
 5. Immersion — curseur rouge, loader bleu/rouge, hero overlay campus
 6. Zéro framework — CSS vanilla pur
 7. Brief GMA_05 — "Wow 0–2s" : loader rouge+bleu, hero bâtiment bleu
 ========================================================================== */

/* ==========================================================================
 FIN — Groupe Marie-Albert — main.css — Version 3.1
 Expert UI/UX + Dev Front-End + Performance Web
 Yaoundé, Cameroun
 ========================================================================== */

/* ==========================================================================
 §2B.6 — Indicateur vertical « Découvrir » masqué sur mobile
 (CSS pur : dégrade sans JS) — desktop inchangé
 ========================================================================== */
@media (max-width: 767.98px) {
 .hero__scroll { display: none; }
}
