:root {
  --bg: #020617;
  --bg-light: #0b1220;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #4f46e5;
  --accent: #22c55e;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

nav a.active {
  color: #f9fafb;
}

.btn-nav {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Burger mobile */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  background: #e5e7eb;
}

/* Sections */
.page {
  padding-top: 0px;
}

.section {
  padding: 2.2rem 0;
}

.hero-home {
  padding-top: 4.5rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin-bottom: 0.8rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.section-text {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.8rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f9fafb;
  border: none;
}

.btn-secondary {
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--muted);
  background: transparent;
}

/* Cards */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--bg-light);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.3rem;
  font-size: 0.9rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.pricing-card {
  background: var(--bg-light);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.6rem 1.4rem;
  position: relative;
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.35);
}

.badge-best {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #f9fafb;
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-price {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.pricing-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  font-size: 0.85rem;
  color: #d1d5db;
}

.pricing-list li {
  margin-bottom: 0.4rem;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 1.4rem;
}

.blog-card {
  background: var(--bg-light);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.3rem;
}

.blog-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  nav {
    position: absolute;
    inset: 70px 0 auto 0;
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem 1.5rem 1.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .cards-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 3rem 0;
  }
}
/* ---------- Article (page blog) ---------- */

.container.article {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* Bannière en haut avec image de fond + voile sombre sur toute la hauteur */
.article-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  margin-top: 0;
}

/* voile sombre sur toute la bannière via ::before */
.article-banner::before {
  content: "";
  position: absolute;
  inset: 0; /* top/right/bottom/left: 0 */
  background: linear-gradient(
    to bottom,
    rgba(15,23,42,0.6),
    rgba(15,23,42,0.9)
  );
  backdrop-filter: blur(6px);
  z-index: 0;
}

/* contenu posé par-dessus */
.article-banner-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2.5rem;
}

/* Titre en noir, sans fond */
.article-banner-title {
  font-size: 2.3rem;
  margin: 0;
  color: #020617;
}

/* Header d'article quand il n'y a PAS de bannière */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0.5rem 0 0;
  color: #f9fafb;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Image à la une dans ton style sombre */
.article-hero img {
  width: 100%;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin: 1.5rem 0 2rem;
}

/* Contenu : rythme mais même thème */
.article-content p {
  margin-bottom: 1rem;
}

.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}
