/* ============================================
   COMPONENTS — Éléments réutilisables
   Nav, footer, boutons, sections, badges
   ============================================ */

/* ---- TOP BANNER ---- */

.top-banner {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 11px 24px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.top-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-banner a:hover {
  text-decoration: underline;
}

/* ---- NAV ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  height: 66px;
  background: rgba(247, 246, 242, .97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-links a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .15s;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
}

.btn-start {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 100px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s, transform .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-start:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ---- BURGER MENU (mobile) ---- */

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

.burger svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(247, 246, 242, .98);
  backdrop-filter: blur(20px);
  z-index: 199;
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  animation: fade-in .2s ease;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu .btn-start {
  margin-top: 16px;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

/* ---- SECTIONS ---- */

.section {
  padding: 100px 56px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-center {
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--manual-bg);
  color: var(--primary-light);
  border: 1px solid var(--manual-border);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--manual);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  display: inline-block;
  flex-shrink: 0;
}

h2 {
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 18px;
}

h2 em {
  font-style: italic;
  color: var(--primary-light);
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: var(--border);
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- CTA BUTTONS ---- */

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 16px 34px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(244, 211, 94, .4);
  transition: background .15s, transform .15s, box-shadow .15s;
}

.btn-cta-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(244, 211, 94, .5);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .1);
  padding: 15px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .2);
  transition: background .15s, border-color .15s;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .35);
}

/* ---- FOOTER ---- */

footer {
  border-top: 1px solid var(--border);
  padding: 48px 56px;
  background: white;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom span {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grey-50);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}

.social-btn:hover {
  background: var(--bg-subtle);
  color: var(--primary);
}

.social-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- RESPONSIVE (composants partagés) ---- */

@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav-right .btn-login,
  .nav-right .btn-start {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 64px 20px;
  }

  footer {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .top-banner {
    font-size: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
  }
}
