*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0B1A33;
  --white: #FFFFFF;
  --gold: #2E8AE6;
  --gold-light: #6FB6FF;
  --blue-deep: #071226;
  --blue-mid: #123A66;
  --blue-pale: #EAF3FC;
  --dark: #0F2745;
  --grey-bg: #F2F7FD;
  --grey-mid: #6B7E99;
  --serif: 'Sora', system-ui, sans-serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --gradient-dark: linear-gradient(135deg, #071226 0%, #0F2A4D 50%, #15406F 100%);
  --gradient-blue: linear-gradient(135deg, #2E8AE6 0%, #6FB6FF 100%);
  --gradient-pale: linear-gradient(180deg, #F2F7FD 0%, #DCEBFA 100%);

  /* Hauteurs du header fixe — modifiées dans les media queries */
  --navbar-h: 68px;
  --ticker-h: 40px;
  --header-h: 108px; /* navbar + ticker */
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   NAVBAR — au-dessus, z-index 1000
   ══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,18,38,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 5%;
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(111,182,255,0.18);
  transition: background 0.3s;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* évite le débordement flex */
}
.nav-logo img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo-text strong {
  display: block;
  font-size: 16px;
  color: var(--gold-light);
}
.nav-cta {
  background: var(--gradient-blue);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  display: inline-block;
  flex-shrink: 0;
  transition: filter 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   TICKER — en-dessous de la navbar, z-index 999
   ══════════════════════════════════════════ */
#ticker {
  position: fixed;
  top: var(--navbar-h); left: 0; right: 0;
  z-index: 999;
  background: var(--gradient-dark);
  height: var(--ticker-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(111,182,255,0.35);
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-track span {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 48px;
}
.ticker-track span em {
  font-style: normal;
  color: var(--gold-light);
  margin: 0 6px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.ticker-track span em svg { width: 8px; height: 8px; fill: currentColor; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   OFFSET — compense la hauteur totale du header fixe
   !important pour battre la spécificité des ID (#form-hero etc.)
   ══════════════════════════════════════════ */
.page-top { padding-top: var(--header-h) !important; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  min-height: 100svh; /* support navigateurs modernes */
  background: var(--gradient-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 5% 60px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(111,182,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(32px, 6.5vw, 90px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 28px;
}
.hero-title .gold {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 44px;
}
.hero-cta {
  background: var(--gradient-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 44px;
  border-radius: var(--radius-md);
  display: inline-block;
  transition: all 0.25s;
  position: relative;
  border: none;
  cursor: pointer;
}
.hero-cta::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(111,182,255,0.4);
  border-radius: calc(var(--radius-md) + 4px);
  transition: inset 0.25s;
}
.hero-cta:hover { filter: brightness(1.1); }
.hero-cta:hover::after { inset: -8px; }

.hero-guarantee {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.hero-guarantee .check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-guarantee svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  color: var(--gold-light);
}

/* ══════════════════════════════════════════
   STATS
   ══════════════════════════════════════════ */
#stats {
  background: var(--gradient-blue);
  padding: 56px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   SECTIONS GENERIQUES
   ══════════════════════════════════════════ */
section { padding: 90px 5%; }
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}
.section-body {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  max-width: 600px;
}

/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */
#about {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual { position: relative; }
.about-card {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '"';
  font-family: var(--serif);
  font-size: 120px;
  color: var(--gold-light);
  opacity: 0.18;
  position: absolute;
  top: -10px; left: 20px;
  line-height: 1;
}
.about-card-quote {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  font-style: normal;
  position: relative;
  z-index: 1;
}
.about-card-author {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.about-accent-bar {
  width: 60px;
  height: 3px;
  background: var(--gradient-blue);
  border-radius: 4px;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════
   CAROUSEL
   ══════════════════════════════════════════ */
#carousel-section {
  background: var(--grey-bg);
  padding: 80px 0;
  overflow: hidden;
}
.carousel-header {
  padding: 0 5%;
  margin-bottom: 48px;
}
.carousel-track-wrapper { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 24px;
  animation: carousel-move 28s linear infinite;
  width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-card {
  background: var(--white);
  border: 1px solid #E3EDF8;
  border-radius: var(--radius-md);
  padding: 40px 32px;
  width: 300px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 16px rgba(15,39,69,0.04);
}
.carousel-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 16px;
}
.carousel-card-icon svg { width: 22px; height: 22px; }
.carousel-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.carousel-card p { font-size: 14px; color: #666; line-height: 1.7; }
.carousel-card-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--gradient-blue);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ══════════════════════════════════════════
   PROGRAMME
   ══════════════════════════════════════════ */
#programme {
  background: var(--gradient-dark);
  color: var(--white);
}
#programme .section-title { color: var(--white); }
.programme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  margin-top: 56px;
  border: 1px solid rgba(111,182,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.prog-item {
  padding: 36px 28px;
  border: 1px solid rgba(111,182,255,0.08);
  transition: background 0.25s;
}
.prog-item:hover { background: rgba(111,182,255,0.08); }
.prog-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
  color: rgba(111,182,255,0.3);
  margin-bottom: 12px;
}
.prog-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.prog-item p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.prog-badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(111,182,255,0.4);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ══════════════════════════════════════════
   TESTIMONIALS
   ══════════════════════════════════════════ */
#testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.testi-card {
  border: 1px solid #E3EDF8;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.testi-card:hover { box-shadow: 0 16px 40px rgba(15,39,69,0.1); transform: translateY(-4px); }
.testi-stars { color: var(--gold); margin-bottom: 16px; display: flex; gap: 3px; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 20px;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: 14px; }
.testi-detail { font-size: 12px; color: var(--grey-mid); }
.testi-result {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #1AA672;
}
.testi-placeholder-flag {
  position: absolute;
  top: 16px; left: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C0392B;
  background: rgba(192,57,43,0.1);
  border: 1px solid rgba(192,57,43,0.3);
  padding: 3px 8px;
  border-radius: 12px;
}

/* ══════════════════════════════════════════
   CTA BAND
   ══════════════════════════════════════════ */
#cta-band {
  background: var(--gradient-blue);
  padding: 80px 5%;
  text-align: center;
}
#cta-band .section-title { color: var(--white); }
#cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-band-btn {
  display: inline-block;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 48px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.cta-band-btn:hover { background: var(--dark); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
#faq { background: var(--grey-bg); }
.faq-list { margin-top: 56px; max-width: 760px; }
.faq-item { border-bottom: 1px solid #DCE7F4; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--black);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--gold);
}
.faq-answer {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--gradient-dark);
  color: rgba(255,255,255,0.5);
  padding: 60px 5% 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(111,182,255,0.12);
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   PAGE FORMULAIRE (form.php)
   ══════════════════════════════════════════ */
#form-hero {
  background: var(--gradient-dark);
  /* padding-top géré par .page-top + marge breathing */
  padding: calc(var(--header-h) + 60px) 5% 60px;
  text-align: center;
}
#form-hero .section-eyebrow { color: var(--gold-light); }
#form-hero .section-title { color: var(--white); margin-bottom: 16px; }
#form-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto; line-height: 1.7; }

#form-section {
  background: var(--grey-bg);
  padding: 60px 5% 100px;
  display: flex;
  justify-content: center;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(15,39,69,0.08);
  border: 1px solid #E3EDF8;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--dark);
}
.form-group .hint {
  display: block;
  font-size: 12px;
  color: var(--grey-mid);
  font-weight: 400;
  margin-top: 4px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #DCE7F4;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit-btn { width: 100%; margin-top: 8px; }
.form-disclaimer {
  font-size: 12px;
  color: var(--grey-mid);
  line-height: 1.6;
  margin-top: 20px;
  text-align: center;
}
.form-alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.form-alert.success {
  background: rgba(26,166,114,0.1);
  border: 1px solid rgba(26,166,114,0.3);
  color: #157A52;
}
.form-alert.error {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: #A6362A;
}
.form-alert.cooldown {
  background: rgba(243,156,18,0.1);
  border: 1px solid rgba(243,156,18,0.3);
  color: #9A6A0A;
}
.field-error {
  font-size: 12px;
  color: #C0392B;
  margin-top: 6px;
  display: block;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablette large (≤1100px)
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  #about { gap: 48px; }
  .footer-top { gap: 40px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablette (≤900px)
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  #about {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
  #stats { gap: 24px; }
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .programme-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Petite tablette / paysage (≤768px)
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  section { padding: 64px 5%; }
  #hero { padding-top: calc(var(--header-h) + 40px); }
  #cta-band { padding: 60px 5%; }
  .about-card { padding: 36px 28px; }
  .about-card-quote { font-size: 17px; }
  .carousel-card { width: 260px; padding: 32px 24px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile large (≤640px)
   ══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --navbar-h: 60px;
    --ticker-h: 36px;
    --header-h: 96px;
  }

  /* Navbar */
  #navbar { padding: 0 4%; }
  .nav-logo-text { display: none; }
  .nav-cta {
    font-size: 12px;
    padding: 9px 18px;
  }

  /* Ticker */
  .ticker-track span {
    font-size: 10px;
    padding: 0 32px;
    letter-spacing: 0.08em;
  }

  /* Hero */
  #hero {
    padding: calc(var(--header-h) + 32px) 5% 48px;
  }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.2em; margin-bottom: 20px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-cta { padding: 16px 32px; font-size: 13px; }
  .hero-guarantee { font-size: 11px; }

  /* Stats */
  #stats {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 5%;
  }

  /* Sections */
  section { padding: 52px 5%; }
  .section-title { margin-bottom: 18px; }
  .faq-question { font-size: 15px; padding: 18px 0; }

  /* About */
  .about-card { padding: 28px 20px; }
  .about-card-quote { font-size: 16px; }

  /* Programme */
  .programme-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .prog-item { padding: 28px 20px; }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 20px;
  }

  /* CTA */
  #cta-band { padding: 52px 5%; }
  .cta-band-btn { padding: 16px 32px; font-size: 13px; }

  /* Formulaire */
  #form-hero {
    padding: calc(var(--header-h) + 40px) 5% 40px;
  }
  #form-section { padding: 40px 4% 72px; }
  .contact-form {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-group input,
  .form-group select {
    font-size: 16px; /* empêche le zoom iOS */
    padding: 13px 14px;
  }
  .form-submit-btn { padding: 16px 24px; font-size: 14px; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-brand { grid-column: unset; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  footer { padding: 48px 5% 24px; }

  /* Carousel */
  .carousel-card { width: 240px; padding: 28px 20px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile moyen (≤480px)
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-guarantee { display: none; } /* trop dense sur très petit écran */
  #stats { gap: 20px; }
  .stat-num { font-size: 38px; }
  .testi-card { padding: 28px 18px; }
  .testi-result { position: static; margin-bottom: 10px; display: block; }
  .testi-placeholder-flag { position: static; margin-bottom: 10px; display: inline-block; }
  .carousel-header { margin-bottom: 32px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Très petit mobile (≤380px)
   ══════════════════════════════════════════ */
@media (max-width: 380px) {
  :root {
    --navbar-h: 56px;
    --ticker-h: 32px;
    --header-h: 88px;
  }
  .nav-cta { padding: 8px 14px; font-size: 11px; }
  .nav-logo img { height: 26px; }
  .hero-cta { padding: 14px 24px; font-size: 12px; }
  .hero-cta::after { display: none; } /* évite le débordement sur mobile XS */
  .contact-form { padding: 24px 16px; }
  #stats { grid-template-columns: 1fr 1fr; gap: 16px; }
}