/* ══════════════════════════════════════════════════════════
   Blog Hopla — composants visuels partagés
   Rend les articles riches et agréables à lire :
   en-tête illustré, images légendées, encadrés, chiffres,
   citations, emplacements d'images et blocs d'appel à l'action.
   ══════════════════════════════════════════════════════════ */

:root {
  --blog-terra: #c8502c;
  --blog-amber: #e0762b;
  --blog-gold: #d99e32;
  --blog-cream: #faf6f0;
  --blog-ink-soft: #6b6259;
  --blog-line: #ece5db;
}

/* ── En-tête illustré ── */
.article-hero {
  position: relative;
  margin: 0 0 34px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #33190f 0%, #6e2f1a 48%, #c14e2a 100%);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  box-sizing: border-box;
}
.article-hero .article-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
  pointer-events: none;
}
.article-hero .article-hero-eyebrow {
  position: relative;
  z-index: 2;
  color: #f2c791;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Image légendée ── */
.article-figure {
  margin: 30px 0;
}
.article-figure img,
.article-figure .img-placeholder {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--blog-line);
  box-shadow: 0 12px 30px -14px rgba(50, 30, 15, 0.30);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--blog-ink-soft);
  text-align: center;
  font-style: italic;
}

/* Rangée de 2-3 images (ex. exemples de boutiques) */
.article-figure-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0;
}
.article-figure-row img,
.article-figure-row .img-placeholder {
  width: 100%;
  aspect-ratio: 640 / 426;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid var(--blog-line);
  box-shadow: 0 10px 24px -14px rgba(50, 30, 15, 0.28);
  display: block;
}
@media (max-width: 640px) {
  .article-figure-row { grid-template-columns: 1fr; }
}

/* ── Emplacement d'image (pour tes futures captures) ── */
.img-placeholder {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--blog-cream) 0, var(--blog-cream) 12px, #f3ece1 12px, #f3ece1 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--blog-ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}
.img-placeholder .img-placeholder-ic { font-size: 26px; opacity: 0.5; }

/* ── Encadrés ── */
.callout {
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--blog-terra);
  background: var(--blog-cream);
  font-size: 15px;
  line-height: 1.65;
}
.callout strong { color: var(--blog-terra); }
.callout-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--blog-terra);
}
.callout.callout-tip { border-left-color: #2f8f5b; background: #f0f9f3; }
.callout.callout-tip .callout-title,
.callout.callout-tip strong { color: #1f7a48; }
.callout.callout-warn { border-left-color: var(--blog-gold); background: #fef9e9; }
.callout.callout-warn .callout-title,
.callout.callout-warn strong { color: #9a6b12; }

/* ── Chiffres mis en avant ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0;
}
.stat {
  text-align: center;
  padding: 20px 14px;
  border-radius: 14px;
  background: var(--blog-cream);
  border: 1px solid var(--blog-line);
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, var(--blog-terra), var(--blog-amber), var(--blog-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--blog-ink-soft);
  line-height: 1.4;
}
@media (max-width: 560px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: center; gap: 14px; text-align: left; }
  .stat-num { font-size: 28px; }
  .stat-label { margin-top: 0; }
}

/* ── Citation mise en avant ── */
.pull-quote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 4px solid var(--blog-gold);
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  color: #2a2018;
}

/* ── Bloc d'appel à l'action ── */
.article-cta {
  margin: 40px 0 10px;
  padding: 30px 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #33190f 0%, #6e2f1a 50%, #c14e2a 100%);
  color: #fff;
  text-align: center;
}
.article-cta h3 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}
.article-cta p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}
.article-cta a {
  display: inline-block;
  padding: 13px 28px;
  background: #fff;
  color: #33190f;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.article-cta a:hover { transform: translateY(-2px); }

/* ── Carte article avec vignette (index) ── */
.blog-card-thumb {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--blog-line);
  display: block;
}
