/* ─── /conseils/ - styles spécifiques blog ──────────────────────────── */

/* === FILTRES TAGS === */
.conseils-filters {
  align-items: center;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 1.5px solid #E5E7EB;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  transition: var(--trans);
}
.tag-pill:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.tag-pill.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.tag-pill .tag-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.tag-pill.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
}

/* === HERO ARTICLE (à la une) === */
.hero-article {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: var(--trans);
}
.hero-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
/* Photo immobilier lambda (clés + maison) - image globale du hero À LA UNE */
.hero-article-photo {
  min-height: 380px;
  position: relative;
  background-image: url('/conseils/img/hero-cles-maison.jpg');
  background-size: cover;
  background-position: center;
}
/* Léger overlay orange pour cohérence chartiste sans masquer l'image */
.hero-article-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,248,242,0.12) 0%, rgba(240,123,36,0.08) 100%);
  pointer-events: none;
}
/* Ancien style image conservé en fallback (cards utilisent toujours .article-card-image avec image PNG) */
.hero-article-image {
  min-height: 360px;
  background: linear-gradient(135deg, #FEF0E4 0%, #FDE3CC 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-article-pin {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  background: var(--orange);
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(240,123,36,0.3);
}
.hero-article-content {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-article-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 14px 0 14px;
}
.hero-article-extrait {
  color: var(--gray);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.hero-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid #F3F4F6;
  padding-top: 16px;
}
.hero-article-cta {
  margin-left: auto;
  color: var(--orange);
  font-weight: 800;
}

@media (max-width: 768px) {
  .hero-article { grid-template-columns: 1fr; }
  .hero-article-image { min-height: 220px; }
  .hero-article-content { padding: 24px; }
  .hero-article-title { font-size: 1.5rem; }
}

/* === GRILLE D'ARTICLES === */
.conseils-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: var(--trans);
  border: 1px solid #F3F4F6;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--orange-light);
}
.article-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.article-card-pin {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}
.article-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 12px 0 10px;
  /* Limite à 2 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-extrait {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
  /* Limite à 3 lignes */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

/* === TAGS sur articles === */
.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid;
  text-decoration: none;
}
.article-tags-header { margin: 16px 0; }
.article-tags-header .article-tag { font-size: 0.75rem; padding: 5px 12px; }

/* === HEADER ARTICLE INDIVIDUEL === */
.article-header {
  background: linear-gradient(135deg, #FFF8F2 0%, #FEF0E4 100%);
  padding: 50px 5% 40px;
}
.article-header-inner {
  max-width: 820px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--trans);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .current {
  color: var(--navy);
  font-weight: 700;
}
.breadcrumb span:not(.current) { color: #D1D5DB; }

.article-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.15;
  color: var(--navy);
  margin: 8px 0 18px;
  letter-spacing: -1px;
}
.article-extrait {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 28px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.article-meta-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-family: var(--font-title);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.article-meta-author-name {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--navy);
}
.article-meta-author-role {
  font-size: 0.8rem;
  color: var(--gray);
}
.article-meta-dates {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--gray);
  margin-left: auto;
}

@media (max-width: 768px) {
  .article-title { font-size: 1.9rem; }
  .article-extrait { font-size: 1.05rem; }
  .article-meta-dates { margin-left: 0; }
}

/* === IMAGE HERO ARTICLE === */
.article-hero-image-wrapper {
  max-width: 1100px;
  margin: -10px auto 0;
}
.article-hero-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* === CORPS ARTICLE === */
.article-body-section {
  padding: 50px 5%;
  background: white;
}
.article-body-wrapper {
  max-width: 760px;
  margin: 0 auto;
  /* Layout colonne unique - le sommaire (s'il existe) apparaît en encadré en haut */
}

/* Sommaire en encadré haut de contenu (plus de sticky latéral) */
.article-aside {
  margin-bottom: 32px;
  display: block;
}
.article-toc {
  display: block;
  background: var(--cream);
  padding: 22px 26px;
  border-radius: 14px;
  border-left: 4px solid var(--orange);
  font-size: 0.95rem;
}
.article-toc .toc-title {
  display: block;
  width: 100%;
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-toc li {
  line-height: 1.5;
  break-inside: avoid;
}
.article-toc li.toc-sub {
  padding-left: 18px;
  font-size: 0.92em;
}
.article-toc li.toc-sub::before {
  content: '↳ ';
  color: var(--orange);
  font-weight: 700;
}
.article-toc a {
  color: var(--navy);
  text-decoration: none;
  transition: var(--trans);
  font-weight: 600;
}
.article-toc a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* === PROSE (corps markdown rendu) === */
.prose {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #2A3447;
}
.prose > * { margin-bottom: 1em; }
.prose h2 {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--navy);
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  scroll-margin-top: 90px;
}
.prose h2 + h3 { margin-top: 0.8em; }
.prose p { margin-bottom: 1.1em; }
.prose strong { color: var(--navy); font-weight: 800; }
.prose em { font-style: italic; }
/* Liens texte dans le corps article (mais pas les boutons) */
.prose a:not([class*="btn-"]) {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.prose a:not([class*="btn-"]):hover { color: var(--orange-dark); }
/* Force la lisibilité des boutons dans la prose article */
.prose .btn-primary,
.article-cta .btn-primary {
  color: white !important;
  text-decoration: none !important;
}
.prose .btn-secondary,
.article-cta .btn-secondary {
  text-decoration: none !important;
}
.prose ul, .prose ol { padding-left: 1.6em; margin-bottom: 1.2em; }
.prose ul li, .prose ol li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}
.prose ul li::marker { color: var(--orange); font-weight: 900; }
.prose blockquote {
  border-left: 4px solid var(--orange);
  background: var(--cream);
  padding: 18px 22px;
  margin: 1.4em 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--navy);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--gray);
}
.prose code {
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  color: var(--navy);
}
.prose hr {
  border: 0;
  border-top: 1px solid #E5E7EB;
  margin: 2.2em 0;
}
.prose img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.4em auto;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Tables markdown */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.prose th {
  background: var(--orange-pale);
  color: var(--navy);
  font-family: var(--font-title);
  font-weight: 800;
  text-align: left;
  padding: 12px 16px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.prose td {
  padding: 12px 16px;
  border-top: 1px solid #F3F4F6;
}
.prose tr:nth-child(even) td { background: #FAFAFB; }

/* Encadrés "info" via blockquote avec premier mot **Info :** ou **Attention :** */
.prose .callout-info, .prose .callout-warn, .prose .callout-tip {
  padding: 16px 20px;
  border-radius: 12px;
  margin: 1.4em 0;
  border-left: 4px solid;
}
.prose .callout-info { background: #EFF6FF; border-color: #2563EB; color: #1E3A8A; }
.prose .callout-warn { background: #FEF3C7; border-color: #F59E0B; color: #78350F; }
.prose .callout-tip { background: #ECFDF5; border-color: #10B981; color: #065F46; }

/* === CTA fin d'article === */
.article-cta {
  margin-top: 50px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--orange-pale), #FDE3CC);
  border-radius: 16px;
  border-left: 5px solid var(--orange);
}
.article-cta h3 {
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.article-cta p {
  color: var(--navy);
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.55;
}
.article-cta .btn-primary { display: inline-block; }

/* Disclaimer */
.article-disclaimer {
  margin-top: 30px;
  padding: 14px 18px;
  background: #F9FAFB;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}
.article-disclaimer a { color: var(--orange); font-weight: 700; }

/* === ACTIVE NAV (bouton actif "Conseils") === */
nav .nav-links a.active {
  color: var(--orange);
  font-weight: 800;
}

/* Cohérence header bg avec /assets/css/style.css */
.bubble-bg .bubble-xl-1 { animation: float 12s ease-in-out infinite; }
