/*
Theme Name: SMIC Horaire
Theme URI: https://smic-horaire.fr/blog
Author: SMIC Horaire.fr
Author URI: https://smic-horaire.fr
Description: Thème WordPress custom pour le blog de SMIC-Horaire.fr — design system identique au site principal.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: smic-horaire
*/

/* ============================================
   SMIC-HORAIRE.FR — Blog Theme
   Design system identique au site principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --blue-primary:   #1A56DB;
  --blue-dark:      #1240A8;
  --blue-light:     #E8F0FE;
  --blue-mid:       #BDCFFA;
  --blue-pale:      #F0F4FF;
  --green:          #0E7C54;
  --green-light:    #E6F4EE;
  --orange:         #D97706;
  --orange-light:   #FEF3C7;
  --red:            #C0392B;
  --red-light:      #FDEEEC;
  --purple:         #7C3AED;
  --purple-light:   #EDE9FE;
  --gray-50:        #F9FAFB;
  --gray-100:       #F3F4F6;
  --gray-200:       #E5E7EB;
  --gray-300:       #D1D5DB;
  --gray-400:       #9CA3AF;
  --gray-500:       #6B7280;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --gray-800:       #1F2937;
  --gray-900:       #111827;
  --white:          #FFFFFF;
  --text-primary:   #1F2937;
  --text-secondary: #4B5563;
  --text-muted:     #6B7280;
  --border:         #E5E7EB;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 12px rgba(0,0,0,.08);
  --shadow-md:      0 8px 24px rgba(0,0,0,.10);
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --font:           'Inter', system-ui, -apple-system, sans-serif;
  --max-width:      1160px;
  --transition:     0.2s ease;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ── Layout ─────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(26,86,219,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--blue-primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo-fr {
  color: var(--blue-primary);
  font-weight: 800;
}
.logo-tagline {
  font-size: .80rem;
  font-weight: 500;
  color: var(--gray-500);
  line-height: 1;
  white-space: nowrap;
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 64px;
  gap: 0;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 12px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.nav-link:hover,
.nav-link.current-menu-item,
.nav-link.active {
  color: var(--blue-primary);
  background: var(--blue-pale);
  text-decoration: none;
}
.nav-link.current-menu-item,
.nav-link.active {
  border-bottom-color: var(--blue-primary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Badge "Blog" actif */
.nav-blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--blue-primary);
  color: white !important;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}
.nav-blog-badge:hover {
  background: var(--blue-dark);
  text-decoration: none;
  color: white !important;
}

/* ══════════════════════════════════════════════
   HERO BLOG
   ══════════════════════════════════════════════ */
.blog-hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 60%, #1E40AF 100%);
  color: white;
  padding: 56px 0 48px;
}
.blog-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.blog-hero p {
  font-size: 1.05rem;
  opacity: .85;
  max-width: 560px;
}
.blog-hero__accent { color: #93C5FD; }

/* ── Page hero (catégories, recherche...) ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 100%);
  color: white;
  padding: 48px 0 40px;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}
.page-hero p { font-size: 1rem; opacity: .85; max-width: 560px; }
.page-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
}

/* ══════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════ */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li::after { content: '›'; color: var(--gray-300); }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--blue-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Breadcrumb sur fond bleu */
.breadcrumb--white { color: rgba(255,255,255,.7); }
.breadcrumb--white li::after { color: rgba(255,255,255,.4); }
.breadcrumb--white a { color: rgba(255,255,255,.9); }

/* ══════════════════════════════════════════════
   LAYOUT BLOG — GRILLE PRINCIPALE + SIDEBAR
   ══════════════════════════════════════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 56px 0 80px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-sidebar { min-width: 0; }

/* ══════════════════════════════════════════════
   CARDS ARTICLES
   ══════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Card article */
.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.post-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue-primary);
  transition: width 0.3s ease;
}
.post-card:hover::after { width: 100%; }
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,86,219,.13);
  border-color: var(--blue-mid);
}

/* Thumbnail */
.post-card__thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--blue-pale);
}
.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  height: 200px;
  background: var(--blue-pale);
}

/* Body */
.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Meta */
.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.post-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue-primary);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-card__cat:hover { background: var(--blue-primary); color: white; text-decoration: none; }
.post-card__cat--1 { background: #DBEAFE; color: #1A56DB; }
.post-card__cat--2 { background: #D1FAE5; color: #0E7C54; }
.post-card__cat--3 { background: #FEF3C7; color: #D97706; }
.post-card__cat--4 { background: #EDE9FE; color: #7C3AED; }
.post-card__cat--5 { background: #FCE7F3; color: #DB2777; }
.post-card__date {
  font-size: .75rem;
  color: var(--text-muted);
}
.post-card__read-time {
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Title */
.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin: 0;
  transition: color 0.2s;
}
.post-card__title a {
  color: inherit;
  text-decoration: none;
}
.post-card:hover .post-card__title a { color: var(--blue-primary); }

/* Excerpt */
.post-card__excerpt {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Read more */
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s;
}
.post-card:hover .post-card__link { gap: 8px; }

/* ── Featured post (premier article en pleine largeur) ── */
.post-card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.post-card--featured .post-card__thumb {
  width: 360px;
  min-width: 360px;
  height: auto;
  min-height: 260px;
  flex-shrink: 0;
}
.post-card--featured .post-card__title { font-size: 1.3rem; }
.post-card--featured .post-card__excerpt { -webkit-line-clamp: 4; }

/* ══════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════ */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.2s;
  background: white;
}
.blog-pagination .page-numbers:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-pale);
  text-decoration: none;
}
.blog-pagination .page-numbers.current {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
}
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
  font-size: .82rem;
}
.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════ */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget__head {
  background: var(--blue-primary);
  color: white;
  padding: 14px 20px;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .02em;
}
.sidebar-widget__body { padding: 20px; }

/* Recherche */
.sidebar-search {
  display: flex;
  gap: 8px;
}
.sidebar-search input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.sidebar-search input:focus { border-color: var(--blue-primary); }
.sidebar-search button {
  background: var(--blue-primary);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-search button:hover { background: var(--blue-dark); }

/* Catégories */
.sidebar-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar-cats li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.sidebar-cats li a:hover {
  background: var(--blue-pale);
  color: var(--blue-primary);
  border-color: var(--blue-mid);
}
.sidebar-cats li a.current-cat {
  background: var(--blue-pale);
  color: var(--blue-primary);
  font-weight: 700;
  border-color: var(--blue-mid);
}
.sidebar-cats .cat-count {
  background: var(--gray-100);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.sidebar-cats li a:hover .cat-count { background: var(--blue-light); color: var(--blue-primary); }

/* Articles récents */
.sidebar-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: var(--blue-pale); margin: 0 -20px; padding: 12px 20px; border-radius: var(--radius-sm); }
.sidebar-post__thumb {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-pale);
}
.sidebar-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  width: 60px; height: 60px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.sidebar-post__title {
  font-size: .84rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.sidebar-post:hover .sidebar-post__title { color: var(--blue-primary); }
.sidebar-post__date { font-size: .75rem; color: var(--text-muted); }

/* CTA sidebar — retour site principal */
.sidebar-cta {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}
.sidebar-cta__icon { font-size: 2rem; margin-bottom: 10px; }
.sidebar-cta h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: white; }
.sidebar-cta p { font-size: .82rem; opacity: .85; margin-bottom: 16px; color: white; }
.sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: var(--blue-primary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.sidebar-cta__btn:hover { background: var(--blue-pale); transform: translateY(-1px); text-decoration: none; color: var(--blue-primary); }

/* Tags cloud */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.sidebar-tag:hover {
  background: var(--blue-primary);
  color: white;
  border-color: var(--blue-primary);
  text-decoration: none;
}

/* Newsletter widget */
.sidebar-newsletter input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: var(--font);
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.sidebar-newsletter input[type="email"]:focus { border-color: var(--blue-primary); }
.sidebar-newsletter button {
  width: 100%;
  background: var(--blue-primary);
  color: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: background 0.2s;
  font-family: var(--font);
}
.sidebar-newsletter button:hover { background: var(--blue-dark); }

/* ══════════════════════════════════════════════
   ARTICLE SINGLE
   ══════════════════════════════════════════════ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 56px 0 80px;
  align-items: start;
}

/* Header article */
.article-header {
  margin-bottom: 32px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue-primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.article-cat:hover { background: var(--blue-primary); color: white; text-decoration: none; }
.article-date { font-size: .82rem; color: var(--text-muted); }
.article-read-time { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.article-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--blue-light);
  margin-bottom: 24px;
}

/* Thumbnail article */
.article-thumbnail {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.article-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Contenu article */
.article-content {
  font-size: .975rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 40px 0 14px;
  padding-bottom: 10px;
border-bottom: 3px solid var(--blue-primary);
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 10px;
}
.article-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 20px 0 8px;
}
.article-content p { margin-bottom: 16px; }
.article-content a { color: var(--blue-primary); }
.article-content a:hover { text-decoration: underline; }
.article-content strong { color: var(--gray-900); font-weight: 700; }
.article-content em { font-style: italic; }

.article-content ul,
.article-content ol {
  margin: 16px 0 20px 0;
  padding: 0;
  list-style: none;
}
.article-content ul li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-secondary);
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 7px; height: 7px;
  background: var(--blue-primary);
  border-radius: 50%;
}
.article-content ol {
  counter-reset: ol-counter;
}
.article-content ol li {
  padding: 5px 0 5px 32px;
  position: relative;
  counter-increment: ol-counter;
}
.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  width: 22px; height: 22px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 7px;
}

/* Blockquote */
.article-content blockquote {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-800);
}
.article-content blockquote p { margin: 0; color: var(--gray-800); }

/* Code */
.article-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .88em;
  font-family: 'Courier New', monospace;
  color: var(--red);
}
.article-content pre {
  background: var(--gray-900);
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 20px 0;
  font-size: .88rem;
  line-height: 1.6;
}
.article-content pre code { background: none; color: inherit; padding: 0; }

/* Tables dans l'article */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-content thead { background: var(--blue-primary); color: white; }
.article-content thead th { padding: 12px 16px; text-align: left; font-weight: 600; font-size: .82rem; }
.article-content tbody tr { border-bottom: 1px solid var(--border); }
.article-content tbody tr:hover { background: var(--blue-pale); }
.article-content tbody td { padding: 10px 16px; color: var(--text-secondary); }

/* Images dans l'article */
.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  max-width: 100%;
}

/* Info box dans l'article */
.article-content .wp-block-callout,
.article-content .info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: .92rem;
}

/* ── Footer article ── */
.article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border);
}

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.article-tags__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.article-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.article-tag:hover { background: var(--blue-primary); color: white; border-color: var(--blue-primary); text-decoration: none; }

/* Auteur */
.article-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.article-author__avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}
.article-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article-author__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.article-author__role {
  font-size: .78rem;
  color: var(--blue-primary);
  font-weight: 600;
  margin-bottom: 8px;
}
.article-author__bio { font-size: .85rem; color: var(--text-secondary); line-height: 1.55; }

/* Partage */
.article-share {
  margin-bottom: 32px;
}
.article-share__label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.share-btn--twitter { background: #1DA1F2; color: white; }
.share-btn--twitter:hover { background: #0d8fd9; text-decoration: none; color: white; }
.share-btn--linkedin { background: #0A66C2; color: white; }
.share-btn--linkedin:hover { background: #084e96; text-decoration: none; color: white; }
.share-btn--copy { background: var(--gray-100); color: var(--gray-700); border-color: var(--border); }
.share-btn--copy:hover { background: var(--gray-200); text-decoration: none; }

/* ── Navigation articles prev/next ── */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.post-nav-link:hover {
  background: var(--blue-pale);
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.post-nav-link--prev { text-align: left; }
.post-nav-link--next { text-align: right; }
.post-nav-link__dir {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-nav-link--next .post-nav-link__dir { justify-content: flex-end; }
.post-nav-link__title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  transition: color 0.2s;
}
.post-nav-link:hover .post-nav-link__title { color: var(--blue-primary); }

/* ══════════════════════════════════════════════
   COMMENTAIRES
   ══════════════════════════════════════════════ */
.comments-section {
  margin-top: 48px;
}
.comments-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-light);
}

/* Liste commentaires */
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 1.1rem;
}
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__meta { margin-bottom: 6px; }
.comment__author { font-size: .9rem; font-weight: 700; color: var(--gray-900); }
.comment__date { font-size: .78rem; color: var(--text-muted); margin-left: 8px; }
.comment__text { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
.comment__reply {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue-primary);
  text-decoration: none;
}
.comment__reply:hover { text-decoration: underline; }

/* Formulaire commentaire */
.comment-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.comment-form .form-group { margin-bottom: 16px; }
.comment-form label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--blue-primary); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .btn-submit {
  background: var(--blue-primary);
  color: white;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: background 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.comment-form .btn-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════
   PAGE CATÉGORIE / ARCHIVE
   ══════════════════════════════════════════════ */
.cat-header {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 100%);
  color: white;
  padding: 48px 0 40px;
}
.cat-header__badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: .78rem;
  font-weight: 600;
  color: white;
  margin-bottom: 12px;
}
.cat-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.cat-header p { font-size: .95rem; opacity: .85; }

/* Filtres catégories */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--gray-700);
  background: white;
  transition: all 0.2s;
}
.cat-filter:hover { border-color: var(--blue-primary); color: var(--blue-primary); background: var(--blue-pale); text-decoration: none; }
.cat-filter--active { background: var(--blue-primary); color: white; border-color: var(--blue-primary); }
.cat-filter--active:hover { background: var(--blue-dark); color: white; }

/* ══════════════════════════════════════════════
   PAGE DE RECHERCHE
   ══════════════════════════════════════════════ */
.search-header { padding: 48px 0 32px; }
.search-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.search-form-big {
  display: flex;
  gap: 12px;
  max-width: 640px;
}
.search-form-big input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.search-form-big input:focus { border-color: var(--blue-primary); }
.search-form-big button {
  background: var(--blue-primary);
  color: white;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-form-big button:hover { background: var(--blue-dark); }

/* No results */
.no-results {
  text-align: center;
  padding: 80px 20px;
}
.no-results__icon { font-size: 4rem; margin-bottom: 20px; }
.no-results h2 { font-size: 1.4rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.no-results p { color: var(--text-secondary); margin-bottom: 24px; }

/* ══════════════════════════════════════════════
   404
   ══════════════════════════════════════════════ */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}
.error-404__code { font-size: 8rem; font-weight: 800; color: var(--blue-primary); line-height: 1; }
.error-404 h1 { font-size: 1.8rem; font-weight: 700; color: var(--gray-900); margin: 12px 0 12px; }
.error-404 p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1rem; }

/* ══════════════════════════════════════════════
   BLOC RETOUR SITE PRINCIPAL (bas d'article)
   ══════════════════════════════════════════════ */
.back-to-site {
  background: linear-gradient(135deg, var(--blue-primary) 0%, #2563EB 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  color: white;
  margin: 48px 0;
}
.back-to-site h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.back-to-site p { font-size: 1rem; opacity: .85; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.back-to-site__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.back-to-site__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.back-to-site__btn--white { background: white; color: var(--blue-primary); }
.back-to-site__btn--white:hover { background: var(--blue-pale); text-decoration: none; color: var(--blue-primary); }
.back-to-site__btn--outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }
.back-to-site__btn--outline:hover { background: rgba(255,255,255,.1); border-color: white; text-decoration: none; color: white; }

/* ══════════════════════════════════════════════
   RELATED POSTS
   ══════════════════════════════════════════════ */
.related-posts { margin-top: 48px; }
.related-posts h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.6;
  max-width: 240px;
  margin-top: 10px;
}
.footer-logo-name {
  display: inline-block;
  color: white;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.footer-logo-fr {
  color: var(--blue-primary);
  font-weight: 800;
}
.footer-col h4 {
  color: white;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .03em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .82rem;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-col__subtitle {
  margin-top: 1.2rem !important;
  color: white;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .03em;
  display: block;
}
.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  font-size: .78rem;
}
.footer-bottom a { color: var(--gray-400); text-decoration: none; }
.footer-bottom a:hover { color: white; }
.footer-legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
}
.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #BBF7D0;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 16px;
}

/* ══════════════════════════════════════════════
   REVEAL ON SCROLL
   ══════════════════════════════════════════════ */
.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-on-scroll.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn--primary { background: var(--blue-primary); color: white; }
.btn--primary:hover { background: var(--blue-dark); color: white; text-decoration: none; }
.btn--outline { background: transparent; border: 1.5px solid var(--blue-primary); color: var(--blue-primary); }
.btn--outline:hover { background: var(--blue-pale); text-decoration: none; }

/* ══════════════════════════════════════════════
   WORDPRESS ALIGNEMENTS & BLOCS GUTENBERG
   ══════════════════════════════════════════════ */
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: var(--radius); }
.wp-block-image figcaption {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}
.wp-block-quote {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}
.wp-block-quote p { color: var(--gray-800); font-style: italic; font-size: 1.05rem; margin: 0; }
.wp-block-quote cite { display: block; font-size: .82rem; color: var(--text-muted); margin-top: 8px; font-style: normal; font-weight: 600; }
.wp-block-separator { border: none; border-top: 2px solid var(--border); margin: 32px 0; }
.wp-block-table table { margin: 0; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; max-width: 100vw; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }
.wp-block-embed { margin: 24px 0; }
.wp-block-embed iframe { max-width: 100%; border-radius: var(--radius); }

/* ══════════════════════════════════════════════
   ADMIN BAR COMPENSATION
   ══════════════════════════════════════════════ */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-layout,
  .single-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .blog-sidebar .sidebar-cta { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: white;
    flex-direction: column !important;
    align-items: stretch;
    padding: 12px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    gap: 2px;
    z-index: 99;
    height: auto;
  }
  .nav-menu.open { display: flex !important; }
  .nav-item { height: auto; }
  .nav-link {
    height: auto;
    padding: 12px 16px;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
    margin-bottom: 0;
  }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__thumb { width: 100%; min-width: unset; }
  .post-navigation { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar .sidebar-cta { grid-column: auto; }
  .related-posts__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .comment-form .form-row { grid-template-columns: 1fr; }
  .back-to-site { padding: 32px 20px; }
  .back-to-site__actions { flex-direction: column; align-items: center; }
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .footer-legal { justify-content: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .cat-filters { gap: 6px; }
  .share-buttons { gap: 6px; }
  .related-posts__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   WISEWAND — Encadrés, FAQ, Audio
   ══════════════════════════════════════════════ */

/* Encadrés "essentiel à retenir" (tous formats Wisewand) */
[class*="dirf-summary"],
[class*="dirf-callout"],
[class*="dirf-key"],
[class*="dirf-retenir"],
[class*="dirf-essential"],
[class*="dirf-highlight"],
[class*="dirf-encart"],
[class*="dirf-box"] {
  border-left: 4px solid var(--blue-primary) !important;
  background: var(--blue-pale) !important;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
}

/* Tableau d'information Wisewand */
[class*="dirf-infotable"],
[class*="dirf-table"],
[class*="dirf-info"] table {
  border: 2px solid var(--blue-primary) !important;
  border-radius: var(--radius);
  overflow: hidden;
}
[class*="dirf-infotable"] thead,
[class*="dirf-table"] thead,
[class*="dirf-info"] thead {
  background: var(--blue-primary) !important;
  color: white !important;
}

/* TOC (Table of contents) */
[class*="dirf-toc"] {
  border: 2px solid var(--blue-primary) !important;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--blue-pale);
}
[class*="dirf-toc"] a { color: var(--blue-primary) !important; }

/* Widget interactif */
[class*="dirf-widget"] {
  border: 2px solid var(--blue-primary) !important;
  border-radius: var(--radius);
}

/* ── FAQ Accordéon ── */
[class*="dirf-faq"] { margin: 24px 0; }

[class*="dirf-faq-item"],
[class*="dirf-faq"] > div {
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

[class*="dirf-faq-question"],
[class*="dirf-faq"] h3,
[class*="dirf-faq"] h4 {
  cursor: pointer !important;
  padding: 14px 18px !important;
  background: var(--blue-pale) !important;
  color: var(--blue-dark) !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  border-left: none !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  user-select: none;
}
[class*="dirf-faq-question"]::after,
[class*="dirf-faq"] h3::after,
[class*="dirf-faq"] h4::after {
  content: '+' !important;
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  color: var(--blue-primary) !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  display: inline !important;
}
[class*="dirf-faq-question"].open::after,
[class*="dirf-faq"] h3.open::after,
[class*="dirf-faq"] h4.open::after {
  content: '−' !important;
}

[class*="dirf-faq-answer"],
[class*="dirf-faq"] p,
[class*="dirf-faq"] > div > p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 18px;
  background: white;
}
[class*="dirf-faq-answer"].open,
[class*="dirf-faq"] p.open {
  max-height: 800px;
  padding: 14px 18px;
  border-top: 1px solid var(--blue-mid);
}

/* ── Lecteur audio Wisewand — fond bleu, texte blanc ── */
[class*="dirf-audio"],
.dirf-audio-player,
audio {
  width: 100%;
  margin: 20px 0;
  accent-color: var(--blue-primary);
}

/* Conteneur audio Wisewand (wrapper) */
[class*="dirf-audio-wrapper"],
[class*="dirf-audio-container"],
[class*="dirf-audio-player"],
.ww-audio {
  background: var(--blue-primary) !important;
  border-radius: var(--radius) !important;
  padding: 16px 20px !important;
  color: white !important;
  margin: 20px 0;
}
[class*="dirf-audio"] *,
[class*="dirf-audio-wrapper"] * {
  color: white !important;
}
[class*="dirf-audio"] button,
[class*="dirf-audio-player"] button {
  background: white !important;
  color: var(--blue-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
}