/*
 * Equinoxe — Design system
 * Sections sombres : hero, stats, pédagogie, footer → #0F172A
 * Bannière CTA → #263040
 * 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: #F8FAFC; }
.section-dark   { background: #0F172A; }
.section-navy   { background: #263040; }
.section-lime   { background: #D0FEE0; }

/* ── 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; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@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: 200;
  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 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
}
.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: #263040;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(38,48,64,0.12); }
.nav-link.active { background: #263040; color: #fff; }
.nav-cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0F172A;
  background: #6AFE86;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
  transition: background 0.18s, transform 0.12s;
}
.nav-cta:hover { background: #d4e93a; transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #6AFE86; color: #0F172A;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 999px; cursor: pointer; border: none;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  text-decoration: none;
}
.btn-primary:hover { background: #d4e93a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(106,254,134,0.3); }

/* secondary — dark bg version (white outline, white text) */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #ffffff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.25);
  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.06); 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: #263040;
  font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(38,48,64,0.3);
  transition: border-color 0.18s, background 0.18s;
  text-decoration: none;
}
.btn-ghost-dark:hover { border-color: #263040; background: rgba(38,48,64,0.06); }

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

/* ── 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: #D0FEE0; color: #0D6B30; }
.tag-slate { background: rgba(38,48,64,0.1); color: #263040; }
.tag-dark  { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); }

/* ── 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 {
  padding: 28px; cursor: pointer; position: relative; overflow: hidden;
  background: #F8FAFC; border-radius: 16px;
  border: 1px solid rgba(38,48,64,0.06);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s;
  display: flex; flex-direction: column; gap: 12px;
}
.formation-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.formation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.formation-duree { font-size: 11px; font-weight: 600; color: #64748B; background: #F1F5F9; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.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; }
.formation-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #00ac3c;
  letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none;
}

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

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  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(106,254,134,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: stretch; max-width: 1300px; margin: 0 auto; width: 100%; padding: 0 48px;
}
.hero-title {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 800; color: #ffffff;
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 28px;
}
.hero-sub { font-size: 18px; color: #94A3B8; max-width: 440px; line-height: 1.7; margin-bottom: 40px; }

/* ── SLIDESHOW ── */
.slideshow {
  position: relative; border-radius: 24px; overflow: hidden;
  min-height: 400px; align-self: stretch;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.slideshow-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease-in-out;
  background-size: cover; background-position: center;
}
.slideshow-slide.active { opacity: 1; animation: heroZoom 10s ease-out forwards; }
.slideshow-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, transparent 100%);
  pointer-events: none;
}
.slideshow-tags {
  position: absolute; top: 20px; left: 20px;
  display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; max-width: 90%;
}
.slideshow-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  padding: 7px 14px; border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: fadeUp 0.4s ease both;
}
.slideshow-tag-primary {
  background: #6AFE86; color: #0F172A;
  border: 2px solid rgba(106,254,134,0.4);
}
.slideshow-tag-secondary {
  background: rgba(15,23,42,0.82); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.slideshow-dots {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; gap: 6px; z-index: 2;
}
.slideshow-dot {
  height: 6px; border-radius: 3px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}
.slideshow-dot.active { width: 20px; background: #6AFE86; }
.slideshow-dot:not(.active) { width: 6px; }
.slideshow-counter {
  position: absolute; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 6px; z-index: 2;
}

/* ── 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: #64748B; 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(106,254,134,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, #263040 10px, #263040 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);
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  background: #263040;
  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(38,48,64,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: #6AFE86; }
.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; }
}

/* ── FRANCE MAP ── */
.france-map-wrapper { position: relative; width: 100%; max-width: 440px; }

/* ── 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; line-height: 1.7; margin-bottom: 12px; }
.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: #6AFE86; }
.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: #6AFE86; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-inner { padding: 40px 20px 0; } }

/* ── TAB BUTTONS ── */
.tab-bar { display: flex; gap: 0; border-bottom: 1px solid rgba(38,48,64,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: #6AFE86; }

/* ── FLASH ── */
.flash-success { background: #D0FEE0; color: #0D6B30; padding: 14px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; margin: 16px 0; border: 1px solid #6AFE86; }

/* ── 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(38,48,64,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: #6AFE86; }

/* ── 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); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { border: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 20px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* ── UTILITIES ── */
.text-lime  { color: #6AFE86; }
.text-white { color: #ffffff; }
.text-navy  { color: #263040; }
.text-body  { color: #64748B; }
.text-muted { color: #94A3B8; }
