/* =============================================
   NCFX4 — style.css
   ============================================= */

:root {
  --dark: #050607;
  --topbar-h: 72px;
}

/* ===== RESET COMPLET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Montserrat", system-ui, Arial, sans-serif;
  background: var(--dark);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

/* ===== KILL TOUTES LES LIGNES BLANCHES POSSIBLES SUR LES LIENS ===== */
a, a:link, a:visited, a:hover, a:active, a:focus {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  outline: none;
  border-bottom: none !important;
  box-shadow: none !important;
}

a:focus-visible {
  outline: 2px solid rgba(255,255,255,.4) !important;
  outline-offset: 3px;
  border-radius: 4px;
}

button { cursor: pointer; outline: none; background: none; border: none; }


/* =============================================
   BACKGROUND
   ============================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(3px);
  transform: scale(1.04);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 500px at 20% 55%, rgba(0,0,0,.55), rgba(0,0,0,.20) 55%, transparent),
    linear-gradient(to right, rgba(0,0,0,.65), rgba(0,0,0,.25) 55%, rgba(0,0,0,.08));
}


/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: rgba(8,9,10,.12);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  /* inset shadow au lieu de border-bottom — évite toute "barre blanche" */
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.07);
  transition: background .3s ease, height .3s ease, backdrop-filter .3s ease;
}

.topbar.scrolled {
  background: rgba(8,9,10,.85);
  backdrop-filter: blur(16px);
  height: 60px;
}

.topbar.scrolled .nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
}


/* =============================================
   LOGO
   ============================================= */
.brand { display: flex; align-items: center; }

.logo-img {
  display: block;
  height: 100px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}


/* =============================================
   NAV DESKTOP
   ============================================= */
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: opacity .22s ease, transform .22s ease;
}

/* liens nav — AUCUN border, AUCUN underline */
.nav a {
  position: relative;
  color: rgba(255,255,255,.60);
  padding: 4px 2px;
  transition: color .2s ease;
  border: none !important;
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* indicateur actif : pseudo-element, jamais un border */
.nav a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -4px;
  transform: translateX(-50%) scaleX(0);
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
}

.nav a:hover { color: rgba(255,255,255,.88); }
.nav a:hover::after { transform: translateX(-50%) scaleX(.5); opacity: .4; }
.nav a.active { color: #fff; }
.nav a.active::after { transform: translateX(-50%) scaleX(1); opacity: 1; }


/* =============================================
   HEADER RIGHT
   ============================================= */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Boutons CTA */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(0,0,0,.30);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  text-decoration: none !important;
}

.cta-btn:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.30);
  box-shadow: none !important;
}

.cta-btn.fb {
  background: rgba(24,119,242,.16);
  border-color: rgba(24,119,242,.35);
}

.cta-btn.fb:hover { background: rgba(24,119,242,.28); }

.btn-ico {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 6px;
  font-size: 11px;
  flex-shrink: 0;
}

.btn-label { /* masqué sur mobile */ }


/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  cursor: pointer;
  z-index: 300;
  flex-shrink: 0;
  transition: background .2s ease;
}

.hamburger:hover { background: rgba(255,255,255,.08); }

.hamburger span {
  display: block;
  width: 17px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =============================================
   OVERLAY DRAWER
   ============================================= */
.overlay {
  position: fixed; inset: 0;
  z-index: 250;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s .28s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility 0s 0s;
}


/* =============================================
   DRAWER PANEL
   ============================================= */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 270;
  width: min(290px, 78vw);
  background: #070809;
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  padding-top: 76px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s .3s;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}

.drawer-links { display: flex; flex-direction: column; }

.drawer-links a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .15s ease, background .15s ease;
  text-decoration: none !important;
  outline: none;
  box-shadow: none !important;
}

.drawer-links a:hover {
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.04);
}

.drawer-links a.active {
  color: #fff;
  background: rgba(255,255,255,.05);
}

.drawer-links a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #fff;
  border-radius: 0 2px 2px 0;
}

.drawer-bottom {
  margin-top: auto;
  padding: 20px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 11px;
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.70);
  font-size: 12.5px;
  font-weight: 700;
  transition: background .2s ease;
  text-decoration: none !important;
}

.drawer-cta:hover { background: rgba(255,255,255,.07); color: #fff; }

.drawer-cta.fb {
  background: rgba(24,119,242,.13);
  border-color: rgba(24,119,242,.25);
  color: rgba(255,255,255,.80);
}
.drawer-cta.fb:hover { background: rgba(24,119,242,.22); }

.d-ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font-size: 12px;
  flex-shrink: 0;
}


/* =============================================
   PAGE WRAP & TRANSITIONS
   ============================================= */
.page-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .28s ease, transform .28s ease;
}

.page-wrap.enter { opacity: 1; transform: translateX(0); }
.page-wrap.exit-left { opacity: 0; transform: translateX(-22px); }
.page-wrap > main { flex: 1; }


/* =============================================
   HOME
   ============================================= */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--topbar-h);
}

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 0;
}

.home-title {
  font-size: 86px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.home-tagline {
  margin-top: 12px;
  color: rgba(255,255,255,.80);
  font-weight: 700;
  letter-spacing: .6px;
  font-size: 16px;
}

.home-video {
  width: 100%;
  max-width: 900px;
  margin: 28px auto 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0,0,0,.35);
  box-shadow: 0 24px 60px rgba(0,0,0,.50);
}

.home-video video,
.home-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  height: auto;
}


/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 5;
  background: rgba(8,9,10,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  margin-top: auto;
  font-size: 12px;
  letter-spacing: .4px;
  color: rgba(255,255,255,.60);
}

.footer a { color: rgba(255,255,255,.60); }
.footer a:hover { color: #fff; }


/* =============================================
   PAGES INTERNES
   ============================================= */
.project-page,
.contact-page,
.portfolio-page,
.partners-page {
  padding-top: 110px;
}

.page { padding: 130px 26px 80px; max-width: 1100px; margin: 0 auto; }
.page h1 { font-size: 42px; letter-spacing: 1px; margin-bottom: 12px; }

.kicker {
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  font-size: 11.5px;
}

.lead { color: rgba(255,255,255,.80); line-height: 1.6; max-width: 850px; margin-bottom: 18px; }
.muted { color: rgba(255,255,255,.70); line-height: 1.55; }

.glass-section {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25);
}

.glass-section.compact { margin-top: 0; }
.section-head h2 { font-size: 22px; letter-spacing: .6px; margin-bottom: 8px; }
.section-head p { color: rgba(255,255,255,.76); line-height: 1.55; }

/* Projet */
.project-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-hero h1 { font-size: 44px; letter-spacing: 1px; margin-bottom: 12px; }
.project-stats { display: grid; grid-template-columns: repeat(3, 155px); gap: 10px; }

.stat { border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.28); backdrop-filter: blur(10px); border-radius: 14px; padding: 10px 12px; min-height: 64px; }
.stat-n { display:flex; align-items:center; justify-content:center; font-weight:900; color:rgba(255,255,255,.55); font-size:12px; }
.stat-t { display:flex; align-items:center; justify-content:center; margin-top:6px; font-weight:600; font-size:14px; }
.stat-d { margin-top:6px; color:rgba(255,255,255,.70); font-size:12px; line-height:1.35; }

.steps-grid { margin-top:14px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.step { border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.22); border-radius:16px; padding:14px; }
.step-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.badge { font-size:11px; font-weight:900; letter-spacing:1px; text-transform:uppercase; padding:5px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.18); color:rgba(255,255,255,.80); }
.step-title { font-weight:900; letter-spacing:.5px; font-size:13px; }
.step-text { color:rgba(255,255,255,.72); line-height:1.45; font-size:12.5px; }

.two-col { margin-top:22px; display:grid; grid-template-columns:1.1fr .9fr; gap:22px; align-items:start; }
.photo-card { border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.22); border-radius:18px; overflow:hidden; }
.photo-card img { width:100%; height:360px; object-fit:cover; }
.photo-card.tall img { height:420px; }
.photo-cap { display:flex; align-items:center; gap:10px; padding:12px 14px; color:rgba(255,255,255,.75); font-size:12px; }
.dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.7); flex-shrink:0; }
.gear-grid { margin-top:12px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.gear { border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.18); border-radius:16px; padding:12px; }
.gear-title { font-weight:900; letter-spacing:.6px; font-size:13px; }
.gear-desc { margin-top:6px; color:rgba(255,255,255,.72); font-size:12.5px; line-height:1.45; }
.motives { margin-top:14px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.motive { border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.18); border-radius:16px; padding:14px; }
.motive-title { font-weight:900; letter-spacing:.6px; font-size:14px; }
.motive-text { margin-top:8px; color:rgba(255,255,255,.72); line-height:1.45; font-size:12.5px; }
.callout { margin-top:14px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.22); border-radius:18px; padding:16px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.callout-title { font-weight:900; letter-spacing:.6px; }
.callout-text { margin-top:4px; color:rgba(255,255,255,.72); font-size:12.5px; }
.btn-strong { border-color:rgba(255,255,255,.22); }

/* Contact */
.contact-hero { max-width:1100px; margin:0 auto 18px; }
.contact-hero h1 { font-size:44px; letter-spacing:1px; margin-bottom:10px; }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:1100px; margin:0 auto; align-items:start; }
.contact-card h2 { font-size:18px; letter-spacing:.6px; margin-bottom:12px; }
.contact-lines { display:grid; gap:12px; }
.line { display:grid; grid-template-columns:120px 1fr; gap:12px; padding:10px 12px; border-radius:14px; border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.18); }
.line-k { color:rgba(255,255,255,.65); font-weight:800; font-size:12px; letter-spacing:.6px; text-transform:uppercase; }
.line-v { color:rgba(255,255,255,.85); }
.link { color:rgba(255,255,255,.88) !important; border-bottom:1px solid rgba(255,255,255,.22) !important; padding-bottom:1px; transition:color .2s, border-color .2s; }
.link:hover { color:#fff !important; border-bottom-color:rgba(255,255,255,.5) !important; }
.contact-note { margin-top:14px; padding:12px; border-radius:14px; border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.16); }
.note-title { font-weight:900; letter-spacing:.6px; font-size:13px; }
.note-text { margin-top:6px; color:rgba(255,255,255,.72); font-size:12.5px; line-height:1.45; }
.contact-form { display:grid; gap:12px; }
.field label { display:block; margin-bottom:6px; font-weight:900; letter-spacing:.6px; font-size:11.5px; color:rgba(255,255,255,.75); text-transform:uppercase; }
.field input,.field select,.field textarea { width:100%; border-radius:14px; border:1px solid rgba(255,255,255,.10); background:rgba(0,0,0,.22); color:#fff; padding:12px; outline:none; font-family:inherit; font-size:13px; transition:border-color .2s; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:rgba(255,255,255,.28); }
.field input::placeholder,.field textarea::placeholder { color:rgba(255,255,255,.40); }
.field textarea { resize:vertical; min-height:140px; }
.form-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:6px; }
.form-hint { color:rgba(255,255,255,.55); font-size:12px; }
.cta-top { display:inline-flex; align-items:center; gap:9px; height:40px; padding:0 14px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(0,0,0,.28); color:#fff; font-family:inherit; font-weight:700; font-size:12.5px; cursor:pointer; transition:background .2s; text-decoration:none !important; }
.cta-top:hover { background:rgba(255,255,255,.08); }
.cta-top.send { cursor:pointer; }
.cta-top.mini { height:38px; padding:0 12px; }
.contact-bottom { max-width:1100px; margin:18px auto 0; }

/* Portfolio */
.portfolio-head { max-width:1100px; margin:0 auto 18px; }
.portfolio-head h1 { font-size:44px; letter-spacing:1px; margin-bottom:10px; }
.portfolio-grid { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.p-card { border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.28); backdrop-filter:blur(10px); border-radius:18px; overflow:hidden; }
.p-media { width:100%; aspect-ratio:16/9; background:rgba(0,0,0,.25); display:grid; place-items:center; overflow:hidden; position:relative; }
.p-media video { width:100%; height:100%; object-fit:cover; }
.p-meta { padding:12px 12px 14px; }
.p-title { font-weight:900; letter-spacing:.5px; font-size:13px; }
.p-sub { margin-top:5px; color:rgba(255,255,255,.68); font-size:12px; }
.p-media.demo { background:radial-gradient(600px 220px at 25% 40%,rgba(255,255,255,.09),transparent 55%),linear-gradient(135deg,rgba(255,255,255,.05),rgba(0,0,0,.22)); }
.demo-play { width:54px; height:54px; border-radius:50%; border:2px solid rgba(255,255,255,.80); display:grid; place-items:center; background:rgba(0,0,0,.22); font-size:16px; }
.demo-text { position:absolute; bottom:10px; left:12px; font-size:11.5px; color:rgba(255,255,255,.70); }

/* Partenaires */
.partners-head { max-width:1100px; margin:0 auto 18px; }
.partners-head h1 { font-size:44px; letter-spacing:1px; margin-bottom:10px; }
.partners-grid { max-width:900px; margin:0 auto 18px; display:grid; grid-template-columns:1fr; gap:12px; }
.partner-card { display:grid; grid-template-columns:120px 1fr; gap:14px; align-items:center; border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.28); backdrop-filter:blur(10px); border-radius:18px; padding:14px; overflow:hidden; }
.partner-logo { width:120px; height:110px; flex-shrink:0; border-radius:14px; border:1px solid rgba(255,255,255,.70); background:rgba(0,0,0,.22); display:grid; place-items:center; padding:14px; overflow:hidden; }
.partner-logo img { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; display:block; }
.partner-name { font-weight:900; letter-spacing:.6px; font-size:14px; }
.partner-desc { margin-top:6px; color:rgba(255,255,255,.70); font-size:12.5px; line-height:1.45; }

/* Sponsors */
.sponsors { width:100%; padding:18px 20px 20px; }
.sponsors-inner { max-width:1100px; margin:0 auto; border:1px solid rgba(255,255,255,.09); background:rgba(0,0,0,.26); backdrop-filter:blur(10px); border-radius:18px; padding:14px 16px; }
.sponsors-title { margin-bottom:12px; font-weight:900; letter-spacing:.7px; font-size:11.5px; color:rgba(255,255,255,.70); text-transform:uppercase; }
.sponsor-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; align-items:center; }
.sponsor-row img { width:100%; height:46px; object-fit:contain; opacity:.82; }

/* Modal */
.modal { position:fixed; inset:0; z-index:999; display:none; }
.modal.open { display:block; }
.modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.65); backdrop-filter:blur(6px); }
.modal-card { position:relative; width:min(980px,calc(100vw - 32px)); margin:90px auto 0; border:1px solid rgba(255,255,255,.10); background:rgba(10,11,12,.92); border-radius:18px; overflow:hidden; }
.modal-x { position:absolute; top:10px; right:10px; width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(0,0,0,.35); color:#fff; z-index:2; display:grid; place-items:center; font-size:14px; }
.video-wrap { position:relative; width:100%; aspect-ratio:16/9; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:none; }

/* Hero alt */
.hero { min-height:100vh; display:flex; align-items:center; padding:120px 26px 80px; }
.hero-content { max-width:820px; }
.hero h1 { font-size:70px; letter-spacing:2px; font-weight:900; margin-bottom:10px; }
.subtitle { font-weight:800; letter-spacing:1px; color:rgba(255,255,255,.75); text-transform:uppercase; line-height:1.35; margin-bottom:26px; }
.play-btn { position:relative; width:84px; height:84px; display:grid; place-items:center; }
.play-ring { position:absolute; inset:0; border-radius:50%; border:2px solid rgba(255,255,255,.88); background:rgba(0,0,0,.22); backdrop-filter:blur(10px); transition:background .2s; }
.play-icon { position:relative; font-size:18px; transform:translateX(2px); }
.play-btn:hover .play-ring { background:rgba(0,0,0,.35); }
.home-playhint { margin-top:10px; color:rgba(255,255,255,.65); font-size:12px; }


/* =============================================
   RESPONSIVE ≤ 980px
   ============================================= */
@media (max-width: 980px) {
  .project-hero, .two-col { grid-template-columns: 1fr; }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .motives { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .contact-hero h1, .portfolio-head h1, .partners-head h1, .project-hero h1 { font-size: 32px; }
}


/* =============================================
   RESPONSIVE ≤ 820px — HAMBURGER
   ============================================= */
@media (max-width: 820px) {
  :root { --topbar-h: 68px; }
  .topbar { padding: 0 16px; }

  /* Cache la nav desktop */
  .nav { display: none !important; }

  /* Affiche le hamburger */
  .hamburger { display: flex; }

  /* Cache les labels des boutons */
  .btn-label { display: none; }
  .cta-btn { height: 36px; padding: 0 9px; gap: 0; }

  .logo-img { height: 78px; }

  /* Grids */
  .partner-card { grid-template-columns: 1fr; }
  .partner-logo { width: 80px; height: 80px; margin: 0 auto; }
  .line { grid-template-columns: 1fr; }
  .motives { grid-template-columns: 1fr; }
  .project-stats { grid-template-columns: 1fr; }
}


/* =============================================
   RESPONSIVE ≤ 580px — MOBILE
   ============================================= */
@media (max-width: 580px) {
  :root { --topbar-h: 62px; }
  .topbar { padding: 0 12px; }
  .logo-img { height: 65px; }

  .home-title { font-size: 52px; letter-spacing: 2px; }
  .home-tagline { font-size: 13px; text-align: center; }
  .home-hero { padding: 16px 12px 0; }
  .home-video { border-radius: 12px; margin: 16px 0 0; }

  .project-page, .contact-page, .portfolio-page, .partners-page { padding-top: 76px; }
  .glass-section { padding: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sponsor-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .callout { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 36px; }
  .modal-card { margin-top: 50px; }
  .footer { flex-direction: column; gap: 8px; text-align: center; padding: 14px; }
}


/* =============================================
   RESPONSIVE ≤ 380px
   ============================================= */
@media (max-width: 380px) {
  .home-title { font-size: 40px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .cta-group { gap: 5px; }
}
