/**
 * Ecole Ruban Vert — style.css  (version simple)
 *
 * Un seul fichier CSS, aucune animation de défilement.
 * À charger avec main.js. Aucune modification du HTML nécessaire.
 *
 * Sommaire
 *  01. Palette et variables
 *  02. Base
 *  03. Boutons
 *  04. Barre du haut + header + menu hamburger
 *  05. Hero (mots de bienvenue qui défilent)
 *  06. Sections et titres
 *  07. Accueil : liens rapides, à propos, chiffres, valeurs, programmes, parcours, témoignages, actualités, contact
 *  08. Pages intérieures
 *  09. Footer, recherche, retour en haut
 *  10. Responsive
 *  11. Logo, sections découpées, formes qui se construisent, images à la place des icônes
 *  12. Splash screen
 */

/* ============================================================
   01. PALETTE ET VARIABLES
   ============================================================ */
:root {
  /* Couleurs principales */
  --green:   #00453b;
  --cream:   #eeeae5;
  --black:   #000000;
  --white:   #ffffff;

  /* Couleurs secondaires */
  --magenta: #8c044e;
  --orange:  #ee7917;
  --yellow:  #ffd600;
  --blue:    #17a3dd;

  /* Alias : le HTML/PHP existant utilise encore ces noms dans des styles en ligne */
  --green-dark: var(--green);
  --green-primary: var(--green);
  --green-medium: var(--green);
  --green-light: #2d6e63;
  --green-pale: var(--cream);
  --green-bg: var(--cream);
  --accent: var(--orange);
  --accent-light: var(--yellow);
  --gold: var(--orange);
  --gold-light: var(--yellow);
  --navy: var(--black);
  --burgundy: var(--magenta);
  --cream-bg: var(--cream);
  --dark: var(--black);
  --gray: #3b3b3b;
  --gray-light: var(--cream);
  --ui-border: rgba(0, 0, 0, .12);

  --radius: 20px;
  --radius-lg: 28px;
  --transition: .25s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: var(--font-heading);
  --font-body:    'Inter', 'Segoe UI', Arial, sans-serif;
  --font-accent:  var(--font-body);
  --font-mono:    var(--font-body);
}

/* ============================================================
   02. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--black);
  font-family: var(--font-body); font-size: 1.05rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; margin: 0 0 .6em; color: var(--black); }
p { margin: 0 0 1rem; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mb-1 { margin-bottom: 1rem; }

/* L'ancien écran d'intro et les anciens éléments décoratifs ne sont plus utilisés */
#erv-intro, .hero-3d-badge, .hero-dots, .hero-stats, .news-ticker, .trust-strip,
.divider, .learning-pagination, .sx-progress, .cursor, .pt { display: none !important; }

/* ============================================================
   03. BOUTONS — gros et lisibles
   ============================================================ */
.btn-primary, .btn-secondary, .btn-cta, .btn-submit, .read-more, .btn-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.1rem 2.2rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--black); }
.btn-secondary { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--white); }
.btn-cta, .btn-submit, .btn-apply { background: var(--yellow); color: var(--black); }
.btn-cta:hover, .btn-submit:hover, .btn-apply:hover { background: var(--black); color: var(--white); }
.btn-submit { width: 100%; font-size: 1.05rem; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.read-more { margin-top: auto; align-self: flex-start; background: var(--cream); color: var(--green); padding: .95rem 1.8rem; }
.read-more:hover { background: var(--green); color: var(--white); }

/* ============================================================
   04. BARRE DU HAUT + HEADER + MENU HAMBURGER
   ============================================================ */
.top-bar { background: var(--green); color: rgba(255, 255, 255, .9); padding: .55rem 0; font-size: .82rem; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.top-bar a { color: rgba(255, 255, 255, .9); }
.top-bar a:hover { color: var(--yellow); }
.top-bar-social, .top-bar-links, .top-bar-portals, .lang-switcher { display: flex; align-items: center; gap: .9rem; }
.top-bar-social a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: .75rem; }
.top-bar-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.lang-switcher a { padding: .15rem .55rem; font-weight: 700; border-radius: 6px; }
.lang-switcher a.active, .lang-switcher a:hover { background: var(--yellow); color: var(--black); }

#main-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--ui-border); }
#main-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }

.site-logo { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.site-logo img { height: 58px; width: auto; }
.site-logo .logo-placeholder { width: 56px !important; height: 56px !important; border-radius: 14px !important; background: var(--green) !important; }
.logo-text { line-height: 1.15; }
.logo-text .school-name { display: block; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--green); }
.logo-text .school-sub { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }

.nav-actions { display: flex; align-items: center; gap: .8rem; margin-left: auto; }
.btn-apply { padding: .85rem 1.6rem; font-size: .92rem; }
.nav-search-btn, .nav-toggle {
  width: 55px; height: 45px; border-radius: 10px; padding: 0; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nav-search-btn { border: 2px solid var(--green); background: transparent; color: var(--green); font-size: 1.1rem; }
.nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 2px solid var(--green); background: var(--green); }
.nav-toggle span { display: block; width: 24px; height: 3px; border-radius: 2px; background: var(--white); transition: width .25s ease, background .25s ease, transform .25s ease; }
/* Survol : le rectangle se soulève, change de couleur ; les barres du hamburger se décalent */
.nav-search-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.nav-toggle:hover { background: var(--yellow); border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.nav-toggle:hover span { background: var(--black); }
.nav-toggle:hover span:nth-child(1) { width: 16px; transform: translateX(-4px); }
.nav-toggle:hover span:nth-child(3) { width: 16px; transform: translateX(4px); }
.nav-search-btn:active, .nav-toggle:active { transform: translateY(0); box-shadow: none; }

/* Menu vertical : un panneau qui s'ouvre à droite */
.main-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1500;
  width: min(460px, 100%); margin: 0; padding: 5.5rem 2rem 2.5rem; overflow-y: auto;
  background: var(--green); color: var(--white);
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s ease, visibility 0s .3s;
}
.main-nav.open { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.nav-backdrop { position: fixed; inset: 0; z-index: 1400; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.nav-backdrop.open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.nav-close {
  position: absolute; top: 1.2rem; right: 1.4rem; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: var(--white);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.nav-close:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

.nav-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.nav-item { border-bottom: 1px solid rgba(255, 255, 255, .18); }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; color: var(--white);
  font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; line-height: 1.2;
}
.nav-link:hover, .nav-item.active > .nav-link, .nav-item.open > .nav-link { color: var(--yellow); }
.nav-arrow { font-size: .8rem; transition: transform var(--transition); }
.nav-item.open > .nav-link .nav-arrow { transform: rotate(180deg); }

.dropdown, .sub-dropdown { display: none; list-style: none; margin: 0; padding: 0 0 1rem 1rem; }
.nav-item.open > .dropdown, .dropdown-item.open > .sub-dropdown { display: block; }
.sub-dropdown { padding-left: 1rem; }
.dropdown-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; color: rgba(255, 255, 255, .85); font-size: 1.05rem; font-weight: 500;
  border-left: 3px solid rgba(255, 255, 255, .2); padding-left: 1rem;
}
.dropdown-link:hover { color: var(--yellow); border-left-color: var(--yellow); }

/* ============================================================
   05. HERO — mots de bienvenue qui défilent
   ============================================================ */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 88vh; padding: 5rem 0 6rem; background: var(--green); color: var(--white); overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .45s ease; }
.hero-slide.active { opacity: 1; }
/* Plus de filtre vert : l'image est visible. Un très léger voile sombre + des ombres sur le texte gardent la lisibilité. */
.hero-slider::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.hero h1, .hero-desc, .hero-greet { text-shadow: 0 2px 14px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .5); }
.hero-badge { background: rgba(0, 0, 0, .45) !important; text-shadow: none; }
.hero > .container { position: relative; z-index: 2; }
.hero-content { max-width: 980px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; padding: .6rem 1.3rem;
  border-radius: 999px; background: rgba(255, 255, 255, .12); color: var(--white); font-size: .92rem; font-weight: 600;
}

/* Les mots s'écrivent lettre par lettre (JS) avec un curseur qui clignote */
.hero-greet { min-height: 1.2em; margin: 0 auto .5rem; font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.6rem, 12vw, 9rem); line-height: 1.2; white-space: nowrap; }
.hero-greet .line { display: inline-block; color: var(--c, var(--yellow)); }
.hero-greet .line.ar { font-family: 'Cairo', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif; }
.hero-greet .caret { display: inline-block; width: .055em; height: .78em; margin: 0 .06em; vertical-align: -.04em; background: currentColor; animation: caretBlink .8s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.hero h1 { color: var(--white); font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 500; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-desc { max-width: 680px; margin: 0 auto 2.4rem; font-size: 1.2rem; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--yellow); color: var(--black); font-size: 1.1rem; padding: 1.25rem 2.6rem; }
.hero .btn-primary:hover { background: var(--white); }
.hero .btn-secondary { color: var(--white); border-color: var(--white); font-size: 1.1rem; padding: 1.25rem 2.6rem; }
.hero .btn-secondary:hover { background: var(--white); color: var(--green); }
.hero > a[href="#quick-links"] { display: none; }

/* ============================================================
   06. SECTIONS ET TITRES
   ============================================================ */
.section { padding: 6rem 0; }
.bg-white { background: var(--white); }
.bg-green { background: var(--green); color: var(--white); }
.section-header { max-width: 760px; margin: 0 0 3.5rem; }
.section-tag {
  display: inline-block; margin-bottom: 1.1rem; padding: .45rem 1.1rem; border-radius: 999px;
  background: var(--yellow); color: var(--black); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.section-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; margin-bottom: 1rem; }
.section-title span, .section-title em { color: var(--magenta); font-style: normal; }
.section-subtitle { max-width: 640px; font-size: 1.2rem; color: var(--gray); margin: 0; }

/* ============================================================
   07. ACCUEIL
   ============================================================ */

/* --- Liens rapides : 6 grosses cartes colorées (3 par ligne) --- */
.quick-links { background: var(--cream); padding: 5rem 0; }
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quick-link-card {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem;
  min-height: 250px; padding: 2.2rem; border-radius: var(--radius-lg);
  background: var(--green); color: var(--white); transition: transform var(--transition);
}
.quick-link-card:hover { transform: translateY(-6px); }
.quick-link-card:nth-child(6n+2) { background: var(--magenta); }
.quick-link-card:nth-child(6n+3) { background: var(--orange); color: var(--black); }
.quick-link-card:nth-child(6n+4) { background: var(--blue); color: var(--black); }
.quick-link-card:nth-child(6n+5) { background: var(--yellow); color: var(--black); }
.quick-link-icon {
  width: 92px; height: 92px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 2.8rem; line-height: 1;
}
.quick-link-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; line-height: 1.1; }
.quick-link-title::after { content: ' →'; }

/* --- À propos : texte + images, 2 colonnes --- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-intro p { font-size: 1.15rem; color: var(--gray); }
.about-image-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem !important; }
.about-image-grid > img { height: 240px !important; border-radius: var(--radius-lg) !important; object-fit: cover; }
.about-image-grid > img:first-child { height: 320px !important; }
.about-intro .btn-primary, .about-intro .btn-secondary { font-size: 1.05rem; padding: 1.2rem 2.2rem; }

/* --- Chiffres : 4 grosses cartes sur fond vert --- */
.stats-section { background: var(--green); padding: 5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat-item { padding: 2.6rem 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); text-align: center; }
.stat-item .stat-num { display: block; font-family: var(--font-heading); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; color: var(--yellow); }
.stat-item .stat-label { display: block; margin-top: .7rem; font-size: 1rem; font-weight: 600; color: var(--white); }

/* --- Mission / Vision / Valeurs : 3 grosses cartes --- */
.mvv-section { background: var(--cream); }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.mvv-card { padding: 2.8rem 2.4rem; border-radius: var(--radius-lg); background: var(--green); color: var(--white); }
.mvv-card.vision { background: var(--magenta); }
.mvv-card.values { background: var(--white); color: var(--black); box-shadow: var(--shadow); }
.mvv-icon { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; margin-bottom: 1.6rem; border-radius: 50%; background: var(--white); font-size: 2.3rem; }
.mvv-card.values .mvv-icon { background: var(--cream); }
.mvv-card h3 { color: inherit; font-size: 2.2rem; }
.mvv-card p { font-size: 1.1rem; line-height: 1.8; margin: 0; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.values-list li { display: flex; gap: .9rem; font-size: 1rem; line-height: 1.6; }
.value-dot { flex: none; width: 14px; height: 14px; margin-top: .45rem; border-radius: 50%; background: var(--orange); }

/* --- Programmes : 4 grosses cartes, 2 par ligne --- */
.programme-journey { background: var(--white); padding: 6rem 0; }
.programme-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.programme-scroll-card {
  --acc: var(--orange);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--cream); border-top: 12px solid var(--acc);
}
.programme-early { --acc: var(--orange); }
.programme-primary { --acc: var(--blue); }
.programme-secondary { --acc: var(--magenta); }
.programme-diploma { --acc: var(--yellow); }
.programme-scroll-media { order: -1; margin: 0; height: 280px; }
.programme-scroll-media img { width: 100%; height: 100%; object-fit: cover; }
.programme-scroll-content { display: flex; flex-direction: column; flex: 1; padding: 2.4rem; }
.programme-scroll-number { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--magenta); margin-bottom: .3rem; }
.programme-scroll-content .section-tag { align-self: flex-start; background: var(--acc); color: var(--black); }
.programme-magenta .section-tag, .programme-secondary .section-tag { color: var(--white); }
.programme-scroll-content h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; margin-bottom: .8rem; }
.programme-scroll-content h3 em { font-style: normal; color: var(--magenta); }
.programme-scroll-content p { font-size: 1.08rem; color: var(--gray); }
.program-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1.8rem; }
.program-tag { padding: .4rem 1rem; border-radius: 999px; background: var(--white); font-size: .85rem; font-weight: 600; }
.programme-scroll-content .read-more { background: var(--green); color: var(--white); }
.programme-scroll-content .read-more:hover { background: var(--black); }

/* --- Parcours « Learning » : carrousel (une diapositive à la fois) --- */
.learning-story { background: var(--cream); padding: 6rem 0; }
.learning-slider-wrap, #learning-slider { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.learning-swiper { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.swiper-wrapper { display: flex; transition: transform .7s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.swiper-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); }
.swiper-image { display: contents; }
.swiper-image-inner { background-size: cover; background-position: center; }
.swiper-image-left {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; padding: 3rem; color: var(--white);
}
.swiper-image-left::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 69, 59, .15), rgba(0, 69, 59, .92)); }
.swiper-image-left > * { position: relative; }
.swiper-image-left h2 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.swiper-image-left .section-tag { align-self: flex-start; }
.emphasis { color: var(--yellow); font-style: normal; }
.swiper-image-right { display: flex; flex-direction: column; justify-content: center; gap: 1.8rem; padding: 3rem 3rem 6.5rem; background: var(--white) !important; background-image: none !important; color: var(--black); }
.swiper-image-right .paragraph { font-size: 1.3rem; line-height: 1.8; color: var(--gray); margin: 0; }
.learning-slide-cta { align-self: flex-start; background: var(--green); font-size: 1.05rem; padding: 1.2rem 2.2rem; }
.l-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; padding: 1.4rem 2rem; pointer-events: none; }
.l-controls > * { pointer-events: auto; }
.l-btn { width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--black); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background var(--transition), color var(--transition); }
.l-btn:hover { background: var(--black); color: var(--white); }
.l-dots { display: flex; gap: .55rem; padding: .7rem 1rem; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.l-dot { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .3s ease, background .3s ease; }
.l-dot.active { width: 34px; background: var(--orange); }

/* --- Témoignages : 3 cartes --- */
.testimonials { background: var(--green); }
.testimonials .section-title { color: var(--white) !important; }
.testimonials .section-title span { color: var(--yellow); }
.testimonials .section-subtitle { color: rgba(255, 255, 255, .85) !important; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { display: flex; flex-direction: column; padding: 2.6rem 2.2rem; border-radius: var(--radius-lg); background: var(--white); color: var(--black); }
.testimonial-quote { font-family: var(--font-heading); font-size: 6rem; line-height: .7; height: 3rem; color: var(--orange); }
.testimonial-text { flex: 1; font-size: 1.15rem; line-height: 1.8; margin-bottom: 2rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ui-border); }
.author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--magenta); color: var(--white); font-weight: 700; }
.author-name { font-weight: 700; }
.author-role { font-size: .9rem; color: var(--gray); }

/* --- Actualités : 3 cartes --- */
.news-section { background: var(--white); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
.news-card-img { position: relative; height: 260px; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-cat { position: absolute; top: 1rem; left: 1rem; padding: .4rem 1rem; border-radius: 999px; background: var(--yellow); color: var(--black); font-size: .8rem; font-weight: 700; }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 2rem; }
.news-card-date { margin-bottom: .6rem; font-size: .9rem; font-weight: 600; color: var(--magenta); }
.news-card h3 { font-size: 1.7rem; font-weight: 700; }
.news-card p { color: var(--gray); margin-bottom: 1.6rem; }

/* --- Contact : 2 colonnes (infos + formulaire) --- */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.contact-grid > div:first-child { padding: 3rem; border-radius: var(--radius-lg); background: var(--green); color: var(--white); }
.contact-grid h3 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.contact-grid h3 span { color: var(--yellow) !important; }
.contact-grid > div:first-child > p { color: rgba(255, 255, 255, .88) !important; font-size: 1.1rem; }
.contact-details { display: grid; gap: 1.3rem; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--black); }
.contact-detail-text strong { display: block; }
.contact-detail-text span, .contact-detail-text a { color: rgba(255, 255, 255, .9); }
.contact-detail-text a:hover { color: var(--yellow); }
.contact-grid .btn-primary, .contact-grid .btn-secondary { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.contact-grid .btn-secondary { background: transparent !important; color: var(--white) !important; border-color: var(--white) !important; }
.contact-form { padding: 3rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.contact-form h4 { font-size: 1.8rem; margin-bottom: 1.5rem; }

/* Formulaires */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; }
.form-control { width: 100%; padding: 1rem 1.2rem; border: 2px solid var(--cream); border-radius: 14px; background: var(--cream); font: inherit; color: var(--black); }
.form-control:focus { outline: none; border-color: var(--green); background: var(--white); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============================================================
   08. PAGES INTÉRIEURES
   ============================================================ */
.page-hero { background: var(--green); color: var(--white); padding: 5rem 0 4.5rem; }
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: .6rem; }
.page-hero p { max-width: 680px; font-size: 1.2rem; color: rgba(255, 255, 255, .88); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; font-size: .92rem; }
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { opacity: .6; }
.breadcrumb .current { color: rgba(255, 255, 255, .85); }

.content-section { padding: 5rem 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: start; }
.content-main h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 2.2rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 1.6rem; margin-top: 1.8rem; }
.content-main p, .content-main li { font-size: 1.1rem; color: var(--gray); }
.content-main ul, .content-main ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.content-main li { margin-bottom: .4rem; }
.content-main li::marker { color: var(--orange); }

.sidebar-card { padding: 2rem; margin-bottom: 1.25rem; border-radius: var(--radius-lg); background: var(--cream); }
.sidebar-card h4 { font-size: 1.4rem; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card ul li { border-bottom: 1px solid var(--ui-border); }
.sidebar-card ul li:last-child { border-bottom: 0; }
.sidebar-card ul li a { display: block; padding: .75rem 0; font-weight: 600; }
.sidebar-card ul li a:hover { color: var(--magenta); }
.sidebar-cta { padding: 2.2rem; border-radius: var(--radius-lg); background: var(--magenta); color: var(--white); }
.sidebar-cta h4, .sidebar-cta p { color: var(--white); }

.team-grid, .program-grid, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card, .program-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--cream); }
.team-photo { height: 280px; overflow: hidden; background: var(--green); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.team-initials { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; color: var(--yellow); }
.team-info { padding: 1.6rem 1.8rem 2rem; }
.team-name { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; }
.team-role { color: var(--magenta); font-weight: 600; margin-bottom: .6rem; }
.team-bio { color: var(--gray); font-size: 1rem; }
.gallery-item { overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; }
.program-media img { width: 100%; height: 220px; object-fit: cover; }
.program-header { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.8rem 0; }
.program-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--white); font-size: 1.6rem; }
.program-header h3 { margin: 0; font-size: 1.5rem; }
.program-header .age-range { font-size: .9rem; font-weight: 600; color: var(--magenta); }
.program-body { padding: 1rem 1.8rem 1.8rem; }
.program-card.gold-border { border-top: 10px solid var(--orange); }
.program-card.navy-border { border-top: 10px solid var(--blue); }

.accordion-item { margin-bottom: .8rem; border-radius: var(--radius); background: var(--cream); overflow: hidden; }
.accordion-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.3rem 1.6rem; border: 0; background: none; text-align: left; font-size: 1.15rem; font-weight: 700; cursor: pointer; }
.accordion-header.active { background: var(--green); color: var(--white); }
.accordion-body { display: none; }
.accordion-body.open { display: block; }
.accordion-content { padding: 1.4rem 1.6rem; }

.styled-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.styled-table th { background: var(--green); color: var(--white); text-align: left; }
.styled-table th, .styled-table td { padding: 1rem 1.2rem; }
.styled-table tbody tr:nth-child(even) { background: var(--cream); }
.alert { padding: 1.2rem 1.5rem; border-radius: var(--radius); margin: 1rem 0; font-weight: 600; }
.alert-info { background: #d8f0fa; } .alert-warning { background: #fff3b0; } .alert-success { background: #d6f0e0; }

/* ============================================================
   09. FOOTER, RECHERCHE, RETOUR EN HAUT
   ============================================================ */
#main-footer { background: var(--green); color: rgba(255, 255, 255, .85); }
#main-footer > .container { padding-top: 5rem; }
.footer-accred { padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.footer-accred-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; }
.footer-accred-logos img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .6; }
.footer-accred-logos a { color: rgba(255, 255, 255, .7); font-weight: 600; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 3rem; padding: 3rem 0 4rem; }
.footer-brand .logo-text .school-name { color: var(--white); }
.footer-brand .logo-text .school-sub { color: rgba(255, 255, 255, .7); }
.footer-desc { margin: 1.4rem 0; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .35); }
.footer-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.footer-col h5 { color: var(--yellow); font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a:hover, .footer-contact-item a:hover { color: var(--yellow); }
.footer-contact-item { display: flex; gap: .8rem; margin-bottom: .8rem; }
.footer-contact-item i { color: var(--yellow); margin-top: .35rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .92rem; }
.footer-bottom-links { display: flex; gap: 1.4rem; }
.footer-bottom-links a:hover { color: var(--yellow); }

.search-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0, 69, 59, .98); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.search-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
.search-form { width: 100%; max-width: 680px; padding: 2rem; text-align: center; }
.search-form h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 2rem; }
.search-input-wrap { position: relative; }
.search-input { width: 100%; padding: 1.2rem 4.5rem 1.2rem 1.6rem; border: 0; border-radius: 999px; background: var(--white); font: inherit; font-size: 1.2rem; }
.search-submit { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--black); font-size: 1.1rem; cursor: pointer; }
.search-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: none; color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.search-close:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); }

#scroll-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 500; width: 54px; height: 54px; border: 0; border-radius: 50%;
  background: var(--magenta); color: var(--white); font-size: 1.1rem; cursor: pointer;
  display: none; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--black); }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .quick-links-grid, .mvv-grid, .testimonials-grid, .news-grid, .team-grid, .program-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .swiper-slide { grid-template-columns: 1fr; }
  .swiper-image-left { min-height: 340px; }
  .swiper-image-right { padding: 2rem 2rem 6rem; }
  .l-controls { justify-content: center; }
  .l-dots { background: rgba(0, 0, 0, .55); }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 1rem; }
  .section, .programme-journey, .learning-story { padding: 4rem 0; }
  .quick-links { padding: 3.5rem 0; }
  .quick-links-grid, .mvv-grid, .testimonials-grid, .news-grid, .team-grid, .program-grid, .gallery-grid,
  .about-intro, .programme-stack, .contact-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .quick-link-card { min-height: 190px; }
  .header-inner { min-height: 76px; }
  .logo-text .school-sub, .btn-apply, .top-bar-links, .top-bar-portals { display: none; }
  .hero { min-height: 80vh; padding: 3.5rem 0 4rem; }
  .contact-grid > div:first-child, .contact-form { padding: 2rem 1.5rem; }
  .programme-scroll-content { padding: 1.8rem; }
  .programme-scroll-media { height: 220px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
@media print { #main-header, .top-bar, .nav-backdrop, #scroll-top { display: none !important; } }

/* ============================================================
   11. LOGO, SECTIONS DÉCOUPÉES, FORMES, IMAGES
   ============================================================ */

/* --- Logo (injecté par main.js) --- */
.site-logo .logo-img { height: 64px; width: auto; max-width: 62vw; }
#main-footer .site-logo .logo-img { height: 76px; }

/* --- Sections non rectangulaires : le bord haut est découpé (trapèze, pointe, biais, marches) ---
   La section remonte sous la précédente (marge négative) : ses coins coupés laissent voir la couleur d'au-dessus. */
:root { --cut: clamp(48px, 6.5vw, 120px); }
.cut { position: relative; margin-top: calc(var(--cut) * -1); padding-top: calc(var(--cut) + 4.5rem) !important; }
#main-footer.cut { padding-top: var(--cut) !important; }
.cut-trap    { clip-path: polygon(0 var(--cut), 12% 0, 88% 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-slant-r { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); }
.cut-peak    { clip-path: polygon(0 var(--cut), 50% 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-slant-l { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }
.cut-valley  { clip-path: polygon(0 0, 50% var(--cut), 100% 0, 100% 100%, 0 100%); }
.cut-steps   { clip-path: polygon(0 var(--cut), 30% var(--cut), 30% calc(var(--cut) * .6), 62% calc(var(--cut) * .6), 62% calc(var(--cut) * .25), 100% calc(var(--cut) * .25), 100% 100%, 0 100%); }

/* --- Formes : elles se placent en défilant (--p va de 0 à 1, piloté par main.js) --- */
.has-shapes { position: relative; }
.has-shapes:not(.hero) > *:not(.shapes) { position: relative; z-index: 1; }
.shapes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero .shapes { z-index: 1; }
.shape {
  position: absolute; display: block;
  opacity: calc(var(--op, 1) * var(--p, 1));
  translate: calc((1 - var(--p, 1)) * var(--dx, 0px)) calc((1 - var(--p, 1)) * var(--dy, 0px));
  rotate: calc((1 - var(--p, 1)) * var(--rot, 0deg));
  scale: calc(.4 + .6 * var(--p, 1));
}
/* Logo en filigrane derrière le contenu */
.wm { position: absolute; width: min(60vw, 760px); height: auto; opacity: .07; }
.wm-r { right: -4%; bottom: 4%; }
.wm-l { left: -4%; bottom: 4%; }

/* --- Images découpées en trapèze / biais --- */
.programme-scroll-media { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%); }
.programme-scroll-card:nth-child(even) .programme-scroll-media { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 36px)); }
.news-card-img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%); }
.about-image-grid > img:nth-child(1) { clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.about-image-grid > img:nth-child(2) { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.about-image-grid > img:nth-child(3) { clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }

/* --- Cartes : photos à la place des icônes --- */
.quick-link-card { justify-content: flex-start; gap: 1.4rem; min-height: 0; padding: 1.1rem 1.1rem 1.8rem; }
.quick-link-icon {
  width: 100%; height: 200px; border-radius: 18px; background: var(--white) center / cover no-repeat;
  font-size: 0; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}
.quick-link-card:nth-child(3n+2) .quick-link-icon { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 86%); }
.quick-link-card:nth-child(3n)   .quick-link-icon { clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
.quick-link-title { padding: 0 .7rem; }
.mvv-icon {
  width: 100%; height: 210px; margin-bottom: 1.8rem; border-radius: 18px; font-size: 0;
  background: var(--white) center / cover no-repeat; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.mvv-card.vision .mvv-icon { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 88%); }
.mvv-card.values .mvv-icon { clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }

/* Menu : lien « Overview » du sous-menu */
.dropdown-overview { color: var(--yellow); font-weight: 700; }

@media (max-width: 768px) {
  :root { --cut: clamp(30px, 9vw, 64px); }
  .cut { padding-top: calc(var(--cut) + 3rem) !important; }
  .site-logo .logo-img { height: 50px; }
  .quick-link-icon { height: 170px; }
  .wm { width: 90vw; }
}
@media print { .shapes, .wm { display: none !important; } }

/* ============================================================
   12. SPLASH SCREEN (logo + MBOLO)
   ============================================================ */
body.splash-open { overflow: hidden; }
#splash {
  position: fixed; inset: 0; z-index: 5000; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  background: var(--white);
  animation: splashFailsafe 0s linear 8s forwards;   /* sécurité si le JS échoue */
  transition: transform .8s cubic-bezier(.77, 0, .18, 1);
}
#splash.leaving { transform: translateY(-100%); }
@keyframes splashFailsafe { to { visibility: hidden; opacity: 0; } }
/* Deux grandes formes qui glissent dans les coins */
#splash::before, #splash::after { content: ''; position: absolute; }
#splash::before { left: -6vw; bottom: -4vw; width: 34vw; height: 28vw; background: var(--orange); clip-path: polygon(0 100%, 100% 100%, 0 0); animation: splashShapeL 1.1s cubic-bezier(.22, 1, .36, 1) both; }
#splash::after { right: -4vw; top: -3vw; width: 30vw; height: 22vw; background: var(--green); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); animation: splashShapeR 1.1s cubic-bezier(.22, 1, .36, 1) .15s both; }
@keyframes splashShapeL { from { transform: translate(-40%, 40%) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splashShapeR { from { transform: translate(40%, -40%) rotate(20deg); opacity: 0; } to { transform: none; opacity: 1; } }

.splash-logo { position: relative; z-index: 1; width: min(420px, 72vw); height: auto; animation: splashLogo .9s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes splashLogo { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.splash-word { position: relative; z-index: 1; display: flex; gap: .08em; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1; white-space: pre; }
.splash-word span { display: inline-block; opacity: 0; color: var(--green); animation: splashIn .45s ease calc(.9s + var(--m) * .15s) both, splashDance 1.1s ease-in-out calc(2.6s + var(--m) * .1s) infinite; }
.splash-word span:nth-child(4n+2) { color: var(--magenta); }
.splash-word span:nth-child(4n+3) { color: var(--orange); }
.splash-word span:nth-child(4n)   { color: var(--blue); }
.splash-word .sp { width: .3em; }

/* Le ruban vert qui se dessine à la fin */
.splash-ribbon { position: relative; z-index: 1; width: min(640px, 86vw); height: auto; margin-top: .4rem; overflow: visible; }
.splash-ribbon path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rb-shadow { stroke: rgba(0, 0, 0, .18); stroke-width: 20; }
.rb-main   { stroke: var(--green); stroke-width: 20; }
.rb-light  { stroke: rgba(255, 255, 255, .28); stroke-width: 4; }
.splash-ribbon path { animation: ribbonDraw 1.1s cubic-bezier(.65, 0, .25, 1) 2.6s forwards; }
@keyframes ribbonDraw { to { stroke-dashoffset: 0; } }
@keyframes splashIn { from { opacity: 0; transform: translateY(40%) scale(.4); } to { opacity: 1; transform: none; } }
@keyframes splashDance { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -.14em; rotate: -8deg; } 70% { translate: 0 -.08em; rotate: 8deg; } }

/* ============================================================
   13. CARTES : réaction à la souris
   main.js ajoute .hov et met à jour --mx --my (curseur) et --rx --ry (inclinaison)
   ============================================================ */
.hov {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out, box-shadow .3s ease;
}
.hov:hover {
  z-index: 3;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .22);
}
/* Reflet qui suit le curseur */
.hov::after {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .30), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
}
.hov:hover::after { opacity: 1; }
.programme-scroll-card.hov::after, .testimonial-card.hov::after, .news-card.hov::after, .mvv-card.values.hov::after, .contact-form.hov::after, .sidebar-card.hov::after, .team-card.hov::after, .program-card.hov::after {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(238, 121, 23, .20), transparent 62%);
}
/* Les photos des cartes zooment doucement */
.quick-link-icon, .mvv-icon { transition: background-size .5s ease; }
.quick-link-card:hover .quick-link-icon, .mvv-card:hover .mvv-icon { background-size: 118%; }
.news-card-img img, .programme-scroll-media img { transition: transform .6s ease; }
.news-card:hover .news-card-img img, .programme-scroll-card:hover .programme-scroll-media img { transform: scale(1.08); }
.quick-link-card:hover { transform: none; }
.quick-link-card.hov:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); }
@media (prefers-reduced-motion: reduce) { .hov, .hov:hover { transform: none; } }

/* ============================================================
   14. BOUTONS DE LA BARRE : Apply Now · Contact Us · Book a Tour (170 × 75 px, remplissage au survol)
   ============================================================ */
.hb {
  --fill: var(--yellow); --ink: var(--black); --on: var(--black);
  position: relative; z-index: 0; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-around; text-align: center;
  width: 170px; height: 75px; padding: 0 4px; border-radius: 10px;
  border: 2px solid var(--fill); background: transparent; color: var(--ink);
  font: 600 1.6rem/1.15 var(--font-body); letter-spacing: .01em;
  transition: color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.hb::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: scaleY(0); transform-origin: bottom; transition: transform .35s ease; }
.hb:hover { color: var(--on); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.hb:hover::before { transform: scaleY(1); }
.hb-contact { --fill: var(--green);   --ink: var(--green);   --on: var(--white); }
.hb-tour    { --fill: var(--magenta); --ink: var(--magenta); --on: var(--white); }
.nav-actions { gap: .6rem; }

/* Dans le panneau (mobile) : en ligne, plus larges */
.nav-panel-cta { display: none; gap: .7rem; margin-top: 2rem; }
.nav-panel-cta .hb { flex: 1; width: auto; --ink: var(--white); border-color: var(--fill); }
.nav-panel-cta .hb-apply { --ink: var(--yellow); }
.nav-panel-cta .hb-contact { --fill: var(--blue); --ink: var(--white); --on: var(--black); }
.nav-panel-cta .hb-tour { --fill: var(--orange); --ink: var(--white); --on: var(--black); }

@media (max-width: 1150px) {
  .nav-actions .hb { display: none; }
  .nav-panel-cta { display: flex; }
}