/* ═══════════════════════════════════════════════════════════
   Ness Help — Design system public
   Sora (titres) + Inter (corps) · palette ness-*
   ═══════════════════════════════════════════════════════════ */

:root {
  --ness-primary: #1b7fd1;
  --ness-primary-50: #eaf4fc;
  --ness-primary-dark: #0f4f87;
  --ness-secondary: #8fd98a;
  --ness-secondary-dark: #5fb85a;
  --ness-dark: #0b1c2c;
  --ness-deep: #081521;
  --ness-bg: #f5f9fc;
  --ness-border: #e1e8ee;
  --ness-muted: #5b6b7b;
  /* Vert WhatsApp un peu plus sombre (plus premium, meilleure lisibilité) */
  --ness-wa: #1aad53;
  --ness-wa-dark: #148f44;
  --font-heading: 'Sora', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'Segoe UI Mono', Menlo, monospace;
  --radius-btn: 0.75rem;   /* 12px — xl */
  --radius-card: 1rem;     /* 16px — 2xl */
  --radius-card-lg: 1.25rem;
  --shadow-card: 0 20px 40px -24px rgba(11, 28, 44, 0.18);
  --shadow-btn: 0 10px 24px -10px rgba(27, 127, 209, 0.45);
}

/* ── Base typography ─────────────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-feature-settings: 'kern' 1, 'liga' 1;
  letter-spacing: -0.011em;
  line-height: 1.6;
  color: var(--ness-dark);
  background: var(--ness-bg);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-weight: 700;
}

/* Échelle titres plus harmonieuse */
.heading-display {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.heading-section {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Labels de section (eyebrow) */
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.section-label--on-dark {
  color: var(--ness-secondary);
}

.section-label--on-light {
  color: var(--ness-primary);
}

/* Corps de texte lisible */
.text-body {
  font-family: var(--font-body);
  letter-spacing: -0.011em;
  line-height: 1.65;
}

.text-muted {
  color: var(--ness-muted);
}

/* Mono pour domaines / codes */
.font-mono,
.domain-text {
  font-family: var(--font-mono);
  letter-spacing: 0;
  font-variant-ligatures: none;
}

/* ── Selection & focus ───────────────────────────────────── */
::selection {
  background: rgba(27, 127, 209, 0.18);
  color: var(--ness-dark);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ness-primary);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ness-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  border-radius: var(--radius-btn);
  padding: 0.875rem 1.75rem;
  transition: transform 0.15s ease, background-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ness-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--ness-primary-dark);
}

.btn-secondary {
  background: var(--ness-secondary);
  color: var(--ness-deep);
  box-shadow: 0 10px 24px -10px rgba(143, 217, 138, 0.45);
}

.btn-secondary:hover {
  background: var(--ness-secondary-dark);
  color: var(--ness-deep);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-whatsapp {
  background: var(--ness-wa);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:hover {
  background: var(--ness-wa-dark);
  color: #fff;
}

.btn-dark {
  background: var(--ness-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ness-deep);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--ness-primary);
}

.btn-white:hover {
  background: var(--ness-bg);
  color: var(--ness-primary-dark);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--ness-border);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-card);
}

/* ── Page hero (sous-pages) ──────────────────────────────── */
.page-hero {
  background: var(--ness-dark);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 24 L12 0 L24 24 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 48px 24px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  padding: 5.5rem 1rem 3.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .page-hero-inner {
    padding: 6rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .page-hero-inner {
    padding: 6.5rem 2rem 4.5rem;
  }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ness-dark);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  border-radius: var(--radius-btn);
  border: 1px solid var(--ness-border);
  background: var(--ness-bg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--ness-dark);
  letter-spacing: -0.011em;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:hover {
  border-color: #c5d0db;
}

.form-input:focus {
  outline: none;
  border-color: var(--ness-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 127, 209, 0.15);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235B6B7B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-input {
  min-height: 7.5rem;
  resize: vertical;
}

/* ── Prose (articles, légal) ─────────────────────────────── */
.prose-ness {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: -0.011em;
  color: var(--ness-muted);
}

.prose-ness h2,
.prose-ness h3 {
  font-family: var(--font-heading);
  color: var(--ness-dark);
  letter-spacing: -0.02em;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose-ness p + p {
  margin-top: 1em;
}

.prose-ness a {
  color: var(--ness-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-ness a:hover {
  color: var(--ness-primary-dark);
}

/* ═══════════════════════════════════════════════════════════
   Article page — pleine largeur, layout pro
   ═══════════════════════════════════════════════════════════ */
.article-shell-page {
  position: relative;
  isolation: isolate;
  background: #fff;
  overflow: clip;
}

/*
 * Motif triangles de marque (même pattern que le hero site)
 * remplit les gouttières gauche / droite hors conteneur max-w-7xl
 */
.article-side-motif {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: max(0px, calc((100% - 80rem) / 2));
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #eef5fb;
  /* Motif triangles brand */
  background-image:
    linear-gradient(180deg, rgba(238, 245, 251, 0.2) 0%, transparent 18%, transparent 82%, rgba(238, 245, 251, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 24 L12 0 L24 24 Z' fill='%231B7FD1' fill-opacity='0.11'/%3E%3C/svg%3E");
  background-size: auto, 48px 24px;
  background-repeat: no-repeat, repeat;
  background-position: center, 0 0;
}

.article-side-motif--left {
  left: 0;
  border-right: 1px solid rgba(27, 127, 209, 0.08);
}

.article-side-motif--right {
  right: 0;
  border-left: 1px solid rgba(27, 127, 209, 0.08);
  /* Légère variante : accents verts secondaires sur la droite */
  background-image:
    linear-gradient(180deg, rgba(238, 245, 251, 0.2) 0%, transparent 18%, transparent 82%, rgba(238, 245, 251, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 24 L12 0 L24 24 Z' fill='%230F4F87' fill-opacity='0.09'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 48 L24 0 L48 48 Z' fill='%238FD98A' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto, 48px 24px, 96px 48px;
  background-repeat: no-repeat, repeat, repeat;
}

/* Halo doux en bordure du contenu pour fondre le motif */
.article-side-motif--left::after,
.article-side-motif--right::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4.5rem;
  pointer-events: none;
}

.article-side-motif--left::after {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85));
}

.article-side-motif--right::after {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.85));
}

/* Visible dès qu’il y a de la marge hors 80rem (+ un peu d’air) */
@media (min-width: 1360px) {
  .article-side-motif {
    display: block;
  }
}

.article-page {
  position: relative;
  z-index: 1;
  background: transparent;
}

.article-page > .article-hero,
.article-page > .article-cover-wrap,
.article-page > .article-layout {
  position: relative;
  z-index: 1;
}

/* Conteneur aligné sur le site (max-w-7xl = 80rem) */
.article-container {
  width: 100%;
  max-width: 80rem; /* même largeur que le reste du site */
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .article-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .article-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.article-hero {
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(27, 127, 209, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(143, 217, 138, 0.1), transparent 50%),
    linear-gradient(165deg, #081521 0%, #0B1C2C 55%, #0a2238 100%);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 24 L12 0 L24 24 Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: 48px 24px;
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  padding-top: 6.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .article-hero-inner {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .article-hero-inner {
    padding-top: 7.5rem;
    padding-bottom: 4rem;
  }
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.75);
  margin-bottom: 1.75rem;
}

.article-breadcrumb a {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  transition: color 0.15s;
}

.article-breadcrumb a:hover {
  color: var(--ness-secondary);
}

.article-breadcrumb-sep {
  color: rgba(148, 163, 184, 0.55);
  font-weight: 500;
}

/* Hero 2 colonnes pleine largeur */
.article-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: end;
}

@media (min-width: 1024px) {
  .article-hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.7fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.article-hero-copy {
  min-width: 0;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ness-secondary);
  background: rgba(143, 217, 138, 0.12);
  border: 1px solid rgba(143, 217, 138, 0.28);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.article-title {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  margin: 0 0 1.15rem;
  max-width: none; /* occupe toute la colonne */
}

.article-lead {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: #cbd5e1;
  font-weight: 500;
  max-width: none;
}

.article-meta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
  .article-meta-card {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem;
    gap: 1.15rem;
  }
}

.article-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.article-meta-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  font-family: var(--font-heading);
}

.article-meta-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

/* Cover pleine largeur conteneur */
.article-cover-wrap {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

@media (min-width: 768px) {
  .article-cover-wrap {
    margin-top: -2.75rem;
  }
}

.article-cover {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--ness-border);
  box-shadow:
    0 4px 6px rgba(11, 28, 44, 0.04),
    0 28px 56px -22px rgba(11, 28, 44, 0.32);
  background: var(--ness-primary-50);
  aspect-ratio: 21 / 9;
  max-height: 420px;
}

@media (min-width: 1024px) {
  .article-cover {
    aspect-ratio: 21 / 8;
    max-height: 460px;
    border-radius: 1.4rem;
  }
}

.article-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grille corps : contenu large + rail */
.article-layout {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .article-layout {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 1100px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.75rem;
  }
}

@media (min-width: 1280px) {
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 3.25rem;
  }
}

.article-main {
  min-width: 0;
  width: 100%;
  max-width: none; /* pleine largeur de la colonne */
}

/* Corps article formaté — large */
.article-body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.15vw, 1.125rem);
  line-height: 1.8;
  letter-spacing: -0.011em;
  color: #334155;
  width: 100%;
  max-width: none;
}

/* Sur très grands écrans, paragraphes un peu plus confortables mais toujours larges */
@media (min-width: 1400px) {
  .article-body {
    font-size: 1.125rem;
    line-height: 1.82;
  }
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.2em;
  max-width: none;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-body .article-h {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ness-dark);
  margin: 2.5em 0 1em;
  padding-top: 0.85em;
  border-top: 1px solid var(--ness-border);
}

.article-body .article-h:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-body .article-label {
  margin: 1.5em 0 0.75em;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ness-primary-dark);
}

/* Listes en grille 2 colonnes sur large écran */
.article-body .article-list {
  list-style: none;
  margin: 0 0 1.75em;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .article-body .article-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}

.article-body .article-list li {
  position: relative;
  padding: 0.95rem 1.05rem 0.95rem 2.7rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8fc 100%);
  border: 1px solid var(--ness-border);
  border-radius: 0.9rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.55;
  height: 100%;
}

.article-body .article-list li::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ness-primary), var(--ness-primary-dark));
  box-shadow: 0 0 0 4px rgba(27, 127, 209, 0.12);
}

/* Rail latéral sticky */
.article-rail {
  min-width: 0;
}

.article-rail-sticky {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1100px) {
  .article-rail-sticky {
    position: sticky;
    top: 5.5rem;
  }
}

.article-rail-card {
  background: #fff;
  border: 1px solid var(--ness-border);
  border-radius: 1.1rem;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 1px 2px rgba(11, 28, 44, 0.03);
}

.article-rail-card--accent {
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(27, 127, 209, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  border-color: #d3e6f5;
}

.article-rail-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ness-dark);
}

.article-rail-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ness-muted);
  font-weight: 500;
}

.article-rail-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--ness-border);
}

.article-rail-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.article-rail-dl dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ness-muted);
}

.article-rail-dl dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ness-dark);
  text-align: right;
}

.article-rail-btn {
  width: 100%;
  margin-bottom: 0.65rem;
}

.article-rail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ness-primary-dark);
  text-decoration: none;
  padding: 0.35rem 0;
}

.article-rail-link:hover {
  color: var(--ness-primary);
}

.article-rail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ness-muted);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  transition: color 0.15s;
}

.article-rail-back:hover {
  color: var(--ness-primary-dark);
}

/* CTA bas de contenu */
.article-cta {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: 1.15rem;
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(27, 127, 209, 0.1), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  border: 1px solid #d7e6f4;
  display: grid;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 720px) {
  .article-cta {
    grid-template-columns: auto 1fr auto;
    padding: 1.65rem 1.75rem;
    gap: 1.25rem;
  }
}

.article-cta-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B7FD1, #0F4F87);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px -8px rgba(27, 127, 209, 0.55);
}

.article-cta-body h2 {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ness-dark);
}

.article-cta-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ness-muted);
  font-weight: 500;
  line-height: 1.5;
}

.article-cta-btn {
  white-space: nowrap;
  justify-self: start;
}

/* Related + list cards */
.article-related {
  position: relative;
  z-index: 1;
  background: rgba(245, 249, 252, 0.92);
  border-top: 1px solid var(--ness-border);
  padding: 3.5rem 0 4.5rem;
}

@media (min-width: 640px) {
  .article-related {
    padding: 4rem 0 5rem;
  }
}

.article-list-page {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
}

@media (min-width: 640px) {
  .article-list-page {
    padding: 4rem 1.5rem 5rem;
  }
}

@media (min-width: 1024px) {
  .article-list-page {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.article-related-head {
  text-align: center;
  margin-bottom: 2rem;
}

.article-related-head--left {
  text-align: left;
}

.article-related-head .heading-section {
  margin-top: 0.55rem;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .article-related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.article-list-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .article-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .article-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ness-border);
  border-radius: 1.1rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #cfe0ef;
}

.article-card-media {
  aspect-ratio: 16 / 10;
  background: var(--ness-primary-50);
  overflow: hidden;
  position: relative;
}

.article-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ness-primary);
  font-size: 1.75rem;
  background: linear-gradient(135deg, #eaf4fc, #dceef9);
}

.article-card-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.article-card-cat {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ness-primary-dark);
  background: var(--ness-primary-50);
  border: 1px solid #d3e9f8;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.article-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.article-card-date,
.article-card-read {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ness-muted);
}

.article-card-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ness-dark);
  transition: color 0.15s;
}

.article-card:hover .article-card-title {
  color: var(--ness-primary-dark);
}

.article-card-excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ness-muted);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-more {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ness-primary-dark);
}

.article-card-more i {
  font-size: 0.7rem;
  transition: transform 0.15s;
}

.article-card:hover .article-card-more i {
  transform: translateX(3px);
}

.article-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.75rem;
}

.article-page-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid var(--ness-border);
  background: #fff;
  color: var(--ness-dark);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.article-page-btn:hover {
  background: #fff;
  border-color: #93c5fd;
  color: var(--ness-primary-dark);
}

.article-page-status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ness-muted);
  padding: 0 0.35rem;
}

.article-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ness-muted);
  font-weight: 600;
}

.article-empty i {
  display: block;
  font-size: 2rem;
  color: var(--ness-primary);
  margin-bottom: 0.85rem;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cbd5e1;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--ness-secondary);
}

/* ── WhatsApp FAB ────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  z-index: 50;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 9999px;
  background: var(--ness-wa);
  color: #fff !important;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55);
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.wa-fab:hover {
  background: var(--ness-wa-dark);
  transform: scale(1.03);
  color: #fff !important;
}

.wa-fab:active {
  transform: scale(0.97);
}

.wa-fab-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.wa-fab-text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
  padding-right: 0.25rem;
}

@media (min-width: 640px) {
  .wa-fab {
    bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
  .wa-fab-text {
    display: flex;
  }
}

/* ── Utilities ───────────────────────────────────────────── */
.logo-mark {
  object-fit: cover;
  border-radius: 0.625rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Espacement bas pour ne pas masquer le contenu derrière le FAB */
main {
  padding-bottom: 0.5rem;
}

/* Soft gradient accent line */
.accent-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #8fd98a, #1b7fd1, #0b1c2c, #d85f1d);
}

/* Tailwind tracking-snug fallback if not generated by CDN JIT for static CSS contexts */
.tracking-snug {
  letter-spacing: -0.011em;
}

/* Ensure btn color inherits correctly on links */
a.btn {
  text-decoration: none;
}

/* Logo size safety */
img.logo-mark {
  display: block;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
