/* ===========================================================
   EduFrance — Plateforme Éducative
   Feuille de style principale
   =========================================================== */

:root {
  /* Official brand palette */
  --gold: #ecb338;
  --gold-deep: #d49a1a;
  --gold-light: #fdf3d9;
  --green: #5dc269;
  --green-deep: #46a752;
  --green-light: #e5f6e7;
  --brown: #2d2418;
  --brown-soft: #4a3d2a;
  --brown-deep: #1a1410;

  /* Aliases kept for backwards-compatibility with existing rules */
  --teal: var(--gold);
  --teal-deep: var(--gold-deep);
  --teal-light: var(--gold-light);
  --navy: var(--brown);
  --navy-soft: var(--brown-soft);
  --grey-bg: #f5f0e6;
  --grey-bg-2: #faf6ee;
  --orange: var(--gold);
  --orange-soft: #f4c96b;
  --olive: var(--green);
  --purple: var(--green-deep);
  --pink: var(--gold);
  --text-muted: #6b5d4a;
  --text-light: #8a7d68;
  --border: rgba(45, 36, 24, 0.1);
  --topbar: var(--brown-deep);
  --white: #fff;
  --shadow-sm: 0 6px 20px rgba(45, 36, 24, 0.06);
  --shadow: 0 16px 48px rgba(45, 36, 24, 0.1);
  --shadow-lg: 0 28px 64px rgba(45, 36, 24, 0.14);
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --radius-card: 20px;
  --radius-sm: 12px;
  --container: 1220px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ===== Section heading helper ===== */
.section { padding: clamp(70px, 9vw, 110px) 0; position: relative; }
.section--alt { background: var(--grey-bg-2); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-light);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title span { color: var(--teal-deep); }
.section-desc { color: var(--text-muted); font-size: 15px; }

/* ===========================================================
   Top bar
   =========================================================== */
.topbar {
  background: #46a752;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  padding: 11px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  letter-spacing: 0.02em;
}
.topbar__left { display: flex; align-items: center; gap: 14px; }
.topbar__social { display: flex; align-items: center; gap: 10px; }
.topbar__social a { display: flex; opacity: 0.9; transition: opacity .2s, color .2s; }
.topbar__social a:hover { opacity: 1; color: var(--teal); }
.topbar__right { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar__right a:hover { color: var(--teal); }
.topbar__sep { opacity: 0.45; padding: 0 4px; }
.lang { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.lang-dropdown {
  position: relative;
  z-index: 1200;
}
.lang-dropdown__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background .2s ease;
}
.lang-dropdown__summary:hover { background: rgba(255, 255, 255, 0.2); }
.lang-dropdown__summary::-webkit-details-marker { display: none; }
.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e6edf1;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  z-index: 1300;
}
.lang-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: #1f2a30;
  text-decoration: none;
  white-space: nowrap;
}
.lang-dropdown__item:hover { background: #f3f7f9; color: #1f2a30; }

/* ===========================================================
   Header / Navbar
   =========================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px clamp(16px, 3vw, 48px) 16px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  transition: transform .25s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img {
  width: clamp(120px, 16vw, 170px);
  height: auto;
  max-height: 56px;
  display: block;
  object-fit: contain;
}
.footer__brand .logo img {
  width: 200px;
  height: 64px;
}
.nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  flex: 1 1 auto;
  min-width: 0;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav__icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav a:hover .nav__icon {
  opacity: 1;
  transform: scale(1.05);
}
.nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: rgba(45, 36, 24, 0.35);
  transition: width .25s, left .25s, background .2s;
  border-radius: 2px;
}
.nav a:hover { color: var(--brown); }
.nav a:hover::after {
  width: 100%;
  left: 0;
  background: var(--gold-deep);
}
.nav .chev {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-top: -2px;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}
/* Chevron « ouvert / fermé » pour les lignes Cours (sous-menu vertical) */
.nav .chev--accordion {
  transform: rotate(135deg);
  margin-top: -4px;
  opacity: 0.65;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.nav-dropdown__row:hover .chev--accordion,
.nav-dropdown__row:focus-within .chev--accordion {
  transform: rotate(225deg);
  margin-top: 0;
  opacity: 1;
}

/* Chevron rotation when a top-level dropdown or a nested item is open */
.nav-dropdown.is-open > .nav-dropdown__toggle .chev,
.nav-dropdown__has-sub.is-open > .nav-dropdown__parent .chev,
.nav-dropdown__has-sub.is-open > .nav-dropdown__subparent .chev {
  transform: rotate(225deg) translateY(-2px);
}

/* Nav — Cours (nested dropdown) */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-dropdown__toggle {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-soft);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-dropdown:hover .nav-dropdown__toggle .nav__icon,
.nav-dropdown:focus-within .nav-dropdown__toggle .nav__icon {
  opacity: 1;
  transform: scale(1.05);
}
.nav-dropdown__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: rgba(45, 36, 24, 0.35);
  transition: width .25s, left .25s, background .2s;
  border-radius: 2px;
}
.nav-dropdown:hover .nav-dropdown__toggle,
.nav-dropdown:focus-within .nav-dropdown__toggle {
  color: var(--brown);
}
.nav-dropdown:hover .nav-dropdown__toggle::after,
.nav-dropdown:focus-within .nav-dropdown__toggle::after {
  width: 100%;
  left: 0;
  background: var(--gold-deep);
}

/* Panneau principal — style marque (brun / or / vert) */
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 300px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 8px 0 10px;
  background: linear-gradient(165deg, #faf6ee 0%, #f0eadc 100%);
  border: 2px solid rgba(236, 179, 56, 0.55);
  border-radius: 16px;
  box-shadow:
    0 4px 0 rgba(45, 36, 24, 0.06),
    0 24px 48px rgba(45, 36, 24, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(12px);
}

/* Chaque niveau : titre puis sous-liens empilés (un sous l’autre) */
.nav-dropdown__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid rgba(45, 36, 24, 0.07);
}
.nav-dropdown__row:last-child {
  border-bottom: none;
}
.nav-dropdown__row:hover,
.nav-dropdown__row:focus-within {
  z-index: 2;
}

.nav-dropdown__parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--brown);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.nav-dropdown__row:hover .nav-dropdown__parent,
.nav-dropdown__row:focus-within .nav-dropdown__parent {
  background: rgba(93, 194, 105, 0.14);
  color: var(--green-deep);
}

/* Sous-menu : bloc sous le parent, liens empilés avec séparateurs */
.nav-dropdown__submenu {
  position: static;
  width: auto;
  margin: 0 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border: 1px solid rgba(236, 179, 56, 0.4);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(45, 36, 24, 0.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    transform 0.26s ease,
    margin 0.28s ease,
    padding 0.28s ease;
}
.nav-dropdown__row:hover .nav-dropdown__submenu,
.nav-dropdown__row:focus-within .nav-dropdown__submenu,
.nav-dropdown__has-sub.is-open > .nav-dropdown__submenu {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-bottom: 10px;
  margin-top: 2px;
  padding: 6px 0;
}

.nav-dropdown__sublink {
  display: block;
  padding: 11px 16px 11px 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy-soft);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(45, 36, 24, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}
.nav-dropdown__sublink:last-child {
  border-bottom: none;
}
.nav-dropdown__sublink:hover {
  background: linear-gradient(90deg, var(--gold-light) 0%, rgba(253, 243, 217, 0.35) 100%);
  color: var(--brown);
  border-left-color: var(--green);
  padding-left: 20px;
}
.nav-dropdown__sublink:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: -2px;
}

/* Shared include dropdown item style */
.nav-dropdown__submenu > li,
.nav-dropdown__subsubmenu > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown__itemlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 6px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy-soft);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(45, 36, 24, 0.08);
  background: linear-gradient(90deg, #fff 0%, #faf8f3 100%);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.nav-dropdown__itemlink:hover {
  background: linear-gradient(90deg, #fff6de 0%, #fffaf0 100%);
  border-color: rgba(236, 179, 56, 0.45);
  transform: translateX(2px);
}

/* Nested « mini » toggles — même carte que les liens feuille (desktop) */
.nav-dropdown__submenu .nav-dropdown__subparent,
.nav-dropdown__subsubmenu .nav-dropdown__subparent {
  width: calc(100% - 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--navy-soft);
  border: 1px solid rgba(45, 36, 24, 0.08);
  background: linear-gradient(90deg, #fff 0%, #faf8f3 100%);
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, color 0.15s ease;
}
.nav-dropdown__submenu .nav-dropdown__has-sub:hover > .nav-dropdown__subparent,
.nav-dropdown__submenu .nav-dropdown__has-sub:focus-within > .nav-dropdown__subparent,
.nav-dropdown__subsubmenu .nav-dropdown__has-sub:hover > .nav-dropdown__subparent,
.nav-dropdown__subsubmenu .nav-dropdown__has-sub:focus-within > .nav-dropdown__subparent {
  background: linear-gradient(90deg, #fff6de 0%, #fffaf0 100%);
  border-color: rgba(236, 179, 56, 0.45);
  transform: translateX(2px);
  color: var(--brown);
}
.nav-dropdown__submenu .nav-dropdown__has-sub.is-open > .nav-dropdown__subparent,
.nav-dropdown__subsubmenu .nav-dropdown__has-sub.is-open > .nav-dropdown__subparent {
  border-color: rgba(70, 167, 82, 0.35);
  background: linear-gradient(90deg, #f4fbf5 0%, #fafdf6 100%);
  color: var(--green-deep);
}
.nav-dropdown__submenu .nav-dropdown__subparent:focus-visible,
.nav-dropdown__subsubmenu .nav-dropdown__subparent:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
}

.nav-dropdown__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #e5f6e7;
  border: 1px solid rgba(70, 167, 82, 0.3);
  color: #2e7d3b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.nav-dropdown__parent-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nav-dropdown__subsubmenu {
  margin: 0 10px;
  padding: 0;
  border-radius: 10px;
  border: 1px dashed rgba(91, 163, 201, 0.4);
  background: #f7fcff;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    transform 0.26s ease,
    margin 0.28s ease,
    padding 0.28s ease;
}
.nav-dropdown__has-sub.is-open > .nav-dropdown__subsubmenu {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin: 2px 10px 8px;
  padding: 4px 0;
}

/* Ancres filières (bandeau + header sticky) */
.feature-card[id^="filiere-"] {
  scroll-margin-top: 108px;
}
#lecons { scroll-margin-top: 96px; }
#exercices { scroll-margin-top: 96px; }
#faq { scroll-margin-top: 96px; }

.btn-teal {
  font-family: var(--font-display);
  background: #46a752;
  color: var(--white);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  border-radius: 999px;
  border: none; cursor: pointer;
  box-shadow: 0 10px 28px rgba(236, 179, 56, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
a.btn-teal {
  text-decoration: none;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}
.btn-teal:hover { box-shadow: 0 14px 36px rgba(236, 179, 56, 0.45); transform: translateY(-1px); }
.btn-teal:active { transform: translateY(0) scale(0.98); }

.catdetail__features a {
  color: var(--navy-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.catdetail__features a:hover {
  color: var(--green-deep);
  border-bottom-color: rgba(93, 194, 105, 0.45);
}

.btn-ghost {
  font-family: var(--font-display);
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--teal-deep); color: var(--teal-deep); }

.mobile-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  width: 42px; height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
}
.mobile-toggle span::before,
.mobile-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
}
.mobile-toggle span::before { top: -6px; }
.mobile-toggle span::after { top: 6px; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #fdf7e6 0%, #f5f0e6 55%, #eaf6ec 100%);
  overflow: hidden;
  padding: clamp(60px, 0vw, 100px) 0 clamp(80px, 10vw, 140px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .45; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: var(--gold); top: -120px; right: -80px; }
.hero::after { width: 380px; height: 380px; background: var(--green); bottom: -140px; left: -100px; opacity: .3; }

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--navy-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero__badge strong {
  background: var(--teal-deep); color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.08em;
  font-family: var(--font-display);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 22px;
}
.hero__title em {
  font-style: normal; position: relative;
  color: var(--teal-deep);
  white-space: nowrap;
}
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 12px;
  background: rgba(236, 179, 56, 0.28);
  border-radius: 6px; z-index: -1;
}
.hero__desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 520px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero__stat h4 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.hero__stat h4 span { color: var(--teal-deep); }
.hero__stat p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.hero__visual {
  position: relative;
  height: clamp(360px, 44vw, 520px);
}
.hero__visual-main {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.hero__visual-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  background: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  transition: transform .25s;
}
.hero__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.hero__play::before {
  content: ""; display: block;
  width: 0; height: 0;
  border-left: 16px solid var(--gold-deep);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.hero__float {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.hero__float-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  color: white;
}
.hero__float h5 {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--navy);
}
.hero__float p { font-size: 11px; color: var(--text-muted); }
.hero__float--1 { top: 30px; left: -20px; }
.hero__float--1 .hero__float-icon { background: var(--gold); }
.hero__float--2 { bottom: 40px; right: -20px; }
.hero__float--2 .hero__float-icon { background: var(--green); }

/* ===========================================================
   Categories / Features — bordered auto-scrolling marquee
   =========================================================== */
.features-wrap {
  position: relative;
  z-index: 4;
  margin-top: -60px;
  width: 100%;
  padding: clamp(36px, 4vw, 56px) 20px;
  background: url("../img/bg.jpg") center / cover no-repeat;
  border-top: 2px solid rgba(236, 179, 56, 0.5);
  border-bottom: 2px solid rgba(236, 179, 56, 0.5);
  box-shadow: 0 24px 60px rgba(45, 36, 24, 0.22);
  overflow: hidden;
  cursor: default;
}

/* Left & right fade masks that blend into the bg image */
.features-wrap::before,
.features-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  width: clamp(60px, 10%, 130px);
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.features-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 100%);
}
.features-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 100%);
}

/* Scrolling track */
.features {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  width: max-content;
  padding: 10px clamp(16px, 2.5vw, 28px);
  animation: marquee 40s linear infinite;
  transition: animation-play-state .2s;
}

/* Pause on hover — "stop and move" */
.features-wrap:hover .features {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 22px 42px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  overflow: hidden;
  flex: 0 0 clamp(240px, 24vw, 280px);
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 56%; height: 4px;
  border-radius: 0 0 8px 8px;
  opacity: 0; transition: opacity 0.25s, width 0.25s;
}
.feature-card:nth-child(4n+1)::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }
.feature-card:nth-child(4n+2)::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.feature-card:nth-child(4n+3)::before { background: linear-gradient(90deg, transparent, var(--green-deep), transparent); }
.feature-card:nth-child(4n+4)::before { background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
  border-color: rgba(236, 179, 56, 0.6);
}
.feature-card:hover::before { opacity: 1; width: 72%; }
.feature-card__icon {
  width: 90px; height: 90px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: transparent;
}
.feature-card__icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.feature-card p {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.65;
  max-width: 240px; margin: 0 auto 18px;
}
.feature-card a {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.feature-card a:hover { gap: 10px; }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 40px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  width: fit-content;
  margin-left: auto; margin-right: auto;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(45, 36, 24, 0.06);
}
.pagination__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #d6c9b0;
  transition: background 0.2s, transform 0.2s;
}
.pagination__pill {
  width: 40px; height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  box-shadow: 0 2px 10px rgba(236, 179, 56, 0.4);
}

/* ===========================================================
   About us
   =========================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about__visual {
  position: relative;
}
.about__visual-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.about__img {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background:
    linear-gradient(155deg, rgba(236,179,56,.2), rgba(93,194,105,.2)),
    url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=900&q=80") center/cover;
}
.about__img--2 {
  position: absolute;
  bottom: -30px; right: -30px;
  width: 55%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  background:
    url("https://images.unsplash.com/photo-1571260899304-425eee4c7efc?auto=format&fit=crop&w=700&q=80") center/cover;
}
.about__badge-float {
  position: absolute;
  top: 30px; left: -20px;
  background: var(--white);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.about__badge-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--gold);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(236, 179, 56, .4);
}
.about__badge-float h5 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.about__badge-float p { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.about__content .section-tag { margin-bottom: 14px; }
.about__content h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
}
.about__content h2 span { color: var(--teal-deep); }
.about__content > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.about__list {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}
.about__list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14.5px;
  color: var(--navy-soft);
}
.about__list li .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-deep);
  display: grid; place-items: center;
  margin-top: 1px;
}
.about__list li strong {
  font-family: var(--font-display);
  color: var(--navy);
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.about__list li span { font-size: 13px; color: var(--text-muted); }
.about__signature {
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.about__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--green));
  display: grid; place-items: center;
  color: white; font-weight: 700;
  font-family: var(--font-display);
}
.about__signature h5 {
  font-family: var(--font-display);
  font-size: 15px; color: var(--navy);
}
.about__signature p { font-size: 12px; color: var(--text-muted); }

/* ===========================================================
   Dernières leçons + FAQ (#lecons — section--alt)
   =========================================================== */
.recent-courses {
  margin-top: clamp(48px, 7vw, 96px);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.recent-courses__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.recent-courses__head .section-tag {
  margin-bottom: 14px;
}
.recent-courses__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin: 0 0 10px;
}
.recent-courses__desc {
  margin: 0 auto;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}

.recent-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 26px);
}

.course-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(45, 36, 24, 0.08);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(45, 36, 24, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(45, 36, 24, 0.1);
  border-color: rgba(236, 179, 56, 0.45);
}
.course-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(45, 36, 24, 0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-card__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}
.course-card:hover .course-card__media img {
  transform: scale(1.04);
}
.course-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.course-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.course-card__cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
  padding: 6px 11px;
  border-radius: 8px;
  max-width: 72%;
}
.course-card__cat--2bac {
  color: var(--green-deep);
  background: var(--green-light);
}
.course-card__cat--1bac {
  color: var(--gold-deep);
  background: var(--gold-light);
}
.course-card__cat--tc {
  color: var(--brown);
  background: rgba(45, 36, 24, 0.07);
}
.course-card__date {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.course-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
}
.course-card__title a {
  color: var(--brown);
  text-decoration: none;
  transition: color 0.2s ease;
}
.course-card__title a:hover {
  color: var(--green-deep);
}
.course-card__teacher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(45, 36, 24, 0.07);
  padding-top: 14px;
}
.course-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(145deg, var(--gold) 0%, var(--brown-soft) 100%);
  box-shadow: 0 6px 16px rgba(236, 179, 56, 0.3);
}
.course-card__avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(45, 36, 24, 0.12);
}
.course-card__teacher-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.course-card__teacher-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-soft);
}

/* FAQ */
.faq {
  margin-top: clamp(56px, 8vw, 100px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid rgba(45, 36, 24, 0.1);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.faq__head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.faq__head .section-tag {
  margin-bottom: 14px;
}
.faq__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brown);
  margin: 0 0 10px;
}
.faq__intro {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border: 1px solid rgba(45, 36, 24, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(45, 36, 24, 0.04);
}
.faq__question {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.2s ease;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}
.faq__item[open] .faq__question::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq__item[open] .faq__question {
  background: rgba(93, 194, 105, 0.08);
}
.faq__question:hover {
  background: rgba(236, 179, 56, 0.1);
}
.faq__answer {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(45, 36, 24, 0.06);
}
.faq__answer p {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .recent-courses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .recent-courses__grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Category detail sections
   =========================================================== */
.catdetail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  margin-bottom: clamp(60px, 8vw, 100px);
}
#cours-deuxieme-bac { margin-bottom: 0; }
.catdetail--reverse .catdetail__visual { order: 2; }

.catdetail__visual {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.catdetail__visual-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.catdetail__visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(45,36,24,.45));
}
.catdetail__img-1 {
  background: none;
}
.catdetail__visual.catdetail__img-1::after {
  display: none;
}
.catdetail__img-2 { background:
  linear-gradient(135deg, rgba(236,179,56,.22), rgba(93,194,105,.22)),
  url("../img/blog-list-3.png") center/cover; }
.catdetail__img-3 { background:
  linear-gradient(135deg, rgba(93,194,105,.22), rgba(45,36,24,.2)),
  url("../img/earth.png") center/cover; }
.catdetail__img-4 { background:
  linear-gradient(135deg, rgba(236,179,56,.22), rgba(45,36,24,.2)),
  url("https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=900&q=80") center/cover; }

.catdetail__number {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em;
  color: white;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 999px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.3);
}
.catdetail__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.catdetail__tag--olive { background: var(--green-light); color: var(--green-deep); }
.catdetail__tag--teal  { background: var(--gold-light); color: var(--gold-deep); }
.catdetail__tag--purple{ background: var(--green-light); color: var(--green-deep); }
.catdetail__tag--orange{ background: var(--gold-light); color: var(--gold-deep); }

.catdetail h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.catdetail p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}
.catdetail__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-bottom: 28px;
}
.catdetail__features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--navy-soft);
  font-weight: 500;
}
.catdetail__features .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal-deep);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ===========================================================
   Contact
   =========================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: stretch;
}
.contact__info {
  background: linear-gradient(145deg, var(--brown) 0%, #3d3322 100%);
  color: white;
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.contact__info::before, .contact__info::after {
  content: ""; position: absolute; border-radius: 50%;
}
.contact__info::before {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(236,179,56,.35), transparent 70%);
  top: -60px; right: -60px;
}
.contact__info::after {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(93,194,105,.35), transparent 70%);
  bottom: -40px; left: -40px;
}
.contact__info h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.contact__info > p {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin-bottom: 36px;
  position: relative; z-index: 1;
}
.contact__list {
  position: relative; z-index: 1;
  display: grid; gap: 22px;
  margin-bottom: 36px;
}
.contact__list li {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact__list .ic {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: var(--teal);
  flex-shrink: 0;
}
.contact__list h5 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact__list p { color: white; font-size: 14.5px; line-height: 1.5; }

.contact__socials {
  display: flex; gap: 10px;
  position: relative; z-index: 1;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.contact__socials a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center;
  color: white;
  transition: all .2s;
}
.contact__socials a:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-2px); }

.contact__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.contact__form h3 {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.contact__form > p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--grey-bg-2);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(236,179,56,.2);
}
.form-textarea { resize: vertical; min-height: 120px; }
.contact__form button {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 13px;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: linear-gradient(180deg, #2d2418 0%, #1a1410 100%);
  color: rgba(255,255,255,.75);
  padding: clamp(60px, 8vw, 90px) 0 0;
  position: relative;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 60px);
  padding-bottom: 60px;
}
.footer__brand .logo {
  color: white;
  margin-bottom: 20px;
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}
.footer__newsletter {
  display: flex;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 4px;
  max-width: 340px;
}
.footer__newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,.45); }
.footer__newsletter button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  border: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 11px;
  cursor: pointer;
  transition: opacity .2s;
}
.footer__newsletter button:hover { opacity: .9; }

.footer h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.footer ul { display: grid; gap: 12px; }
.footer ul a {
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
  transition: color .2s, padding .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer ul a::before {
  content: "›";
  color: var(--teal);
  opacity: 0;
  transition: opacity .2s, margin .2s;
  margin-right: -8px;
}
.footer ul a:hover { color: white; }
.footer ul a:hover::before { opacity: 1; margin-right: 0; }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
}
.footer__contact .ic {
  color: var(--teal);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer__bottom p { color: rgba(255,255,255,.55); }
.footer__bottom p span { color: var(--teal); }
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom nav a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer__bottom nav a:hover { color: var(--teal); }

/* ===========================================================
   Responsive
   =========================================================== */

/* ── Drawer-injected elements: hidden on desktop ── */
.nav__drawer-head,
.nav__drawer-contact {
  display: none !important;
}

/* ── Mobile backdrop ── */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  z-index: 149;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
}

@media (max-width: 1024px) {

  /* ── Hide the desktop "Nous contacter" pill in the header bar ── */
  .header > .btn-teal { display: none !important; }

  /* ── Mobile-toggle button design ── */
  .mobile-toggle {
    display: flex;
    width: 48px; height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.35);
    background: linear-gradient(145deg, #4cb95b 0%, #2f8f42 100%);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    box-shadow:
      0 10px 24px rgba(46,139,64,.3),
      inset 0 1px 0 rgba(255,255,255,.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    margin-left: auto;
  }
  .mobile-toggle:hover {
    transform: translateY(-1px);
    box-shadow:
      0 14px 26px rgba(46,139,64,.36),
      inset 0 1px 0 rgba(255,255,255,.34);
  }
  .mobile-toggle:active { transform: translateY(0) scale(.95); }
  .mobile-toggle:focus-visible {
    outline: 2px solid rgba(45, 36, 24, .55);
    outline-offset: 2px;
  }

  .mobile-toggle__icon {
    position: absolute;
    color: #fff;
    transition: opacity .22s ease, transform .25s ease;
    pointer-events: none;
  }
  .mobile-toggle__icon--menu  { opacity: 1; transform: scale(1) rotate(0deg); }
  .mobile-toggle__icon--close { opacity: 0; transform: scale(.82) rotate(-90deg); }

  /* Switch menu icon to close icon when drawer is open */
  .mobile-toggle.is-active { filter: saturate(1.08); }
  .mobile-toggle.is-active .mobile-toggle__icon--menu  { opacity: 0; transform: scale(.82) rotate(90deg); }
  .mobile-toggle.is-active .mobile-toggle__icon--close { opacity: 1; transform: scale(1) rotate(0deg); }

  /* Remove backdrop-filter so position:fixed children are not trapped */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .98);
    padding: 12px 18px;
  }
  .header .logo img { max-height: 44px; width: clamp(120px, 38vw, 160px); }

  /* Re-show drawer-only elements on mobile */
  .nav__drawer-head         { display: flex !important; flex-direction: row; }
  .nav__drawer-contact      { display: flex !important; }
  .nav__drawer-section-label{ display: block !important; }
  .nav__drawer-divider      { display: block !important; }

  /* ===========================================================
     SIDEBAR DRAWER
     =========================================================== */
  .nav {
    display: flex !important;
    position: fixed;
    top: 0; right: 0;
    width: min(340px, 92vw);
    height: 100dvh; height: 100vh;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(93,194,105,.28) 0%, transparent 60%),
      linear-gradient(170deg, #112e16 0%, #1c4a23 45%, #246a2f 100%) !important;
    z-index: 9999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex: none;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(110%);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    box-shadow: -16px 0 60px rgba(0, 0, 0, .35);
    padding: 0 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
  }
  .nav::-webkit-scrollbar              { width: 6px; }
  .nav::-webkit-scrollbar-thumb        { background: rgba(255,255,255,.18); border-radius: 6px; }
  .nav--open                           { transform: translateX(0) !important; }

  /* Drawer header (sticky top) */
  .nav__drawer-head {
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.09);
    position: sticky;
    top: 0;
    background: rgba(13, 38, 19, .96) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 5;
    flex-shrink: 0;
    gap: 12px;
  }
  .nav__drawer-head .logo                 { transition: transform .2s ease; }
  .nav__drawer-head .logo:hover           { transform: scale(1.04); }
  .nav__drawer-head .logo img {
    width: 124px;
    max-height: 40px;
    filter: brightness(0) invert(1);
  }
  .nav__drawer-close {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
  }
  .nav__drawer-close:hover  { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); transform: rotate(90deg); }
  .nav__drawer-close:active { transform: rotate(90deg) scale(.94); }

  /* Section label */
  .nav__drawer-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255,255,255,.42);
    padding: 18px 22px 8px;
    flex-shrink: 0;
  }

  /* ── Top-level nav links (Accueil / À propos) ── */
  .nav > a.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: rgba(255,255,255,.9) !important;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent !important;
    border-radius: 0;
    text-align: left;
    box-sizing: border-box;
    text-decoration: none;
    position: relative;
    transition: background .18s ease, color .18s ease, padding-left .2s ease;
  }
  .nav > a.nav-link::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .22s ease;
  }
  .nav > a.nav-link:hover                 { background: rgba(255,255,255,.08) !important; color: #fff !important; padding-left: 28px; }
  .nav > a.nav-link:hover::before         { transform: scaleY(1); }
  .nav > a.nav-link::after                { display: none !important; }
  .nav > a.nav-link .nav__icon            { filter: brightness(0) invert(1); opacity: .8; flex-shrink: 0; transition: opacity .2s; }
  .nav > a.nav-link:hover .nav__icon      { opacity: 1; }

  /* ── Top-level dropdown toggle ── */
  .nav .nav-dropdown { width: 100%; flex-shrink: 0; display: block; position: static; }
  .nav .nav-dropdown__toggle.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 22px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: rgba(255,255,255,.9) !important;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: transparent !important;
    border-radius: 0;
    text-align: left;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    transition: background .18s ease, color .18s ease;
  }
  .nav .nav-dropdown__toggle.nav-link::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .22s ease;
  }
  .nav .nav-dropdown__toggle.nav-link:hover,
  .nav .nav-dropdown__toggle.nav-link[aria-expanded="true"] {
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
  }
  .nav .nav-dropdown.is-open > .nav-dropdown__toggle.nav-link::before { transform: scaleY(1); }
  .nav .nav-dropdown__toggle.nav-link::after { display: none !important; }
  .nav .nav-dropdown__toggle.nav-link .nav__icon { filter: brightness(0) invert(1); opacity: .8; flex-shrink: 0; transition: opacity .2s; }
  .nav .nav-dropdown__toggle.nav-link[aria-expanded="true"] .nav__icon,
  .nav .nav-dropdown__toggle.nav-link:hover .nav__icon { opacity: 1; }

  .nav .nav-dropdown__toggle .chev {
    margin-left: auto;
    width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,.55);
    border-bottom: 2px solid rgba(255,255,255,.55);
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
    transition: transform .3s ease, border-color .2s ease;
  }
  .nav .nav-dropdown__toggle[aria-expanded="true"] .chev,
  .nav .nav-dropdown.is-open > .nav-dropdown__toggle .chev {
    transform: rotate(225deg) translateY(-2px);
    border-color: var(--gold);
  }

  /* ── First-level dropdown panel (collapsible, animated) ── */
  .nav .nav-dropdown__menu {
    position: static !important;
    opacity: 0 !important;
    visibility: visible !important;
    pointer-events: none;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    background: rgba(0,0,0,.22) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    border-top: 0 !important;
    transition: max-height .4s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, padding .3s ease, border-top-color .25s ease;
  }
  .nav .nav-dropdown.is-open > .nav-dropdown__menu {
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: 1000px;
    padding: 6px 0 8px !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
  }

  /* ── Category items ── */
  .nav .nav-dropdown__menu li { display: block !important; margin: 0 !important; }
  .nav .nav-dropdown__menu .nav-dropdown__itemlink {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px 12px 48px;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255,255,255,.78) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    border-radius: 0 !important;
    text-decoration: none;
    background: transparent !important;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    transform: none !important;
    transition: background .14s ease, color .14s ease, padding-left .14s ease;
  }
  .nav .nav-dropdown__menu .nav-dropdown__itemlink:hover {
    background: rgba(255,255,255,.09) !important;
    color: #c6f3d2 !important;
    padding-left: 56px;
    border-color: rgba(255,255,255,.04) !important;
  }

  /* ── Badge count (pill) ── */
  .nav .nav-dropdown__count {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.88);
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    min-width: 0;
    height: auto;
    border-radius: 50px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.18);
    line-height: 1;
  }

  /* ── Sub-category parent buttons ── */
  .nav .nav-dropdown__parent,
  .nav .nav-dropdown__subparent {
    width: 100%;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px 12px 48px;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255,255,255,.82) !important;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.04);
    background: none !important;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    gap: 10px;
    text-align: left;
    transition: background .14s ease, color .14s ease;
  }
  .nav .nav-dropdown__parent:hover,
  .nav .nav-dropdown__subparent:hover,
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__parent,
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__subparent {
    background: rgba(255,255,255,.07) !important;
    color: #fff !important;
  }

  .nav .nav-dropdown__parent .chev,
  .nav .nav-dropdown__subparent .chev {
    margin-left: auto;
    border-right-color: rgba(255,255,255,.5);
    border-bottom-color: rgba(255,255,255,.5);
    transition: transform .28s ease, border-color .2s ease;
  }
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__parent .chev,
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__subparent .chev {
    transform: rotate(225deg) translateY(-2px);
    border-right-color: var(--gold);
    border-bottom-color: var(--gold);
  }

  /* ── Nested submenus: collapsible, animated ── */
  .nav .nav-dropdown__submenu,
  .nav .nav-dropdown__subsubmenu {
    background: rgba(0, 0, 0, .22) !important;
    border-left: 2px solid rgba(236, 179, 56, .55) !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: none !important;
    transition: max-height .4s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, padding .25s ease;
  }
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__submenu,
  .nav .nav-dropdown__has-sub.is-open > .nav-dropdown__subsubmenu {
    max-height: 800px;
    opacity: 1;
    pointer-events: auto;
    padding: 4px 0 !important;
  }

  .nav .nav-dropdown__submenu .nav-dropdown__itemlink     { padding-left: 64px; }
  .nav .nav-dropdown__submenu .nav-dropdown__parent,
  .nav .nav-dropdown__submenu .nav-dropdown__subparent    { padding-left: 64px; }
  .nav .nav-dropdown__subsubmenu .nav-dropdown__itemlink  { padding-left: 80px; font-size: 13px; color: rgba(255,255,255,.7) !important; }

  /* ── Divider ── */
  .nav__drawer-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 6px 0;
    flex-shrink: 0;
  }

  /* ── Bottom contact CTA ── */
  .nav__drawer-contact {
    margin: 22px 22px 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    flex-shrink: 0;
    flex-direction: column;
    gap: 10px;
  }
  .nav__drawer-contact a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%) !important;
    color: #2d2418 !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 15px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(236, 179, 56, .35);
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
  }
  .nav__drawer-contact a::before     { display: none !important; }
  .nav__drawer-contact a::after      { display: none !important; }
  .nav__drawer-contact a:hover       { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(236, 179, 56, .45); }
  .nav__drawer-contact a:active      { transform: translateY(0) scale(.98); }

  /* ── Page layout (unchanged) ── */
  .hero__inner                 { grid-template-columns: 1fr; }
  .hero__visual                { height: 420px; }
  .about__grid,
  .catdetail,
  .catdetail--reverse          { grid-template-columns: 1fr; }
  .catdetail--reverse .catdetail__visual { order: 0; }
  .contact__grid               { grid-template-columns: 1fr; }
  .footer__grid                { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .feature-card { flex: 0 0 260px; }
  .form-row { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__stat h4 { font-size: 22px; }
  .catdetail__features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__float { display: none; }
  .about__img--2, .about__badge-float { display: none; }

  /* Compact, single-row topbar on phones */
  .topbar             { padding: 9px 16px; gap: 8px; flex-wrap: nowrap; }
  .topbar__left span  { display: none; }
  .topbar__left       { gap: 8px; }
  .topbar__social     { gap: 8px; }
  .topbar__right      { gap: 4px; font-size: 11.5px; }
  .topbar__sep        { padding: 0 2px; }
  .lang               { gap: 4px; margin-left: 2px; }
  .lang svg           { width: 16px; height: auto; }
  .lang-dropdown__summary { padding: 3px 6px; }
  .lang-dropdown__menu { right: -4px; min-width: 140px; }

  /* Tighter header on phones */
  .header             { padding: 10px 14px; }
  .header .logo img   { width: clamp(110px, 36vw, 140px); max-height: 38px; }
  .mobile-toggle        { width: 44px; height: 44px; border-radius: 14px; }
  .mobile-toggle__icon  { width: 18px; height: 18px; }
}
