/* ═══════════════════════════════════════════
   AXION IA — Design System
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Tokens ─── */
:root {
  --bg:             #F7F9FC;
  --bg-surface:     #FFFFFF;
  --bg-raised:      #EEF3FF;
  --text:           #0C1222;
  --text-sub:       #475569;
  --text-muted:     #8896A5;
  --accent:         #D97706;
  --accent-alpha:   rgba(217, 119, 6, 0.12);
  --cool:           #0891B2;
  --cool-alpha:     rgba(8, 145, 178, 0.1);
  --border:         rgba(12, 18, 34, 0.08);
  --shadow-sm:      0 1px 3px rgba(12, 18, 34, 0.06);
  --shadow-md:      0 4px 20px rgba(12, 18, 34, 0.08);
  --shadow-lg:      0 16px 48px rgba(12, 18, 34, 0.12);
  --radius:         14px;
  --radius-sm:      8px;
  --nav-h:          68px;
  --term-bg:        #060D0D;
  --term-green:     #4ADE80;
  --term-green-dim: rgba(74, 222, 128, 0.55);
  --term-amber:     #FCD34D;
  --term-comment:   #4D6B54;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0D1117;
    --bg-surface:   #161C2D;
    --bg-raised:    #1E2A3D;
    --text:         #E2E8F0;
    --text-sub:     #94A3B8;
    --text-muted:   #64748B;
    --accent:       #F59E0B;
    --accent-alpha: rgba(245, 158, 11, 0.1);
    --cool:         #22D3EE;
    --cool-alpha:   rgba(34, 211, 238, 0.08);
    --border:       rgba(255, 255, 255, 0.06);
    --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg:           #0D1117;
  --bg-surface:   #161C2D;
  --bg-raised:    #1E2A3D;
  --text:         #E2E8F0;
  --text-sub:     #94A3B8;
  --text-muted:   #64748B;
  --accent:       #F59E0B;
  --accent-alpha: rgba(245, 158, 11, 0.1);
  --cool:         #22D3EE;
  --cool-alpha:   rgba(34, 211, 238, 0.08);
  --border:       rgba(255, 255, 255, 0.06);
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 16px 48px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
  --bg:           #F7F9FC;
  --bg-surface:   #FFFFFF;
  --bg-raised:    #EEF3FF;
  --text:         #0C1222;
  --text-sub:     #475569;
  --text-muted:   #8896A5;
  --accent:       #D97706;
  --accent-alpha: rgba(217, 119, 6, 0.12);
  --cool:         #0891B2;
  --cool-alpha:   rgba(8, 145, 178, 0.1);
  --border:       rgba(12, 18, 34, 0.08);
  --shadow-sm:    0 1px 3px rgba(12, 18, 34, 0.06);
  --shadow-md:    0 4px 20px rgba(12, 18, 34, 0.08);
  --shadow-lg:    0 16px 48px rgba(12, 18, 34, 0.12);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ─── Typography helpers ─── */
.display { font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.heading { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-text {
  background: linear-gradient(130deg, var(--accent) 0%, var(--cool) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45); }
.btn-ghost {
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  background: var(--bg-surface);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }

/* ═══════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
@media (prefers-color-scheme: dark) {
  .nav.scrolled { background: rgba(13, 17, 23, 0.85); }
}
[data-theme="dark"] .nav.scrolled { background: rgba(13, 17, 23, 0.85); }
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.82); }

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cool) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #E2E8F0;
}
.nav.scrolled .logo-text { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.75);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #E2E8F0; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--accent); }
.nav.scrolled .nav-links a { color: var(--text-sub); }
.nav.scrolled .nav-links a:hover { color: var(--text); background: var(--bg-raised); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.7);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.nav.scrolled .theme-toggle { color: var(--text-sub); border-color: var(--border); background: var(--bg-surface); }
.theme-toggle svg { width: 16px; height: 16px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  color: var(--text);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.7rem 0.5rem;
  font-weight: 500;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border: none; }

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #080E1A;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 60% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 5rem 0 4rem;
}

.hero-eyebrow {
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #E2E8F0;
  margin-bottom: 1.5rem;
}
.hero-title .gradient-text {
  background: linear-gradient(120deg, #F59E0B 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.05rem;
  color: #8896A5;
  max-width: 48ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.5rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #94A3B8;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  height: 480px;
}
#neuralCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.hero-stat-card {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  background: rgba(22, 28, 45, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  min-width: 200px;
}
.hero-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: #F59E0B; margin-bottom: 0.5rem; }
.hero-stat-num { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: #E2E8F0; }
.hero-stat-sub { font-size: 0.78rem; color: #64748B; margin-top: 0.1rem; }
.hero-stat-bar { margin-top: 0.75rem; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.hero-stat-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, #F59E0B, #22D3EE);
  border-radius: 2px;
  animation: pulse-bar 2s ease-in-out infinite alternate;
}
@keyframes pulse-bar { to { opacity: 0.6; } }

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  color: var(--text);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════════
   INFRASTRUCTURE — Terminal section
   ═══════════════════════════════════════════ */
.infra-section { background: var(--bg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-eyebrow { color: var(--accent); margin-bottom: 0.85rem; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.section-desc { color: var(--text-sub); font-size: 1.02rem; max-width: 56ch; margin: 0 auto; }

.infra-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* THE TERMINAL — bold design choice */
.terminal-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.15);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.05);
}
.terminal-header {
  background: #0A1010;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #FF5F56; }
.terminal-dots span:nth-child(2) { background: #FFBD2E; }
.terminal-dots span:nth-child(3) { background: #27C93F; }
.terminal-title { color: rgba(74, 222, 128, 0.4); font-size: 0.68rem; }

.terminal-body {
  background: var(--term-bg);
  padding: 1.75rem;
  overflow-x: auto;
}
.terminal-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--term-green);
  white-space: pre;
}
.t-comment { color: var(--term-comment); }
.t-key { color: var(--term-amber); display: inline-block; min-width: 8ch; }
.t-val { color: var(--term-green); }
.t-sub { color: var(--term-green-dim); }
.t-ok { color: #4ADE80; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--term-green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.infra-benefits { display: flex; flex-direction: column; gap: 1.75rem; padding-top: 0.5rem; }
.infra-benefit {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-alpha);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(217, 119, 6, 0.15);
}
.infra-benefit h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.35rem; color: var(--text); }
.infra-benefit p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.65; }

/* ═══════════════════════════════════════════
   QUALIOPI BAND
   ═══════════════════════════════════════════ */
.qualiopi-band {
  background: linear-gradient(135deg, #1A1000 0%, #0D1A1F 100%);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.qualiopi-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 10% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}
.qualiopi-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.qualiopi-seal {
  width: 120px;
  height: 120px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.qualiopi-seal::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 50%;
}
.seal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.seal-q {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #F59E0B;
  line-height: 1;
}
.seal-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: rgba(245, 158, 11, 0.65);
  text-transform: uppercase;
}

.qualiopi-content .label { color: #F59E0B; margin-bottom: 0.75rem; }
.qualiopi-content h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.9rem; color: #E2E8F0; margin-bottom: 1rem; }
.qualiopi-content p { color: #94A3B8; max-width: 56ch; margin-bottom: 1.5rem; line-height: 1.7; }
.qualiopi-perks { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.qualiopi-perks li { font-size: 0.9rem; color: #CBD5E1; font-weight: 500; }
.qualiopi-perks li::before { content: '✓  '; color: #4ADE80; }

/* ═══════════════════════════════════════════
   FORMATIONS
   ═══════════════════════════════════════════ */
.formations-section { background: var(--bg); }
.formations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.formation-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.formation-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--card-accent-a), var(--card-accent-b));
  opacity: 0;
  transition: opacity 0.2s;
}
.formation-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.formation-card:hover::before { opacity: 1; }

.formation-card[data-color="amber"] { --card-accent-a: #F59E0B; --card-accent-b: #D97706; }
.formation-card[data-color="cyan"]  { --card-accent-a: #22D3EE; --card-accent-b: #0891B2; }
.formation-card[data-color="violet"]{ --card-accent-a: #A78BFA; --card-accent-b: #7C3AED; }
.formation-card[data-color="green"] { --card-accent-a: #4ADE80; --card-accent-b: #16A34A; }
.formation-card[data-color="rose"]  { --card-accent-a: #FB7185; --card-accent-b: #E11D48; }
.formation-card[data-color="orange"]{ --card-accent-a: #FB923C; --card-accent-b: #EA580C; }

.formation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.formation-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.formation-qualiopi {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  background: rgba(74, 222, 128, 0.12);
  color: #16A34A;
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  white-space: nowrap;
}
[data-theme="dark"] .formation-qualiopi { color: #4ADE80; }

.formation-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--text); }
.formation-desc { font-size: 0.875rem; color: var(--text-sub); line-height: 1.65; flex: 1; }
.formation-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.formation-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: var(--bg-raised);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.formation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.formation-duration { display: flex; align-items: center; gap: 0.35rem; }
.formation-level {
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
}
.level-debutant  { background: rgba(74, 222, 128, 0.1);  color: #16A34A; }
.level-intermediaire { background: rgba(245, 158, 11, 0.1); color: #D97706; }
.level-avance { background: rgba(167, 139, 250, 0.1); color: #7C3AED; }
[data-theme="dark"] .level-debutant { color: #4ADE80; }
[data-theme="dark"] .level-intermediaire { color: #F59E0B; }
[data-theme="dark"] .level-avance { color: #A78BFA; }

/* ═══════════════════════════════════════════
   APPROCHE
   ═══════════════════════════════════════════ */
.approche-section { background: var(--bg-raised); }
.approche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}
.approche-item {
  padding: 2rem;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.approche-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.approche-item h3 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.6rem; }
.approche-item p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.65; }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-section { background: var(--bg); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info { padding-top: 0.5rem; }
.contact-info h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-sub); margin-bottom: 2rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-sub);
}
.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-alpha);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.flash-msg {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.flash-success { background: rgba(74, 222, 128, 0.1); color: #16A34A; border: 1px solid rgba(74, 222, 128, 0.2); }
.flash-error   { background: rgba(251, 113, 133, 0.1); color: #E11D48; border: 1px solid rgba(251, 113, 133, 0.2); }
[data-theme="dark"] .flash-success { color: #4ADE80; }
[data-theme="dark"] .flash-error   { color: #FB7185; }

.form-row { margin-bottom: 1.25rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-sub); margin-bottom: 0.45rem; }
label span { color: var(--accent); }
input, textarea, select {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-alpha);
}
textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; margin-top: 0.5rem; justify-content: center; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.75rem; max-width: 36ch; line-height: 1.65; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .infra-layout { grid-template-columns: 1fr; }
  .formations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .hero-visual { height: 300px; }
  .hero-title { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-child(2) { border-bottom: none; }
  .formations-grid { grid-template-columns: 1fr; }
  .approche-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .qualiopi-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .form-row-2 { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.85rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
