/* ============================================
   BLOG — Astra Child Électricien
   Utilisé sur single.php, archive.php, page-conseils.php, page-questions.php
   Variables, header et footer → shared.css
   ============================================ */

/* ── Base ── */
body.blog-page {
  font-family: var(--font-b);
  background: var(--blanc);
  color: var(--texte);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
body.blog-page a { text-decoration: none; color: inherit; }
body.blog-page *, body.blog-page *::before, body.blog-page *::after { box-sizing: border-box; }

/* ── Masque éléments Astra sur les pages blog ── */
body.blog-page .ast-header-break-point,
body.blog-page #masthead,
body.blog-page #colophon,
body.blog-page .ast-breadcrumbs-wrap,
body.blog-page .site-below-header-wrap,
body.blog-page .ast-above-header-wrap { display: none !important; }

body.blog-page #content,
body.blog-page .ast-container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

/* ── Container ── */
.container-blog { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Layout principal ── */
.blog-main { min-height: 60vh; }

/* ══════════════════════════════════════════
   DESIGN "KNOWLEDGE HUB" (Liste Horizontale)
══════════════════════════════════════════ */

/* ── Header ── */
.hub-header {
  padding: 72px 24px 48px;
  background: var(--blanc);
  text-align: center;
}
.hub-titre {
  font-family: var(--font-t);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--texte);
  margin-bottom: 16px;
}
.hub-sub {
  font-size: 1.1rem;
  color: var(--texte-doux);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}
.hub-body { padding-bottom: 80px; }

/* ── Étiquettes (Tags) ── */
.hub-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--rouge); color: white;
  padding: 6px 12px; border-radius: 4px;
  margin-bottom: 20px;
}
.hub-tag-dark {
  display: inline-block;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px;
  background: var(--bleu-clair); color: var(--bleu);
  padding: 5px 10px; border-radius: 4px;
}

/* ── ARTICLE À LA UNE (Immersif) ── */
.hub-featured {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  margin-bottom: 64px;
}
.hub-featured-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transition: transform 0.6s ease;
}
.hub-featured:hover .hub-featured-bg { transform: scale(1.03); }
.hub-featured-bg-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--bleu); z-index: 0;
}
.hub-featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,51,0.95) 0%, rgba(13,27,51,0.2) 100%);
  z-index: 1;
}
.hub-featured-content {
  position: relative; z-index: 2;
  max-width: 700px; color: white;
}
.hub-featured-titre {
  font-family: var(--font-t);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hub-featured-titre a { color: white; transition: color 0.2s; }
.hub-featured-titre a:hover { color: #4ade80; }
.hub-featured-excerpt {
  font-size: 1.05rem; color: rgba(255,255,255,0.7);
  line-height: 1.6; margin-bottom: 24px;
}
.hub-featured-meta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px; font-size: 0.9rem; font-weight: 500;
}
.hub-btn-lire {
  font-weight: 700; color: white; text-transform: uppercase; letter-spacing: 1px;
}

/* ── LISTE HORIZONTALE (L'ergonomie absolue) ── */
.hub-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
}
.hub-card-hz {
  display: flex;
  align-items: center;
  gap: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
}
.hub-card-hz:hover {
  border-color: #c9d9f0;
  box-shadow: 0 12px 32px rgba(27,58,107,0.06);
  transform: translateY(-2px);
}
.hz-img-wrap {
  width: 280px; height: 180px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}
.hz-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hub-card-hz:hover .hz-img { transform: scale(1.04); }
.hz-img-fallback { width: 100%; height: 100%; background: var(--gris-bg); }

.hz-content { flex: 1; }
.hz-meta-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.hz-date { font-size: 0.8rem; color: var(--muted); font-weight: 500; }
.hz-titre {
  font-family: var(--font-b);
  font-size: 1.3rem; font-weight: 700;
  color: var(--texte); line-height: 1.35; margin-bottom: 10px;
}
.hz-titre a { color: inherit; }
.hub-card-hz:hover .hz-titre a { color: var(--bleu); }
.hz-excerpt {
  font-size: 0.95rem; color: var(--texte-doux); line-height: 1.6; margin: 0;
}

/* La flèche d'action (Micro-interaction) */
.hz-action {
  padding-right: 16px;
  flex-shrink: 0;
}
.hz-arrow-btn {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--gris-bg); color: var(--bleu);
  border-radius: 50%;
  transition: all 0.2s ease;
}
.hub-card-hz:hover .hz-arrow-btn {
  background: var(--bleu); color: white;
  transform: translateX(4px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hub-featured { padding: 32px; min-height: 400px; }
  .hub-card-hz { gap: 24px; padding: 16px; }
  .hz-img-wrap { width: 220px; height: 160px; }
  .hz-action { display: none; /* On masque la flèche sur tablette pour gagner de la place */ }
}
@media (max-width: 600px) {
  .hub-header { padding: 48px 16px 32px; }
  .hub-featured { padding: 24px; min-height: 340px; border-radius: 16px; }
  .hub-featured-titre { font-size: 1.5rem; }
  
  /* Sur mobile, on repasse la carte à la verticale car l'écran est trop étroit */
  .hub-card-hz { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
  .hz-img-wrap { width: 100%; height: auto; aspect-ratio: 16/9; }
  .hz-titre { font-size: 1.15rem; }
}

/* ══════════════════════════════════════════
   HERO ARCHIVE — archive.php · page-questions · page-legal
   (Utilisé sur toutes les pages en mode "listing" ou légales)
══════════════════════════════════════════ */
.blog-archive-hero {
  background: var(--bleu);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.blog-archive-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 33%, rgba(255,255,255,0.35) 33%, rgba(255,255,255,0.35) 66%, var(--rouge) 66%);
}
.blog-archive-hero::after {
  content: '';
  position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.03); pointer-events: none;
}
.blog-archive-hero .container-blog { position: relative; z-index: 1; }

/* Breadcrumb sur fond sombre */
.blog-archive-hero .blog-breadcrumb {
  color: rgba(255,255,255,0.45);
  padding-top: 0;
  padding-bottom: 18px;
}
.blog-archive-hero .blog-breadcrumb a { color: rgba(255,255,255,0.5); }
.blog-archive-hero .blog-breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.blog-archive-hero .blog-breadcrumb span[aria-hidden] { opacity: 0.3; }

/* Badge de section */
.blog-section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

/* Titre principal */
.blog-archive-titre {
  font-family: var(--font-t);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin: 0 0 14px;
}

/* Sous-titre descriptif */
.blog-archive-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  line-height: 1.65;
  margin: 0;
}

/* Petite date (pages légales) */
.legal-date {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

/* Zone de contenu sous le hero */
.blog-archive-body {
  padding-top: 40px;
  padding-bottom: 64px;
}

/* ══════════════════════════════════════════
   GRILLE ARTICLES — archive.php
══════════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: #c9d9f0;
  box-shadow: 0 8px 24px rgba(27,58,107,0.08);
  transform: translateY(-2px);
}

.card-img-wrap { display: block; overflow: hidden; height: 200px; background: var(--bleu-clair); }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.blog-card:hover .card-img { transform: scale(1.04); }

.card-img-placeholder {
  height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--gris-bg2); color: var(--bleu-mid);
}

.card-body {
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; flex: 1;
}

.card-cat { margin-bottom: 8px; }
.card-cat a {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--bleu-mid); background: var(--bleu-clair);
  padding: 3px 9px; border-radius: 4px; transition: background 0.15s;
}
.card-cat a:hover { background: #dce8f8; }

.card-titre {
  font-family: var(--font-b); font-size: 1.05rem; font-weight: 700;
  color: var(--texte); line-height: 1.4; margin: 0 0 8px;
}
.card-titre a { color: inherit; }
.blog-card:hover .card-titre a { color: var(--bleu); }

.card-extrait {
  font-size: 0.88rem; color: var(--texte-doux);
  line-height: 1.6; margin: 0 0 16px; flex: 1;
}

.card-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto;
}
.card-date { font-size: 0.76rem; color: var(--muted); }
.card-lire { font-size: 0.8rem; font-weight: 700; color: var(--bleu); transition: color 0.15s; }
.card-lire:hover { color: var(--rouge); }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.blog-pagination { 
  text-align: center; 
  margin: 24px 0 48px; 
  padding: 20px;
  background: var(--gris-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.blog-pagination .nav-links { 
  display: flex; 
  justify-content: center; 
  gap: 8px; 
  flex-wrap: wrap; 
}
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--texte-doux);
  transition: all 0.2s;
  position: relative;
  background: white;
}
.blog-pagination .page-numbers:hover { 
  border-color: var(--bleu); 
  color: var(--bleu);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(27, 58, 107, 0.15);
}
.blog-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-mid) 100%);
  color: white; 
  border-color: var(--bleu);
  box-shadow: 0 2px 12px rgba(27, 58, 107, 0.25);
}
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto; 
  padding: 0 16px; 
  font-size: 0.82rem;
  background: var(--blanc);
}
.blog-pagination .page-numbers.prev:hover,
.blog-pagination .page-numbers.next:hover {
  background: var(--bleu-clair);
}

/* ══════════════════════════════════════════
   BANNIÈRE CTA ARCHIVE
══════════════════════════════════════════ */
.archive-cta {
  background: var(--bleu); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 56px;
  position: relative; overflow: hidden;
}
.archive-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, rgba(255,255,255,0.15) 33%, rgba(255,255,255,0.4) 33%, rgba(255,255,255,0.4) 66%, var(--rouge) 66%);
}
.archive-cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.archive-cta-titre {
  font-family: var(--font-t); font-size: 1.25rem; font-weight: 700;
  color: white; margin-bottom: 4px;
}
.archive-cta-sub { font-size: 0.84rem; color: rgba(255,255,255,0.5); }
.archive-cta-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.blog-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.76rem; color: var(--muted);
  padding: 18px 0 22px;
}
.blog-breadcrumb a { color: var(--muted); transition: color 0.15s; }
.blog-breadcrumb a:hover { color: var(--bleu); }
.blog-breadcrumb span[aria-hidden] { opacity: 0.4; }

/* ══════════════════════════════════════════
   BARRE PROGRESSION LECTURE
══════════════════════════════════════════ */
#read-progress {
  position: fixed;
  top: var(--header-h); left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: linear-gradient(to right, var(--bleu) 33.33%, white 33.33%, white 66.66%, var(--rouge) 66.66%);
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   HERO ARTICLE (single.php)
══════════════════════════════════════════ */
.article-hero {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 44px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--bleu) 33%, #e2e8f0 33%, #e2e8f0 66%, var(--rouge) 66%);
}
.article-hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: var(--bleu-clair); opacity: 0.4; pointer-events: none;
}
.article-hero .blog-breadcrumb { padding-top: 0; position: relative; z-index: 1; }
.article-hero .article-cats,
.article-hero .article-titre,
.article-hero .article-meta { position: relative; z-index: 1; }
.article-hero .article-titre {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  max-width: 820px;
  margin-bottom: 16px;
}
.article-hero .article-meta { margin-top: 0; }

.meta-reading { display: inline-flex; align-items: center; gap: 4px; }

/* ── Image à la une pleine largeur ── */
.article-cover { border-bottom: 1px solid var(--border); overflow: hidden; }
.article-cover .container-blog { padding-top: 0; padding-bottom: 0; }
.article-cover-img {
  width: 100%; max-height: 460px;
  object-fit: cover; display: block;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ══════════════════════════════════════════
   LAYOUT ARTICLE + SIDEBAR
══════════════════════════════════════════ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* ══════════════════════════════════════════
   ARTICLE
══════════════════════════════════════════ */
.blog-article { min-width: 0; }

.article-header { margin-bottom: 28px; }

.article-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article-cat-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--bleu-mid); background: var(--bleu-clair);
  padding: 4px 10px; border-radius: 4px; transition: background 0.15s;
}
.article-cat-tag:hover { background: #dce8f8; }

.article-titre {
  font-family: var(--font-t);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; line-height: 1.2;
  color: var(--texte); margin-bottom: 16px;
}

.article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 0.78rem; color: var(--muted);
}
.meta-sep { opacity: 0.4; }
.meta-author { display: flex; align-items: center; gap: 4px; }

/* Image à la une */
.article-thumbnail { margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.article-img { width: 100%; height: auto; display: block; }

/* ── Typographie du contenu ── */
.article-content { font-size: 1rem; line-height: 1.78; color: var(--texte-doux); }

.article-content h2 {
  font-family: var(--font-t); font-size: 1.45rem; font-weight: 700;
  color: var(--texte); margin: 2.2em 0 0.7em;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-family: var(--font-t); font-size: 1.18rem; font-weight: 700;
  color: var(--bleu); margin: 1.8em 0 0.5em;
}
.article-content h4 {
  font-size: 1rem; font-weight: 700; color: var(--texte);
  margin: 1.4em 0 0.4em;
}

.article-content p { margin-bottom: 1.2em; }

.article-content ul, .article-content ol {
  padding-left: 0; margin: 0 0 1.4em; list-style: none;
}
.article-content ul li, .article-content ol li {
  position: relative; padding-left: 22px; margin-bottom: 0.5em;
}
.article-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bleu-mid);
}
.article-content ol { counter-reset: ol-counter; }
.article-content ol li::before {
  content: counter(ol-counter);
  counter-increment: ol-counter;
  position: absolute; left: 0; top: 2px;
  font-size: 0.72rem; font-weight: 700; color: var(--bleu-mid);
  background: var(--bleu-clair); width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.article-content a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--rouge); }

.article-content img {
  max-width: 100%; height: auto; border-radius: var(--radius);
  margin: 1.2em 0; display: block;
}

.article-content blockquote {
  border-left: 3px solid var(--rouge); margin: 1.8em 0;
  padding: 14px 20px; background: var(--rouge-clair);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--texte);
}
.article-content blockquote p { margin: 0; }

.article-content code {
  font-family: 'Courier New', monospace; font-size: 0.88em;
  background: var(--gris-bg2); color: var(--bleu);
  padding: 2px 6px; border-radius: 4px;
}

.article-content strong { color: var(--texte); font-weight: 700; }

/* Encadrés informatifs (class .tip, .warning, .danger) */
.article-content .tip, .article-content .info {
  background: var(--bleu-clair); border-left: 3px solid var(--bleu-mid);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0; font-size: 0.92rem;
}
.article-content .warning {
  background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0; font-size: 0.92rem;
}
.article-content .danger {
  background: var(--rouge-clair); border-left: 3px solid var(--rouge);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0; font-size: 0.92rem;
}

/* ── CTA bas d'article ── */
.article-cta {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bleu); border-radius: var(--radius-lg);
  padding: 28px 28px; margin-top: 48px;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, rgba(255,255,255,0.1) 33%, rgba(255,255,255,0.3) 33%, rgba(255,255,255,0.3) 66%, var(--rouge) 66%);
}
.article-cta-icon {
  flex-shrink: 0; color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08); border-radius: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}
.article-cta-titre {
  font-family: var(--font-t); font-size: 1.2rem; font-weight: 700;
  color: white; margin-bottom: 4px;
}
.article-cta-sub { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.article-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Boutons partagés CTA ── */
.cta-btn-tel {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rouge); color: white;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  transition: background 0.15s; white-space: nowrap;
}
.cta-btn-tel:hover { background: var(--rouge-hover); }

.cta-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: #128C7E; color: white;
  padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  transition: background 0.15s; white-space: nowrap;
}
.cta-btn-wa:hover { background: #0e7a6c; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.blog-sidebar { min-width: 0; }

.sidebar-cta {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--blanc); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}

.sidebar-tricolore {
  height: 4px;
  background: linear-gradient(to right, var(--bleu) 33%, var(--blanc) 33%, var(--blanc) 66%, var(--rouge) 66%);
}

.sidebar-titre {
  font-family: var(--font-t); font-size: 1.1rem; font-weight: 700;
  color: var(--texte); padding: 20px 20px 4px;
}
.sidebar-sub { font-size: 0.78rem; color: var(--muted); padding: 0 20px 18px; line-height: 1.6; }

.sidebar-btn-tel {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--rouge); color: white;
  padding: 14px 20px; font-weight: 700; font-size: 0.92rem;
  margin: 0 16px 10px; border-radius: var(--radius);
  transition: background 0.15s; text-align: center;
}
.sidebar-btn-tel:hover { background: var(--rouge-hover); }

.sidebar-btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blanc); color: #128C7E;
  border: 1.5px solid #128C7E;
  padding: 11px 20px; font-weight: 700; font-size: 0.88rem;
  margin: 0 16px 20px; border-radius: var(--radius);
  transition: all 0.15s; text-align: center;
}
.sidebar-btn-wa:hover { background: #f0fdf4; }

.sidebar-garanties {
  list-style: none; padding: 0 20px 18px; margin: 0;
  border-top: 1px solid var(--border); padding-top: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.sidebar-garanties li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--texte-doux);
}
.sidebar-garanties li svg { flex-shrink: 0; color: #15803d; }

.sidebar-horaires {
  background: var(--gris-bg); padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-horaires-titre {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--muted); margin-bottom: 4px;
}
.sidebar-horaires-texte { font-size: 0.8rem; color: var(--texte-doux); line-height: 1.6; }
.sidebar-horaires-urgence { color: var(--rouge); font-size: 0.75rem; }

/* ── Zones sidebar ── */
.sidebar-zones { background: var(--gris-bg); padding: 14px 20px 18px; border-top: 1px solid var(--border); }
.sidebar-zones-titre { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 10px; }
.sidebar-zones-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.sidebar-zones-chips span {
  font-size: 0.72rem; padding: 3px 10px;
  background: #f0f4fb; border-radius: 999px;
  color: var(--bleu); border: 1px solid rgba(27,58,107,0.08);
}
.sidebar-zone-base { background: var(--bleu) !important; color: white !important; font-weight: 600; border-color: var(--bleu) !important; }

/* ══════════════════════════════════════════
   BLOG VIDE
══════════════════════════════════════════ */
.blog-vide { color: var(--muted); font-style: italic; padding: 40px 0; text-align: center; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar { order: -1; }
  .sidebar-cta { position: static; }
  .sidebar-btn-tel, .sidebar-btn-wa { margin: 0 0 10px; border-radius: var(--radius); }
  .sidebar-garanties, .sidebar-horaires, .sidebar-zones { display: none; }
  .article-cta { flex-direction: column; }
  .article-cta-icon { display: none; }
  .archive-cta-inner { flex-direction: column; }
  .archive-cta-actions { width: 100%; }
  .archive-cta-actions .cta-btn-tel,
  .archive-cta-actions .cta-btn-wa { justify-content: center; flex: 1; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-archive-hero { padding: 40px 20px 38px; }
  .blog-archive-titre { font-size: 1.5rem; }
  .container-blog { padding: 0 16px; }
  .article-hero { padding: 24px 20px 36px; }
  .article-hero .article-titre { font-size: 1.6rem; }
  .article-cover-img { max-height: 220px; border-radius: 0; }
  .article-cta-buttons { flex-direction: column; }
  .cta-btn-tel, .cta-btn-wa { justify-content: center; }
  .article-cta { padding: 22px 18px; }
  .blog-layout { padding-top: 32px; padding-bottom: 48px; }
}

/* ══════════════════════════════════════════
   PAGE FAQ — Vos questions
══════════════════════════════════════════ */

/* Container principal */
.faq-container {
  padding-top: 56px;
  padding-bottom: 72px;
}

/* ── Groupe thématique ── */
.faq-group {
  margin-bottom: 48px;
}

.faq-group-titre {
  font-family: var(--font-t);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bleu-clair);
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-group-titre::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--rouge);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Liste d'items ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Item ── */
.faq-item {
  background: var(--blanc);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.faq-item:hover {
  border-color: #c9d9f0;
}
.faq-item.faq-open {
  border-color: var(--bleu-mid);
  box-shadow: 0 2px 16px rgba(27,58,107,0.07);
}

/* ── Bouton question ── */
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-b);
  transition: background 0.15s;
}
.faq-btn:hover {
  background: var(--gris-bg);
}
.faq-item.faq-open .faq-btn {
  background: var(--bleu-clair);
}

.faq-q {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--texte);
  line-height: 1.45;
  flex: 1;
}
.faq-item.faq-open .faq-q {
  color: var(--bleu);
}

/* ── Chevron animé ── */
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.faq-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--bleu-mid);
}

/* ── Panel réponse (animation height via grid) ── */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.faq-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

/* Contenu de la réponse */
.faq-panel-inner > * {
  padding: 0 22px 22px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--texte-doux);
}
.faq-panel-inner p {
  padding: 0 22px;
  margin: 0 0 0.8em;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--texte-doux);
}
.faq-panel-inner p:first-child { padding-top: 4px; }
.faq-panel-inner p:last-child  { padding-bottom: 20px; margin-bottom: 0; }

.faq-panel-inner ul,
.faq-panel-inner ol {
  padding: 0 22px 16px 44px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--texte-doux);
  line-height: 1.7;
}
.faq-panel-inner ul { list-style: disc; }
.faq-panel-inner ol { list-style: decimal; }
.faq-panel-inner li { margin-bottom: 4px; }

.faq-panel-inner strong { color: var(--texte); }
.faq-panel-inner a { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.faq-panel-inner a:hover { color: var(--rouge); }

/* CTA bas de page FAQ */
.faq-cta-bottom { margin-top: 8px; }

/* ── Navigation thèmes ── */
.faq-theme-nav-wrap {
  background: var(--gris-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: var(--header-h);
  z-index: 80;
}
.faq-theme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.faq-theme-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--blanc);
  color: var(--bleu);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.faq-theme-pill:hover {
  background: var(--bleu);
  color: white;
  border-color: var(--bleu);
}

/* ── Encart "Vous n'avez pas trouvé" ── */
.faq-not-found {
  background: var(--bleu-clair);
  border: 1.5px solid #c9d9f0;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
  margin-bottom: 64px;
}
.faq-not-found-inner {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.faq-not-found-icon {
  flex-shrink: 0;
  color: var(--bleu-mid);
  background: rgba(41,82,163,0.1);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-not-found-titre {
  font-family: var(--font-t);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 4px;
}
.faq-not-found-sub {
  font-size: 0.85rem;
  color: var(--texte-doux);
  margin-bottom: 16px;
}
.faq-not-found-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .faq-theme-nav-wrap { position: static; }
}
@media (max-width: 600px) {
  .faq-container { padding-top: 28px; padding-bottom: 48px; }
  .faq-btn { padding: 15px 16px; gap: 12px; }
  .faq-q { font-size: 0.9rem; }
  .faq-panel-inner p { padding: 0 16px; }
  .faq-panel-inner p:last-child { padding-bottom: 16px; }
  .faq-panel-inner ul,
  .faq-panel-inner ol { padding: 0 16px 14px 36px; }
  .faq-not-found { padding: 20px 18px; }
  .faq-not-found-inner { flex-direction: column; gap: 14px; }
  .faq-not-found-icon { display: none; }
  .faq-not-found-actions { flex-direction: column; }
  .faq-not-found-actions .cta-btn-tel,
  .faq-not-found-actions .cta-btn-wa { justify-content: center; }
  .faq-theme-nav { gap: 6px; }
  .faq-theme-pill { font-size: 0.75rem; padding: 5px 11px; }
}


/* ============================================
   STYLES DU CONTENU D'ARTICLE (Gutenberg / HTML pur)
   ============================================ */

/* Intertitres */
.article-content h2 { 
  font-family: var(--font-t); color: var(--bleu); 
  margin-top: 2.2em; margin-bottom: 0.8em; 
  padding-bottom: 10px; border-bottom: 2px solid var(--bleu-clair); 
}
.article-content h3 { font-family: var(--font-t); color: var(--bleu-mid); margin-top: 1.5em; margin-bottom: 0.5em; }

/* Sommaire manuel (si vous n'utilisez pas de plugin de sommaire) */
.article-toc { background: #EEF3FB; border: 1px solid #DDE2EA; border-radius: 10px; padding: 24px; margin: 32px 0; }
.article-toc-titre { font-weight: 700; color: var(--bleu); margin: 0 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.article-toc ol { margin: 0; padding-left: 20px; color: var(--bleu-mid); font-size: 0.95rem; line-height: 2; list-style: decimal; }
.article-toc a { color: var(--bleu-mid); text-decoration: none; }
.article-toc a:hover { color: var(--rouge); text-decoration: underline; }
.article-toc ol {
    list-style: none; /* Supprime les numéros automatiques du navigateur */
}

/* Tableaux (Bloc WP Natif) */
.article-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 32px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.article-content th { background: #EEF3FB; text-align: left; padding: 14px 16px; color: var(--bleu); font-weight: 700; border-bottom: 2px solid var(--bleu-clair); }
.article-content td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--texte-doux); }

/* Encart Prix / Dépannage */
.article-encart-prix {
  background: var(--bleu);
  border-left: 4px solid var(--rouge);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 40px 0;
  color: white;
  box-shadow: 0 6px 24px rgba(27,58,107,0.22);
  position: relative;
  overflow: hidden;
}
/* Reflet subtil en haut à droite */
.article-encart-prix::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
}
/* Tag zone géographique / urgence */
.encart-prix-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #fca5a5; /* rouge clair — bon contraste sur bleu foncé */
  background: rgba(200, 16, 46, 0.22);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 0 0 14px;
}
/* Prix / titre */
.encart-prix-titre {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
  line-height: 1.25;
  font-family: var(--font-t);
}
/* Description */
.encart-prix-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.76);
  margin: 0 0 20px;
  line-height: 1.65;
}
/* Liste des points clés */
.encart-prix-liste {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
}
.encart-prix-liste li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.84);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 8px !important;
  padding-left: 0 !important;
}
.encart-prix-liste li::before { display: none !important; }
.encart-prix-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Encart Auteur généré en bas */
.article-author-box { background: var(--gris-bg); border-radius: 12px; padding: 24px; margin-top: 56px; border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 20px; }
.author-avatar { width: 64px; height: 64px; background: var(--bleu); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; font-weight: 700; }
.author-name { font-weight: 700; color: var(--bleu); margin: 0 0 4px; font-size: 1.1rem; }
.author-badge { font-size: 0.8rem; color: var(--muted); margin: 0 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.author-bio { font-size: 0.95rem; color: var(--texte-doux); margin: 0; line-height: 1.6; }

@media (max-width: 600px) {
  .article-author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ===== ARTICLES LIÉS ===== */
.articles-lies { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--bleu-clair); }
.articles-lies-titre {
  font-size: 1.1rem; font-weight: 700; color: var(--bleu);
  margin: 0 0 24px; font-family: var(--font-t);
  display: flex; align-items: center; gap: 10px;
}
.articles-lies-titre::after {
  content: ''; flex: 1; height: 2px; background: var(--bleu-clair);
}
.articles-lies-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.lies-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--gris-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; text-decoration: none;
  color: var(--texte); transition: border-color .15s, box-shadow .15s;
}
.lies-card:hover {
  border-color: var(--bleu); box-shadow: 0 4px 16px rgba(27,58,107,.10);
}
.lies-card-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--bleu-mid);
}
.lies-card-titre {
  font-size: 0.92rem; font-weight: 600; color: var(--bleu);
  line-height: 1.4; margin: 0; font-family: var(--font-t);
}
.lies-card-fleche {
  font-size: 0.8rem; color: var(--muted); margin-top: auto; padding-top: 4px;
}
.articles-lies-cta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bleu-clair); border-radius: 10px; padding: 16px 20px;
}
.articles-lies-cta p { margin: 0; font-size: 0.9rem; color: var(--bleu); font-weight: 600; flex: 1; }
.lies-cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bleu); color: white; text-decoration: none;
  font-size: 0.85rem; font-weight: 600; padding: 8px 16px;
  border-radius: 6px; white-space: nowrap; transition: background .15s;
}
.lies-cta-btn:hover { background: var(--bleu-mid); }
@media (max-width: 700px) {
  .articles-lies-grid { grid-template-columns: 1fr; }
  .articles-lies-cta { flex-direction: column; align-items: flex-start; }
}
