/* =====================================================
   Newlight Benin Academy — design doux & premium
   Palette tirée des affiches : marine, bordeaux, doré
   ===================================================== */

:root {
  --navy: #1E2C5C;
  --navy-deep: #16214A;
  --navy-soft: #39476F;
  --red: #8E2233;
  --red-deep: #701A28;
  --gold: #D9A93D;
  --gold-dark: #A87F26;
  --gold-soft: #F3E4C2;
  --paper: #FBF8F1;
  --card: #FFFFFF;
  --ink: #26293B;
  --muted: #6B6F82;
  --line: #ECE5D6;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow-soft: 0 6px 24px rgba(30, 44, 92, 0.07);
  --shadow-float: 0 18px 48px rgba(30, 44, 92, 0.13);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Apparition en douceur ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Titres & libellés ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--navy); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
}
.eyebrow-light { color: var(--gold); }

.section-head {
  max-width: 620px;
  margin: 0 auto 2.8rem;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 22px rgba(142, 34, 51, 0.28);
}
.btn-primary:hover { background: var(--red-deep); box-shadow: 0 12px 28px rgba(142, 34, 51, 0.32); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #D9D2C2;
}
.btn-ghost:hover { border-color: var(--navy); background: #fff; }

.btn-small { padding: 0.5rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text { line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  display: block;
}
.brand-text small {
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 0.85rem; }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.35rem 0.7rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}
.lang-switch button.active { background: var(--navy); color: #fff; }

/* ---------- Héros ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 88% 8%, rgba(217, 169, 61, 0.16) 0%, transparent 65%),
    radial-gradient(640px 420px at 4% 92%, rgba(30, 44, 92, 0.07) 0%, transparent 60%),
    var(--paper);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.8rem 0 5.2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.6rem;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E9E5B;
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.16);
}
.hero-badge strong { color: var(--red); }

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero h1 em.accent {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}

.hero-slogan {
  font-size: 1.12rem;
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 14px;
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}
.hero-pill-fees {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  color: var(--navy);
}
.hero-pill-fees small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-pill-fees strong { font-size: 1rem; color: var(--red); }
.hero-pill-promo {
  background: color-mix(in srgb, var(--gold) 16%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold) 42%, #fff);
  color: var(--gold-dark);
}
.promo-badge {
  display: inline-grid;
  place-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-places {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-places em { color: var(--gold-dark); font-weight: 700; font-style: normal; }
.hero-places svg { color: var(--gold-dark); flex-shrink: 0; }

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(400px, 100%);
}

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 44, 92, 0.08);
  pointer-events: none;
}
.hero-photo img { width: 100%; aspect-ratio: 470 / 452; object-fit: cover; }

.hero-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 78%;
  height: 78%;
  right: -9%;
  bottom: -9%;
  border-radius: 38% 62% 55% 45% / 50% 44% 56% 50%;
  background: var(--gold-soft);
}

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-float);
  white-space: nowrap;
}
.chip-levels { top: 6%; left: -14%; }
.chip-quality { bottom: 7%; right: -8%; }

.chip-dots { display: inline-flex; gap: 3px; }
.chip-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chip-dots i:nth-child(1) { background: var(--navy); }
.chip-dots i:nth-child(2) { background: var(--red); }
.chip-dots i:nth-child(3) { background: var(--gold); }

.chip-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E7F4EC;
  color: #2E9E5B;
  font-size: 0.72rem;
  font-weight: 800;
}

/* ---------- Niveaux ---------- */

.levels { padding: 5rem 0 2.5rem; }

.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.level-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tint);
  opacity: 0.85;
}
.level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }

.level-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--tint) 18%, #fff);
  margin-bottom: 1.15rem;
}

.level-card h3 { font-size: 1.3rem; margin-bottom: 0.45rem; }
.level-note {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 12%, #fff);
  color: var(--tint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.level-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Pourquoi nous choisir ---------- */

.why { padding: 3.5rem 0 5rem; }

.why-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.why-card {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.7rem 2.5rem;
  box-shadow: var(--shadow-float);
}

.why-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }

.why-list { list-style: none; display: grid; gap: 1.05rem; }
.why-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.92);
}
.check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(217, 169, 61, 0.18);
  border: 1px solid rgba(217, 169, 61, 0.5);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.why-aside {
  display: grid;
  gap: 1.6rem;
  justify-items: start;
  padding-left: 0.5rem;
}
.why-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--navy);
  line-height: 1.35;
  position: relative;
}
.quote-mark {
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ---------- Actualités ---------- */

.news { padding: 0.5rem 0 5rem; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.news-card img { height: 185px; object-fit: cover; width: 100%; }
.news-card-body { padding: 1.25rem 1.35rem 1.5rem; }
.news-card h3 { font-size: 1.15rem; margin: 0.35rem 0 0.4rem; }
.news-card time {
  font-size: 0.74rem;
  color: var(--gold-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-card p { font-size: 0.92rem; color: var(--muted); white-space: pre-line; }

/* ---------- Pré-inscription ---------- */

.enroll {
  background:
    radial-gradient(700px 380px at 92% 100%, rgba(217, 169, 61, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #F4EFE4 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  padding: 5rem 0 5.5rem;
}

.enroll-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.enroll-intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
}
.enroll-intro > p { margin-top: 1rem; color: var(--muted); max-width: 46ch; }

.enroll-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.7rem;
}
.enroll-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.enroll-steps li span:first-child {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--gold-dark);
  font-weight: 800;
  font-size: 0.85rem;
}

.enroll-limited {
  margin-top: 1.6rem;
  font-size: 1.05rem;
}
.enroll-limited em { color: var(--red); font-weight: 800; font-style: normal; }

.enroll-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-float);
  display: grid;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.enroll-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
}

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  width: 100%;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217, 169, 61, 0.16);
  background: #fff;
}

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback { min-height: 1.4em; font-weight: 700; text-align: center; font-size: 0.92rem; }
.form-feedback.ok { color: #237A46; }
.form-feedback.err { color: var(--red); }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--navy-deep); color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 3.2rem 0 2.4rem;
  align-items: center;
}

.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.footer-brand p { font-style: italic; color: var(--gold); font-size: 0.93rem; margin-top: 0.15rem; }

.footer-contact { font-style: normal; display: grid; gap: 0.7rem; justify-self: end; }
.footer-contact p { display: flex; align-items: center; gap: 0.6rem; font-size: 0.93rem; color: rgba(255,255,255,0.88); }
.footer-contact svg { color: var(--gold); flex-shrink: 0; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bar .container { display: flex; justify-content: space-between; }
.footer-bar a { color: rgba(255, 255, 255, 0.45); text-decoration: none; }
.footer-bar a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .main-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding: 3.2rem 0 4rem; }
  .hero-visual { width: min(380px, 88%); }
  .chip-levels { left: -4%; }
  .chip-quality { right: -3%; }
  .why-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .why-aside { padding-left: 0; }
  .enroll-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { justify-self: start; }
}

@media (max-width: 580px) {
  .levels-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .header-actions .btn { display: none; }
  .hero-chip { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
  .chip-levels { left: 2%; }
  .chip-quality { right: 2%; }
  .enroll-form { padding: 1.5rem; }
}
