/* ═══════════════════════════════════════════════════════════
   AlloMaths — Design System CSS unifié
   v2.0 — Refonte visuelle complète
   ═══════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --navy: #0d1f3c;
  --navy-mid: #1a3a6b;
  --navy-deep: #08132a;
  --blue: #2563c7;
  --blue-light: #3b82f6;
  --blue-soft: #dbeafe;
  --gold: #f0a500;
  --gold-light: #fbbf24;
  --gold-pale: rgba(240, 165, 0, 0.12);
  --cream: #faf8f4;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --white: #ffffff;
  --text: #1e2a3a;
  --border: #dce8ff;
  --green: #4ade80;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 31, 60, 0.06);
  --shadow-md: 0 4px 16px rgba(13, 31, 60, 0.08);
  --shadow-lg: 0 12px 40px rgba(13, 31, 60, 0.12);
  --shadow-xl: 0 20px 50px rgba(13, 31, 60, 0.16);
  --shadow-glow: 0 0 30px rgba(37, 99, 199, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Prevent horizontal scroll bugs on mobile */
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  /* Guarantee no horizontal bleed */
}

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

a {
  color: inherit;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ══════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════ */
nav:not(.breadcrumb) {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.3s var(--ease-out);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out) !important;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.mobile-drawer .nav-cta {
  text-align: center;
  margin-top: 1rem;
  display: block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

/* ══════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════ */
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* Variante or pour avance-immediate */
.breadcrumb--dark {
  color: rgba(0, 0, 0, 0.4);
}

.breadcrumb--dark a {
  color: rgba(0, 0, 0, 0.4);
}

/* ══════════════════════════════════════
   HERO — Homepage
   ══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4a8a 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 199, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-pale);
  border: 1px solid rgba(240, 165, 0, 0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s var(--ease-out) both;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
  animation: fadeInDown 0.7s 0.1s var(--ease-out) both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInDown 0.7s 0.2s var(--ease-out) both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  animation: fadeInUp 0.7s 0.3s var(--ease-out) both;
}

/* Secondaire dans le hero = lien texte discret, pas un bouton */
.hero-actions .btn-secondary {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.hero-actions .btn-secondary:hover {
  background: none;
  border: none;
  color: var(--white);
}

/* Hero Card (glassmorphism) */
.hero-card {
  display: block;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.8s 0.3s var(--ease-out) both;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.hero-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease-out);
}

.hero-stat:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stat-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
}

.avance-badge {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.avance-badge strong {
  font-size: 1.3rem;
  display: block;
}

/* ══════════════════════════════════════
   HERO — Page hero (sous-pages)
   ══════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 199, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

/* Variante dorée (avance-immediate) */
.page-hero--gold {
  background: linear-gradient(135deg, #fef3c7 0%, var(--gold) 100%);
  color: var(--navy);
}

.page-hero--gold .breadcrumb,
.page-hero--gold .breadcrumb a {
  color: rgba(0, 0, 0, 0.4);
}

.page-hero--gold h1 {
  color: var(--navy);
}

.page-hero--gold .btn-primary,
.page-hero--gold .cta-btn {
  background: var(--navy);
  color: var(--white);
}

.page-hero--gold .btn-primary:hover,
.page-hero--gold .cta-btn:hover {
  box-shadow: 0 8px 25px rgba(13, 31, 60, 0.35);
}

.page-hero--gold h1 em {
  color: var(--navy);
}

.page-hero--gold p,
.page-hero--gold .hero-desc {
  color: rgba(0, 0, 0, 0.7);
}

/* Variante Python */
.page-hero--python {
  background: linear-gradient(135deg, #0d2137 0%, #2b6cb0 100%);
}

/* ══════════════════════════════════════
   KPI GRID (avance-immediate chiffres)
   ══════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.kpi {
  background: var(--navy) !important;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kpi-value {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--gold) !important;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85) !important;
  display: block;
}

/* ══════════════════════════════════════
   STEPS (avance-immediate fonctionnement)
   ══════════════════════════════════════ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.step-body p {
  color: var(--gray);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════
   AVANCE BOX (ville/niveau pages)
   ══════════════════════════════════════ */
.avance-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}

.avance-box h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.price-big {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
}

.price-big s {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.5rem;
}

/* ══════════════════════════════════════
   PROG CARD (cours niveaux programmes)
   ══════════════════════════════════════ */
.alert-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert-blue {
  background: rgba(37, 99, 199, 0.15);
  /* Bleu transparent */
  border: 1px solid rgba(37, 99, 199, 0.3);
  color: var(--navy);
  background-color: var(--blue-soft);
  /* Fond bleu clair solide */
}

.alert-blue strong {
  color: var(--blue);
}

.prog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.prog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.prog-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prog-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.prog-card li {
  color: var(--gray);
  font-size: 0.95rem;
  padding: 0.35rem 0 0.35rem 1.75rem;
  position: relative;
  line-height: 1.5;
}

.prog-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: bold;
}

/* ══════════════════════════════════════
   RIBBON
   ══════════════════════════════════════ */
.ribbon {
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ══════════════════════════════════════
   SECTIONS — Titres & Layout
   ══════════════════════════════════════ */
section {
  padding: 5rem 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.3s var(--ease-bounce), background 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s var(--ease-bounce), background 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  display: inline-block;
  margin-left: 0.75rem;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Bouton sombre (avance-immediate hero) */
.btn-dark {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-out);
  border: none;
  cursor: pointer;
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 31, 60, 0.35);
}

/* Alias pour CTA bouton (avance-immediate) */
.cta-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s var(--ease-bounce), background 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out);
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 165, 0, 0.3);
}

.btn-inline {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.25s var(--ease-out), transform 0.3s var(--ease-bounce);
}

.btn-inline:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   ATOUTS (Pourquoi nous)
   ══════════════════════════════════════ */
.atouts {
  background: var(--white);
}

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.atout-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.atout-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: height 0.3s var(--ease-out);
}

.atout-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.atout-card:hover::before {
  height: 4px;
}

.atout-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.atout-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.atout-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════
   AVANCE IMMÉDIATE SECTION
   ══════════════════════════════════════ */
.avance-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.avance-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.avance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.avance-section .section-title {
  color: var(--white);
}

.avance-section .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Price comparator card */
.price-compare {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.price-compare h3 {
  color: var(--gold-light);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.price-row:last-child {
  border: none;
}

.price-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.price-val {
  font-weight: 700;
  font-size: 1.05rem;
}

.price-val.strike {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.4);
}

.price-val.gold {
  color: var(--gold-light);
  font-size: 1.3rem;
}

.price-val.green {
  color: var(--green);
}

.saving-badge {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
}

/* ══════════════════════════════════════
   INFO CARD / AVANCE BOX
   ══════════════════════════════════════ */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.3s var(--ease-out);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.info-card h4 {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--gray);
  font-size: 0.93rem;
}

.avance-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.avance-box::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.avance-box h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--gold-light);
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.price-big {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.price-big s,
.price-big span {
  font-size: 1rem;
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.4);
  margin-right: 0.4rem;
}

/* ══════════════════════════════════════
   CHECK LIST
   ══════════════════════════════════════ */
.check-list {
  list-style: none;
}

.check-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.97rem;
}

.check-list li:last-child {
  border: none;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ══════════════════════════════════════
   VILLES
   ══════════════════════════════════════ */
.villes {
  background: var(--gray-light);
}

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

.ville-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.ville-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ville-card::before {
  content: '📍';
  font-size: 1rem;
}

.villes-proches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.ville-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: var(--blue);
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.ville-link:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* ══════════════════════════════════════
   NIVEAUX
   ══════════════════════════════════════ */
.niveaux {
  background: var(--white);
}

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

.niveau-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.niveau-card:hover {
  background: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(37, 99, 199, 0.25);
}

.niveau-card:hover .niveau-title,
.niveau-card:hover .niveau-sub {
  color: var(--white);
}

.niveau-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
  transition: color 0.3s var(--ease-out);
}

.niveau-sub {
  font-size: 0.82rem;
  color: var(--gray);
  transition: color 0.3s var(--ease-out);
}

/* ══════════════════════════════════════
   RÉSULTATS / KPI
   ══════════════════════════════════════ */
.resultats {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.resultats::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 199, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.kpi {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.kpi:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.kpi-value {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* KPI variante claire (avance-immediate) */
.kpi--light {
  background: var(--white);
  border: 1px solid var(--border);
}

.kpi--light .kpi-value {
  color: var(--blue);
}

.kpi--light .kpi-label {
  color: var(--gray);
}

.kpi--light:hover {
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* ══════════════════════════════════════
   TÉMOIGNAGES
   ══════════════════════════════════════ */
.temoignages {
  background: var(--gray-light);
}

.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.temoignage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.temoignage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.temoignage::before {
  content: '"';
  font-family: 'DM Serif Display', serif;
  font-size: 4rem;
  color: var(--gold-light);
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  opacity: 0.4;
}

.temoignage p {
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.temoignage-author {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.temoignage-role {
  font-size: 0.82rem;
  color: var(--gray);
}

.stars {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ══════════════════════════════════════
   FAQ / ACCORDÉON
   ══════════════════════════════════════ */
.faq {
  background: var(--white);
}

.faq-list,
.faq-wrap {
  max-width: 760px;
}

.faq-list details,
.faq-wrap details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.faq-list details:hover,
.faq-wrap details:hover {
  box-shadow: var(--shadow-sm);
}

.faq-list details[open],
.faq-wrap details[open] {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  transition: color 0.2s var(--ease-out);
}

summary:hover {
  color: var(--blue);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
  font-weight: 300;
  width: 1.5rem;
  text-align: center;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--gray);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   STEPS (avance-immediate)
   ══════════════════════════════════════ */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.step-body p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════
   TABLES
   ══════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead tr {
  background: var(--navy);
  color: var(--white);
}

th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
}

th:first-child {
  border-radius: var(--radius-md) 0 0 0;
}

th:last-child {
  border-radius: 0 var(--radius-md) 0 0;
}

td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

tbody tr {
  transition: background 0.2s var(--ease-out);
}

tbody tr:nth-child(even) {
  background: var(--gray-light);
}

tbody tr:hover {
  background: var(--blue-soft);
}

.highlight-row {
  background: var(--blue-soft) !important;
  font-weight: 700;
}

.highlight-row td {
  color: var(--navy);
}

.price-cell {
  font-weight: 700;
  color: var(--blue);
  background: #eef4ff;
}

/* ══════════════════════════════════════
   CHIP / GRID AUTO
   ══════════════════════════════════════ */
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.chip-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: block;
}

.chip-link:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.chip-link small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* Lycées grid */
.lycees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.lycee-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.lycee-chip:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

/* Level badges (Python page) */
.level-badge {
  display: inline-block;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.level-badge--beginner {
  background: #3776AB;
}

.level-badge--intermediate {
  background: #7c3aed;
}

.level-badge--advanced {
  background: #059669;
}

/* Python list items */
.python-list {
  list-style: none;
  padding: 0;
}

.python-list li {
  font-size: 0.88rem;
  color: var(--gray);
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
}

.python-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
}

/* ══════════════════════════════════════
   GIFT BAR
   ══════════════════════════════════════ */
.gift-bar {
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 165, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Alias pour cta-band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-band .section-title {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.4);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-logo span {
  color: var(--gold);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s var(--ease-out);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: .82rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  padding: .28rem .8rem;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.footer-social a:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-social svg {
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* Footer simple (pages ville / avance) */
.footer--simple {
  text-align: center;
  font-size: 0.85rem;
}

.footer--simple a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.footer--simple a:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Scroll reveal animation class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════ */
.text-white {
  color: var(--white);
}

.text-gold {
  color: var(--gold-light);
}

.text-navy {
  color: var(--navy);
}

.bg-white {
  background: var(--white);
}

.bg-gray {
  background: var(--gray-light);
}

.bg-navy {
  background: var(--navy);
}

.mt-05 {
  margin-top: 0.5rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {

  .hero-inner,
  .avance-inner {
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {

  /* Navigation mobile */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  /* Structural Paddings (more room for text) */
  .hero {
    padding: 3rem 1.25rem 2rem;
  }

  .page-hero {
    padding: 2.5rem 1.25rem 2rem;
  }

  section {
    padding: 3rem 1.25rem;
  }

  /* Grid behavior */
  .hero-inner,
  .avance-inner,
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-card {
    display: none;
  }

  /* Fluid typography overridings strictly for very small screens if clamp is insufficient */
  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  /* Grids mapping */
  .villes-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .niveaux-grid,
  .formats-grid {
    grid-template-columns: 1fr;
    /* Strict 1-col on mobile for cards to give space to content */
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Steps */
  .step {
    flex-direction: column;
  }

  /* CTA */
  .cta-section {
    padding: 3rem 1.25rem;
  }

  .cta-band {
    padding: 2.5rem 1.25rem;
  }

  /* Buttons inline */
  .btn-ghost {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }

  .hero,
  .page-hero,
  section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 1.8rem);
  }

  .kpi-value {
    font-size: 2.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-gold,
  .btn-ghost {
    width: 100%;
    /* Full width buttons for easy tapping */
    text-align: center;
  }
}

/* ══════════════════════════════════════
   MOBILE NAV JS (inline script support)
   ══════════════════════════════════════ */
/* Body scroll lock when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ══════════════════════════════════════
   CALLBACK POPUP OVERLAY
   ══════════════════════════════════════ */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 31, 60, 0.85);
  /* Dark navy transparent */
  backdrop-filter: blur(5px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.callback-container {
  max-width: 400px;
  width: 90%;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.show .callback-container {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #333;
}

.callback-container h2 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-family: 'DM Serif Display', serif;
}

.callback-container p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.input-wrapper {
  margin-bottom: 1rem;
}

.callback-container input[type="tel"] {
  width: 100%;
  padding: 14px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.callback-container input[type="tel"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
}

.callback-container button[type="submit"] {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.callback-container button[type="submit"]:hover {
  background: #e6a500;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 183, 3, 0.3);
}

#form-status {
  margin-top: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0;
}