/*
 * Equinoxe — Design system
 * Sections sombres : hero, stats, pédagogie, footer → #0f172a
 * Bannière CTA → #0f172a
 * Sections claires : formations, FAQ, zone → #F8FAFC / #fff
 */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #64748B;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ── SECTIONS ── */
.section { padding: 100px 0; }
.section-light  { background: #ffffff; }
.section-card   { background: transparent; }
.section-dark   { background: #0f172a; }
.section-navy   { background: #0f172a; }
.section-lime   { background: #ddf6cf; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
/* diaporama des pages prestation (travaux sur corde) */
.presta-slider { position: relative; border-radius: 16px; overflow: hidden; background: #e8e8e8; height: 440px; }
.presta-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.presta-slide.active { opacity: 1; pointer-events: auto; }
.presta-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) { .presta-slider { height: 280px; } }
@media (max-width: 900px) { .presta-hero-cta { display: none; } }
.presta-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15,23,42,0.55); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background 0.18s; z-index: 2;
}
.presta-arrow:hover { background: rgba(15,23,42,0.8); }
.presta-prev { left: 14px; }
.presta-next { right: 14px; }
.presta-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.presta-dot { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.5); padding: 0; transition: background 0.18s, transform 0.18s; }
.presta-dot.active { background: #8bd364; transform: scale(1.2); }

/* hero info cards des pages formation : Public · Prérequis larges, Format/Groupe empilés */
.formation-hero-info { display: grid; grid-template-columns: 2fr 2fr 1.3fr; gap: 16px; max-width: 760px; align-items: stretch; }
.formation-hero-info-stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 768px) { .formation-hero-info { grid-template-columns: 1fr; } }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid-cards.grid-cards-center { grid-template-columns: repeat(2, minmax(300px, 380px)); justify-content: center; }
@media (max-width: 720px) { .grid-cards.grid-cards-center { grid-template-columns: minmax(280px, 420px); } }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(15,23,42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 108px;
  width: auto;
  display: block;
}
.nav-brand {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-left: 10px;
  letter-spacing: 0.10em;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}
.nav-brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: #8bd364 !important;
  letter-spacing: 0.43em;
  text-transform: uppercase;
}
.nav-brand { color: #fff !important; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #EDEDEA;
  border-radius: 999px;
  padding: 6px 8px;
}
.nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f172a;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(15,23,42,0.12); }
.nav-link.active { background: #0f172a; color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: none; padding: 0;
  text-decoration: none; cursor: pointer;
}
.nav-cta-text {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1.05;
}
.nav-cta-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  color: #0f172a; background: #8bd364;
  padding: 2px 9px; border-radius: 6px; margin-bottom: 4px;
}
.nav-cta-number {
  font-size: 20px; font-weight: 800; letter-spacing: 0.01em;
  color: #fff; white-space: nowrap;
}
.nav-cta-icon {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: #8bd364;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.12s;
}
.nav-cta-icon svg { width: 22px; height: 22px; display: block; }
.nav-cta:hover .nav-cta-icon { background: #9de07a; transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-wrap: nowrap;
  background: #8bd364; color: #0f172a;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 10px; cursor: pointer; border: none;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  text-decoration: none;
}
.btn-primary:hover { background: #9de07a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,211,100,0.25); }

/* secondary — dark bg version (white outline, white text) */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); color: #ffffff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ghost — light bg version (dark outline, dark text) */
.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #0f172a;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(15,23,42,0.3);
  transition: border-color 0.18s, background 0.18s;
  text-decoration: none;
}
.btn-ghost-dark:hover { border-color: #0f172a; background: rgba(15,23,42,0.06); }

/* secondary on light bg (for formations page etc.) */
.btn-secondary-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #0f172a;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid rgba(15,23,42,0.2);
  transition: border-color 0.18s, background 0.18s;
  text-decoration: none;
}
.btn-secondary-light:hover { border-color: #0f172a; }

/* ── TAGS ── */
.tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tag-lime  { background: #8bd364; color: #0f172a; }
.tag-slate { background: rgba(15,23,42,0.1); color: #0f172a; }
.tag-navy  { background: #0f172a; color: #8bd364; }
.tag-dark  { background: rgba(255,255,255,0.18); color: #fff; }

/* ── CARDS ── */
.card {
  background: #F8FAFC; border-radius: 16px;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }

/* ── FORMATION CARD ── */
.formation-card {
  cursor: pointer; position: relative; overflow: hidden;
  background: #F8FAFC; border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
  display: flex; flex-direction: column;
}
.formation-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.formation-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e8e8e8; }
.formation-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.formation-card:hover .formation-card-img { transform: scale(1.06); }
.formation-card-badge { position: absolute; top: 12px; left: 12px; z-index: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.formation-card-badge.tag-navy { color: #fff; }
.formation-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.formation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.formation-duree { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #64748B; }
.formation-card-title { font-size: 17px; font-weight: 700; color: #0f172a; line-height: 1.35; }
.formation-card-desc { font-size: 14px; color: #64748B; line-height: 1.6; flex: 1; }
.formation-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.formation-card-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11px; font-weight: 600; color: #000;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
  background: #8bd364; border: 1.5px solid #8bd364; border-radius: 10px; padding: 8px 16px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
.formation-card-link:hover { background: #9de07a; border-color: #9de07a; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(139,211,100,0.3); }
/* Toute la card cliquable : le lien « Voir la formation » s'étend à toute la card (stretched link) */
.formation-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ── SECTION TITLE ── */
.section-title { font-size: clamp(26px, 3vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-align: center; }
.section-title-dark { color: #ffffff; }
.section-title-light { color: #0f172a; }

/* ── HERO ── */
.hero-section {
  min-height: 85vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 168px 0 20px;
  background: #0f172a;
  position: relative; overflow: hidden;
}
/* grid texture overlay */
.hero-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* lime glow */
.hero-section::after {
  content: '';
  position: absolute; top: 20%; left: 45%; z-index: 0;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,211,100,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* fond vidéo unique */
.hero-bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0) 30%),
    radial-gradient(ellipse 75% 75% at center,
      rgba(15,23,42,0.72) 0%,
      rgba(15,23,42,0.35) 55%,
      rgba(15,23,42,0) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
@media (max-width: 1024px) { .hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; } }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 60px;
  justify-items: center; text-align: center;
  width: 100%; padding: 0 48px;
}
.hero-grid .hero-tags { justify-content: center; }
.hero-grid .hero-cta-row { justify-content: center; }
.hero-title {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800; color: #ffffff;
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 28px;
  max-width: 16ch; margin-left: auto; margin-right: auto;
}
.hero-sub { font-size: 18px; color: #fff; max-width: 440px; line-height: 1.7; margin-bottom: 40px; margin-left: auto; margin-right: auto; }
@media (max-width: 1024px) { .hero-sub { text-align: center; margin-left: auto; margin-right: auto; } }


/* ── STATS BAND ── */
.stats-band {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.stat-item:first-child { border-left: none; }
.stat-value { font-size: clamp(22px, 2.5vw, 32px); font-weight: 800; color: #ffffff; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 4px; }
.stat-label { font-size: 11px; font-weight: 700; color: #94A3B8; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── PEDAGOGY DARK SECTION ── */
.pedagogy-section {
  padding: 100px 0;
  background: #0f172a;
  position: relative; overflow: hidden;
}
.pedagogy-section::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at bottom, rgba(139,211,100,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.pedagogy-inner { position: relative; z-index: 1; }
.pedagogy-visual {
  border-radius: 20px; aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, #1E2226 0px, #1E2226 10px, #0f172a 10px, #0f172a 20px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: #64748B;
  border: 1px dashed rgba(255,255,255,0.08);
}
.pedagogy-title-row { display: flex; align-items: flex-start; gap: 14px; }
.pedagogy-avatar {
  display: none;
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 12px; margin-top: 4px;
  background: repeating-linear-gradient(45deg, #1E2226 0px, #1E2226 6px, #0f172a 6px, #0f172a 12px);
  border: 1px dashed rgba(255,255,255,0.12);
  align-items: center; justify-content: center;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  background: #0f172a;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── FAQ ── */
.faq-section { padding: 100px 0; background: #ffffff; }
.faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: flex-start; }
.faq-left { position: sticky; top: 100px; }
.faq-item { border-bottom: 1px solid rgba(15,23,42,0.08); overflow: hidden; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; background: transparent; border: none; cursor: pointer; text-align: left;
  font-family: 'Inter', sans-serif;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1); }
.faq-answer.open { max-height: 400px; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; background: #F1F5F9; }
.faq-icon.open { background: #8bd364; }
.faq-chevron { transition: transform 0.2s; }
.faq-chevron.open { transform: rotate(180deg); }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-left { position: static; }
}
@media (max-width: 768px) {
  .faq-left { text-align: center; }
  .faq-title { text-align: center !important; }
  .pourquoi-text { text-align: center; }
  .confiance-header { text-align: center; }
  .faq-btn { padding: 14px 0; gap: 10px; }
  .faq-btn span { font-size: 13px !important; }
  .faq-icon { width: 22px; height: 22px; }
  .faq-answer p { font-size: 13px !important; padding-bottom: 14px; }
}

/* ── ZONE LOCS ── */
.zone-locs { margin-bottom: 32px; }

/* ── FRANCE MAP ── */
.france-map-wrapper { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; }
@media (max-width: 900px) { .france-map-wrapper { margin: 0 auto; } }

/* ── FOOTER ── */
footer {
  background: #0f172a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { padding: 60px 48px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 17px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: #64748B; font-style: italic; line-height: 1.7; margin-bottom: 12px; }
.footer-linkedin { display: inline-flex; align-items: center; gap: 7px; color: #94A3B8; text-decoration: none; transition: color 0.18s; }
.footer-linkedin:hover { color: #8bd364; }
.footer-coop { font-size: 11px; color: #4A5568; }
.footer-col-title { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #94A3B8; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li, .footer-links li a { font-size: 13px; color: #64748B; transition: color 0.18s; }
.footer-links li a:hover { color: #8bd364; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copyright { font-size: 12px; color: #4A5568; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #4A5568; transition: color 0.18s; }
.footer-legal a:hover { color: #8bd364; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; text-align:center; } .footer-inner { padding: 40px 20px 0; } }
.footer-logo-col { flex-direction:column; align-items:flex-start; }
@media (max-width: 600px) { .footer-grid .footer-logo-col { align-items:center; justify-content:center; } }
@media (max-width: 600px) { .footer-grid .nav-brand { margin-left:0; margin-top:8px; text-align:center; align-items:center; } }
@media (max-width: 600px) { .footer-links { list-style:none; padding:0; } }
@media (max-width: 600px) { .footer-grid img { margin:0 auto; } }

/* ── TAB BUTTONS ── */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid rgba(15,23,42,0.1); margin-bottom: 40px; }
.tab-btn { padding: 12px 24px; border: none; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: #94A3B8; border-bottom: 2px solid transparent; transition: all 0.18s; margin-bottom: -1px; font-family: 'Inter', sans-serif; }
.tab-btn.active { color: #0f172a; border-bottom-color: #8bd364; }

/* ── FLASH ── */
.flash-success { background: #ddf6cf; color: #5a6a0c; padding: 14px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; margin: 16px 0; border: 1px solid #8bd364; }

/* ── SECTION TITLE TEXT ── */
.section-title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }

/* ── FORM INPUTS ── */
.form-input {
  width: 100%; padding: 12px 16px; border: 1px solid rgba(15,23,42,0.15);
  border-radius: 8px; font-family: 'Inter', sans-serif; color: #0f172a;
  background: #F8FAFC; outline: none; transition: border-color 0.15s; font-size: 14px;
}
.form-input:focus { border-color: #8bd364; }

/* ── ANIMATIONS ── */
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── CONTAINER WIDE ── */
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container-wide { padding: 0 20px; } }

/* ── NAV BURGER ── */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-cta { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-cta { gap: 9px; }
  .nav-cta-number { font-size: 17px; }
  .nav-cta-icon { width: 36px; height: 36px; }
  .nav-cta-icon svg { width: 19px; height: 19px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .hero-tags { justify-content: center; }
  .hero-cta-row { justify-content: center; }
  .group-header { justify-content: center; }
  .group-header-line { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { border: none; border-bottom: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08); padding: 24px 16px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 768px) {
  .hero-inner .btn-primary, .hero-inner .btn-secondary { font-size: 12px; padding: 11px 20px; }
  .hero-title { font-size: 52px; }
  .hero-sub { margin-bottom: 24px; }
  /* voile plus opaque sur portable pour la lisibilité du texte sur la vidéo */
  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.35) 50%, rgba(15,23,42,0.45) 100%),
      radial-gradient(ellipse 90% 80% at center, rgba(15,23,42,0.45) 0%, rgba(15,23,42,0.3) 100%);
  }
  .zone-text { text-align: center; }
  .zone-cta { justify-content: center; }
  .home-zone-text { text-align: center; }
  .home-zone-grid .home-zone-text { order: 1; }
  .home-zone-grid .france-map-wrapper { order: 2; }
  .zone-locs { display: flex; gap: 16px; flex-direction: column; margin-bottom: 32px; align-items: center; }
  nav { padding: 14px 20px; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .nav-mobile-cta {
    display: block; padding-top: 20px; margin-top: 4px;
  }
  .nav-links {
    display: none;
    position: fixed; top: 0; left: 0; right: 0;
    height: 100dvh;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch;
    gap: 0; border-radius: 0; padding: 108px 24px 28px;
    z-index: 999; overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: 14px 0; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 0; color: rgba(255,255,255,0.8);
    letter-spacing: 0.05em; text-transform: uppercase; white-space: normal;
  }
  .nav-link:hover, .nav-link.active { background: transparent; color: #8bd364; }
  .section { padding: 64px 0; }
  .faq-section { padding: 64px 0; }
  .pedagogy-section { padding: 64px 0; }
  .pedagogy-visual { display: none; }
  .pedagogy-avatar { display: flex; }
  .cta-section { padding: 64px 0; }
  .hero-section { padding: 116px 0 48px; min-height: auto; }
  .slideshow { min-height: 260px; }
  .stats-band { padding: 28px 0; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 500px) {
  .slideshow-tags { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item { border: none; border-bottom: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08); padding: 16px 12px; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; }
  .hero-grid { padding: 0 20px; }
  .formation-card-body { padding: 18px 20px 20px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn-primary, .hero-cta-row .btn-secondary { width: 100%; justify-content: center; }
  .hero-tags { flex-wrap: nowrap; overflow-x: auto; }
  .hero-tags .tag { font-size: 8px; padding: 4px 9px; white-space: nowrap; }
  .group-header { justify-content: center; }
  .group-header-line { display: none; }
  .grid-cards {
    display: flex; flex-direction: column; gap: 0;
  }
  .grid-cards .formation-card {
    position: sticky; margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  }
  .grid-cards .formation-card:nth-child(1) { top: 72px; }
  .grid-cards .formation-card:nth-child(2) { top: 78px; }
  .grid-cards .formation-card:nth-child(3) { top: 84px; }
  .grid-cards .formation-card:nth-child(4) { top: 90px; }
  .grid-cards .formation-card:nth-child(5) { top: 96px; }
  .grid-cards .formation-card:nth-child(6) { top: 102px; }
  .valeurs-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .valeurs-grid > div { padding: 12px !important; border-radius: 10px !important; }
  .valeurs-grid svg { width: 18px !important; height: 18px !important; margin-bottom: 8px !important; }
  .valeurs-grid div[style*="font-size:16px"] { font-size: 11px !important; margin-bottom: 4px !important; }
  .valeurs-grid p { font-size: 10px !important; line-height: 1.5 !important; }
}

/* ── UTILITIES ── */
.text-lime  { color: #8bd364; }
.text-white { color: #ffffff; }
.text-navy  { color: #0f172a; }
.text-body  { color: #64748B; }
.text-muted { color: #94A3B8; }

/* grille valeurs approche : 3 cols → 1 col sur mobile */
@media (max-width: 768px) { .valeurs-grid { grid-template-columns: 1fr !important; } }

/* align-start grid (form + sidebar layouts) */
.grid-2-start { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
@media (max-width: 900px) { .grid-2-start { grid-template-columns:1fr; gap:40px; } }

/* small 2-col form grid (prénom / nom) */
.grid-2-sm { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 500px) { .grid-2-sm { grid-template-columns:1fr; } }

/* hero fonds sombres des sous-pages (formations, etc.) */
.hero-page { padding: 168px 48px 80px; overflow:hidden; }
@media (max-width: 900px) { .hero-page { padding: 130px 32px 60px; } }
@media (max-width: 768px) { .hero-page { padding: 116px 20px 48px; text-align: center; } }
@media (max-width: 900px) { .nav-logo img { height: 72px; } }
@media (max-width: 768px) { .formations-hero-sub { font-size:13px !important; } }
@keyframes livePulseDark {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.8); transform: scale(1); }
  50%  { box-shadow: 0 0 0 5px rgba(255,255,255,0); transform: scale(1.2); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); transform: scale(1); }
}

/* formation show — hero inner wrapper */
.formation-hero-inner { width:100%; padding:0 48px; box-sizing:border-box; position:relative; z-index:1; }

/* formation show — hero grid (texte + carte CTA) */
.formation-hero-grid { display:grid; grid-template-columns:1fr auto; gap:48px; align-items:flex-start; min-width:0; }
.formation-hero-grid > * { min-width:0; }
.formation-hero-cta-card { align-self:end; }
.formation-hero-photo-mobile { display:none; }

@media (max-width: 900px) {
  .formation-hero-inner { padding:0 !important; }
  .breadcrumb-hide { display:none !important; }
  .formation-hero-tags { justify-content:center; }
  .formation-hero-grid h1 { text-align:center; }
  .hero-info-card { text-align:left !important; }
  .hero-info-card div { text-align:left !important; }
  .formation-hero-grid { grid-template-columns:1fr !important; gap:24px; }
  .formation-hero-grid h1 { font-size:clamp(26px,7vw,36px) !important; word-break:break-word; overflow-wrap:break-word; }
  .formation-hero-cta-card { width:100% !important; max-width:100% !important; box-sizing:border-box !important; flex-shrink:1 !important; }
  .formation-hero-grid [style*="max-width:700px"] { max-width:100% !important; }
  .formation-hero-grid [style*="repeat(auto-fit"] { grid-template-columns:1fr 1fr !important; }
  .formation-hero-photo-mobile { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:16px; margin-bottom:24px; }
}

/* formation show — contenu + sidebar */
.formation-content-grid { display:grid; grid-template-columns:1fr 320px; gap:48px; align-items:start; }
@media (max-width: 960px) { .formation-content-grid { grid-template-columns:1fr; } }
@media (max-width: 960px) { .formation-sidebar { position:static !important; } }

/* ── PAGE DEVIS ── */
.devis-steps { display:flex; align-items:center; margin-bottom:40px; gap:0; }
.devis-step-item { display:flex; align-items:center; gap:10px; }
.devis-panel-inner { background:#fff; border-radius:20px; padding:32px; border:1px solid #E2E8F0; }
.devis-formations-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.devis-badges { margin-top:32px; display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.devis-nav-row { margin-top:28px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.devis-nav-end { justify-content:flex-end; }
.devis-submit-row { margin-top:28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.devis-submit-btn { background:#8bd364; color:#0f172a; border:none; border-radius:10px; padding:14px 28px; font-size:14px; font-weight:700; cursor:pointer; }
input::placeholder, textarea::placeholder { color:#94A3B8; font-style:italic; }
@media (max-width: 600px) {
  .devis-steps { margin-bottom:28px; }
  .devis-step-label { display:none; }
  .devis-panel-inner { padding:20px 16px; border-radius:14px; }
  .devis-formations-grid { grid-template-columns:1fr; }
  .devis-badges { grid-template-columns:1fr 1fr 1fr; gap:6px; }
  .devis-nav-row { gap:8px; }
  .devis-nav-row > * { flex:1; justify-content:center; }
  .devis-nav-end > * { flex:1; }
  .devis-submit-row { flex-direction:column; }
  .devis-submit-btn { width:100%; text-align:center; padding:14px; }
}

/* 3 colonnes EPI cards */
.grid-3-epi { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width: 600px) { .grid-3-epi { grid-template-columns:1fr; } }

/* ── BARRE D'ACTION MOBILE ── */
.mobile-action-bar {
  display: none;
}
@media (max-width: 900px) {
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 998;
    background: #0f172a;
    border-top: 1px solid #334155;
    padding-bottom: env(safe-area-inset-bottom);
    gap: 0;
  }
  .mobile-action-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px;
    padding: 14px 6px;
    font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    border-right: 1px solid #334155;
    transition: background 0.12s, color 0.12s;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-action-btn:last-child { border-right: none; }
  .mobile-action-btn:active {
    background: rgba(0,0,0,0.35);
    color: #8bd364;
  }
  .mobile-action-btn.active {
    color: #8bd364;
    background: rgba(0,0,0,0.2);
  }
  footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
