@font-face {
  font-family: 'Cascadia Mono';
  src: url('https://cdn.jsdelivr.net/gh/microsoft/cascadia-code@latest/fonts/otf/CascadiaMonoPL.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 10000;
  background: var(--blue); color: #fff; padding: 0.75rem 1.5rem;
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  border-radius: 0 0 4px 4px; transition: top .2s;
}
.skip-link:focus { top: 0; }

:root {
  --bg:     #08090f;
  --bg2:    #0c0d11;
  --bg3:    #111318;
  --border: rgba(255,255,255,0.07);
  --text:   #ebebee;
  --muted:  #777;
  --blue:   #1b83e4;
  --font:   'Roboto', sans-serif;
  --font-title: 'Cascadia Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); overflow-x: hidden; }

h1, h2, h3, h4,
.hero-title, .sec-title, .m-title, .stat-num,
.nav-logo-text, .t-name, .news-title, .m-badge,
.hero-eyebrow, .sec-label, .hero-sub,
.footer-brand span {
  font-family: var(--font-title);
}

/* ── NAVBAR ── */
nav, #navbar {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px; display: flex; align-items: center;
  padding: 0 5vw; gap: 0;
  transition: background .45s cubic-bezier(.4,0,.2,1), border-color .45s;
  border-bottom: 1px solid transparent;
}
nav { background: rgba(7,8,10,0.6); }
nav.scrolled { background: rgba(7,8,10,0.94); backdrop-filter: blur(16px); border-color: var(--border); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 260px; height: 44px; object-fit: contain; object-position: left center; filter: brightness(0) invert(1); }
.nav-logo-text { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: 0.1em; }
.nav-links { display: flex; gap: 2.5rem; margin: 0 auto; align-items: center; }
.nav-links a { font-size: 0.85rem; color: #9a9a9a; text-decoration: none; font-weight: 500; letter-spacing: 0.02em; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-live { display: flex; align-items: center; gap: 6px; color: var(--blue) !important; font-weight: 600 !important; }
.nav-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #e44b1b; animation: blink 1.1s ease-in-out infinite; flex-shrink: 0; }
.nav-cta {
  background: var(--blue); color: #fff; border: none; padding: 9px 22px;
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: opacity .2s; white-space: nowrap;
}
.nav-cta:hover { opacity: 0.82; }

/* ── HERO ── */
#hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; text-align: center; overflow: hidden;
}
#stars-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 75%, rgba(8,20,48,0.85) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero-eyebrow { font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--blue); }
.hero-title {
  font-size: clamp(4rem, 9vw, 10rem);
  font-weight: 700; line-height: 0.88;
  letter-spacing: -0.025em; color: #f0f0f5;
}
.hero-sub { font-size: 1rem; color: #7a7a7a; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.hero-btns { display: flex; gap: 1rem; margin-top: 0.75rem; }
.btn-p {
  background: var(--blue); color: #fff; padding: 13px 34px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  border: none; cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: opacity .2s; display: inline-block;
}
.btn-p:hover { opacity: 0.82; }
.btn-o {
  background: none; color: #aaa; padding: 13px 34px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 500;
  border: 1px solid #3a3a3a; cursor: pointer; border-radius: 2px; text-decoration: none;
  transition: border-color .2s, color .2s; display: inline-block;
}
.btn-o:hover { border-color: #777; color: var(--text); }
.scroll-ind {
  position: absolute; bottom: 2.25rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-ind span { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: #333; }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, #3a3a3a, transparent); animation: pulse 2.2s ease-in-out infinite; }

/* ── STATS BAND ── */
#stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  background: #07080d;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stat-item { padding: 2.75rem 0; text-align: center; border-right: 1px solid rgba(255,255,255,0.04); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 3.75rem; font-weight: 700; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 0.75rem; color: #6a6a6a; margin-top: 8px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── SHARED ── */
.hr { height: 1px; background: var(--border); }
section { padding: 7rem 5vw; }
.sec-label { font-size: 0.72rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.85rem; display: block; }
.sec-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.sec-header { margin-bottom: 3.5rem; }

/* ── ABOUT ── */
#about .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
#about .about-copy p { font-size: 1.05rem; color: #8a8a8a; line-height: 1.95; margin-bottom: 1.5rem; }
#about .about-img {
  aspect-ratio: 4/3; border-radius: 2px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#about .about-img:not(:has(img)) {
  background: repeating-linear-gradient(45deg,#0f1018,#0f1018 6px,#0a0b10 6px,#0a0b10 12px);
}
#about .about-img img { width: 100%; height: 100%; object-fit: cover; }
#about .about-img span { color: #1e2028; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; }
#about .about-copy .btn-p { display: inline-block; margin-top: 2rem; }

/* ── MISSIONS ── */
#missions { background: var(--bg2); }
.missions-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
a.m-card { text-decoration: none; color: inherit; }
.m-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 2px; overflow: hidden;
  transition: border-color .3s, transform .35s cubic-bezier(.4,0,.2,1);
  cursor: pointer; display: flex; flex-direction: column;
}
.m-card:hover { border-color: rgba(26,144,255,0.35); transform: translateY(-6px); }
.m-img {
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.m-img:not(:has(img)) {
  background: repeating-linear-gradient(45deg,#121218,#121218 5px,#0d0d12 5px,#0d0d12 10px);
}
.m-img img { width: 100%; height: 100%; object-fit: cover; }
.m-img span { color: #1c1c24; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.m-body { padding: 1.75rem 1.75rem 2.25rem; flex: 1; display: flex; flex-direction: column; }
.m-badge {
  display: inline-block; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); background: rgba(26,144,255,0.08); border: 1px solid rgba(26,144,255,0.2);
  padding: 3px 10px; border-radius: 2px; margin-bottom: 0.9rem; width: fit-content;
}
.m-badge.active  { color: #22c55e; background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }
.m-badge.planned { color: #888; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.m-badge.done    { color: #1b83e4; background: rgba(27,131,228,0.08); border-color: rgba(27,131,228,0.2); }
.m-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.m-desc { font-size: 0.875rem; color: #7a7a7a; line-height: 1.8; flex: 1; }
.m-link { display: inline-block; margin-top: 1.5rem; font-size: 0.875rem; color: var(--blue); text-decoration: none; transition: opacity .2s; }
.m-link:hover { opacity: .75; }

/* ── ACTUALITÉS ── */
.news-item {
  display: flex; align-items: center; gap: 2rem; padding: 1.75rem 0.5rem;
  border-bottom: 1px solid var(--border); cursor: pointer; border-radius: 2px;
  text-decoration: none; color: inherit;
  transition: background .25s;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item:hover { background: rgba(255,255,255,0.012); }
.news-bar { width: 3px; height: 52px; background: var(--blue); border-radius: 2px; flex-shrink: 0; }
.news-body { flex: 1; }
.news-title { font-size: 1rem; font-weight: 600; margin-bottom: 5px; line-height: 1.4; }
.news-date { font-size: 0.78rem; color: #6a6a6a; }
.news-arr { font-size: 1.1rem; color: #2a2a2a; transition: color .2s, transform .2s; }
.news-item:hover .news-arr { color: var(--blue); transform: translateX(5px); }
.news-past { opacity: 0.45; }
.news-past .news-bar { background: var(--muted); }
.news-badge-past {
  display: inline-block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 8px; border-radius: 2px; margin-left: 0.75rem; vertical-align: middle;
}

/* ── ÉQUIPE ── */
#equipe { background: var(--bg2); }
.team-marquee {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
  mask: linear-gradient(90deg, transparent, #fff 12%, #fff 88%, transparent);
}
.tm-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.team-marquee:hover .tm-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.t-member {
  flex: 0 0 160px;
  text-align: center;
}
.t-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: #0f1018; border: 1px solid #20222c;
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #252830;
  transition: border-color .3s;
  overflow: hidden;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-member:hover .t-avatar { border-color: rgba(26,144,255,0.5); }
.t-name { font-size: 0.9rem; font-weight: 600; color: #ccc; }
.t-role { font-size: 0.75rem; color: #484848; margin-top: 4px; }

/* ── GALERIE ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  grid-template-rows: 220px 220px;
  gap: 8px;
}
.g-item {
  border-radius: 2px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: opacity .3s;
}
.g-item:not(:has(img)) {
  background: repeating-linear-gradient(45deg,#0f1018,#0f1018 5px,#0a0b10 5px,#0a0b10 10px);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,144,255,0); transition: background .3s;
}
.g-item:hover::after { background: rgba(26,144,255,0.06); }
.g-item:hover { opacity: 0.85; }
.g-item span { color: #181820; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 1; }
.g1 { grid-column: span 4; grid-row: span 2; }
.g2 { grid-column: span 4; }
.g3 { grid-column: span 4; }
.g4 { grid-column: span 5; }
.g5 { grid-column: span 3; }
.g6 { grid-column: span 4; }

/* ── PARTENAIRES ── */
#partenaires { background: var(--bg2); }
.partners-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.p-item {
  padding: 1.5rem 3rem; border: 1px solid #181820; border-radius: 2px; min-width: 160px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .3s, background .3s;
}
.p-item:hover { border-color: #2a2a38; background: rgba(255,255,255,0.015); }
.p-item img { max-height: 40px; max-width: 140px; object-fit: contain; filter: brightness(0.5); transition: filter .3s; }
.p-item:hover img { filter: brightness(0.8); }
.p-item span { font-size: 0.9rem; color: #444; font-weight: 500; letter-spacing: 0.05em; }

/* ── CONTACT ── */
#contact { background: #040508; padding: 8rem 5vw; }
.contact-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-grid h2 { margin: 1rem 0 1.5rem; font-size: clamp(1.8rem,3vw,2.5rem); }
.contact-grid p { color: #8a8a8a; line-height: 1.9; font-size: 1rem; margin-bottom: 2rem; }
.contact-partners { border-left: 1px solid var(--border); padding-left: 5rem; }

/* ── SOUS-PAGES ── */
.subpage-header {
  padding: 9rem 5vw 3rem;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--blue); }
.subpage-content {
  padding: 3rem 5vw 6rem;
}
.gallery-full {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: unset;
}
.gallery-full .g-item {
  grid-column: unset !important;
  grid-row: unset !important;
  height: 240px;
}

/* ── FOOTER ── */
footer {
  background: #030405; padding: 2.5rem 5vw;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 26px; opacity: 0.5; }
.footer-brand span { font-size: 0.85rem; font-weight: 700; color: #2a2a35; letter-spacing: 0.1em; }
.footer-info { font-size: 0.75rem; color: #888; margin-top: 6px; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.78rem; color: #999; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #ccc; }
.footer-credit { font-size: 0.7rem; color: #777; margin-top: 12px; }
.footer-credit a { color: #999; text-decoration: none; transition: color .2s; }
.footer-credit a:hover { color: #ccc; }
.team-text { max-width: 700px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

/* ── LIVE POPUP ── */
#live-popup {
  position: fixed; bottom: 28px; left: 28px; z-index: 9999;
  background: #0d0e16; border: 1px solid rgba(228,75,27,0.35);
  border-radius: 6px; padding: 16px 20px; width: 300px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(228,75,27,0.1);
  transform: translateY(20px); opacity: 0;
  transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .45s;
  pointer-events: none;
  font-family: var(--font);
}
#live-popup.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.live-popup-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.live-popup-dot { width: 8px; height: 8px; border-radius: 50%; background: #e44b1b; animation: blink 1.1s ease-in-out infinite; flex-shrink: 0; }
.live-popup-label { font-family: var(--font-title); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #e44b1b; }
.live-popup-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #444; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; }
.live-popup-title { font-family: var(--font-title); font-size: 1rem; font-weight: 700; color: #ebebee; margin-bottom: 10px; }
.live-popup-preview {
  display: block; margin-bottom: 14px; position: relative; border-radius: 2px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08); text-decoration: none;
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg,#0a0b12,#0a0b12 5px,#080910 5px,#080910 10px);
  display: flex; align-items: center; justify-content: center;
}
.live-popup-play {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(228,75,27,0.9);
  display: flex; align-items: center; justify-content: center;
}
.live-popup-hint { position: absolute; bottom: 6px; left: 8px; font-family: var(--font-title); font-size: .65rem; color: rgba(255,255,255,0.5); }
.live-popup-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #e44b1b; color: #fff; text-decoration: none; padding: 9px 0; border-radius: 2px;
  font-size: .85rem; font-weight: 600; font-family: var(--font-title); letter-spacing: .05em;
  transition: opacity .2s;
}
.live-popup-btn:hover { opacity: .82; }

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  display: none; position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #0f1018; border: 1px solid #252830; border-radius: 6px;
  padding: 20px 22px; width: 260px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  font-family: var(--font);
}

#tweaks-panel.open { display: block; }
.tw-title { font-size: 0.68rem; font-weight: 600; color: #444; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 16px; }
.tw-row { margin-bottom: 14px; }
.tw-lbl { font-size: 0.75rem; color: #666; margin-bottom: 6px; }
.tw-row input[type=color] { width: 100%; height: 32px; border: 1px solid #252830; background: none; border-radius: 3px; cursor: pointer; padding: 2px; }
.tw-row input[type=range] { width: 100%; accent-color: var(--blue); }
.tw-row select { width: 100%; background: #080910; border: 1px solid #252830; color: #888; padding: 7px 10px; border-radius: 3px; font-family: var(--font); font-size: 0.8rem; }

/* ── LAYOUT HELPERS ── */
.sec-header-flex { display: flex; justify-content: space-between; align-items: flex-end; }
.sec-header-center { text-align: center; }
.sec-header-flex .sec-link { color: var(--blue); font-size: .85rem; text-decoration: none; }
.sec-header-flex .sec-link:hover { opacity: .75; }

/* ── REVEAL ── */
.rev { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.rev.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100%{opacity:.25} 50%{opacity:.8} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .rev { opacity: 1; transform: none; transition: none; }
  .d1, .d2, .d3, .d4, .d5 { transition-delay: 0s; }
  .tm-track { animation: none; }
  .nav-live-dot, .live-popup-dot, .scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── STARS BACKGROUND (subpages) ── */
.stars-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.stars-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(8,20,48,0.85) 0%, transparent 65%);
}
body:has(.stars-bg) { background: transparent; }
.stars-bg ~ main,
.stars-bg ~ .stars-glow ~ footer,
.stars-bg ~ footer { position: relative; z-index: 1; }

/* ── PROJET DETAIL ── */
.projet-detail { max-width: 800px; margin: 0 auto; }
.projet-hero { border-radius: 12px; overflow: hidden; margin-bottom: 2.5rem; }
.projet-hero img { width: 100%; height: auto; display: block; }
.projet-intro { font-size: 1.15rem; line-height: 1.8; color: var(--text); margin-bottom: 3rem; }
.projet-intro p { opacity: 0.9; }
.projet-sections { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
.projet-section { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.projet-section h2 { font-family: var(--font-title); font-size: 1.1rem; color: var(--blue); margin-bottom: 1rem; }
.projet-section p { color: var(--text); opacity: 0.85; line-height: 1.75; }
.projet-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }

/* ── PROJET EVENTS ── */
.projet-events { margin-bottom: 3rem; }
.projet-events-title { font-family: var(--font-title); font-size: 1.1rem; color: var(--blue); margin-bottom: 1.5rem; }
.projet-event {
  display: flex; gap: 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 0.75rem; transition: border-color .3s;
}
.projet-event:hover { border-color: rgba(26,144,255,0.25); }
.projet-event-past { opacity: 0.45; }
.projet-event-date { flex-shrink: 0; min-width: 140px; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--blue); }
.projet-event-past .projet-event-date { color: var(--muted); }
.projet-event-name { font-weight: 500; margin-bottom: 0.3rem; }
.projet-event-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── RESPONSIVE ── */
/* ── BURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 1rem;
  z-index: 200;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-burger       { display: flex; }
  .nav-cta-desktop  { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(7,8,10,0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 1.5rem 5vw 2rem;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open a {
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 1rem;
    color: #aaa;
  }
  .nav-links.open a:last-child { border-bottom: none; }
  .nav-links.open .nav-live { padding: 0.9rem 0; }
  section                 { padding: 5rem 5vw; }
  #contact                { padding: 5rem 5vw; }
  .subpage-header         { padding: 6rem 5vw 2rem; }
  #about .about-grid, .missions-grid { grid-template-columns: 1fr; }
  #stats                  { grid-template-columns: repeat(2,1fr); }
  .gallery-grid           { grid-template-columns: repeat(2,1fr); grid-template-rows: unset; }
  .g1,.g2,.g3,.g4,.g5,.g6 { grid-column: span 1; height: 180px; }
  .contact-grid           { grid-template-columns: 1fr; gap: 3rem; }
  .contact-partners       { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 3rem; }
}

@media (max-width: 700px) {
  section                 { padding: 3.5rem 4vw; }
  #contact                { padding: 3.5rem 4vw; }
  #hero                   { min-height: 500px; }
  .hero-btns              { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .sec-header             { margin-bottom: 2rem; }
  .subpage-header         { padding: 5rem 4vw 1.5rem; }
  .subpage-content        { padding: 1.5rem 4vw 3rem; }

  /* Stats band */
  .stat-num               { font-size: 2.6rem; }
  .stat-item              { padding: 2rem 0; }

  /* News */
  .news-item              { gap: 1rem; padding: 1.25rem 0.25rem; }
  .news-bar               { height: 38px; }

  /* Gallery full */
  .gallery-full .g-item   { height: 160px; }

  /* Projet detail */
  .projet-event           { flex-direction: column; gap: 0.5rem; }
  .projet-event-date      { min-width: unset; }

  /* Footer */
  footer                  { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 4vw; }
  .footer-brand           { justify-content: center; }
  .footer-links           { justify-content: center; flex-wrap: wrap; gap: 1.25rem; }

  /* Live popup */
  #live-popup             { width: calc(100vw - 40px); left: 20px; }
}

@media (max-width: 420px) {
  section                 { padding: 3rem 4vw; }
  #contact                { padding: 3rem 4vw; }
  .hero-btns              { flex-direction: column; width: 100%; }
  .btn-p, .btn-o          { width: 100%; text-align: center; }
  #stats                  { grid-template-columns: 1fr 1fr; }
  .stat-num               { font-size: 2.2rem; }
  .gallery-grid           { grid-template-columns: 1fr; }
  .g1,.g2,.g3,.g4,.g5,.g6 { height: 160px; }
}
/* v2 */
