/* ============================================
   🎨 PALETTE DE BASE
============================================ */
:root {
  --black:    #0b0b0b;
  --white:    #ffffff;
  --orange:   #ff6a00;
  --yellow:   #ffd400;
  --muted:    #bfc7c9;
  --card:     #101213;
  --back:     #eb8e2a;
  --creme:    #FFF8F0;

  /* ============================================
     🔲 NAVBAR
  ============================================ */
  --nav-bg:           var(--black);
  --nav-border:       rgba(255,255,255,0.03);
  --nav-logo-color:   var(--white);
  --nav-link-color:   var(--white);
  --nav-link-hover:   var(--yellow);
  --nav-cta-bg:       var(--orange);
  --nav-cta-color:    #000000;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Montserrat', Arial, sans-serif;

  /* ============================================
     🦸 HERO
  ============================================ */
  --hero-bg:                    transparent;
  --hero-eyebrow-color:         var(--orange);
  --hero-title-color:           var(--black);
  --hero-lead-color:            #5a5a5a;
  --hero-btn-primary-bg:        var(--orange);
  --hero-btn-primary-color:     #000000;
  --hero-btn-secondary-border:  rgba(0,0,0,0.12);
  --hero-btn-secondary-color:   var(--black);
  --hero-illustration-from:     var(--orange);
  --hero-illustration-to:       var(--yellow);
  --hero-illustration-text:     #000000;

  /* ============================================
     📦 SECTIONS / CARDS
  ============================================ */
  --section-bg:          transparent;
  --section-title-color: var(--black);
  --card-bg:             var(--card);
  --card-border:         rgba(255,255,255,0.03);
  --card-title-color:    var(--white);
  --card-text-color:     var(--muted);

  /* ============================================
     📬 FORMULAIRE DE CONTACT
  ============================================ */
  --form-label-color:  var(--muted);
  --form-input-bg:     #0b1113;
  --form-input-color:  var(--white);
  --form-input-border: rgba(255,255,255,0.04);
  --form-submit-bg:    var(--yellow);
  --form-submit-color: #000000;

  /* ============================================
     🔻 FOOTER
  ============================================ */
  --footer-bg:         transparent;
  --footer-border:     rgba(255,255,255,0.03);
  --footer-text-color: var(--muted);

  /* ============================================
     🌐 GLOBAL
  ============================================ */
  --body-bg:    var(--creme);
  --body-color: var(--white);

  /* ============================================
     🏷️ DOMAINES — couleurs spécifiques
  ============================================ */
  --color-ingenierie:     #ff6a00;
  --color-sante:          #e00000;
  --color-gestion:        #7c3aed;
  --color-education:      #1d6ec2;
  --color-administration: #eb8e2a;
}

/* ─── RESET ─────────────────────────────────── */
*  { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 62.5%; scroll-behavior: smooth }
body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--body-color);
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }

/* ─── NAVBAR ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 7rem;
  background: var(--black);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.8rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(11,11,11,.96);
  backdrop-filter: blur(14px);
}
.logo {
  font-family: var(--font-body);
  font-weight: 900; font-size: 2.2rem;
  color: var(--white); letter-spacing: -.02em;
  white-space: nowrap;
}
.logo span { color: var(--orange) }

.nav-links {
  display: flex; align-items: center; gap: 1.8rem;
}
.nav-link {
  font-size: 1.35rem; font-weight: 600;
  color: rgba(255,255,255,.75);
  padding: .5rem .7rem; border-radius: 7px;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--yellow) }
.btn-cta {
  background: var(--orange); color: #000 !important;
  padding: .75rem 1.6rem; border-radius: 9px;
  font-weight: 800; font-size: 1.35rem;
  transition: background .2s, transform .18s;
}
.btn-cta:hover { background: #e85d00; transform: translateY(-1px) }

.burger {
  display: none; flex-direction: column;
  gap: .5rem; background: none; border: none;
  cursor: pointer; padding: .4rem;
}
.burger span {
  display: block; width: 2.4rem; height: .25rem;
  background: var(--white); border-radius: 99px;
  transition: all .3s;
}
.burger.open span:nth-child(1) { transform: translateY(.75rem) rotate(45deg) }
.burger.open span:nth-child(2) { opacity: 0 }
.burger.open span:nth-child(3) { transform: translateY(-.75rem) rotate(-45deg) }



/* ─── HERO ───────────────────────────────────── */
main { padding-top: 7.2rem }
.hero {
  background: var(--black);
  padding: 6rem 6% 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,106,0,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(255,212,0,.10) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 800px; margin: 0 auto }
.eyebrow {
  color: var(--hero-eyebrow-color);
  text-transform: uppercase; font-weight: 800;
  font-size: 1.3rem; letter-spacing: .16em;
  display: inline-block; margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: 5.2rem; font-weight: 900;
  color: var(--white);
  line-height: 1.08; letter-spacing: -.03em;
  margin-bottom: 1.6rem;
}
.hero h1 span { color: var(--orange) }
.hero-sub {
  color: rgba(255,255,255,.55); font-size: 1.6rem; font-weight: 500;
  margin-bottom: 3rem; line-height: 1.6;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .7rem 1.4rem; border-radius: 99px; font-size: 1.3rem; font-weight: 700;
  border: 2px solid currentColor;
  cursor: pointer; transition: all .2s;
}
.tag:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3) }
.tag-ingenierie  { color: var(--color-ingenierie) }
.tag-sante       { color: var(--color-sante) }
.tag-gestion     { color: var(--color-gestion) }
.tag-education   { color: var(--color-education) }
.tag-admin       { color: var(--color-administration) }

/* ─── SECTIONS ───────────────────────────────── */
.domain-section {
  max-width: 1200px; margin: 4rem auto; padding: 0 5%;
  scroll-margin-top: 9rem;
}
.section-header {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 2.4rem 3rem;
  border-radius: 14px 14px 0 0;
  margin-bottom: 0;
}
.section-arrow {
  width: 0; height: 0;
  border-style: solid;
  border-width: 1.4rem 0 1.4rem 2.2rem;
  flex-shrink: 0;
}
.section-title {
  font-size: 2rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--white);
}
.section-subtitle {
  font-size: 1.3rem; font-weight: 500;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
}
.section-body {
  background: var(--white);
  border-radius: 0 0 14px 14px;
  padding: 2.4rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.06);
}

/* Couleurs par domaine */
.ingenierie     .section-header { background: var(--color-ingenierie) }
.ingenierie     .section-arrow  { border-color: transparent transparent transparent rgba(255,255,255,.3) }
.sante          .section-header { background: var(--color-sante) }
.sante          .section-arrow  { border-color: transparent transparent transparent rgba(255,255,255,.3) }
.gestion        .section-header { background: var(--color-gestion) }
.gestion        .section-arrow  { border-color: transparent transparent transparent rgba(255,255,255,.3) }
.education      .section-header { background: var(--color-education) }
.education      .section-arrow  { border-color: transparent transparent transparent rgba(255,255,255,.3) }
.administration .section-header { background: var(--color-administration) }
.administration .section-arrow  { border-color: transparent transparent transparent rgba(255,255,255,.3) }

/* ─── INTRO DOMAINE ──────────────────────────── */
.domain-intro {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.6rem 2rem;
  margin-bottom: 2.4rem;
  font-size: 1.4rem;
  color: #444;
  line-height: 1.7;
  border-left: 4px solid currentColor;
}
.ingenierie     .domain-intro { border-color: var(--color-ingenierie) }
.sante          .domain-intro { border-color: var(--color-sante) }
.gestion        .domain-intro { border-color: var(--color-gestion) }
.education      .domain-intro { border-color: var(--color-education) }
.administration .domain-intro { border-color: var(--color-administration) }

/* ─── MÉTIERS ────────────────────────────────── */
.metiers-title {
  font-size: 1.4rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: #888; margin-bottom: 1.4rem;
}
.metiers-grid {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-bottom: 2.8rem;
}
.metier-badge {
  padding: .5rem 1.2rem;
  border-radius: 6px;
  font-size: 1.3rem; font-weight: 700;
  color: var(--white);
}
.ingenierie     .metier-badge { background: var(--color-ingenierie) }
.sante          .metier-badge { background: var(--color-sante) }
.gestion        .metier-badge { background: var(--color-gestion) }
.education      .metier-badge { background: var(--color-education) }
.administration .metier-badge { background: var(--color-administration) }

/* ─── GRILLE D'ÉCOLES ────────────────────────── */
.ecoles-section-title {
  font-size: 1.6rem; font-weight: 800;
  color: var(--black);
  margin-bottom: 1.8rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid #eee;
}
.ecoles-section-title strong { font-weight: 900 }
.ecoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
  gap: 1.6rem;
}

/* ─── CARD ÉCOLE ─────────────────────────────── */
.ecole-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
  cursor: default;
}
.ecole-card:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.ecole-card-body {
  padding: 1.6rem 1.8rem 1.2rem;
  flex: 1;
}
.ecole-name {
  font-size: 1.45rem; font-weight: 800;
  color: var(--black);
  line-height: 1.35;
}

.ecole-card-footer {
  padding: .8rem 1.8rem 1.4rem;
  display: flex; justify-content: flex-end;
}
.btn-voir-plus {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.4rem;
  border: none; border-radius: 99px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-voir-plus:hover { opacity: .85; transform: scale(1.04) }
.btn-voir-plus .btn-icon {
  font-size: 1rem;
  transition: transform .2s;
}
.btn-voir-plus:hover .btn-icon { transform: translateX(3px) }

.ingenierie     .btn-voir-plus { background: var(--color-ingenierie) }
.sante          .btn-voir-plus { background: var(--color-sante) }
.gestion        .btn-voir-plus { background: var(--color-gestion) }
.education      .btn-voir-plus { background: var(--color-education) }
.administration .btn-voir-plus { background: var(--color-administration) }

/* ─── MODAL / POPUP ──────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.active {
  opacity: 1; pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 62rem; width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.25);
  transform: translateY(24px) scale(.97);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 2.4rem 2.8rem 1.6rem;
  position: relative;
  flex-shrink: 0;
}
.modal-domain-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem;
  border-radius: 99px;
  font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.modal-title {
  font-size: 2rem; font-weight: 900;
  color: var(--black);
  line-height: 1.25;
  padding-right: 4rem;
}
.modal-close {
  position: absolute; top: 2rem; right: 2.2rem;
  width: 3.6rem; height: 3.6rem;
  border: none; border-radius: 50%;
  background: #f0f0f0;
  color: #555;
  font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
  line-height: 1;
}
.modal-close:hover { background: #e0e0e0; transform: rotate(90deg) }

.modal-divider {
  height: 1px;
  background: #eee;
  margin: 0 2.8rem;
  flex-shrink: 0;
}

.modal-body {
  padding: 2rem 2.8rem 2.4rem;
  overflow-y: auto;
  flex: 1;
}
.modal-body::-webkit-scrollbar { width: 5px }
.modal-body::-webkit-scrollbar-track { background: #f5f5f5 }
.modal-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 99px }

.ecole-row {
  display: flex; gap: 1rem; padding: 1rem 0;
  font-size: 1.35rem; line-height: 1.55;
  border-bottom: 1px solid #f4f4f4;
}
.ecole-row:last-child { border-bottom: none }
.ecole-row-label {
  font-weight: 800; color: #999;
  min-width: 11rem; flex-shrink: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: .15rem;
}
.ecole-row-value { color: #2a2a2a; font-weight: 500 }

/* hide old accordion elements */
.ecole-details { display: none !important }

/* ─── DÉBOUCHÉS ──────────────────────────────── */
.debouches-block {
  margin-top: 2.4rem;
  padding: 1.6rem 2rem;
  background: #f5f5f5;
  border-radius: 10px;
}
.debouches-title {
  font-size: 1.4rem; font-weight: 800;
  color: var(--black); margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.debouches-list {
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.debouche-item {
  padding: .4rem 1rem;
  background: var(--white);
  border-radius: 5px;
  font-size: 1.2rem; font-weight: 600; color: #444;
  border: 1px solid #ddd;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 5.5rem 5% 3.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.6fr; gap: 4rem;
}
.footer-logo {
  font-size: 2.2rem; font-weight: 900;
  color: var(--white); margin-bottom: .9rem;
}
.footer-logo span { color: var(--orange) }
.footer-brand p {
  font-size: 1.35rem; color: rgba(255,255,255,.3);
  font-style: italic; line-height: 1.6;
}
.footer-col { display: flex; flex-direction: column; gap: .9rem }
.footer-col h4 {
  font-size: 1.15rem; font-weight: 800;
  color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .5rem;
}
.footer-col a, .footer-col span {
  font-size: 1.35rem; color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-col a:hover { color: var(--orange) }
.footer-bottom {
  max-width: 1180px; margin: 0 auto;
  padding: 2rem 5%;
  border-top: 1px solid rgba(255,255,255,.04);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 1.2rem; color: rgba(255,255,255,.2);
}

/* ─── RESPONSIVENESS ─────────────────────────── 
@media (max-width: 900px) {
  .nav-links { display: none }
  .burger { display: block }
  .hero h1 { font-size: 3.6rem }
  .ecoles-grid { grid-template-columns: 1fr }
}
@media (max-width: 480px) {
  html { font-size: 55% }
  .hero h1 { font-size: 2.8rem }
  .section-title { font-size: 1.6rem }
}*/

/* ─── RESPONSIVENESS ─────────────────────────── */
@media (max-width: 1100px) {
  .prog-grid { grid-template-columns: repeat(2,1fr) }
  .footer-inner { grid-template-columns: 1fr 1fr }
}
@media (max-width: 900px) {
  .nav-links { display: none }
  .burger { display: flex }
  /* Mobile nav ouvert */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 7rem; left: 0; right: 0; bottom: 0;
    background: rgba(11,11,11,.98); backdrop-filter: blur(12px);
    padding: 3rem 4rem; gap: 1.8rem;
    z-index: 999;
  }
  .nav-links.open .nav-link { font-size: 2rem }
  .nav-links.open .btn-cta { font-size: 2rem; padding: 1rem 2rem }

  .hero-title { font-size: 4rem }
  .hero-stats { display: none }

  .section-about .container { grid-template-columns: 1fr; gap: 5rem }
  .about-img-wrap { max-width: 48rem; margin: 0 auto }
  .about-float-badge { right: -1rem; bottom: -2rem }

  .prog-grid { grid-template-columns: 1fr }
  .section-contact .container { grid-template-columns: 1fr }
  .footer-inner { grid-template-columns: 1fr 1fr }
}
@media (max-width: 600px) {
  html { font-size: 56% }
  .hero-title { font-size: 3.2rem }
  .hero-lead { font-size: 1.5rem }
  h2 { font-size: 3.2rem }
  .form-row-2 { grid-template-columns: 1fr }
  .contact-form-box { padding: 2.4rem 2rem }
  .footer-inner { grid-template-columns: 1fr }
  .scroll-hint { display: none }
}
