/* ===========================
   EDUCAGROUP — STYLE PRINCIPAL
   =========================== */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --navy-light: #1e3a5f;
  --gold: #c8972a;
  --gold-light: #e8b84b;
  --cream: #f8f4ed;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --blue: #2563eb;
  --green: #059669;
  --orange: #d97706;
  --purple: #7c3aed;
  --red: #dc2626;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 20px rgba(10,22,40,.10);
  --shadow-lg: 0 20px 60px rgba(10,22,40,.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
}
em { font-style: italic; color: var(--gold); }

a { text-decoration: none; color: inherit; }
address { font-style: normal; }
img { display: block; max-width: 100%; }

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,151,42,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); }
.btn-secondary { background: var(--navy); color: var(--white); }
.btn-secondary:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .875rem; }

/* SECTIONS */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: rgba(200,151,42,.12);
  color: var(--gold);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-desc {
  max-width: 580px;
  margin: 0 auto;
  color: var(--gray-500);
  font-size: 1.05rem;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ========================
   HEADER
   ======================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(10,22,40,.08);
}
.header-top {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  padding: 8px 0;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top-links { display: flex; gap: 20px; }
.header-top-links a { color: rgba(255,255,255,.7); transition: color .2s; }
.header-top-links a:hover { color: var(--gold); }
.admin-link { color: var(--gold) !important; font-weight: 600; }

.navbar { padding: 0; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 2px solid var(--gold);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.logo-sub { font-size: .7rem; color: var(--gray-500); letter-spacing: .05em; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--navy); background: var(--cream); }
.btn-nav {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
}
.btn-nav:hover { background: var(--gold) !important; color: var(--navy) !important; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .875rem;
  color: var(--gray-700);
}
.dropdown a:hover { background: var(--cream); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #0d2d52 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--gold);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #4a90d9;
  bottom: -100px; left: -100px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--gold-light);
  top: 40%; left: 40%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { position: relative; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,151,42,.15);
  color: var(--gold-light);
  border: 1px solid rgba(200,151,42,.3);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 28px;
  animation: fadeInUp .8s ease both;
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeInUp .8s ease .15s both;
  font-weight: 900;
}
.hero-title em { color: var(--gold-light); }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.8;
  animation: fadeInUp .8s ease .25s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp .8s ease .35s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 24px 32px;
  animation: fadeInUp .8s ease .45s both;
}
.stat { text-align: center; flex: 1; }
.stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-light);
}
.stat span { font-size: .8rem; color: rgba(255,255,255,.6); }
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
  margin: 0 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

/* ========================
   ÉTABLISSEMENTS
   ======================== */
.etablissements-section { background: var(--cream); }
.etablissements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.etablissements-grid .etab-card:nth-child(4),
.etablissements-grid .etab-card:nth-child(5) {
  grid-column: span 1;
}
/* Position last 2 cards centered */
.etablissements-grid .etab-card:nth-child(4) { grid-column: 1; }
.etablissements-grid .etab-card:nth-child(5) { grid-column: 2; }

.etab-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.etab-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.etab-card[data-color="blue"]::before { background: var(--blue); }
.etab-card[data-color="green"]::before { background: var(--green); }
.etab-card[data-color="orange"]::before { background: var(--orange); }
.etab-card[data-color="purple"]::before { background: var(--purple); }
.etab-card[data-color="red"]::before { background: var(--red); }

.etab-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.etab-card[data-color="blue"]:hover { border-color: var(--blue); }
.etab-card[data-color="green"]:hover { border-color: var(--green); }
.etab-card[data-color="orange"]:hover { border-color: var(--orange); }
.etab-card[data-color="purple"]:hover { border-color: var(--purple); }
.etab-card[data-color="red"]:hover { border-color: var(--red); }

.etab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.etab-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
}
.etab-type {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 100px;
}
.etab-name {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.etab-desc { font-size: .875rem; color: var(--gray-500); margin-bottom: 20px; line-height: 1.7; }
.etab-info {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.etab-responsable {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 10px;
  margin-bottom: 20px;
}
.resp-avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.etab-responsable strong { display: block; font-size: .875rem; color: var(--navy); }
.etab-responsable small { font-size: .75rem; color: var(--gray-500); }
.etab-link {
  font-weight: 600;
  font-size: .875rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.etab-link:hover { color: var(--gold); }
.etab-link:hover span { margin-left: 4px; }

/* ========================
   CHIFFRES
   ======================== */
.chiffres-section {
  position: relative;
  background: var(--navy);
  padding: 80px 0;
  overflow: hidden;
}
.chiffres-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.chiffres-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 2px;
}
.chiffre-item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.chiffre-item:last-child { border: none; }
.chiffre-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  display: inline-block;
}
.chiffre-unit {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold-light);
  display: inline-block;
}
.chiffre-label {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ========================
   WHY SECTION
   ======================== */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-items { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.why-item {
  display: flex;
  gap: 20px;
}
.why-icon {
  width: 48px;
  height: 48px;
  background: rgba(200,151,42,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-item strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 1rem; }
.why-item p { font-size: .875rem; color: var(--gray-500); }

.why-visual { position: relative; height: 400px; }
.why-card-stack { position: absolute; inset: 0; }
.why-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 160px;
}
.wc-icon { font-size: 2rem; margin-bottom: 8px; }
.why-card strong { display: block; font-size: 1.4rem; color: var(--navy); font-family: 'Playfair Display', serif; }
.why-card span { font-size: .8rem; color: var(--gray-500); }
.wc-1 { top: 20px; left: 20px; background: var(--navy); }
.wc-1 strong { color: var(--gold); }
.wc-1 span { color: rgba(255,255,255,.6); }
.wc-2 { top: 100px; right: 20px; }
.wc-3 { bottom: 30px; left: 80px; background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); }
.wc-3 strong { color: var(--navy); }
.wc-3 span { color: rgba(10,22,40,.6); }

/* ========================
   ACTUALITÉS
   ======================== */
.actus-section { background: var(--gray-50); }
.section-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; }
.section-header .see-all {
  font-weight: 600;
  font-size: .875rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.actus-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}
.actu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.actu-img {
  height: 180px;
  background: var(--navy);
}
.actu-featured .actu-img { height: 240px; }
.actu-img-1 { background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%); position: relative; overflow: hidden; }
.actu-img-1::after { content: '🎓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.actu-img-2 { background: linear-gradient(135deg, #1e4d3a 0%, #0a2818 100%); position: relative; overflow: hidden; }
.actu-img-2::after { content: '📅'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.actu-img-3 { background: linear-gradient(135deg, #3a1e4d 0%, #1a0a2e 100%); position: relative; overflow: hidden; }
.actu-img-3::after { content: '🔬'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.actu-body { padding: 24px; }
.actu-tag {
  display: inline-block;
  background: rgba(200,151,42,.12);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.actu-body h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--navy); }
.actu-body p { font-size: .875rem; color: var(--gray-500); margin-bottom: 16px; }
.actu-link { font-weight: 600; font-size: .875rem; color: var(--navy); transition: color .2s; }
.actu-link:hover { color: var(--gold); }

/* ========================
   CTA
   ======================== */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-content { position: relative; z-index: 1; max-width: 520px; }
.cta-content h2 { font-size: 2.2rem; color: var(--white); margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-decoration { position: relative; flex-shrink: 0; }
.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(200,151,42,.2);
}
.c1 { width: 200px; height: 200px; top: -80px; right: -60px; }
.c2 { width: 130px; height: 130px; top: -40px; right: -20px; }
.cta-number {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(200,151,42,.15);
  line-height: 1;
}

/* ========================
   FOOTER
   ======================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { margin-bottom: 20px; }
.footer-brand .logo-main { color: var(--white); }
.footer-brand p { font-size: .875rem; line-height: 1.7; margin-bottom: 24px; }
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address p { font-size: .875rem; margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom div { display: flex; gap: 24px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--gold); }

/* ========================
   PAGE — ÉTABLISSEMENTS
   ======================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: var(--gold);
  border-radius: 50%;
  opacity: .05;
  top: -200px; right: -100px;
}
.page-hero-content { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: rgba(255,255,255,.3); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,.7); max-width: 560px; font-size: 1.05rem; }

/* ETABLISSEMENT DETAIL */
.etab-detail-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.etab-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,151,42,.12);
  color: var(--gold);
  border: 1px solid rgba(200,151,42,.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.etab-detail-name { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.etab-detail-desc { color: var(--gray-500); margin-bottom: 32px; font-size: 1.05rem; line-height: 1.8; }
.etab-detail-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--gray-500);
}
.meta-item strong { color: var(--navy); }

.etab-visual {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}
.etab-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* RESPONSABLE CARD */
.responsable-section { padding: 60px 0; background: var(--cream); }
.responsable-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow);
  max-width: 700px;
}
.resp-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  border: 4px solid var(--gold);
  overflow: hidden;
}
.resp-photo img { width: 100%; height: 100%; object-fit: cover; }
.responsable-info .label { color: var(--gold); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.responsable-info h3 { font-size: 1.6rem; margin-bottom: 4px; }
.responsable-info .role { color: var(--gray-500); margin-bottom: 16px; }
.responsable-info p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; }

/* FORMATIONS TABS */
.formations-section { padding: 80px 0; }
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--gray-100);
  margin-bottom: 40px;
}
.tab-btn {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { color: var(--navy); border-bottom-color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.formation-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid transparent;
  transition: var(--transition);
}
.formation-card:hover { border-color: var(--gold); background: var(--white); }
.formation-card h4 { font-size: 1rem; margin-bottom: 8px; color: var(--navy); }
.formation-card p { font-size: .825rem; color: var(--gray-500); }

/* ========================
   ADMISSIONS PAGE
   ======================== */
.admissions-section { padding: 80px 0; }
.form-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-header {
  background: var(--navy);
  padding: 40px;
  color: var(--white);
}
.form-header h2 { color: var(--white); margin-bottom: 8px; }
.form-header p { color: rgba(255,255,255,.7); font-size: .9rem; }
.form-steps {
  display: flex;
  gap: 0;
  margin-top: 24px;
}
.form-step {
  flex: 1;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  position: relative;
}
.form-step.active { color: var(--gold); font-weight: 600; }
.form-step::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.form-step.active::after { background: var(--gold); }

.form-body { padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--navy);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200,151,42,.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.file-upload {
  border: 2px dashed var(--gray-300);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.file-upload:hover { border-color: var(--gold); background: rgba(200,151,42,.03); }
.file-upload input { display: none; }
.file-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.file-upload p { font-size: .875rem; color: var(--gray-500); }
.file-upload small { color: var(--gray-300); font-size: .75rem; }

.form-submit {
  padding: 32px 40px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-notice { font-size: .8rem; color: var(--gray-500); }
.form-success {
  display: none;
  padding: 40px;
  text-align: center;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { color: var(--navy); margin-bottom: 8px; }
.form-success p { color: var(--gray-500); font-size: .9rem; }

/* ========================
   ADMIN — LOGIN
   ======================== */
.admin-body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  font-family: 'DM Sans', sans-serif;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,151,42,.1);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.login-card h2 { text-align: center; font-size: 1.6rem; margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: var(--gray-500); font-size: .875rem; margin-bottom: 32px; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.login-form .form-group { display: flex; flex-direction: column; gap: 8px; }
.login-form label { font-size: .8rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; }
.login-form input {
  padding: 14px 16px;
  border: 2px solid var(--gray-100);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.login-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200,151,42,.08); }
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.login-btn:hover { background: var(--gold); color: var(--navy); }
.login-back { display: block; text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: 16px; }
.login-back a { color: var(--gold); }
.alert { padding: 12px 16px; border-radius: 8px; font-size: .875rem; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }

/* ========================
   ADMIN — DASHBOARD
   ======================== */
.admin-layout { display: flex; min-height: 100vh; background: var(--gray-50); }
.admin-sidebar {
  width: 260px;
  background: var(--navy);
  color: rgba(255,255,255,.8);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
}
.sidebar-logo {
  padding: 28px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}
.nav-section-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  padding: 12px 12px 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: var(--white); }
.sidebar-link.active { background: rgba(200,151,42,.15); color: var(--gold); }
.sidebar-link .icon { font-size: 1rem; width: 20px; text-align: center; }
.sidebar-footer {
  padding: 20px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 { font-size: 1.2rem; font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--navy); }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--gray-500); }
.user-avatar {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
}

.admin-content { padding: 32px; }
.admin-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 12px; }
.stat-card .stat-value { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.stat-card .stat-label { font-size: .8rem; color: var(--gray-500); }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.panel-header h2 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--navy); }
.panel-body { padding: 24px; }

.etab-list { display: flex; flex-direction: column; gap: 16px; }
.etab-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: var(--transition);
}
.etab-list-item:hover { background: var(--gray-100); }
.etab-color-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.etab-list-info { flex: 1; }
.etab-list-info strong { display: block; font-size: .9rem; color: var(--navy); }
.etab-list-info span { font-size: .8rem; color: var(--gray-500); }
.etab-list-actions { display: flex; gap: 8px; }
.btn-icon {
  width: 32px; height: 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.btn-edit { background: rgba(37,99,235,.1); }
.btn-edit:hover { background: rgba(37,99,235,.2); }
.btn-delete { background: rgba(220,38,38,.1); }
.btn-delete:hover { background: rgba(220,38,38,.2); }

/* ADMIN EDIT FORM */
.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edit-form .full { grid-column: 1 / -1; }
.photo-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.photo-upload-area:hover { border-color: var(--gold); }
.photo-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-family: 'Playfair Display', serif;
  overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}
.data-table td {
  padding: 14px 16px;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-700);
}
.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: var(--gray-50); }
.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-new { background: #ecfdf5; color: #059669; }
.badge-review { background: #fffbeb; color: #d97706; }
.badge-accepted { background: #eff6ff; color: #2563eb; }
.badge-rejected { background: #fef2f2; color: #dc2626; }

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: .5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .etablissements-grid { grid-template-columns: repeat(2, 1fr); }
  .etablissements-grid .etab-card:nth-child(4),
  .etablissements-grid .etab-card:nth-child(5) { grid-column: auto; }
  .actus-grid { grid-template-columns: 1fr 1fr; }
  .actu-card.actu-featured { grid-column: 1/-1; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { height: 250px; }
  .chiffres-grid { grid-template-columns: repeat(2,1fr); }
  .chiffre-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid { grid-template-columns: repeat(2,1fr); }
  .edit-form { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-top { display: none; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu a { width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: var(--gray-50); }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .hero-stats { flex-wrap: wrap; }
  .stat-divider { display: none; }
  .etablissements-grid { grid-template-columns: 1fr; }
  .actus-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; padding: 40px 24px; }
  .cta-decoration { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { position: static; width: 100%; height: auto; }
  .admin-main { margin-left: 0; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .chiffres-grid { grid-template-columns: repeat(2,1fr); }
  .why-card-stack { position: relative; display: flex; gap: 16px; flex-wrap: wrap; height: auto; }
  .why-card { position: static; min-width: auto; flex: 1; min-width: 140px; }
  .etab-detail-header { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .tab-content.active { grid-template-columns: 1fr; }
}
