@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=Outfit:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #16213e;
  --bg-card:  #1c2b4a;
  --bg-card2: #213258;
  --border:   rgba(255,255,255,0.07);
  --border-md:rgba(255,255,255,0.13);
  --blue:     #2563eb;
  --blue-lt:  #60a5fa;
  --blue-dim: rgba(37,99,235,0.15);
  --white:    #ffffff;
  --text:     #e2e8f0;
  --text-muted: rgba(226,232,240,0.5);
  --text-dim:   rgba(226,232,240,0.32);
  --radius:   12px;
  --radius-lg:18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(22,33,62,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 66px;
  display: flex;
  align-items: center;
  padding: 0 48px;
}
.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo {
  height: 34px;
  width: auto;
  border-radius: 7px;
  background: #fff;
  padding: 2px 6px;
}
.nav-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 9px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.nav-links .nav-cta {
  color: var(--blue-lt);
  border: 1px solid rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.08);
  font-weight: 500;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: rgba(96,165,250,0.16);
  color: var(--white);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img {
  height: 28px;
  width: auto;
  border-radius: 5px;
  background: #fff;
  padding: 2px 4px;
  opacity: 0.7;
}
.footer-brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); }
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── UTILITAIRES ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 14px;
}
h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.4px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-md);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover {
  border-color: var(--border-md);
  transform: translateY(-4px);
}

/* ── FADE-IN ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-md);
  border-radius: 9px;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: rgba(22,33,62,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }
  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
