/* ═══════════════════════════════════════════════════════════════════════
   BrivoX Resources — Stylesheet partagé Blog / Docs / Support
   
   À charger APRÈS legal.css : il réutilise tous les tokens CSS variables
   de legal.css (--bg, --surface, --emerald, --bd, --font-display, etc.)
   et ajoute les composants spécifiques à ces pages.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── BLOG : HERO ──────────────────────────────────────────────────────── */
.blog-hero {
  padding: clamp(96px, 14vh, 144px) clamp(16px, 5vw, 40px) clamp(48px, 7vh, 64px);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -0.5px 0 var(--bd);
}
.blog-hero .hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  max-width: 800px;
  height: 50vh;
  background: radial-gradient(ellipse at center, rgba(17,18,16,0.025) 0%, transparent 65%);
  pointer-events: none;
}
.blog-hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
  animation: fadeUp 700ms var(--ease) both;
}
.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}
.blog-hero h1 .grad,
.blog-hero h1 span {
  color: var(--ink-low);
}

.hero-right {
  flex-shrink: 0;
  max-width: 320px;
}
.hero-right p {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.hero-subscribe,
.nl-form {
  display: flex;
  gap: 6px;
}
.hero-subscribe input,
.nl-form input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  letter-spacing: -0.005em;
  transition: box-shadow 180ms var(--ease);
}
.hero-subscribe input::placeholder,
.nl-form input::placeholder { color: var(--ink-low); }
.hero-subscribe input:focus,
.nl-form input:focus {
  box-shadow: inset 0 0 0 0.5px var(--ink);
}
.hero-subscribe input.error,
.nl-form input.error {
  box-shadow: inset 0 0 0 0.5px var(--coral);
}

.hero-subscribe button,
.nl-form button {
  background: var(--emerald);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease);
}
.hero-subscribe button:hover:not(:disabled),
.nl-form button:hover:not(:disabled) { background: var(--emerald-dark); }
.hero-subscribe button:disabled,
.nl-form button:disabled {
  cursor: default;
  background: var(--surface-alt);
  color: var(--emerald-dark);
  box-shadow: inset 0 0 0 0.5px var(--emerald-bd);
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 16px;
  box-shadow: inset 0 0.5px 0 var(--bd);
}
.hs { display: flex; flex-direction: column; gap: 2px; }
.hs-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hs-label {
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── BLOG : FILTERS ───────────────────────────────────────────────────── */
.filters-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px clamp(16px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  box-shadow: inset 0 -0.5px 0 var(--bd);
}
.filter-btn {
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border: none;
  color: var(--ink-mid);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), color 180ms var(--ease);
}
.filter-btn:hover {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd-mid);
  color: var(--ink);
}
.filter-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.filters-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── BLOG : WRAP ──────────────────────────────────────────────────────── */
.blog-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 6vh, 64px) clamp(16px, 5vw, 40px);
}

/* ── BLOG : FEATURED ARTICLE ──────────────────────────────────────────── */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.featured-article.vis {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), box-shadow 240ms var(--ease);
}
.featured-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 0.5px var(--bd-mid), 0 16px 40px -16px rgba(17,18,16,0.10);
}
.fa-img {
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  box-shadow: inset -0.5px 0 0 var(--bd);
}
.fa-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
}
.fa-read-time {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.005em;
}
.fa-body {
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}
.fa-cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fa-cat::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.fa-body h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
  transition: color 180ms var(--ease);
}
.featured-article:hover .fa-body h2 { color: var(--ink-mid); }
.fa-body p {
  color: var(--ink-mid);
  font-size: 14.5px;
  line-height: 1.7;
  flex: 1;
}
.fa-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.fa-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.fa-author-info p {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.005em;
}
.fa-author-info span {
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease);
}
.featured-article:hover .read-btn {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* ── BLOG : ARTICLES GRID ─────────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.article-card {
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 0.5px var(--bd-mid), 0 12px 32px -16px rgba(17,18,16,0.08);
}
.ac-img {
  height: 152px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 -0.5px 0 var(--bd);
}
.ac-cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
  padding: 3px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ac-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ac-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
  color: var(--ink);
  transition: color 180ms var(--ease);
}
.article-card:hover .ac-body h3 { color: var(--ink-mid); }
.ac-body p {
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  box-shadow: inset 0 0.5px 0 var(--bd);
}
.ac-date {
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.ac-read {
  font-size: 11px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.ac-read svg { transition: transform 180ms var(--ease); }
.article-card:hover .ac-read svg { transform: translateX(3px); }

/* ── BLOG : NEWSLETTER ────────────────────────────────────────────────── */
.newsletter {
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 16px;
}
.nl-left h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--ink);
}
.nl-left h3 span { color: var(--ink-low); }
.nl-left p {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}
.nl-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nl-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}

/* ═══════════════════════════════════════════════════════════════════════
   DOCS
   ═══════════════════════════════════════════════════════════════════════ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr 200px;
  min-height: 100vh;
  padding-top: 64px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Docs nav (full nav avec search) */
.docs-nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(247,247,245,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 -0.5px 0 var(--bd);
  display: flex;
  align-items: center;
  padding: 0;
  gap: 0;
}
.nav-logo-area {
  width: 260px;
  box-shadow: inset -0.5px 0 0 var(--bd);
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
}
.nav-search-area {
  flex: 1;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border-radius: 8px;
  padding: 8px 14px;
  flex: 1;
  max-width: 400px;
  cursor: text;
  transition: box-shadow 180ms var(--ease);
}
.search-field:focus-within {
  box-shadow: inset 0 0 0 0.5px var(--ink);
}
.search-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  width: 100%;
  letter-spacing: -0.005em;
}
.search-field input::placeholder { color: var(--ink-low); }
.search-field svg { color: var(--ink-low); flex-shrink: 0; }
.search-kbd {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  flex-shrink: 0;
}
.nav-cta {
  background: var(--emerald);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease);
}
.nav-cta:hover { background: var(--emerald-dark); }

/* Docs sidebar (sections groupées) */
.docs-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: inset -0.5px 0 0 var(--bd);
  background: var(--surface);
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--bd-strong) transparent;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--bd-strong); border-radius: 2px; }

.sb-sec { margin-bottom: 20px; }
.sb-sec-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-low);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  padding: 6px 24px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-sec-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--bd);
}
.docs-sidebar .sb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
}
.sb-badge {
  font-size: 10px;
  font-weight: 500;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* Docs main */
.doc-main {
  padding: clamp(48px, 6vw, 64px) clamp(32px, 4vw, 48px);
  min-width: 0;
}

/* On this page */
.on-this-page {
  position: sticky;
  top: 88px;
  padding: 24px 20px;
  box-shadow: inset 0.5px 0 0 var(--bd);
  height: fit-content;
  margin-top: clamp(48px, 6vw, 64px);
}
.otp-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-low);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.otp-link {
  display: block;
  padding: 5px 12px;
  margin-left: -12px;
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 13px;
  transition: color 180ms var(--ease), box-shadow 180ms var(--ease);
  letter-spacing: -0.005em;
}
.otp-link:hover { color: var(--ink); }
.otp-link.active {
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 2px 0 0 var(--ink);
}
.otp-link.sub { padding-left: 24px; font-size: 12.5px; }

/* Docs hero */
.doc-hero {
  margin-bottom: 48px;
  box-shadow: inset 0 -0.5px 0 var(--bd);
  padding-bottom: 40px;
  animation: fadeUp 700ms var(--ease) both;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}
.breadcrumb a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 180ms var(--ease);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { opacity: 0.4; }

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--ink);
}
.doc-hero h1 .grad,
.doc-hero h1 span { color: var(--ink-low); }

.doc-hero > p {
  color: var(--ink-mid);
  font-size: 16px;
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 24px;
}

.doc-version-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dv-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: -0.005em;
}
.dv-item svg { opacity: 0.6; }

/* Quickstart cards */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 56px;
  animation: fadeUp 700ms 100ms var(--ease) both;
}
.qs-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
  display: block;
}
.qs-card:hover {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd-mid);
  transform: translateY(-1px);
}
.qs-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--ink);
}
.qs-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--ink);
}
.qs-card p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin: 0;
}
.qs-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.qs-card:hover .qs-arrow svg { transform: translateX(2px); }
.qs-arrow svg { transition: transform 180ms var(--ease); }

/* Doc section */
.doc-section { margin-bottom: 56px; scroll-margin-top: 88px; }
.doc-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  box-shadow: inset 0 -0.5px 0 var(--bd);
  color: var(--ink);
  position: relative;
}
.doc-section h2::after {
  content: '';
  position: absolute;
  bottom: -0.5px;
  left: 0;
  width: 48px;
  height: 0.5px;
  background: var(--ink);
}
.doc-section h3 {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 18px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 24px 0 12px;
  color: var(--ink);
}

/* Inline code dans le texte */
.doc-section code:not(pre code) {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Code block */
.code-block {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
}
.cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  box-shadow: inset 0 -0.5px 0 rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
}
.cb-dots { display: flex; gap: 5px; }
.cb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.cb-lang {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.cb-copy {
  background: transparent;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.12);
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}
.cb-copy:hover {
  color: #fff;
  background: rgba(255,255,255,0.04);
}
.cb-copy.copied {
  color: var(--emerald);
  box-shadow: inset 0 0 0 0.5px rgba(29,158,117,0.50);
}
.code-block pre {
  padding: 16px 14px;
  overflow-x: auto;
  margin: 0;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(247,247,245,0.78);
  line-height: 1.85;
  background: none;
  box-shadow: none;
  padding: 0;
}
/* Syntax highlighting (sobre, tons ink+emerald) */
.kw   { color: #69D8AF; }                /* mots-clés */
.str  { color: #B6E8C9; }                /* chaînes */
.cmt  { color: rgba(247,247,245,0.32); font-style: italic; } /* commentaires */
.num  { color: #BFD7E5; }                /* nombres */
.prop { color: #E6CB6E; }                /* propriétés */
.punct{ color: rgba(247,247,245,0.40); } /* ponctuation */

/* Alert (info / warn) */
.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  margin: 20px 0;
}
.alert-info {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
}
.alert-warn {
  background: var(--amber-dim, rgba(186,117,23,0.08));
  box-shadow: inset 0 0 0 0.5px rgba(186,117,23,0.22);
}
.alert-icon { flex-shrink: 0; margin-top: 1px; }
.alert-info .alert-icon { color: var(--ink); }
.alert-warn .alert-icon { color: var(--amber); }
.alert p { font-size: 13.5px; margin: 0; line-height: 1.65; }
.alert-info p { color: var(--ink-mid); }
.alert-warn p { color: var(--amber); }
.alert-info p strong { color: var(--ink); font-weight: 500; }
.alert-warn p strong { color: var(--amber); font-weight: 500; }

/* Plan table */
.plan-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
}
.plan-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.plan-table-wrap th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  box-shadow: inset 0 -0.5px 0 var(--bd);
  background: var(--surface-alt);
  white-space: nowrap;
}
.plan-table-wrap td {
  padding: 12px 16px;
  color: var(--ink-mid);
  box-shadow: inset 0 -0.5px 0 var(--bd);
  vertical-align: top;
  letter-spacing: -0.005em;
}
.plan-table-wrap tr:last-child td { box-shadow: none; }
.plan-table-wrap tr:hover td { background: var(--surface-alt); }
.plan-table-wrap td:first-child { color: var(--ink); font-weight: 500; }
.chk { color: var(--emerald); font-weight: 500; }
.xmark { color: var(--ink-low); }
.plan-pill {
  font-size: 10px;
  font-weight: 500;
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Mobile menu pour docs */
.mobile-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  margin-bottom: 24px;
  width: 100%;
  justify-content: space-between;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease);
}
.mobile-menu-btn:hover { background: var(--surface-alt); }
.mobile-sidebar {
  display: none;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 24px;
}
.mobile-sidebar.open { display: block; }
.mobile-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--ink-mid);
  text-decoration: none;
  font-size: 13.5px;
  border-radius: 8px;
  transition: background 180ms var(--ease), color 180ms var(--ease);
  letter-spacing: -0.005em;
}
.mobile-sidebar a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

/* ═══════════════════════════════════════════════════════════════════════
   SUPPORT
   ═══════════════════════════════════════════════════════════════════════ */

/* WhatsApp brand color (gardé : c'est la marque, pas du décoratif) */
:root {
  --wa: #25D366;
  --wa-dark: #128C7E;
}

/* Status nav pill */
.status-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  padding: 6px 12px 6px 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
}
.status-dot-nav {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.status-nav span {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}

/* Hero support */
.hero-section {
  padding: clamp(96px, 14vh, 144px) clamp(16px, 5vw, 40px) clamp(48px, 7vh, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(17,18,16,0.025) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  animation: fadeUp 700ms var(--ease) both;
}
.hero-section h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero-section h1 .grad,
.hero-section h1 span { color: var(--ink-low); }
.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--ink-mid);
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 52ch;
}

/* Status row */
.status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-mid);
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}
.s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.s-dot.green {
  background: var(--emerald);
  animation: pulseDot 2.4s ease-in-out infinite;
}
.s-dot.amber { background: var(--amber); }
.status-divider {
  width: 0.5px;
  height: 14px;
  background: var(--bd-strong);
}

/* Channels */
.channels-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px) clamp(48px, 7vh, 64px);
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px var(--bd);
  margin-bottom: 24px;
  animation: fadeUp 700ms 150ms var(--ease) both;
}
.ch-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: background 200ms var(--ease);
  box-shadow: inset -0.5px 0 0 var(--bd);
}
.ch-card:last-child { box-shadow: none; }
.ch-card:hover { background: var(--surface-alt); }
.ch-card.featured { background: var(--surface-alt); }
.ch-card.featured:hover { background: #ECEAE0; }

.ch-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
}
.ch-icon.wa { background: rgba(37,211,102,0.10); box-shadow: inset 0 0 0 0.5px rgba(37,211,102,0.22); }
.ch-icon.email { background: var(--emerald-light); box-shadow: inset 0 0 0 0.5px var(--emerald-bd); }

.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.ch-badge.fast {
  background: rgba(37,211,102,0.10);
  box-shadow: inset 0 0 0 0.5px rgba(37,211,102,0.22);
  color: var(--wa-dark);
}
.ch-badge.std {
  background: var(--emerald-light);
  box-shadow: inset 0 0 0 0.5px var(--emerald-bd);
  color: var(--emerald-dark);
}
.ch-badge.self {
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  color: var(--ink-mid);
}
.ch-badge .bdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulseDot 2.4s ease-in-out infinite;
}

.ch-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}
.ch-card p {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}

.ch-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease);
  margin-top: auto;
}
.ch-cta.wa-c {
  background: var(--wa);
  color: #fff;
}
.ch-cta.wa-c:hover { background: var(--wa-dark); }
.ch-cta.email-c {
  background: var(--emerald);
  color: #fff;
}
.ch-cta.email-c:hover { background: var(--emerald-dark); }
.ch-cta.docs-c {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 0.5px var(--bd);
}
.ch-cta.docs-c:hover {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd-mid);
}

/* Response times */
.resp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}
.resp-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  padding: 20px;
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.resp-card:hover {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd-mid);
  transform: translateY(-1px);
}
.resp-plan {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-low);
  margin-bottom: 12px;
}
.resp-time {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.resp-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.resp-note {
  font-size: 12px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: -0.005em;
}

/* Search section */
.search-section {
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  padding: clamp(28px, 3vw, 40px);
  margin-bottom: 40px;
}
.search-section h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--ink);
}
.search-section > p {
  color: var(--ink-mid);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.search-bar input {
  flex: 1;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border: none;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  letter-spacing: -0.005em;
  transition: box-shadow 180ms var(--ease);
}
.search-bar input::placeholder { color: var(--ink-low); }
.search-bar input:focus { box-shadow: inset 0 0 0 0.5px var(--ink); }
.search-bar button {
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -0.005em;
  transition: opacity 180ms var(--ease);
}
.search-bar button:hover { opacity: 0.85; }

.tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tags-label {
  font-size: 11px;
  color: var(--ink-low);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.tag {
  background: var(--surface-alt);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  border: none;
  color: var(--ink-mid);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
  font-family: inherit;
  letter-spacing: -0.005em;
}
.tag:hover {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd-mid);
}

/* FAQ */
.faq-section { margin-bottom: 48px; }
.faq-section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--ink);
}
.faq-cat { margin-bottom: 32px; }
.faq-cat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-low);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  padding: 0 0 8px;
  box-shadow: inset 0 -0.5px 0 var(--bd);
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.faq-cat-label::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}

.faq-item {
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--bd);
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 240ms var(--ease);
}
.faq-item:hover { box-shadow: 0 0 0 0.5px var(--bd-mid); }
.faq-item.open { box-shadow: 0 0 0 0.5px var(--bd-strong); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  transition: background 180ms var(--ease);
  gap: 16px;
  user-select: none;
  letter-spacing: -0.01em;
}
.faq-q:hover { background: var(--surface-alt); }
.faq-item.open .faq-q { background: var(--surface-alt); }

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 0.5px var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  transition: transform 320ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease), padding 240ms var(--ease);
  background: var(--surface);
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 320px;
  padding: 14px 20px 18px;
}
.faq-a p {
  color: var(--ink-mid);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}
.faq-a a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 0.5px solid var(--bd-mid);
  transition: border-color 180ms var(--ease);
}
.faq-a a:hover { border-bottom-color: var(--ink); }

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff;
  padding: 10px 16px 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.10), 0 12px 32px -12px rgba(37,211,102,0.40);
  transition: transform 240ms var(--ease), background 180ms var(--ease), box-shadow 240ms var(--ease);
  animation: floatIn 600ms 400ms var(--ease) both;
  letter-spacing: -0.005em;
}
.wa-float:hover {
  transform: translateY(-2px);
  background: var(--wa-dark);
  box-shadow: 0 0 0 0.5px rgba(255,255,255,0.10), 0 16px 40px -12px rgba(37,211,102,0.50);
}
.wa-float-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.18);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.wa-float-label {
  font-size: 13px;
  font-weight: 500;
}
.wa-float-sub {
  font-size: 11px;
  opacity: 0.80;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.vis { opacity: 1; transform: none; }

/* ── ANIMATIONS COMPLÉMENTAIRES ──────────────────────────────────────── */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-hero .hero-inner { grid-template-columns: 1fr !important; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .featured-article { grid-template-columns: 1fr !important; }
  .fa-img { min-height: 200px; }
  .newsletter { grid-template-columns: 1fr !important; }
  .channels-grid { grid-template-columns: 1fr !important; }
  .ch-card { box-shadow: inset 0 -0.5px 0 var(--bd) !important; }
  .ch-card:last-child { box-shadow: none !important; }
  .resp-grid { grid-template-columns: 1fr !important; }
  .qs-grid { grid-template-columns: 1fr !important; }
  .wa-float .wa-float-text { display: none; }
  .wa-float { padding: 12px; bottom: 20px; right: 20px; }
  .wa-float-icon { width: 32px; height: 32px; }

  .docs-layout { grid-template-columns: 1fr !important; }
  .docs-sidebar, .on-this-page { display: none; }
  .nav-logo-area { width: auto; box-shadow: none; padding: 0 16px; }
  .nav-search-area { padding: 0 8px; }
  .search-kbd { display: none; }
  .mobile-menu-btn { display: flex; }
  .doc-main { padding: 24px 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .articles-grid { grid-template-columns: 1fr 1fr !important; }
  .featured-article { grid-template-columns: 1fr !important; }
  .channels-grid { grid-template-columns: 1fr 1fr !important; }
  .resp-grid { grid-template-columns: 1fr 1fr !important; }
  .qs-grid { grid-template-columns: 1fr 1fr !important; }

  .docs-layout { grid-template-columns: 240px 1fr !important; }
  .on-this-page { display: none; }
  .doc-main { padding: 40px 32px; }
}