/**
 * Feuille de style principale — Thème enfant WeITSM Futur (Astra).
 * Porte intégralement le design validé de `preview-approuvee.html`
 * et l'étend aux pages liste/blog (`index.php`) et archives (`archive.php`).
 *
 * Palette :
 * - Bleu nuit : #070C16 / #0B1220 / #0E1A2B
 * - Teal      : #2DD4BF / #14B8A6 / #0D9488
 * - Indigo    : #818CF8 / #6366F1 / #4F46E5
 * Polices     : Space Grotesk, Sora, Inter, JetBrains Mono
 */

/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS (Direction artistique WeITSM)
   ========================================================================== */
:root {
  /* Palette de marque */
  --navy-950: #070C16;
  --navy-900: #0B1220;
  --navy-800: #0E1A2B;
  --navy-700: #16263F;
  --navy-600: #1E3354;

  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-glow: rgba(45, 212, 191, 0.22);

  --indigo-400: #818CF8;
  --indigo-500: #6366F1;
  --indigo-600: #4F46E5;
  --indigo-glow: rgba(99, 102, 241, 0.25);

  /* Fonds & surfaces clairs pour une lecture optimale */
  --bg-page: #F4F7FB;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EDF2F9;
  --bg-callout: #F0FDFB;

  /* Typographie & encres */
  --text-primary: #0B1220;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #94A3B8;

  /* Bordures & ombres */
  --border-light: #E2E8F0;
  --border-tech: rgba(45, 212, 191, 0.28);
  --border-dark-subtle: rgba(148, 163, 184, 0.16);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(11, 18, 32, 0.08), 0 4px 12px -2px rgba(11, 18, 32, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(11, 18, 32, 0.16);
  --shadow-glow-teal: 0 0 28px rgba(45, 212, 191, 0.18);

  /* Polices */
  --font-display: 'Space Grotesk', 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Largeur de lecture */
  --reading-width: 860px;
}

/* ==========================================================================
   2. RESET, ACCESSIBILITÉ & ADAPTATION DU DOM ASTRA
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus visible AA */
:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lien d'évitement accessibilité */
.skip-link,
.screen-reader-text:focus {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--teal-400);
  color: var(--navy-900);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* Intégration propre avec la structure DOM d'Astra (ASTRA-DOM.txt) */
body.single-post #content.site-content > .ast-container,
body.blog #content.site-content > .ast-container,
body.archive #content.site-content > .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

body.single-post #primary.content-area.primary,
body.blog #primary.content-area.primary,
body.archive #primary.content-area.primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Masquage strict de la sidebar Astra sur article et listes */
body.single-post aside#secondary,
body.single-post .widget-area.secondary,
body.blog aside#secondary,
body.archive aside#secondary {
  display: none !important;
}

/* Barre de progression de lecture */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(11, 18, 32, 0.2);
  z-index: 1000;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-400), var(--indigo-500));
  box-shadow: 0 0 12px var(--teal-400);
  transition: width 0.1s linear;
}

/* ==========================================================================
   3. BANDEAU "● EN DIRECT" & HABILLAGE HEADER / FOOTER ASTRA
   ========================================================================== */
.live-ticker {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  border-bottom: 1px solid var(--border-dark-subtle);
  font-size: 0.8125rem;
  position: relative;
  z-index: 50;
}

.live-ticker__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-ticker__left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-400);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.live-ticker__items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.live-ticker__items::-webkit-scrollbar {
  display: none;
}

.live-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #CBD5E1;
}

.live-ticker__item strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.live-ticker__sep {
  color: rgba(148, 163, 184, 0.35);
}

.live-ticker__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal-400);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Habillage du Header Astra (#masthead) et .site-header */
#masthead,
.site-header,
#masthead .ast-main-header-wrap,
#masthead .main-header-bar {
  background: rgba(11, 18, 32, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark-subtle) !important;
  color: var(--text-on-dark);
}

#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
}

#masthead .site-title a,
#masthead .ast-site-identity a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-on-dark) !important;
  letter-spacing: -0.02em;
}

#masthead .site-description {
  color: var(--text-on-dark-muted) !important;
  font-family: var(--font-mono);
}

#masthead .main-header-menu .menu-link,
#masthead .ast-nav-menu a {
  color: #CBD5E1 !important;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}

#masthead .main-header-menu .menu-link:hover,
#masthead .ast-nav-menu a:hover,
#masthead .current-menu-item > .menu-link {
  color: var(--teal-400) !important;
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(45, 212, 191, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-teal);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.brand__name span {
  color: var(--teal-400);
}

.brand__sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-on-dark-muted);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  color: #CBD5E1;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
}

.site-nav__link:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__link--active {
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(45, 212, 191, 0.45);
}

/* ==========================================================================
   4. EN-TÊTE / HÉROS PLEINE LARGEUR (ARTICLE & POST À LA UNE DU BLOG)
   ========================================================================== */
.article-hero {
  position: relative;
  background-color: var(--navy-900);
  color: var(--text-on-dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(45, 212, 191, 0.22);
}

.article-hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(110deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.88) 48%, rgba(14, 26, 43, 0.72) 100%),
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.24), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(45, 212, 191, 0.16), transparent 50%);
  background-size: cover;
  background-position: center right;
  z-index: 1;
}

.article-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
  z-index: 2;
  pointer-events: none;
}

.article-hero__container {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-on-dark-muted);
}

.breadcrumb a:hover {
  color: var(--teal-400);
}

.breadcrumb__sep {
  color: rgba(148, 163, 184, 0.45);
}

.breadcrumb__current {
  color: #E2E8F0;
  font-weight: 500;
}

/* Badges en-tête */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--teal-400);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow-teal);
}

.badge-category:hover {
  background: rgba(45, 212, 191, 0.26);
  color: #FFFFFF;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #C7D2FE;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0 0 1.25rem;
}

.article-hero__title .text-gradient {
  background: linear-gradient(95deg, #2DD4BF 0%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-link {
  color: #FFFFFF;
}

.hero-title-link:hover {
  color: var(--teal-400);
}

.article-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0 0 2rem;
  max-width: 64ch;
}

/* Ligne méta élégante */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border: 2px solid var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal-400);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.25);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.author-info__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.author-info__role {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

.article-meta__divider {
  width: 1px;
  height: 26px;
  background: rgba(148, 163, 184, 0.22);
}

.article-meta__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #CBD5E1;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta-pill svg {
  color: var(--teal-400);
  flex-shrink: 0;
}

/* Carte visuelle à droite dans le héros */
.hero-visual {
  position: relative;
  margin: 0;
}

.hero-visual__frame {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(45, 212, 191, 0.16);
  background: var(--navy-800);
}

.hero-visual__frame--link:hover {
  border-color: var(--teal-400);
  transform: translateY(-3px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.65),
    0 0 42px rgba(45, 212, 191, 0.28);
}

.hero-visual__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-visual__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 75% 25%, rgba(99, 102, 241, 0.25), transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
}

.hero-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.78) 0%, transparent 48%);
  pointer-events: none;
}

.hero-visual__caption {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #E2E8F0;
}

.hero-visual__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal-400);
}

.blog-hero__actions {
  margin-top: 1.75rem;
}

.archive-banner-meta {
  margin-bottom: 1rem;
}

.archive-banner-desc {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  max-width: 60ch;
}

/* ==========================================================================
   5. STRUCTURE PRINCIPALE DE L'ARTICLE (BARRE SOCIALE + 740PX + SOMMAIRE)
   ========================================================================== */
.article-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 64px minmax(0, var(--reading-width)) 1fr;
  gap: 2.75rem;
  align-items: start;
}

/* Barre de partage sociale sticky à gauche */
.share-rail {
  position: sticky;
  top: 6.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.share-rail__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  padding: 0;
}

.share-btn:hover {
  color: var(--navy-900);
  border-color: var(--teal-500);
  background: #F0FDFB;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.16);
}

.share-btn__tooltip {
  position: absolute;
  left: calc(100% + 10px);
  background: var(--navy-900);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: all 0.18s ease;
  z-index: 20;
}

.share-btn:hover .share-btn__tooltip,
.share-btn.is-copied .share-btn__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Colonne principale d'article (~740px) */
.article-main {
  width: 100%;
  max-width: var(--reading-width);
  text-align: left;
}

/* Sommaire latéral discret à droite sur grand écran */
.toc-aside {
  position: sticky;
  top: 6.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.toc-aside__title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light);
}

.toc-aside__title svg {
  color: var(--teal-500);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
}

.toc-list a {
  color: var(--text-secondary);
  display: block;
  padding-left: 0.65rem;
  border-left: 2px solid transparent;
  line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--teal-600);
  border-left-color: var(--teal-500);
}

.toc-aside__card {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
  color: var(--text-on-dark);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.toc-aside__card-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-aside__card h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  margin: 0.35rem 0 0.45rem;
  color: #FFFFFF;
}

.toc-aside__card p {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
  line-height: 1.45;
  margin: 0 0 0.75rem;
}

.toc-aside__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-400);
}

/* ==========================================================================
   6. ENCADRÉ "POINTS CLÉS / TL;DR" EN TÊTE D'ARTICLE
   ========================================================================== */
.tldr-box {
  background: linear-gradient(135deg, #FFFFFF 0%, #F0FDFB 100%);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.85rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.tldr-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.14), transparent 70%);
  pointer-events: none;
}

.tldr-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tldr-box__title {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}

.tldr-box__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--teal-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tldr-box__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tldr-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tldr-box__list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tldr-box__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.18);
  border: 2px solid var(--teal-500);
}

.tldr-box__list strong {
  color: var(--navy-900);
}

/* ==========================================================================
   7. TYPOGRAPHIE & COMPOSANTS DU CORPS D'ARTICLE (.article-prose)
   ========================================================================== */
.article-prose {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-md);
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-prose p {
  margin: 0 0 1.45rem;
}

.article-prose a {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.article-prose a:hover {
  color: var(--navy-900);
}

.article-prose strong {
  color: var(--navy-900);
  font-weight: 600;
}

/* Lettrine sur le 1er paragraphe */
.article-prose > p.has-dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.86;
  font-weight: 700;
  padding: 0.2rem 0.75rem 0.15rem 0;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--navy-900) 20%, var(--teal-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sous-titres H2 avec filet / accent teal */
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.8rem);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2.75rem 0 1.15rem;
  padding-top: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-prose h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.45em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--teal-400), var(--indigo-500));
  flex-shrink: 0;
}

/* Sous-titres H3 stylés */
.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.35;
  margin: 2rem 0 0.7rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--teal-400);
}

/* Listes à puces custom */
.article-prose ul {
  list-style: none;
  margin: 1.25rem 0 1.65rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.article-prose ul li {
  position: relative;
  padding: 1rem 1.2rem 1rem 2.75rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  line-height: 1.65;
}

.article-prose ul li::before {
  content: "→";
  position: absolute;
  left: 1rem;
  top: 0.98rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.14);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Citation (blockquote) stylée */
.article-prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--text-on-dark);
  border-left: 4px solid var(--teal-400);
  box-shadow: var(--shadow-md);
  position: relative;
}

.article-prose blockquote p {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-style: italic;
  color: #F1F5F9;
}

.article-prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-400);
}

/* Blocs de code */
.code-snippet,
/* Bloc de code (pre) : fond bleu nuit, liseré teal, défilement horizontal propre */
.article-prose pre {
  margin: 1.85rem 0;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #0D1B2E 0%, #0A1626 100%);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-left: 3px solid var(--teal-500);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: #D7E3F4;
  tab-size: 4;
}

/* Le <code> à l'intérieur d'un <pre> : hérite du bloc, pas de double fond */
.article-prose pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

/* Code en ligne (dans une phrase) : pastille discrète, lisible */
.article-prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(45, 212, 191, 0.10);
  color: var(--teal-600);
  border: 1px solid rgba(45, 212, 191, 0.22);
  padding: 0.08em 0.4em;
  border-radius: 6px;
  white-space: nowrap;
}

/* Barre de défilement du bloc de code, discrète */
.article-prose pre::-webkit-scrollbar { height: 8px; }
.article-prose pre::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); border-radius: 8px; }
.article-prose pre::-webkit-scrollbar-thumb { background: rgba(45, 212, 191, 0.35); border-radius: 8px; }
.article-prose pre::-webkit-scrollbar-thumb:hover { background: rgba(45, 212, 191, 0.55); }

.code-snippet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.code-snippet__dots {
  display: flex;
  gap: 6px;
}

.code-snippet__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.code-snippet__dots span:first-child { background: #F87171; }
.code-snippet__dots span:nth-child(2) { background: #FBBF24; }
.code-snippet__dots span:nth-child(3) { background: #34D399; }

.code-snippet pre {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.code-comment { color: #64748B; }
.code-alert { color: #FDA4AF; }
.code-key { color: var(--teal-400); }

/* Bloc vidéo explicatif responsive (16:9) */
.video-feature {
  margin: 2.4rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: var(--shadow-lg);
}

.video-feature__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.78), rgba(14, 26, 43, 0.88));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.video-feature__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: var(--teal-400);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.video-feature__duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(11, 18, 32, 0.88);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.video-play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--teal-400);
  background: rgba(11, 18, 32, 0.8);
  color: var(--teal-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(45, 212, 191, 0.15), 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 1rem;
}

.video-feature__stage:hover .video-play-btn {
  transform: scale(1.08);
  background: var(--teal-400);
  color: var(--navy-950);
  box-shadow: 0 0 0 14px rgba(45, 212, 191, 0.25), 0 16px 36px rgba(0, 0, 0, 0.6);
}

.video-feature__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  max-width: 48ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-feature__footer {
  padding: 0.85rem 1.25rem;
  background: var(--navy-950);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   8. EMPLACEMENTS PUBLICITAIRES (ADSENSE)
   ========================================================================== */
.ad-slot {
  margin: 2.25rem 0;
  padding: 1.1rem 1.25rem 1.35rem;
  border: 1.5px dashed #94A3B8;
  border-radius: var(--radius-md);
  background: repeating-linear-gradient(
    -45deg,
    #F8FAFC,
    #F8FAFC 10px,
    #F1F5F9 10px,
    #F1F5F9 20px
  );
  text-align: center;
  position: relative;
}

.ad-slot--live {
  border-style: solid;
  border-color: var(--border-light);
  background: var(--bg-surface);
}

.ad-slot__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.18rem 0.6rem;
  border-radius: 99px;
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.ad-slot__box {
  min-height: 110px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem;
  color: var(--text-muted);
}

.ad-slot__title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.ad-slot__dims {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   9. BLOC CTA MARKETING FIN D'ARTICLE ("PARLEZ À WEITSM")
   ========================================================================== */
.cta-banner {
  margin-top: 2.75rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 15%, rgba(45, 212, 191, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.25), transparent 50%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(45, 212, 191, 0.4);
  padding: 2.5rem 2.75rem;
  color: var(--text-on-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-400);
  margin-bottom: 0.75rem;
}

.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  color: #FFFFFF;
}

.cta-banner__desc {
  color: #CBD5E1;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 60ch;
  margin: 0 0 1.65rem;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-500));
  color: var(--navy-950);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(45, 212, 191, 0.5);
  color: var(--navy-950);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}

.btn-secondary:hover {
  border-color: var(--teal-400);
  background: rgba(45, 212, 191, 0.1);
  color: #FFFFFF;
}

/* ==========================================================================
   10. SECTION ARTICLES RELIÉS & GRILLE DE CARTES (.related-card / .post-card)
   ========================================================================== */
.related-section,
.blog-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem 5rem;
}

.blog-grid-section {
  padding-top: 3.5rem;
}

.related-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.related-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-600);
  display: block;
  margin-bottom: 0.3rem;
}

.related-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}

.related-section__more {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.related-section__more:hover {
  color: var(--navy-900);
}

.related-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.related-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
  border-color: rgba(45, 212, 191, 0.55);
}

.related-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.related-card:hover .related-card__img {
  transform: scale(1.04);
}

.related-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.related-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.related-card__cat {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.12);
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.related-card__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.related-card__title {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy-900);
  margin: 0 0 0.65rem;
}

.related-card__title a:hover {
  color: var(--teal-600);
}

.related-card__excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 1.15rem;
  flex: 1;
}

.related-card__link {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.related-card:hover .related-card__link {
  color: var(--teal-600);
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-card__author-date strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   11. RANGÉE HORIZONTALE « À LA UNE » QUI DÉFILE (INDEX.PHP & ARCHIVE.PHP)
   ========================================================================== */
.featured-strip-section {
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(99, 102, 241, 0.15), transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  border-bottom: 1px solid rgba(45, 212, 191, 0.22);
  padding: 2.75rem 0 3.25rem;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.featured-strip__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.featured-strip__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.featured-strip__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-400);
  margin-bottom: 0.35rem;
}

.featured-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.featured-strip__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.strip-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(14, 26, 43, 0.9);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--teal-400);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.strip-nav-btn:hover {
  background: var(--teal-400);
  color: var(--navy-950);
  border-color: var(--teal-400);
  box-shadow: var(--shadow-glow-teal);
  transform: translateY(-2px);
}

/* Piste horizontale défilante (scroll-snap + overflow-x) */
.featured-strip__track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 1.15rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.45) rgba(14, 26, 43, 0.6);
}

.featured-strip__track::-webkit-scrollbar {
  height: 6px;
}

.featured-strip__track::-webkit-scrollbar-track {
  background: rgba(14, 26, 43, 0.6);
  border-radius: 99px;
}

.featured-strip__track::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.45);
  border-radius: 99px;
}

.strip-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: linear-gradient(155deg, rgba(14, 26, 43, 0.95) 0%, rgba(11, 18, 32, 0.98) 100%);
  border: 1px solid rgba(45, 212, 191, 0.24);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.strip-card:hover {
  transform: translateY(-5px);
  border-color: var(--teal-400);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-teal);
}

.strip-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.strip-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.strip-card:hover .strip-card__img {
  transform: scale(1.05);
}

.strip-card__index {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-400);
  background: rgba(7, 12, 22, 0.82);
  border: 1px solid rgba(45, 212, 191, 0.4);
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  backdrop-filter: blur(6px);
}

.strip-card__body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.strip-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.strip-card__cat {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
}

.strip-card__time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-on-dark-muted);
}

.strip-card__title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  margin: 0 0 0.6rem;
}

.strip-card__title a:hover {
  color: var(--teal-400);
}

.strip-card__excerpt {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #CBD5E1;
  margin: 0 0 1.1rem;
  flex: 1;
}

.strip-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

.strip-card__link {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal-400);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   12. PAGINATION ET ÉTATS VIDES
   ========================================================================== */
.weitsm-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.weitsm-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.weitsm-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.weitsm-pagination .page-numbers:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  transform: translateY(-1px);
}

.weitsm-pagination .page-numbers.current {
  background: var(--navy-900);
  border-color: var(--teal-400);
  color: var(--teal-400);
  box-shadow: var(--shadow-glow-teal);
}

.blog-empty-state {
  max-width: 840px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   13. FOOTER SOBRE (MAQUETTE & FOOTER ASTRA)
   ========================================================================== */
.site-footer,
footer.site-footer {
  background: var(--navy-950) !important;
  color: var(--text-on-dark-muted) !important;
  border-top: 1px solid var(--border-dark-subtle) !important;
  padding: 3.5rem 1.5rem 2.5rem;
}

footer.site-footer a {
  color: #CBD5E1;
}

footer.site-footer a:hover {
  color: var(--teal-400);
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: var(--teal-400);
}

.site-footer__bottom {
  max-width: 1280px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   14. RESPONSIVE (MOBILE ~390PX → TABLETTE → DESKTOP)
   ========================================================================== */
@media (max-width: 1120px) {
  .article-shell {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .toc-aside {
    display: none;
  }

  .article-hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .related-grid,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .live-ticker__right {
    display: none;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    overflow-x: auto;
  }

  .site-nav__link {
    padding: 0.4rem 0.65rem;
    font-size: 0.85rem;
  }

  .article-hero__container {
    padding: 2.25rem 1rem 2.75rem;
  }

  /* Barre sociale en ligne sur mobile */
  .article-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 1rem 3rem;
  }

  .share-rail {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    background: var(--bg-surface);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
  }

  .share-rail__label {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .share-btn__tooltip {
    display: none;
  }

  .article-prose {
    padding: 1.65rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 1.02rem;
  }

  .tldr-box {
    padding: 1.35rem 1.25rem;
  }

  .cta-banner {
    padding: 1.75rem 1.35rem;
  }

  .related-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .strip-card {
    flex: 0 0 85vw;
    max-width: 320px;
  }

  .related-section,
  .blog-grid-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .featured-strip__container {
    padding: 0 1rem;
  }
}

/* ===================== Slider héros professionnel ===================== */
.hero-slider{position:relative}
.hero-slider__viewport{overflow:hidden}
.hero-slider__track{display:flex;transition:transform .6s cubic-bezier(.4,0,.2,1);will-change:transform}
.hero-slide{min-width:100%;flex:0 0 100%}
.hero-slide.article-hero{margin:0}
/* Flèches */
.hero-slider__nav{position:absolute;top:50%;transform:translateY(-50%);z-index:6;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(11,18,32,.55);color:#fff;font-size:26px;line-height:1;display:grid;place-items:center;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s,border-color .2s,color .2s}
.hero-slider__nav:hover{background:rgba(45,212,191,.92);border-color:transparent;color:#07131f}
.hero-slider__nav:focus-visible{outline:2px solid #2DD4BF;outline-offset:3px}
.hero-slider__nav--prev{left:18px}
.hero-slider__nav--next{right:18px}
/* Points */
.hero-slider__dots{position:absolute;bottom:18px;left:0;right:0;z-index:6;display:flex;gap:9px;justify-content:center}
.hero-dot{width:10px;height:10px;border-radius:50%;border:0;padding:0;cursor:pointer;background:rgba(255,255,255,.35);transition:background .2s,width .2s,border-radius .2s}
.hero-dot:hover{background:rgba(255,255,255,.65)}
.hero-dot.is-active{background:#2DD4BF;width:26px;border-radius:6px}
.hero-dot:focus-visible{outline:2px solid #2DD4BF;outline-offset:2px}
@media(max-width:768px){
	.hero-slider__nav{width:40px;height:40px;font-size:22px}
	.hero-slider__nav--prev{left:8px}
	.hero-slider__nav--next{right:8px}
	.hero-slider__dots{bottom:12px}
}
/* slider: animation conservée volontairement */

/* En-tête des pages d'archive */
.archive-head{padding-block:26px 2px}
.archive-head .breadcrumb{margin-bottom:10px}
.archive-head .related-section__title{margin-top:4px}
.archive-head__desc{color:#5b6b7f;margin-top:8px;max-width:740px;line-height:1.6}

/* ============================================================
   PASSE MOBILE SOIGNÉE (phones) — slider, grille, article, en-tête
   ============================================================ */
@media (max-width: 600px) {
  /* ---------- En-tête / menu / ticker ---------- */
  .live-ticker { height: 38px; font-size: 12px; }
  .live-ticker__label { padding-left: 12px; letter-spacing: .5px; }
  .site-header__inner { padding: 0.7rem 0.9rem; }
  .site-logo, .site-title { font-size: 1.15rem; }
  .site-nav {
    gap: 0.15rem;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }      /* barre de défilement cachée */
  .site-nav__link { padding: 0.35rem 0.6rem; font-size: 0.82rem; white-space: nowrap; }

  /* ---------- Slider / héros ---------- */
  .article-hero__container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.6rem 1.1rem 2rem;
    text-align: left;
  }
  .article-hero__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.9rem; }
  .article-hero__lead  { font-size: 0.97rem; line-height: 1.55; }
  .hero-badges { gap: 0.5rem; flex-wrap: wrap; }
  .article-meta { flex-wrap: wrap; gap: 0.6rem; }
  .article-meta__divider { display: none; }
  /* L'image passe sous le texte, cadrée proprement */
  .hero-visual { order: 2; }
  .hero-visual__img { aspect-ratio: 16 / 9; border-radius: 14px; max-height: 210px; }
  .hero-visual__caption { font-size: 10px; }
  /* Flèches plus discrètes, centrées ; points bien visibles */
  .hero-slider__nav { width: 34px; height: 34px; font-size: 20px;
    background: rgba(11,18,32,.6); border-color: rgba(255,255,255,.18); }
  .hero-slider__nav--prev { left: 6px; }
  .hero-slider__nav--next { right: 6px; }
  .hero-slider__dots { bottom: 10px; gap: 7px; }
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.is-active { width: 20px; }

  /* ---------- Grille d'articles ---------- */
  .related-grid, .posts-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .post-card, .related-card { border-radius: 14px; }
  .related-card__img, .post-card__thumb img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
  .related-card__title, .post-card__title { font-size: 1.1rem; line-height: 1.3; }
  .related-card__body, .post-card__body { padding: 1rem 1.05rem 1.15rem; }
  .related-section__title, .blog-grid-section .related-section__title { font-size: 1.35rem; }
  /* Bande horizontale "À la une" : cartes plus lisibles */
  .strip-card { flex: 0 0 82vw; max-width: 300px; }

  /* ---------- Page d'un article ---------- */
  .article-shell { padding: 1.4rem 0.95rem 2.5rem; gap: 1.25rem; }
  .article-prose { padding: 1.4rem 1.05rem; font-size: 1.02rem; border-radius: 14px; }
  .article-prose h2 { font-size: 1.3rem; }
  .article-prose h3 { font-size: 1.12rem; }
  .article-prose pre { font-size: 0.8rem; padding: 1rem 1.05rem; }
  .article-prose :not(pre) > code { white-space: normal; word-break: break-word; }
  .cta-banner { padding: 1.5rem 1.2rem; text-align: center; }
  .cta-banner h2, .cta-banner h3 { font-size: 1.25rem; }
  /* image d'en-tête d'article (single) pas trop haute */
  .blog-featured-hero .hero-visual__img { max-height: 200px; }
}

@media (max-width: 400px) {
  .article-hero__title { font-size: 1.32rem; }
  .article-hero__container { padding: 1.3rem 0.9rem 1.7rem; }
  .hero-visual__img { max-height: 180px; }
  .site-logo, .site-title { font-size: 1.05rem; }
  .article-prose { padding: 1.2rem 0.9rem; }
  .strip-card { flex: 0 0 86vw; }
}

/* Anti-débordement : laisser la colonne de lecture rétrécir sous un bloc de code long */
.article-shell > * { min-width: 0; }
.article-main, .article-prose, .tldr-box { min-width: 0; max-width: 100%; }
.article-prose > * { max-width: 100%; }
.article-prose pre { max-width: 100%; overflow-x: auto; }

/* ============================================================
   Tableaux dans les articles — lisibles + défilement mobile
   ============================================================ */
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.7rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}
.article-prose thead th {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #fff;
  font-weight: 600;
  text-align: left;
}
.article-prose th,
.article-prose td {
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.article-prose th:last-child,
.article-prose td:last-child { border-right: 0; }
.article-prose tbody tr:last-child td { border-bottom: 0; }
.article-prose tbody tr:nth-child(even) { background: rgba(45, 212, 191, 0.05); }

/* Sur mobile : le tableau devient défilable horizontalement (sans couper le texte) */
@media (max-width: 820px) {
  .article-prose table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 10px;
  }
  .article-prose th,
  .article-prose td { white-space: normal; min-width: 150px; }
}

/* ===== Correctifs nav 2026-11-11 ===== */
/* 1) Masquer l'en-tête d'archive (fil d'Ariane + titre de catégorie) */
/* En-tete d archive : cache visuellement, conserve dans le code pour le SEO (H1 + fil d Ariane) */
.archive-head{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important}
.archive-head .breadcrumb{font-size:13px;color:#5b6b82}
.archive-head .breadcrumb a{color:#0f9d8c;text-decoration:none}
.archive-head .breadcrumb a:hover{text-decoration:underline}
.archive-head .breadcrumb__current{color:#13233b;font-weight:600}
.archive-head .breadcrumb__sep{color:#9fb0c6;margin:0 6px}
.archive-head .related-section__eyebrow{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#0f9d8c;margin-bottom:4px}
.archive-head .related-section__title{font-size:2rem !important;font-weight:800 !important;color:#13233b !important;line-height:1.2;margin-top:2px}

/* 2) Déroulant du menu (ex. « Plus ») : panneau net, texte foncé lisible */
.main-header-menu .sub-menu,
.ast-nav-menu .sub-menu{
  background:#ffffff !important;
  border:1px solid #d7deea !important;
  border-radius:10px !important;
  box-shadow:0 12px 30px -12px rgba(16,37,66,.28) !important;
  padding:6px !important;
}
.main-header-menu .sub-menu .menu-link,
.main-header-menu .sub-menu a,
.ast-nav-menu .sub-menu a{
  color:#13233b !important;
  font-weight:600 !important;
  border-radius:7px !important;
}
.main-header-menu .sub-menu a:hover,
.main-header-menu .sub-menu a:focus,
.ast-nav-menu .sub-menu a:hover{
  color:#0B1220 !important;
  background:#e7f3f1 !important;
}


/* ===== Menu principal compact : les catégories tiennent sur une ligne ===== */
@media (min-width:922px){
  .main-header-menu > .menu-item > .menu-link{padding-left:10px !important;padding-right:10px !important}
  .main-header-menu .menu-link{font-size:13.5px !important;letter-spacing:-.005em}
}

/* ===== Barre de menu de pied de page ===== */
.weitsm-footer-nav{background:#0b1220;border-top:1px solid #1b2a42;padding-block:16px}
.weitsm-footer-nav__inner{display:flex;justify-content:center}
.weitsm-footer-menu{display:flex;flex-wrap:wrap;gap:10px 26px;list-style:none;margin:0;padding:0;justify-content:center}
.weitsm-footer-menu li{margin:0}
.weitsm-footer-menu a{color:#aebcd0;font-size:14px;text-decoration:none;font-weight:500}
.weitsm-footer-menu a:hover{color:#ffffff}
