:root {
  --bg: #0a0a0a;
  --bg-soft: #111;
  --card: rgba(255, 255, 255, 0.055);
  --card-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(94, 255, 154, 0.32);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --muted-2: rgba(255, 255, 255, 0.48);
  --accent: #5eff9a;
  --accent-2: #32d675;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(94, 255, 154, 0.13), transparent 36rem),
    radial-gradient(circle at 88% 18%, rgba(94, 255, 154, 0.08), transparent 28rem),
    linear-gradient(180deg, #070707 0%, #0a0a0a 45%, #050505 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 20px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent);
  color: #050505;
  box-shadow: 0 12px 34px rgba(94, 255, 154, 0.25);
}

.accent {
  color: var(--accent);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.top-nav .nav-cta {
  color: #050505;
  background: var(--accent);
}

.top-nav .nav-cta:hover {
  color: #050505;
  background: #75ffab;
}

.blog-hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 56px;
  max-width: 880px;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: 12% auto auto -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(94, 255, 154, 0.16);
  filter: blur(80px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.blog-hero h1 {
  max-width: 800px;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 850;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #050505;
  box-shadow: 0 18px 46px rgba(94, 255, 154, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #74ffab;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 72px;
}

.mini-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.mini-icon {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 26px;
}

.mini-card h2 {
  font-size: 22px;
  margin-bottom: 9px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
}

.articles-section {
  padding: 8px 0 80px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.search-box {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 15px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.search-box input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 4px rgba(94, 255, 154, 0.08);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.035)),
    var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: -35% -40% auto auto;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(94, 255, 154, 0.14);
  filter: blur(50px);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 255, 154, 0.28);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(94, 255, 154, 0.10);
  border: 1px solid rgba(94, 255, 154, 0.18);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.article-card h3 {
  position: relative;
  margin: 24px 0 12px;
  font-size: 25px;
  line-height: 1.12;
}

.article-card p {
  position: relative;
  margin: 0;
  color: var(--muted);
}

.card-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

.article-layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 44px 0 70px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.back-link:hover {
  color: var(--accent);
}

.article-header {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, rgba(94, 255, 154, 0.12), transparent 20rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.article-header h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
}

.article-excerpt {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted-2);
  font-size: 14px;
  font-weight: 800;
}

.article-content {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.article-content h2 {
  margin: 46px 0 16px;
  font-size: clamp(28px, 4vw, 38px);
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 25px;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.article-content li {
  margin: 8px 0;
}

.article-content strong {
  color: #fff;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(94, 255, 154, 0.07);
  color: rgba(255, 255, 255, 0.86);
}

.article-content code {
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92em;
}

.article-content a {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.app-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 70px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(94, 255, 154, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 255, 154, 0.17), transparent 20rem),
    rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.app-callout h2 {
  max-width: 680px;
  font-size: clamp(28px, 4vw, 44px);
}

.app-callout p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 46px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer div {
  display: flex;
  gap: 14px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

.error-box {
  padding: 24px;
  border: 1px solid rgba(255, 120, 120, 0.28);
  border-radius: var(--radius-lg);
  background: rgba(255, 80, 80, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .featured-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .app-callout,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-hero {
    padding-top: 56px;
  }

  .article-header {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 22px, var(--max));
  }

  .top-nav a:not(.nav-cta) {
    display: none;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .article-card {
    min-height: auto;
  }
}


/* Pages légales / support */
.legal-hero {
  position: relative;
  padding: clamp(56px, 9vw, 96px) 0 38px;
  max-width: 880px;
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
}

.legal-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 12px 0 70px;
}

.legal-grid.two {
  grid-template-columns: .9fr 1.1fr;
}

.legal-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 255, 154, 0.10), transparent 24rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.035)),
    var(--card);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 14px;
}

.legal-card h3 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card p {
  margin: 0 0 15px;
}

.legal-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-card li {
  margin: 8px 0;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-pill {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.info-pill strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.note-box {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(94, 255, 154, 0.075);
  color: var(--muted);
}

@media (max-width: 860px) {
  .legal-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .top-nav {
    overflow-x: auto;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 4px;
  }

  .top-nav a:not(.nav-cta) {
    display: inline-flex;
  }
}
