/* landing-base.css — landing-scoped reset + design tokens.
 *
 * Loaded ONLY by the /landings/<subdomain> route (and the EDMS portal
 * preview when landingsSchema.portal.bodyClass === 'edms-landing').
 * Mirrors postbac.epitech.africa exactly so each landing's nav / footer
 * are pixel-faithful regardless of the landing-specific theme tokens.
 *
 * Per-landing colours come from `--landing-*` CSS vars injected at
 * render time by the Astro route from the landing's `theme` field.
 */

/* ── Reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.edms-landing {
  background: var(--landing-bg, #ffffff);
  color: var(--landing-text, #181818);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wrapped in :where() on both sides to zero the entire reset's
 * specificity. Without this, the reset's `margin:0` beat per-section
 * title rules (e.g. `.landing-metiers__title { margin-bottom: 48px }`)
 * because `body.edms-landing h2` (0,1,1) > `.landing-metiers__title`
 * (0,1,0). Result: every section h2 touched its content. With this
 * `:where()` form the reset has 0 specificity and per-section
 * margin-bottom values win cleanly. */
:where(body.edms-landing h1, body.edms-landing h2, body.edms-landing h3, body.edms-landing h4) {
  font-family: 'Anton', 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}

/* Use `:where()` to zero out the specificity of this reset so explicit
 * per-element colour rules (e.g. .edms-landing-nav__logo) win without
 * needing increasingly specific selectors. */
:where(body.edms-landing a) { color: inherit; text-decoration: none; }
body.edms-landing img { max-width: 100%; height: auto; display: block; }
body.edms-landing button { font-family: inherit; cursor: pointer; }

/* Section container utility — kept for portal sections that emit a
 * wrap via edms/server.ts. Nav/footer set their own widths. */
body.edms-landing .edms-section-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 32px);
}

/* ── Landing Nav ───────────────────────────────────────────────────── */
/* Fixed transparent overlay over the hero. Logo is the boxed wordmark;
 * nav links are dim-white; CTA pill is the accent green with sharp
 * corners (border-radius: 0 is the brand language). */

.edms-landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  height: 68px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Public scrolled state — applied by the Astro route's <script is:inline>
 * runtime when window.scrollY > 50. Transitions from transparent (over
 * the hero) to the per-landing scrolled background colour, matching the
 * source files' production behaviour. */
.edms-landing-nav.scrolled {
  background: var(--landing-nav-bg, rgba(1, 26, 120, 0.96));
  backdrop-filter: blur(16px);
}

/* Push the first body-child below the fixed nav so the first section
 * starts below the visual nav band rather than under it. position: fixed
 * removes the nav from flow, so without this rule a non-hero first
 * section would paint starting at top:0 and the nav would overlap it.
 *
 * `.landing-hero` is excluded because it already pads its OWN content
 * (`.landing-hero__content { padding-top: 68px }`) for nav clearance.
 * Without the exclusion, the hero gets a doubled 136px clearance and the
 * H1 sits visibly lower than the source design. */
body.edms-landing > .edms-landing-nav + *:not(.landing-hero) {
  padding-top: 68px;
}

/* Edit-mode override — when the landing renders inside the admin canvas
 * (wrapped in .adm-layout / .adm-layout__content from packages/admin),
 * the fixed-position nav otherwise covers the admin toolbar + sidebar
 * + the "Insert section" button. Reset to static so the nav flows
 * normally and admin chrome stays interactive. We also paint a primary
 * background so the white logo / white nav links are visible against
 * the admin's white canvas; the production overlay-on-hero look is
 * verified via Preview mode. Use Preview mode to verify the production
 * fixed-overlay behavior. */
.adm-layout .edms-landing-nav,
.adm-layout__content .edms-landing-nav {
  position: static;
  z-index: auto;
  background: var(--landing-nav-bg, rgba(1, 26, 120, 0.96));
  backdrop-filter: blur(16px);
}
.adm-layout__content .edms-landing-nav + * {
  /* The next-sibling padding compensation is only needed when nav
   * is taken out of flow. Inside admin, nav is back in flow, so
   * the hero doesn't need top-padding clearance. */
  padding-top: 0;
}

.edms-landing-nav__inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.edms-landing-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6.4px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  font-size: 17.6px;
  letter-spacing: 3px;
  text-transform: none;
}

/* Universal logo image size — any uploaded image renders at the same
   display size, regardless of its natural dimensions. object-fit keeps
   aspect; max-width prevents ultra-wide images from breaking the nav
   layout. Selector is scoped to body.edms-landing to outrank the
   `body.edms-landing img { height: auto }` content-image reset above. */
body.edms-landing .edms-landing-nav__logo-img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* When the chip contains an uploaded image, drop the wordmark-chip
   styling (border + padding) so the image isn't framed by an unrelated
   border. The text-wordmark and SVG-fallback branches keep the chip. */
body.edms-landing .edms-landing-nav__logo:has(.edms-landing-nav__logo-img) {
  border: none;
  padding: 0;
}

/* HideableWrapper renders the logo inside a <span> that inherits the
   nav's line-height (~25px from the IBM Plex Sans menu items). That
   stretches the wrapper to ~39px even though the logo image is 32px,
   pushing the image's visual center ~3px above the menu items'
   center. Zero the line-height so the wrapper height matches the
   image and the logo lines up with the items + CTA. */
body.edms-landing .edms-landing-nav__inner > span:has(> .edms-landing-nav__logo) {
  line-height: 0;
  display: inline-flex;
  align-items: center;
}

.edms-landing-nav__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.edms-landing-nav__items a {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.12px;
  font-weight: 500;
  letter-spacing: 0.52px;
  transition: color 0.15s;
}

.edms-landing-nav__items a:hover {
  color: #ffffff;
}

.edms-landing-nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edms-landing-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6.4px;
  padding: 8px 19.2px;
  background: var(--landing-accent, #00FF97);
  color: var(--landing-text, #181818);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.48px;
  text-transform: none;
  border: 0;
  border-radius: 0;
  transition: filter 0.15s;
}

.edms-landing-nav__cta:hover {
  filter: brightness(1.05);
}

.edms-landing-nav__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.edms-landing-nav__langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.edms-landing-nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4.8px 11.2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.12px;
  font-weight: 500;
  letter-spacing: 0.52px;
}

/* ── Mobile nav hamburger ──────────────────────────────────────────── */
/* Button is in the DOM at every viewport so SSR markup is identical
 * across the responsive editor; CSS hides it on desktop and collapses
 * the items+CTA into a drawer at <=768px. The click handler is bound
 * by the inline runtime script in [subdomain].astro on the public
 * route. Admin canvas keeps the menu permanently visible (rules scoped
 * to body.edms-landing). */

.edms-landing-nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
}

.edms-landing-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
  /* Tighter inner padding/gap so logo + CTA + hamburger all fit at 375px */
  body.edms-landing .edms-landing-nav__inner {
    padding: 0 16px;
    gap: 8px;
  }
  body.edms-landing .edms-landing-nav__hamburger {
    display: block;
  }
  /* Items hidden by default, langs always hidden on mobile (CTA is the
     conversion priority and stays inline in the top bar). */
  body.edms-landing .edms-landing-nav__items {
    display: none;
  }
  body.edms-landing .edms-landing-nav__langs {
    display: none;
  }
  /* Compact CTA so logo + CTA + hamburger fit on one row */
  body.edms-landing .edms-landing-nav__cta {
    padding: 6px 12px;
    font-size: 11px;
  }
  body.edms-landing .edms-landing-nav__right {
    gap: 8px;
  }
  /* Items drawer: full-width panel below the 68px nav bar */
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--landing-nav-bg, rgba(1, 26, 120, 0.96));
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__items li {
    padding: 8px 0;
  }
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__items a {
    font-size: 1rem;
    display: block;
    width: 100%;
  }
  /* Hamburger → X animation on open */
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__hamburger span:nth-child(2) {
    opacity: 0;
  }
  body.edms-landing .edms-landing-nav--menu-open .edms-landing-nav__hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ── Landing Footer ────────────────────────────────────────────────── */
/* Blue (primary) background, white text, green column titles. Brand
 * block on the left (336px), then 3 link columns flowing right. */

.edms-landing-footer {
  background: var(--landing-primary, #013AFB);
  color: #ffffff;
  padding: 64px 32px 32px;
}

.edms-landing-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.edms-landing-footer__top {
  display: grid;
  grid-template-columns: 336px repeat(3, 1fr);
  gap: 48px;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
  .edms-landing-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .edms-landing-footer__top {
    grid-template-columns: 1fr;
  }
}

.edms-landing-footer__brand {
  /* Logo + tagline + footer-langs */
}

.edms-landing-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6.4px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: 'Anton', sans-serif;
  font-size: 17.6px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

/* Universal logo image size — same constraint as nav. Footer can be a
   touch larger since the footer brand block has more breathing room. */
body.edms-landing .edms-landing-footer__logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
body.edms-landing .edms-landing-footer__logo:has(.edms-landing-footer__logo-img) {
  border: none;
  padding: 0;
}

.edms-landing-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.edms-landing-footer__langs {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.12px;
}

.edms-landing-footer__langs > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edms-landing-footer__langs > li:not(:last-child)::after {
  content: '·';
  color: rgba(255, 255, 255, 0.4);
  margin-left: 8px;
}

.edms-landing-footer__langs a {
  color: rgba(255, 255, 255, 0.45);
}

.edms-landing-footer__langs a.is-active {
  color: #ffffff;
}

.edms-landing-footer__column {
  /* Heading + link list */
}

.edms-landing-footer__column-title {
  color: var(--landing-accent, #00FF97);
  font-family: 'Anton', sans-serif;
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: 2.016px;
  text-transform: uppercase;
  margin: 0 0 14.4px;
}

.edms-landing-footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6.4px;
}

.edms-landing-footer__column a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.12px;
  font-weight: 400;
  transition: color 0.15s;
}

.edms-landing-footer__column a:hover {
  color: #ffffff;
}

.edms-landing-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 11.52px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
}

.edms-landing-footer__copyright {
  /* Already styled by parent */
}

.edms-landing-footer__socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.edms-landing-footer__socials a {
  color: rgba(255, 255, 255, 0.45);
  text-transform: capitalize;
  font-size: 11.52px;
  transition: color 0.15s;
}

.edms-landing-footer__socials a:hover {
  color: #ffffff;
}

/* ──────────────────────────────────────────────────────────────────────
 * LANDING SECTION TYPES — production-parity CSS
 *
 * Class names are prefixed `landing-` to avoid colliding with
 * the WP block CSS that the bare-landing htmlTemplate branch still
 * loads (some content sections in the older landings still rely on it).
 *
 * Brand tokens map:
 *   --landing-primary       → production --bleu  (#013AFB royal blue)
 *   --landing-primary-hover →             --bleu hover state
 *   --landing-accent        →             --green (#00FF97 neon green)
 *   --landing-orange        →             --orange (#FF5F3A) — partenariat only
 *   --landing-text          →             --noir  (#181818)
 *   --landing-bg            →             --blanc (#F2F4F8)
 * ────────────────────────────────────────────────────────────────────── */

body.edms-landing {
  --landing-orange: #FF5F3A;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.landing-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Scoped under body.edms-landing to outrank the
   `body.edms-landing img { height: auto }` content-image reset (line 47).
   Without this, a 404'd hero bg collapses to ~25px tall (alt-text line
   height), which reveals page chrome through the transparent nav band
   and shifts the gradient overlay's apparent origin. */
body.edms-landing .landing-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.2);
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1, 26, 120, 0.85) 0%,
    rgba(1, 58, 251, 0.4) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
}

.landing-hero__overlay--orange {
  background: linear-gradient(
    135deg,
    rgba(200, 55, 0, 0.9) 0%,
    rgba(255, 95, 58, 0.6) 45%,
    rgba(160, 30, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.landing-hero__overlay--purple {
  background: linear-gradient(
    135deg,
    rgba(120, 0, 160, 0.82) 0%,
    rgba(180, 0, 200, 0.45) 40%,
    rgba(1, 58, 251, 0.35) 80%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.landing-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}

.landing-hero__content {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: 68px;
  width: 100%;
}

.landing-hero__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.landing-hero__tag {
  display: inline-block;
  font-family: 'IBM Plex Sans', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--landing-accent, #00FF97);
  border: 1px solid rgba(0, 255, 151, 0.3);
  padding: 4.8px 12.8px;
  width: fit-content;
}

.landing-hero__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  color: #ffffff;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.landing-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  /* The subtitle may carry a semantic heading tag (<h2>/<h3>) chosen in the
     admin for SEO. The WP base stylesheet forces every heading to
     `font-family: 'Anton' !important; font-weight: 400 !important`, which would
     switch this subtitle to the Anton display face and bolden it the moment it
     becomes a heading. Pin both here with !important so the subtitle looks
     identical as a <p>, <h2>, or <h3> — the tag changes for SEO, the design
     does not move. See landing-hero-subtitle-css.test.ts. */
  font-family: 'IBM Plex Sans', system-ui, sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.landing-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons used across landings — green-filled and outlined. */
.landing-btn-green,
.landing-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9.6px;
  padding: 14.4px 32px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: 0;
}

.landing-btn-green {
  background: var(--landing-accent, #00FF97);
  color: var(--landing-text, #181818);
}

.landing-btn-green:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 151, 0.4);
}

.landing-btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.landing-btn-outline:hover {
  border-color: var(--landing-accent, #00FF97);
  color: var(--landing-accent, #00FF97);
  transform: translateY(-2px);
}

.landing-btn-green svg,
.landing-btn-outline svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Why (2-column: label+title left / bordered paragraphs right) ──── */

.landing-why {
  padding: 96px 32px;
  background: #ffffff;
}

.landing-why__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.landing-why__label {
  font-family: 'Anton', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--landing-primary, #013AFB);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-why__label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--landing-primary, #013AFB);
}

.landing-why__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--landing-primary, #013AFB);
  letter-spacing: -0.01em;
}

.landing-why__right {
  border-left: 3px solid var(--landing-accent, #00FF97);
  padding-left: 40px;
}

.landing-why__right p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #444444;
  margin-bottom: 19.2px;
}

.landing-why__right p:last-of-type {
  margin-bottom: 8px;
}

.landing-why__right strong {
  color: var(--landing-primary, #013AFB);
}

/* Inline accent for the "95%" style highlight inside paragraphs. */
.landing-why__right .stat-inline,
.landing-stat-inline {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: var(--landing-accent, #00FF97);
  background: var(--landing-text, #181818);
  padding: 3.2px 9.6px;
  margin: 0 2.4px;
}

.landing-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--landing-primary, #013AFB);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  border-bottom: 2px solid var(--landing-primary, #013AFB);
  padding-bottom: 3.2px;
  transition: all 0.2s;
}

.landing-link-arrow:hover {
  color: var(--landing-text, #181818);
  border-color: var(--landing-accent, #00FF97);
}

.landing-link-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── Programmes (image badge left / N program blocks right) ────────── */

.landing-programmes {
  padding: 0 32px 96px;
  background: #ffffff;
}

.landing-programmes__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.landing-programmes__image-block {
  position: relative;
  background: var(--landing-primary, #013AFB);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.landing-programmes__image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  mix-blend-mode: luminosity;
}

.landing-programmes__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(1, 26, 120, 0.95));
}

.landing-programmes__badge-label {
  font-family: 'Anton', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--landing-accent, #00FF97);
  margin-bottom: 4.8px;
}

.landing-programmes__badge-title {
  font-family: 'Anton', sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--landing-accent, #00FF97);
  line-height: 0.95;
}

.landing-programmes__badge a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 3.2px;
  transition: all 0.2s;
}

.landing-programmes__badge a:hover {
  color: var(--landing-accent, #00FF97);
  border-color: var(--landing-accent, #00FF97);
}

.landing-programmes__badge a svg {
  width: 12px;
  height: 12px;
}

.landing-programmes__list {
  padding-top: 16px;
}

.landing-programmes__block {
  padding: 32px 0;
  border-bottom: 1px solid rgba(1, 58, 251, 0.08);
}

.landing-programmes__block:last-child {
  border-bottom: none;
}

.landing-programmes__block h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--landing-primary, #013AFB);
  margin-bottom: 16px;
  line-height: 1;
}

.landing-programmes__block p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 8px;
}

.landing-programmes__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.landing-programmes__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10.4px;
  background: var(--landing-bg, #F2F4F8);
  color: var(--landing-primary, #013AFB);
  border: 1px solid rgba(1, 58, 251, 0.15);
}

.landing-programmes__price {
  font-size: 0.78rem;
  color: #777777;
  margin-top: 8px;
  font-style: italic;
}

/* ── Métiers (horizontal track of icon cards on dark bg) ───────────── */

.landing-metiers {
  padding: 80px 32px;
  background: var(--landing-text, #181818);
  overflow: hidden;
  position: relative;
}

.landing-metiers::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(0, 255, 151, 0.05);
  transform: rotate(20deg);
  pointer-events: none;
}

.landing-metiers__inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.landing-metiers__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.landing-metiers__title span {
  color: var(--landing-accent, #00FF97);
}

.landing-metiers__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.landing-metiers__track::-webkit-scrollbar {
  display: none;
}

.landing-metiers__card {
  flex-shrink: 0;
  width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 24px;
  transition: all 0.35s;
  text-align: center;
}

.landing-metiers__card:hover {
  border-color: var(--landing-accent, #00FF97);
  background: rgba(0, 255, 151, 0.05);
  transform: translateY(-6px);
}

.landing-metiers__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.landing-metiers__card h4 {
  font-family: 'Anton', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.landing-metiers__card:hover h4 {
  color: var(--landing-accent, #00FF97);
}

/* ── Partenariats (4 title+desc cards on orange bg — partenariat only) */

.landing-partenariats {
  padding: 80px 32px;
  background: var(--landing-orange, #FF5F3A);
  position: relative;
  overflow: hidden;
}

.landing-partenariats::before,
.landing-partenariats::after {
  content: '';
  position: absolute;
  border-color: rgba(255, 255, 255, 0.07);
  border-style: solid;
  pointer-events: none;
}

.landing-partenariats::before {
  top: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-width: 50px;
  transform: rotate(-15deg);
}

.landing-partenariats::after {
  bottom: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-width: 40px;
  border-color: rgba(255, 255, 255, 0.05);
  transform: rotate(20deg);
}

.landing-partenariats__inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-partenariats__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.landing-partenariats__title span {
  color: var(--landing-accent, #00FF97);
}

.landing-partenariats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.landing-partenariats__card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px;
  transition: all 0.35s;
}

.landing-partenariats__card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.landing-partenariats__card h3 {
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.landing-partenariats__card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Stats (5-column number+label strip — partenariat only) ────────── */

.landing-stats {
  padding: 80px 32px;
  background: #ffffff;
}

.landing-stats__inner {
  max-width: 1320px;
  margin: 0 auto;
}

.landing-stats__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  text-transform: uppercase;
  color: var(--landing-primary, #013AFB);
  text-align: center;
  margin-bottom: 48px;
}

.landing-stats__title span {
  color: var(--landing-orange, #FF5F3A);
}

.landing-stats__strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.landing-stats__item {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid rgba(1, 58, 251, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.35s;
}

.landing-stats__item:last-child {
  border-right: none;
}

.landing-stats__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--landing-orange, #FF5F3A);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.landing-stats__item:hover::before {
  transform: scaleX(1);
}

.landing-stats__item:hover {
  background: rgba(255, 95, 58, 0.03);
}

.landing-stats__number {
  font-family: 'Anton', sans-serif;
  font-size: 2.8rem;
  color: var(--landing-orange, #FF5F3A);
  line-height: 1;
  margin-bottom: 9.6px;
}

.landing-stats__label {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #666666;
  white-space: pre-line;
}

/* ── Témoignages (3-card grid with avatar+name+quote on dark/blue) ── */

.landing-temoignages {
  padding: 96px 32px;
  position: relative;
  overflow: hidden;
}

.landing-temoignages--blue {
  background: var(--landing-primary, #013AFB);
}

.landing-temoignages--dark {
  background: var(--landing-text, #181818);
}

.landing-temoignages::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}

.landing-temoignages__inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.landing-temoignages__label {
  font-family: 'Anton', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--landing-accent, #00FF97);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.landing-temoignages__label::before,
.landing-temoignages__label::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--landing-accent, #00FF97);
}

.landing-temoignages__title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
}

.landing-temoignages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-temoignages__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  transition: all 0.35s;
  position: relative;
}

.landing-temoignages__card:hover {
  border-color: var(--landing-accent, #00FF97);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.landing-temoignages__card::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--landing-accent, #00FF97);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: serif;
  line-height: 1;
}

.landing-temoignages__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.landing-temoignages__avatar {
  width: 44px;
  height: 44px;
  background: var(--landing-accent, #00FF97);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anton', sans-serif;
  font-size: 1rem;
  color: var(--landing-text, #181818);
  flex-shrink: 0;
}

.landing-temoignages__info h4 {
  font-family: 'Anton', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #ffffff;
}

.landing-temoignages__info span {
  font-size: 0.7rem;
  color: var(--landing-accent, #00FF97);
  opacity: 0.8;
}

.landing-temoignages__card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  font-style: italic;
}

/* ── FAQ (intro left / accordion right) ────────────────────────────── */

.landing-faq {
  padding: 96px 32px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.landing-faq--orange {
  background: var(--landing-orange, #FF5F3A);
}

.landing-faq--orange::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border: 50px solid rgba(255, 255, 255, 0.07);
  transform: rotate(20deg);
  pointer-events: none;
}

.landing-faq__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.landing-faq__left h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--landing-primary, #013AFB);
  margin-bottom: 20px;
}

.landing-faq--orange .landing-faq__left h2 {
  color: #ffffff;
}

.landing-faq__left p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 24px;
}

.landing-faq--orange .landing-faq__left p {
  color: rgba(255, 255, 255, 0.85);
}

.landing-faq__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--landing-primary, #013AFB);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-bottom: 2px solid var(--landing-accent, #00FF97);
  padding-bottom: 3.2px;
  transition: all 0.2s;
}

.landing-faq--orange .landing-faq__more {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.landing-faq__more:hover {
  color: var(--landing-text, #181818);
}

.landing-faq__more svg {
  width: 14px;
  height: 14px;
}

.landing-faq__accordion {
  margin: 0;
}

.landing-faq__item {
  border-bottom: 1px solid rgba(1, 58, 251, 0.1);
}

.landing-faq--orange .landing-faq__item {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.landing-faq__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--landing-text, #181818);
  transition: color 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.landing-faq--orange .landing-faq__header {
  color: #ffffff;
}

.landing-faq__header:hover {
  color: var(--landing-primary, #013AFB);
}

.landing-faq__icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--landing-primary, #013AFB);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  background: transparent;
}

.landing-faq--orange .landing-faq__icon {
  border-color: #ffffff;
}

.landing-faq__icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--landing-primary, #013AFB);
  transition: transform 0.3s;
  stroke-width: 3;
}

.landing-faq--orange .landing-faq__icon svg {
  stroke: #ffffff;
}

.landing-faq__item.is-open .landing-faq__icon {
  background: var(--landing-primary, #013AFB);
}

.landing-faq__item.is-open .landing-faq__icon svg {
  stroke: #ffffff;
  transform: rotate(45deg);
}

.landing-faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.landing-faq__item.is-open .landing-faq__body {
  max-height: 500px;
}

.landing-faq__body-inner {
  padding: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: #555555;
}

.landing-faq--orange .landing-faq__body-inner {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Final CTA (dark bg + huge watermark) ──────────────────────────── */

.landing-cta {
  position: relative;
  overflow: hidden;
  background: var(--landing-text, #181818);
  padding: 96px 32px;
}

.landing-cta--light {
  background: #ffffff;
  border-top: 4px solid var(--landing-orange, #FF5F3A);
}

.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(1, 58, 251, 0.3) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.landing-cta--light::before {
  display: none;
}

.landing-cta__watermark {
  position: absolute;
  bottom: -32px;
  right: -32px;
  font-family: 'Anton', sans-serif;
  font-size: 16rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
}

.landing-cta--light .landing-cta__watermark {
  color: rgba(0, 0, 0, 0.03);
}

.landing-cta__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.landing-cta__text h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.landing-cta--light .landing-cta__text h2 {
  color: var(--landing-text, #181818);
}

.landing-cta__text h2 span {
  color: var(--landing-accent, #00FF97);
}

.landing-cta--light .landing-cta__text h2 span {
  color: var(--landing-orange, #FF5F3A);
}

.landing-cta__text p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
}

.landing-cta--light .landing-cta__text p {
  color: #555555;
}

.landing-cta__action {
  flex-shrink: 0;
}

/* ── Fade animations (used by landing sections that opt in) ──────────
 * Gated on `body.landing-anim`. The public Astro route's inline
 * IntersectionObserver script adds that class to <body> on init;
 * admin canvas never does, so fade elements render at full
 * visibility there (otherwise titles + content stayed at opacity 0
 * because the observer doesn't run inside React-rendered preview).
 */

body.landing-anim .landing-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.landing-anim .landing-fade-up.visible,
body.landing-anim .landing-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.landing-anim .landing-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.landing-anim .landing-fade-left.visible,
body.landing-anim .landing-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

body.landing-anim .landing-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

body.landing-anim .landing-fade-right.visible,
body.landing-anim .landing-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Responsive overrides ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .landing-why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .landing-programmes__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .landing-programmes__image-block {
    aspect-ratio: 16 / 9;
  }
  .landing-faq__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .landing-temoignages__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .landing-partenariats__grid {
    grid-template-columns: 1fr;
  }
  .landing-stats__strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .landing-stats__item:nth-child(3) {
    border-right: none;
  }
  .landing-stats__item:nth-child(4),
  .landing-stats__item:nth-child(5) {
    border-top: 1px solid rgba(1, 58, 251, 0.08);
  }
}

@media (max-width: 768px) {
  .landing-hero__title {
    font-size: 3.2rem;
  }
  .landing-cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .landing-metiers__card {
    width: 160px;
  }
}

@media (max-width: 600px) {
  .landing-stats__strip {
    grid-template-columns: 1fr 1fr;
  }
  .landing-stats__item:nth-child(odd) {
    border-right: 1px solid rgba(1, 58, 251, 0.08);
  }
  .landing-stats__item:nth-child(even) {
    border-right: none;
  }
}
