/* ===== VARIABLES ===== */
:root {
  --bg: #07070f;
  --surface: #0e0e1f;
  --surface2: #13132a;
  --border: #1c1c3a;
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --orange: #f97316;
  --green: #4ade80;
  --text: #f8fafc;
  --muted: #64748b;
  --grad: linear-gradient(135deg, #00d4ff, #7c3aed);
  --grad-text: linear-gradient(135deg, #00d4ff 0%, #a78bfa 60%, #f97316 100%);
  --glow-cyan: 0 0 30px rgba(0, 212, 255, 0.15);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.15);
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

/* ===== GRID BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}
.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: white !important;
}
.nav-cta:hover { opacity: 0.85; }
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
}

/* ===== SECTIONS ===== */
section, .page-section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  section, .page-section { padding: 60px 20px; }
}

/* ===== TYPOGRAPHY ===== */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .section-title { font-size: 28px; }
  .section-sub { font-size: 16px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-cyan { background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.badge-purple { background: rgba(124,58,237,0.1); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.badge-orange { background: rgba(249,115,22,0.1); color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }
.badge-green { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }

/* ===== DIVIDER ===== */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 100%;
}
.footer-logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: 13px; }
@media (max-width: 768px) {
  footer { padding: 32px 20px; flex-direction: column; text-align: center; }
}

/* ===== OVERFLOW FIX MOBILE ===== */
@media (max-width: 768px) {
  div[style*="max-width:1200px"], div[style*="max-width: 1200px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .card { padding: 24px 20px; }

  /* Fix débordement sections inline */
  div[style*="padding:80px 40px"],
  div[style*="padding: 80px 40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Fix flex items qui débordent */
  div[style*="display:flex"] > div,
  div[style*="display: flex"] > div {
    min-width: 0;
    word-break: break-word;
  }

  /* Fix grids inline */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix cercle fondateur */
  .founder-layout,
  .idea-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ===== GLOWING ORB ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-cyan { background: rgba(0, 212, 255, 0.12); }
.orb-purple { background: rgba(124, 58, 237, 0.12); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group select option { background: var(--surface); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== STAT ===== */
.stat-num {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ===== HAMBURGER MOBILE ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
  .hamburger { display: flex; flex-shrink: 0; }
  nav { padding: 0 20px; width: 100%; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(7,7,15,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px;
    gap: 4px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 15px; display: block; width: 100%; }
  .nav-cta { text-align: center; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 80px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .page-hero { padding: 50px 20px 40px; }
}
