/* =========================================================
   SuccessPrepa — Nouveau design (v2)
   Style : ciel bleu, typographie condensée XXL, accent lime
   ========================================================= */
:root {
  --sky-deep: #0f4fc4;
  --sky: #2a72e0;
  --sky-light: #7db4f5;
  --ink: #0b0f1a;
  --ink-soft: #3a4150;
  --muted: #6b7280;
  --paper: #ffffff;
  --paper-2: #f4f6f9;
  --line: #e3e6ec;
  --accent: #b9e33a;          /* lime : changer ici pour l'or de la marque (#c9922a) */
  --accent-ink: #0b0f1a;
  --navy: #0a1c3a;
  --radius: 14px;
  --container: min(1200px, calc(100% - 32px));
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 0; }

.container { width: var(--container); margin-inline: auto; }

/* Fond pointillé discret (comme la maquette) */
.dots {
  background-image: radial-gradient(rgba(11, 15, 26, .08) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 18px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  border-radius: 4px; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .btn-ico {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink);
}
.btn .btn-ico svg { width: 14px; height: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { background: rgba(8,30,90,.28); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(8,30,90,.45); }
.btn-outline { border-color: var(--ink); color: var(--ink); padding: 10px 18px; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* =========================================================
   HERO
   ========================================================= */
.hero-wrap {
  padding: 16px;
  background:
    radial-gradient(60% 40% at 15% 70%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(50% 35% at 85% 30%, rgba(255,255,255,.45), transparent 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 45%, var(--sky-light) 100%);
}
.hero {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  min-height: min(88vh, 820px);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(38% 22% at 78% 78%, rgba(255,255,255,.95), rgba(255,255,255,0) 70%),
    radial-gradient(30% 18% at 92% 66%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(34% 20% at 8% 92%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    radial-gradient(25% 14% at 30% 98%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    radial-gradient(20% 10% at 70% 20%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #1559d1 0%, #2f7ae6 55%, #8cc0f7 100%);
  box-shadow: 0 30px 80px rgba(6, 30, 80, .35);
  isolation: isolate;
}

/* Nav vitrée */
.nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 18px 18px 0;
  padding: 10px 12px 10px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand .brand-logo { height: 46px; width: auto; }
@media (max-width: 760px) { .brand .brand-logo { height: 40px; } }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  padding: 8px 9px; border-radius: 4px; white-space: nowrap;
  color: rgba(255,255,255,.88); font-size: 13px; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
  color: #fff; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* Titre XXL */
.hero-title {
  position: absolute; z-index: 1;
  left: 0; right: 0; top: 15%;
  text-align: center;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(84px, 17.5vw, 250px);
  line-height: .86;
  letter-spacing: -.005em;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 10px 40px rgba(0, 30, 90, .18);
  pointer-events: none;
  user-select: none;
}
.hero-title .dot { color: var(--accent); }

/* Élèves détourés */
.hero-people {
  position: absolute; z-index: 2;
  bottom: 0; left: 50%;
  transform: translateX(-46%);
  height: 74%;
  width: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 20, 70, .35));
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both .1s;
}
@keyframes rise { from { opacity: 0; transform: translate(-46%, 40px); } to { opacity: 1; transform: translate(-46%, 0); } }

/* Carte vitrée bas-gauche */
.hero-card {
  position: absolute; z-index: 3;
  left: 26px; bottom: 96px;
  max-width: 270px;
  padding: 16px 18px;
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero-card small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.hero-card p { font-size: 19px; line-height: 1.25; font-weight: 500; }

.hero-actions {
  position: absolute; z-index: 3;
  left: 26px; bottom: 30px;
  display: flex; gap: 10px; flex-wrap: wrap;
}

.hero-schools {
  position: absolute; z-index: 3;
  right: 26px; bottom: 30px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.hero-schools .logos { display: flex; }
.hero-schools .logos img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: contain;
  background: #fff; border: 2px solid #fff; margin-left: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.hero-schools .logos img:first-child { margin-left: 0; }

/* =========================================================
   Sections génériques
   ========================================================= */
.section { padding: 96px 0; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 44px;
  font-size: 12px; color: var(--ink); font-weight: 500;
}
.section-head .letter {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--ink); font-size: 12px; font-weight: 600;
  flex: none;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

.display {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .003em;
}
.h2 { font-size: clamp(38px, 5vw, 64px); }

/* ---------- A. À propos ---------- */
.about-top {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 40px;
  align-items: start; margin-bottom: 56px;
}
.about-top p { font-size: 14.5px; color: var(--ink-soft); }
.about-top .col-cta { display: grid; gap: 20px; justify-items: start; }

.about-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.about-main {
  position: relative; overflow: hidden; border-radius: 4px;
  min-height: 560px;
  background: #0c3b8f;
}
.about-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 40, 110, .1) 40%, rgba(5, 20, 60, .75) 100%);
}
.about-stats {
  position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
}
.stat-chip {
  padding: 14px 16px;
  background: rgba(10, 20, 40, .55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
.stat-chip b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; color: var(--accent); }
.stat-chip span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.stat-arrow {
  display: grid; place-items: center; width: 74px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; color: #fff; transition: background .2s;
}
.stat-arrow:hover { background: var(--accent); color: var(--ink); }
.stat-arrow svg { width: 26px; height: 26px; }

.about-side { display: flex; flex-direction: column; gap: 40px; }
.about-side .photo { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 4.2; width: 82%; margin-left: auto; }
.about-side .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.big-stat { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.big-stat b { font-family: var(--body); font-weight: 400; font-size: clamp(96px, 11vw, 150px); line-height: .85; color: var(--accent); letter-spacing: -.04em; }
.big-stat span { font-size: 20px; line-height: 1.2; color: var(--ink); }
.bullets { list-style: none; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-soft); }
.bullets li { display: flex; gap: 10px; align-items: baseline; }
.bullets li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); flex: none; transform: translateY(-2px); }

/* ---------- B. Formations ---------- */
.programs-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.programs-head p { max-width: 420px; font-size: 14.5px; }
.slider-btns { display: flex; gap: 8px; }
.slider-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 4px; border: 1px solid var(--ink); background: #fff; color: var(--ink);
  transition: background .2s, color .2s;
}
.slider-btn:hover { background: var(--ink); color: #fff; }
.slider-btn svg { width: 18px; height: 18px; }

.programs {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 30%);
  gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.programs::-webkit-scrollbar { display: none; }
.program { scroll-snap-align: start; display: block; }
.program .img {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 4.4; background: var(--paper-2);
}
.program .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.program:hover .img img { transform: scale(1.05); }
.program .tag {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 40px;
  background: #fff; font-size: 12px; font-weight: 600; color: var(--ink);
}
.program .tag img { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; }
.program .go {
  position: absolute; right: 12px; bottom: 12px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 4px; background: var(--accent); color: var(--ink);
  transform: translateY(8px); opacity: 0; transition: .3s;
}
.program:hover .go, .program:focus-visible .go { transform: none; opacity: 1; }
.program .go svg { width: 20px; height: 20px; }
.program h3 { margin-top: 14px; font-size: 21px; font-weight: 500; color: var(--ink); }
.program p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- C. Méthode (bande sombre) ---------- */
.method { background: var(--ink); color: #c9ced8; }
.method .section-head { color: #fff; }
.method .section-head .letter { border-color: #fff; }
.method .section-head .rule { background: rgba(255,255,255,.15); }
.method .display { color: #fff; }
.method-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.method-grid > div > p { margin-top: 20px; max-width: 420px; }
.method-quote { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--accent); color: #fff; font-size: 18px; font-style: italic; }
.pillars { display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
.pillar { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 28px 26px; background: var(--ink); transition: background .3s; }
.pillar:hover { background: #141a2a; }
.pillar .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); }
.pillar h3 { font-size: 20px; font-weight: 600; color: #fff; }
.pillar p { margin-top: 6px; font-size: 14px; }

/* ---------- D. Témoignages ---------- */
.testis {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; scrollbar-width: none;
}
.testis::-webkit-scrollbar { display: none; }
.testi {
  scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  padding: 26px; border-radius: 4px;
  background: #fff; border: 1px solid var(--line);
}
.testi blockquote { font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.testi figcaption { display: flex; align-items: center; gap: 12px; }
.testi figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.testi figcaption b { display: block; font-size: 14px; color: var(--ink); }
.testi figcaption span { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 3px; background: var(--ink); color: var(--accent); font-size: 11.5px; font-weight: 600; }
.testi:nth-child(3n+2) { background: var(--sky); border-color: var(--sky); }
.testi:nth-child(3n+2) blockquote, .testi:nth-child(3n+2) figcaption b { color: #fff; }

/* ---------- E. Le Successien ---------- */
.kit {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 64px 56px 0;
  border-radius: 6px;
  background:
    radial-gradient(40% 50% at 90% 10%, rgba(255,255,255,.25), transparent 70%),
    linear-gradient(135deg, var(--sky-deep), var(--sky));
  color: #e6efff;
}
.kit .eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.kit .display { color: #fff; margin-top: 14px; }
.kit p { margin-top: 18px; max-width: 480px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0; }
.price b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; color: #fff; }
.price span { font-size: 15px; font-weight: 600; color: var(--accent); }
.kit .actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 64px; }
.kit-img { align-self: end; }
.kit-img img { width: min(380px, 100%); margin-inline: auto; transform: rotate(-4deg) translateY(30px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }

/* ---------- CTA final ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: 110px 24px;
  text-align: center; color: #fff;
  background:
    radial-gradient(30% 30% at 10% 90%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(35% 30% at 90% 85%, rgba(255,255,255,.6), transparent 70%),
    linear-gradient(180deg, #1559d1, #5c9cef);
}
.cta .display { color: #fff; font-size: clamp(48px, 9vw, 130px); line-height: .9; }
.cta p { margin: 22px auto 30px; max-width: 520px; font-size: 16px; color: rgba(255,255,255,.92); }
.cta .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9aa2b1; padding: 72px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-logo { height: 110px; width: auto; }
.footer-credit a { color: var(--accent); font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }
.footer-about { margin-top: 18px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); color: #fff; }
.socials a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.socials svg { width: 17px; height: 17px; }
.footer-word {
  margin-top: 64px;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(56px, 15vw, 210px); line-height: .8;
  color: #161c2c; text-align: center; white-space: nowrap; overflow: hidden;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav-links, .nav-cta .btn-secondary-nav { display: none; }
  .menu-toggle { display: grid; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    padding: 10px; border-radius: 6px;
    background: rgba(12, 40, 110, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .nav-links.is-open .nav-link { padding: 12px 14px; font-size: 15px; }
}
@media (max-width: 1080px) {
  .about-top { grid-template-columns: 1fr 1fr; }
  .about-top h2 { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero-wrap { padding: 10px; }
  .hero { width: 100%; min-height: 720px; }
  .nav { margin: 10px 10px 0; }
  .nav-cta .btn-light { display: none; }
  .hero-title { top: 15%; font-size: 23vw; line-height: .9; white-space: normal; }
  .hero-people { height: 58%; transform: translateX(-50%); animation-name: rise-m; }
  @keyframes rise-m { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
  .hero-card { left: 12px; right: 12px; bottom: 132px; max-width: none; padding: 12px 14px; }
  .hero-card p { font-size: 16px; }
  .hero-actions { left: 12px; right: 12px; bottom: 14px; }
  .hero-actions { flex-direction: column; gap: 8px; }
  .hero-actions .btn { justify-content: center; }
  .hero-schools { display: none; }

  .section { padding: 64px 0; }
  .about-top { grid-template-columns: 1fr; gap: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-main { min-height: 460px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-arrow { display: none; }
  .about-side .photo { width: 100%; }
  .programs-head { flex-direction: column; align-items: start; }
  .programs { grid-auto-columns: 82%; }
  .testis { grid-auto-columns: 86%; }
  .kit { grid-template-columns: 1fr; padding: 40px 22px 0; }
  .kit .actions { padding-bottom: 0; }
  .kit-img img { width: 70%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Écran d'accueil « Concours / Soutien scolaire » (gateway)
   ========================================================= */
body.gateway-active { overflow: hidden !important; height: 100vh !important; }
.gateway-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(40% 30% at 15% 95%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(40% 30% at 90% 90%, rgba(255,255,255,.7), transparent 70%),
    linear-gradient(180deg, #1559d1 0%, #2f7ae6 55%, #8cc0f7 100%);
  transition: opacity .5s ease, visibility .5s ease;
}
.gateway-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gateway-content { width: 100%; max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; animation: gw-in .8s cubic-bezier(.16,1,.3,1) both; }
.gateway-logo { width: 280px; max-width: 70vw; height: auto; filter: drop-shadow(0 8px 24px rgba(0,30,90,.25)); }
.gateway-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.gateway-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 28px 24px; text-align: left; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); border-radius: 6px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s, background .25s, color .25s;
}
.gateway-btn span { font-family: var(--display); font-size: 40px; line-height: 1; text-transform: uppercase; }
.gateway-btn small { font-size: 14px; opacity: .9; }
.gateway-btn:hover, .gateway-btn:focus-visible { transform: translateY(-4px); background: #fff; color: var(--ink); outline: none; }
.gateway-btn.btn-concours:hover span { color: var(--sky-deep); }
@keyframes gw-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .gateway-buttons { grid-template-columns: 1fr; max-width: 340px; } .gateway-btn span { font-size: 32px; } }

.gateway-modal { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.gateway-modal.is-active { opacity: 1; visibility: visible; }
.gateway-modal-overlay { position: absolute; inset: 0; background: rgba(6,20,60,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gateway-modal-container { position: relative; z-index: 2; width: 90%; max-width: 440px; padding: 40px 32px; background: #fff; border-radius: 6px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: 0 24px 48px rgba(10,28,58,.2); }
.gateway-modal-close { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); }
.gateway-modal-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); margin-bottom: 18px; }
.gateway-modal-icon svg { width: 28px; height: 28px; }
.gateway-modal h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; color: var(--ink); margin-bottom: 10px; }
.gateway-modal p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.gateway-modal-btn { border: 0; background: var(--ink); color: #fff; padding: 12px 28px; border-radius: 4px; font-weight: 600; }
.gateway-passed #gateway-overlay { display: none !important; }
.gateway-passed body.gateway-active { overflow: auto !important; height: auto !important; }

/* Retour en haut + barre de progression (main.js) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: 4px; background: var(--accent); color: var(--ink); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; }

/* Moyens de paiement (pied de page) */
.footer-bottom { align-items: center; }
.pay-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pay-row .pay-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #9aa2b1; margin-right: 6px; }
.pay-row img { height: 34px; width: auto; border-radius: 6px; background: #fff; }
.footer-credit a { color: var(--accent); font-weight: 600; }

/* Bouton S'inscrire dupliqué dans le menu (visible seulement dans le menu mobile ouvert) */
.nav-links .nav-cta-btn { display: none; }
.nav-links.is-open .nav-cta-btn { display: inline-flex; justify-content: center; margin-top: 6px; background: #fff; color: var(--ink); }
.footer-credit a { color: #9aa2b1; font-weight: 500; }
.footer-credit a strong { color: var(--accent); }
.footer-credit a:hover { color: #fff; }

/* ---------- Identité ivoirienne : bande aux couleurs du drapeau ---------- */
:root { --ci-orange: #ff8200; --ci-green: #009a44; }
body::before { content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--ci-orange) 0 33.34%, #fff 33.34% 66.67%, var(--ci-green) 66.67%); }
.footer { position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--ci-orange) 0 33.34%, #fff 33.34% 66.67%, var(--ci-green) 66.67%); }
.flag-inline { display: inline-block; width: 1.6em; height: auto; aspect-ratio: 3 / 2; vertical-align: -0.2em; margin-right: .45em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11,15,26,.12); }
.gateway-overlay::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--ci-orange) 0 33.34%, #fff 33.34% 66.67%, var(--ci-green) 66.67%); }
.gateway-ci { margin-top: -22px; color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-shadow: 0 2px 12px rgba(0,30,90,.25); }
