/* École Supérieure 2ET — feuille de style partagée */

:root {
  --green-dark: #14321F;
  --green: #1B5E3A;
  --green-darker: #14432A;
  --green-light: #EEF5F0;
  --orange: #E2792F;
  --orange-dark: #C7671F;
  --gold: #D9A62E;
  --bg: #FAF9F6;
  --border: #E4E8E3;
  --text: #1C1C1A;
  --text-secondary: #4A544C;
  --text-muted: #5B655D;
  --text-on-dark-muted: #B9CBBE;
  --text-on-dark-faint: #8FA895;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 24px; }
.section-narrow { max-width: 900px; margin: 0 auto; padding: 70px 24px; }

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; margin: 0; color: var(--text); }

.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-darker); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-outline { background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.2); }
.btn-outline-green { background: transparent; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline-green:hover { background: var(--green-light); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--green); letter-spacing: 0.2px; line-height: 1.15; }
.brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.site-nav a, .site-nav .nav-dropdown-toggle {
  padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text);
  cursor: pointer; display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.site-nav a:hover, .site-nav .nav-dropdown-toggle:hover { background: var(--green-light); color: var(--green); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 12px 28px rgba(20,40,25,0.12); min-width: 210px; padding: 8px;
  display: none; flex-direction: column; gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 10px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; }
.nav-dropdown-menu a:hover { background: var(--green-light); color: var(--green); }

.site-cta { flex-shrink: 0; }
.site-cta .btn { padding: 10px 16px; font-size: 14.5px; white-space: nowrap; }

.burger {
  display: none; background: none; border: none; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center;
}
.burger span { width: 22px; height: 2px; background: var(--green); display: block; }

.mobile-nav {
  display: none; flex-direction: column; padding: 8px 20px 20px; gap: 2px;
  border-top: 1px solid var(--border); background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 8px; font-size: 15px; font-weight: 600; color: var(--text); border-bottom: 1px solid #EEE; display: flex; align-items: center; gap: 10px; }
.mobile-nav .btn { margin-top: 10px; text-align: center; }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-nav a .nav-icon { width: 17px; height: 17px; }

/* ---- Hero : carrousel d'annonces (espace publicitaire institutionnel) ----
   Arrière-plan fixe (motif toque/livre/badge + dégradé blanc), inchangé d'une
   annonce à l'autre — seul le contenu de chaque slide se fond en transition. */
.hero { position: relative; overflow: hidden; }
.hero-slides {
  position: relative; min-height: clamp(300px, 34vw, 380px);
  background-color: #fff;
  background-image:
    linear-gradient(100deg, #fff 0%, #fff 34%, rgba(255,255,255,0.55) 52%, rgba(255,255,255,0.22) 72%, rgba(255,255,255,0.08) 100%),
    url('../images/hero-campus.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center, right center;
  background-size: cover, cover;
}
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide-inner {
  position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%;
  padding: 40px 84px; display: flex; align-items: center; gap: 26px;
}
.hero-slide-icon {
  flex-shrink: 0; width: 62px; height: 62px; border-radius: 16px; background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.hero-slide-icon svg { width: 30px; height: 30px; }
.hero-slide-body { max-width: 640px; }
.hero-slide-eyebrow {
  display: inline-block; background: var(--green-light); color: var(--green);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; padding: 6px 12px; border-radius: 100px; margin-bottom: 14px;
}
.hero-slide-title { font-family: var(--font-heading); font-size: 25px; font-weight: 800; line-height: 1.25; color: var(--text); margin: 0 0 10px; }
.hero-slide-text { font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); margin: 0 0 14px; }
.hero-slide-link { display: inline-block; color: var(--green); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.hero-slide-link:hover { border-color: var(--orange); color: var(--orange); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(27,94,58,0.10); color: var(--green); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(27,94,58,0.2); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

.hero-dots { position: absolute; z-index: 4; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(27,94,58,0.22); border: none; padding: 0; cursor: pointer; }
.hero-dot.active { background: var(--green); }

@media (max-width: 700px) {
  .hero-slide-inner { padding: 30px 52px; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
  .hero-slide-icon { width: 48px; height: 48px; }
  .hero-slide-icon svg { width: 24px; height: 24px; }
  .hero-slide-title { font-size: 20px; }
  .hero-slide-text { font-size: 13.5px; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow-prev { left: 8px; }
  .hero-arrow-next { right: 8px; }
}

/* ---- Page hero (interior pages) ----
   Chaque page pose son propre visuel en style inline (background-image) ; le voile sombre
   uniforme (::before) garantit un texte blanc lisible quelle que soit la composition de l'image. */
.page-hero {
  position: relative; overflow: hidden; background-color: var(--green); padding: 70px 24px 50px; text-align: center;
  background-size: cover; background-position: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(18,18,20,0.6); }
.page-hero .container { position: relative; z-index: 1; max-width: 900px; }
.page-hero h1 { font-size: 36px; color: #fff; margin: 0 0 14px; }
.page-hero p { font-size: 15.5px; color: #DCE8DE; margin: 0; line-height: 1.6; }

/* ---- Bandeau plateformes (page Plateforme) ---- */
.platform-hero {
  position: relative; padding: 90px 24px; text-align: center;
  background-image: linear-gradient(100deg, rgba(20,50,31,0.9), rgba(20,50,31,0.72)), url('../images/plateforme/bandeau-plateformes.jpg');
  background-size: cover; background-position: center;
}
.platform-hero .container { max-width: 900px; }
.platform-hero h1 { font-size: 36px; color: #fff; margin: 0 0 14px; }
.platform-hero p { font-size: 15.5px; color: #DCE8DE; margin: 0; line-height: 1.6; }

.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.platform-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 34px 14px 26px;
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.platform-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--orange));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.platform-card:not(.is-disabled):hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(20,50,31,0.16); border-color: transparent; }
.platform-card:not(.is-disabled):hover::before { transform: scaleX(1); }
.platform-card-icon {
  width: 92px; height: 92px; border-radius: 50%; background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}
.platform-card-icon svg { width: 44px; height: 44px; }
.platform-card:not(.is-disabled):hover .platform-card-icon { background: var(--green); color: #fff; transform: scale(1.08) rotate(-6deg); }
.platform-card-label { font-family: var(--font-heading); font-weight: 700; font-size: 14.5px; color: var(--text); }
.platform-card.is-disabled { cursor: default; }
@media (max-width: 900px) { .platform-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Bandeau partenaires (accueil) ---- */
.partners-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px; }
.partner-logo {
  width: 150px; height: 90px; background: #fff; border-radius: 12px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; padding: 14px;
}
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease; }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ---- Stats ---- */
.stats-bar { background: var(--green); }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 24px; text-align: center; padding: 36px 24px; }
.stats-grid > div { min-width: 0; }
.stats-grid .value { font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: #fff; }
.stats-grid .label { font-size: 13px; color: var(--text-on-dark-muted); margin-top: 4px; }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px; }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--green); color: #fff; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 22px; height: 22px; }
.card-title { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--text); margin-bottom: 8px; }
.card-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.photo-frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Program cards (home) ---- */
.program-tile { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px 20px; display: block; }
.program-tile:hover { border-color: var(--green); box-shadow: 0 8px 20px rgba(27,94,58,0.1); }
.program-code { font-size: 11px; font-weight: 800; letter-spacing: 0.5px; color: var(--orange); margin-bottom: 10px; }
.program-name { font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--text); line-height: 1.3; }

/* ---- CTA band ---- */
.cta-band { background: var(--green-dark); padding: 56px 24px; text-align: center; }
.cta-band .container { max-width: 900px; }
.cta-band h2 { font-size: 28px; color: #fff; margin: 0 0 12px; }
.cta-band p { font-size: 15px; color: var(--text-on-dark-muted); margin: 0 0 28px; }

/* ---- Bandeau d'annonce animé (accueil, avant le mot du directeur) ---- */
.announce-bar {
  position: relative; overflow: hidden; display: block;
  border-radius: 14px; padding: 18px 28px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange), var(--gold), var(--orange), var(--orange-dark));
  background-size: 300% 100%;
  animation: announceGradient 8s ease infinite;
  color: #fff; text-align: center; text-transform: uppercase;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: 0.3px; line-height: 1.5;
  box-shadow: 0 10px 28px rgba(226,121,47,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.announce-bar:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(226,121,47,0.42); }
.announce-bar::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  animation: announceShine 3.2s ease-in-out infinite;
}
.announce-emoji { display: inline-block; margin-right: 8px; animation: announceBounce 1.6s ease-in-out infinite; }

@keyframes announceGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes announceShine {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
@keyframes announceBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.15); }
}
@media (max-width: 560px) {
  .announce-bar { font-size: 12.5px; padding: 14px 18px; }
}

/* Éclat de confettis au chargement, façon anniversaire : parts d'un rayon de 5cm depuis le centre du bouton */
.announce-wrap { position: relative; }
.announce-confetti { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.confetti-piece {
  position: absolute; top: 50%; left: 50%; border-radius: 1px;
  animation-name: confettiBurst; animation-timing-function: cubic-bezier(0.25,0.8,0.35,1); animation-fill-mode: forwards;
}
@keyframes confettiBurst {
  0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--dist)) rotate(600deg); opacity: 0; }
}

/* ---- News / Gallery ---- */
.news-card { display: block; }
.news-card .photo-frame { aspect-ratio: 16/10; margin-bottom: 14px; }
.news-date { font-size: 12.5px; color: var(--text-on-dark-faint); font-weight: 600; margin-bottom: 6px; }
.news-title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text); line-height: 1.35; }
.news-title:hover { color: var(--green); }

.article-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.article-card .photo-frame { border-radius: 0; aspect-ratio: 16/10; }
.article-body { padding: 22px; }
.article-tag {
  display: inline-block; background: var(--green-light); color: var(--green); font-size: 11px;
  font-weight: 700; padding: 5px 10px; border-radius: 100px; margin-bottom: 12px;
}
.article-excerpt { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); }

.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.gallery-tab {
  padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--border); background: #fff;
  color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.gallery-tab.active { border-color: var(--green); background: var(--green); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ---- FAQ ---- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-question span.label { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text); }
.faq-question span.icon { font-size: 20px; color: var(--green); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-question span.icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 22px 20px; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.faq-item.open .faq-answer { display: block; }

/* ---- Values / Team ---- */
.values-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.value-chip { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 14px; text-align: center; }
.value-chip span { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--green); }

.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.team-avatar {
  border-radius: 50%; width: 130px; height: 130px; margin: 0 auto 16px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: var(--green);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar svg { width: 54px; height: 54px; }
.team-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text); text-align: center; }
.team-role { font-size: 13px; color: var(--text-muted); margin-top: 3px; text-align: center; }

/* ---- Forms ---- */
.form-panel { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 44px; }
.form-panel h2 { font-size: 22px; margin: 0 0 22px; }
form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  font-family: var(--font-body); outline: none; padding: 13px 14px; border-radius: 9px;
  border: 1.5px solid var(--border); font-size: 14px; width: 100%; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; }
.file-drop { border: 1.5px dashed var(--border); border-radius: 9px; padding: 22px; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.form-success { color: var(--green); font-size: 13.5px; font-weight: 600; display: none; }
.form-success.show { display: block; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.step-card .big { font-family: var(--font-heading); font-weight: 800; font-size: 26px; color: var(--orange); margin-bottom: 10px; }
.step-card .small { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }

.step-row { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700;
  font-size: 13.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-title { font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 3px; }
.step-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ---- Admissions closed state ---- */
.admissions-closed {
  background: var(--green-light); border: 1.5px dashed var(--green); border-radius: 20px;
  padding: 60px 40px; max-width: 640px; margin: 0 auto; text-align: center;
}
.admissions-closed .badge {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 20px;
}
.pill { display: inline-block; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px; margin-bottom: 14px; }

/* ---- Contact ---- */
.contact-info-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.contact-info-card .label { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 6px; }
.contact-info-card .value { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--green-light); display: flex;
  align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--green);
}
.social-btn:hover { background: var(--green); color: #fff; }
.map-frame { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 100%; border: none; }

/* ---- Footer ---- */
.site-footer { background: var(--green-dark); color: #EAF3EC; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 24px 32px; max-width: 1240px; margin: 0 auto; }
.footer-brand { font-family: var(--font-heading); font-weight: 800; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: var(--text-on-dark-muted); max-width: 280px; }
.footer-heading { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13.5px; color: var(--text-on-dark-muted); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; color: var(--text-on-dark-muted); line-height: 1.5; }
.footer-map { max-width: 1240px; margin: 0 auto; padding: 0 24px 40px; }
.footer-map-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.footer-map-label span { font-size: 12.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; }
.footer-map-label a { font-size: 13px; font-weight: 600; color: var(--gold); }
.footer-map-label a:hover { color: #fff; }
.footer-map iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: 14px; }
.footer-bottom {
  border-top: 1px solid #234A32; padding: 20px 24px; max-width: 1240px; margin: 0 auto; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-on-dark-faint);
}

/* ---- Responsive ---- */
/* Bascule dédiée à la navigation : avec 7 onglets + icônes, la barre a besoin de
   plus de largeur que le reste du contenu avant de basculer sur le menu burger,
   pour ne jamais déborder (ex. le bouton Admissions qui dépassait). */
@media (max-width: 1220px) {
  .site-nav, .site-cta { display: none !important; }
  .burger { display: flex !important; }
}
@media (max-width: 900px) {
  .grid-2, .grid-4, .grid-3, .values-grid, .team-grid, .steps-grid, .form-row, .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
/* ---- Bouton WhatsApp flottant (toutes les pages, injecté par js/main.js) ---- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsappPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(37,211,102,0.55); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 22px rgba(37,211,102,0.45), 0 0 0 9px rgba(37,211,102,0.16); }
}

/* ---- Lightbox galerie ---- */
.gallery-item img { cursor: zoom-in; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 300; background: rgba(10,20,14,0.92);
  align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 28px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 560px) {
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 32px; }
  .stats-grid .value { font-size: 26px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-4, .grid-3, .values-grid, .team-grid, .steps-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .stats-grid .value { font-size: 24px; }
  .section { padding: 60px 20px; }
}

/* ---- Quiz d'orientation BTS ---- */
.quiz-progress { height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 36px; }
.quiz-progress-bar { height: 100%; background: var(--green); border-radius: 100px; transition: width 0.35s ease; }
.quiz-step-label { font-size: 12.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.quiz-question { display: none; }
.quiz-question.active { display: block; animation: quizFadeIn 0.35s ease; }
.quiz-question h2 { font-size: 22px; margin: 0 0 26px; line-height: 1.3; }
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  text-align: left; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text); cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.quiz-option:hover { border-color: var(--green); background: var(--green-light); transform: translateX(4px); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; }
.quiz-back { background: none; border: none; color: var(--text-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.quiz-back:hover { color: var(--green); }
.quiz-back[hidden] { visibility: hidden; }

.quiz-result { display: none; text-align: center; }
.quiz-result.active { display: block; animation: quizFadeIn 0.4s ease; }
.quiz-result-eyebrow { color: var(--green); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.quiz-result img { width: 100%; max-width: 320px; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; margin: 0 auto 24px; display: block; }
.quiz-result h2 { font-size: 26px; margin: 0 0 12px; }
.quiz-result p { font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.quiz-result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 28px 0 18px; }
.quiz-share-whatsapp {
  display: inline-flex; align-items: center; gap: 8px; color: #25D366; font-weight: 700; font-size: 14px;
  margin-bottom: 18px;
}
.quiz-share-whatsapp svg { width: 20px; height: 20px; }
.quiz-share-whatsapp:hover { text-decoration: underline; }
.quiz-restart { background: none; border: none; color: var(--text-muted); font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.quiz-restart:hover { color: var(--green); }
@keyframes quizFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Zone abonnement réseaux sociaux (page Actualités) ---- */
.social-follow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.social-follow-card {
  display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 16px;
  background: #fff; border: 1px solid var(--border); text-decoration: none; position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.social-follow-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.social-follow-card:hover::before { transform: scaleX(1); }
.social-follow-card:not(.is-disabled):hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(20,50,31,0.12); border-color: transparent; }
.social-follow-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-follow-icon svg { width: 25px; height: 25px; }
.social-follow-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text); }
.social-follow-cta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.social-follow-card.is-disabled { cursor: default; }
.social-follow-card.is-disabled .social-follow-icon { opacity: 0.55; }
.social-follow-card.is-disabled .social-follow-name, .social-follow-card.is-disabled .social-follow-cta { opacity: 0.55; }
.social-follow-badge {
  position: absolute; top: 12px; right: 14px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--text-muted); background: var(--bg); padding: 3px 9px; border-radius: 100px;
}
@media (max-width: 900px) { .social-follow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .social-follow-grid { grid-template-columns: 1fr; } }
