:root {
  --navy: #142850;
  --navy-dark: #0c1a33;
  --gold: #c6a24d;
  --gold-light: #e6cd8a;
  --cream: #f8f6f1;
  --text: #22283a;
  --text-light: #5a6072;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 80, 0.12);
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: "Poppins", "Segoe UI", Arial, sans-serif; margin: 0 0 16px; line-height: 1.25; }

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: linear-gradient(160deg, var(--navy), var(--navy-dark)); color: var(--white); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--text-light); }
.section-navy .section-head p { color: #cfd8ec; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px rgba(198,162,77,0.35); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 16px rgba(20,40,80,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: auto; border-radius: 8px; }
.brand-text { line-height: 1.15; }
.brand-text .name { font-weight: 700; color: var(--navy); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.brand-text .tagline { font-size: 0.72rem; color: var(--gold); font-weight: 600; letter-spacing: 0.08em; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--text); position: relative; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-inner { flex-wrap: wrap; row-gap: 10px; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; color: var(--navy); white-space: nowrap; }

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

/* UNESCO strip */
.unesco-strip { background: var(--gold); color: var(--navy-dark); }
.unesco-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  padding: 12px 24px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.unesco-strip-inner a { text-decoration: underline; white-space: nowrap; }
.unesco-strip-inner a:hover { color: var(--navy); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 40px solid rgba(198,162,77,0.15);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { font-size: 2.6rem; }
.hero .motto { color: var(--gold-light); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 18px; }
.hero p.lead { color: #d7deef; font-size: 1.05rem; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--gold); }
.hero-stats div span { font-size: 0.82rem; color: #c3cce4; }
.hero-logo-wrap {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap img { max-width: 260px; border-radius: 16px; }

/* Cycles */
.cycles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cycle-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s ease;
}
.cycle-card:hover { transform: translateY(-6px); }
.cycle-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.cycle-card h3 { font-size: 1.05rem; color: var(--navy); }
.cycle-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card { text-align: left; }
.why-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  margin-bottom: 16px;
}
.why-card h3 { color: var(--navy); font-size: 1.15rem; }
.why-card p { color: var(--text-light); font-size: 0.94rem; }

/* Campuses */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.campus-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.campus-body { padding: 28px; }
.campus-body .badge {
  display: inline-block;
  background: rgba(198,162,77,0.15);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.campus-body h3 { color: var(--navy); margin-bottom: 6px; }
.campus-body .addr { color: var(--text-light); font-size: 0.92rem; margin-bottom: 16px; }
.campus-body .meta { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; margin-bottom: 18px; }
.campus-body .meta a { font-weight: 600; color: var(--navy); }
.campus-body .cycles-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.campus-body .cycles-tags span {
  background: var(--cream);
  border: 1px solid #e6e2d8;
  color: var(--text);
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Offers */
.offers-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
}
.offers-banner .year-badge {
  background: var(--gold);
  color: var(--navy-dark);
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  margin-bottom: 12px;
}
.offers-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.offers-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.94rem; }
.offers-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }

/* Admissions steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  text-align: center;
  padding: 24px 16px;
}
.step-card .step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step-card h3 { font-size: 1rem; color: var(--navy); }
.step-card p { font-size: 0.86rem; color: var(--text-light); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.gallery-grid figure {
  grid-column: span 3;
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  background: rgba(12, 26, 51, 0.85);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.social-row { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }
.social-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  color: var(--white);
  font-size: 1.1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.social-btn:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-3px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.contact-info-card .block { margin-bottom: 22px; }
.contact-info-card .block:last-child { margin-bottom: 0; }
.contact-info-card p { margin: 2px 0; font-size: 0.92rem; color: var(--text-light); }
.contact-info-card a { color: var(--navy); font-weight: 600; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd7c9;
  margin-bottom: 18px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--cream);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: -8px; margin-bottom: 18px; }
/* Footer */
.site-footer { background: var(--navy-dark); color: #c9d1e6; padding: 56px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.footer-brand img { height: 56px; border-radius: 8px; }
.footer-brand .name { color: var(--white); font-weight: 700; }
.footer-brand .motto { color: var(--gold); font-size: 0.8rem; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.88rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.8rem; color: #8b93ac; }

@media (max-width: 1320px) {
  .header-phone { display: none; }
}

/* Mobile */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo-wrap { order: -1; padding: 20px; }
  .hero-logo-wrap img { max-width: 160px; }
  .gallery-grid figure { grid-column: span 6; }
  .cycles-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .offers-banner { grid-template-columns: 1fr; }
  .offers-list { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span.label { display: none; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .hero h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Results */
.results-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.result-tile {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.result-tile .pct { font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-tile .label { font-weight: 600; margin-top: 6px; }
.result-tile .detail { color: #c3cce4; font-size: 0.88rem; margin-top: 4px; }

.exam-list { display: flex; flex-direction: column; gap: 14px; }
.exam-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.5fr;
  gap: 24px;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.exam-name strong { display: block; font-size: 1.05rem; }
.exam-name span { font-size: 0.8rem; color: #c3cce4; }
.exam-year-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.82rem; color: #c3cce4; margin-bottom: 6px; }
.exam-year-head b { color: var(--gold-light); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.exam-year-detail { font-size: 0.78rem; color: #c3cce4; margin-top: 6px; }
.bar { height: 8px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.results-note { text-align: center; color: #c3cce4; font-size: 0.8rem; margin-top: 20px; }

/* Mot de la Direction */
.direction-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.direction-intro { position: sticky; top: 110px; }
.direction-intro h2 { font-size: 2rem; color: var(--navy); }
.direction-motto { color: var(--gold); font-weight: 600; letter-spacing: 0.08em; margin: 0; }
.direction-text { max-width: 68ch; }
.direction-text p { margin: 0 0 18px; color: var(--text); line-height: 1.8; }
.direction-salutation { font-weight: 600; color: var(--navy); }
.direction-text .direction-lead { font-size: 1.2rem; font-weight: 500; color: var(--navy); line-height: 1.6; }
.direction-text .direction-closing { font-weight: 700; color: var(--navy); font-size: 1.1rem; margin-top: 8px; }
.direction-signature { margin-top: 28px; display: flex; flex-direction: column; gap: 2px; }
.direction-signature strong { color: var(--navy); font-size: 1.05rem; }
.direction-signature span { color: var(--text-light); font-size: 0.9rem; }

@media (max-width: 960px) {
  .direction-grid { grid-template-columns: 1fr; gap: 24px; }
  .direction-intro { position: static; }
}

@media (max-width: 520px) {
  .gallery-grid figure { grid-column: span 12; }
}

@media (max-width: 720px) {
  .results-summary { grid-template-columns: 1fr; }
  .result-tile .pct { font-size: 2.4rem; }
  .exam-row { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}
