/* ===== Guides du blog : gabarit illustré (octobre 2026) =====
   Couverture, « En bref », chapitres image + texte, cartes de lampes,
   conseil de l'atelier, étapes illustrées, galerie, FAQ.
   Chargé par les articles de /blog et par l'index des guides. */

.guide { --g-ink: #33230f; --g-brown: #8a5a2e; --g-muted: #7a6450; --g-kraft: #f3eadb; --g-line: rgba(138, 90, 46, .18); }
.guide .article-byline { font-size: .8rem; letter-spacing: .02em; color: var(--g-muted); margin-bottom: 1.4rem; }

/* Couverture */
.g-cover { position: relative; margin: 0 0 2rem; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(60, 40, 20, .18); }
.g-cover img { display: block; width: 100%; height: min(62vh, 560px); object-fit: cover; }
.g-cover figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 16px; font-size: .82rem; color: #fff8ec;
  background: linear-gradient(transparent, rgba(30, 20, 10, .72)); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* Chapeau */
.g-lede { font-size: 1.18rem; line-height: 1.75; color: var(--g-ink); margin: 0 0 1.8rem; }
.g-lede::first-letter { float: left; font-family: var(--font-heading); font-size: 3.4rem; line-height: .9; padding: 6px 10px 0 0; color: var(--g-brown); }

/* En bref */
.g-bref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 2.6rem; }
.g-bref__item { background: var(--g-kraft); border: 1px solid var(--g-line); border-radius: 14px; padding: 16px 14px; }
.g-bref__item i { color: var(--g-brown); font-size: 1.2rem; margin-bottom: 8px; display: block; }
.g-bref__item p { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--g-ink); }

/* Chapitre : image + texte */
.g-chap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; margin: 3rem 0; }
.g-chap--flip .g-chap__media { order: 2; }
.g-chap__media { margin: 0; }
.g-chap__media img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 30px rgba(60, 40, 20, .16); }
.g-chap__media figcaption { font-size: .76rem; color: var(--g-muted); margin-top: .5rem; line-height: 1.45; }
.g-chap__num { display: block; font-family: var(--font-heading); font-size: .85rem; letter-spacing: .18em; color: var(--g-brown); margin-bottom: .3rem; }
.guide .g-chap h2 { margin-top: 0; }
.g-chap p { margin-bottom: .8rem; }
.g-chap--text { grid-template-columns: 1fr; }

/* Cartes (lampes, massifs) */
.g-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 1.6rem 0 2.6rem; }
.g-card { display: flex; flex-direction: column; background: #fffaf1; border: 1px solid var(--g-line); border-radius: 16px; overflow: hidden;
  text-decoration: none !important; color: inherit !important; transition: transform .2s, box-shadow .2s; }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 40, 20, .14); }
.g-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.g-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.guide .g-card h3 { font-size: 1.02rem; margin: 0; color: var(--g-ink); }
.g-card p { font-size: .84rem; line-height: 1.5; margin: 0; color: var(--g-muted); }
.g-card__cta { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 600; color: var(--g-brown); }

/* Conseil de l'atelier */
.g-tip { position: relative; margin: 2.4rem 0; padding: 18px 20px 18px 62px; border-radius: 14px; background: var(--g-kraft);
  border-left: 4px solid var(--g-brown); }
.g-tip::before { content: "\f0eb"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 22px; top: 18px; font-size: 1.3rem; color: var(--g-brown); }
.g-tip strong:first-child { display: block; font-family: var(--font-heading); font-size: 1rem; margin-bottom: 4px; color: var(--g-ink); }
.g-tip p { margin: 0; }

/* Citation */
.g-quote { margin: 2.6rem auto; max-width: 620px; text-align: center; font-family: var(--font-heading); font-size: 1.45rem; line-height: 1.45; color: var(--g-brown); }
.g-quote::before, .g-quote::after { content: "—"; display: block; font-size: 1rem; opacity: .5; margin: .4rem 0; }

/* Étapes illustrées */
.g-steps { list-style: none; margin: 2rem 0; padding: 0; counter-reset: gstep; display: grid; gap: 16px; }
.g-step { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: #fffaf1; border: 1px solid var(--g-line); border-radius: 16px; padding: 14px 16px; }
.g-step svg { width: 96px; height: 96px; display: block; }
.guide .g-step h3 { margin: 0 0 .25rem; font-size: 1.05rem; }
.g-step h3::before { counter-increment: gstep; content: counter(gstep, decimal-leading-zero) "  "; color: var(--g-brown); letter-spacing: .08em; font-size: .85rem; }
.g-step p { margin: 0; font-size: .92rem; line-height: 1.55; }

/* Duo, galerie, chiffres, tableau, FAQ, vidéo */
.guide .article-figure { margin: 2rem auto; text-align: center; }
.guide .article-figure img, .guide .article-figure video { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 26px rgba(60, 40, 20, .14); }
.guide .article-figure figcaption { font-size: .78rem; color: var(--g-muted); margin-top: .5rem; line-height: 1.5; }
.guide .article-figure--wide { max-width: 100%; }
.guide .article-figure--tall { max-width: 520px; }
.guide .article-figure--mid { max-width: 560px; }
.article-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2rem 0; }
.guide .article-duo .article-figure { margin: 0; max-width: none; }
.article-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6rem 0 2rem; }
.guide .article-gallery .article-figure { margin: 0; max-width: none; }
.article-gallery figcaption { font-weight: 600; color: #6b5238; }
.article-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 2rem 0; }
.article-stat { background: var(--g-kraft, #f6eee0); border: 1px solid rgba(138, 90, 46, .18); border-radius: 12px; padding: 14px 12px; text-align: center; }
.article-stat strong { display: block; font-family: var(--font-heading); font-size: 1.45rem; color: #5a3b1d; line-height: 1.2; }
.article-stat span { display: block; font-size: .8rem; color: #7a6450; line-height: 1.45; margin-top: 4px; }
.article-table-wrap { overflow-x: auto; margin: 1.2rem 0 1.8rem; }
.article-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.article-table th, .article-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid rgba(138, 90, 46, .18); vertical-align: top; }
.article-table th { background: #f6eee0; font-weight: 600; color: #5a3b1d; }
.article-faq { margin-top: 1rem; }
.article-faq__item { border-top: 1px solid rgba(138, 90, 46, .18); padding: .4rem 0 .2rem; }
.article-faq__item h3 { margin-top: 1rem; }

/* Fiche pratique */
.g-facts { list-style: none; padding: 18px 20px; margin: 1.4rem 0 2rem; background: #fffaf1; border: 1px dashed rgba(138, 90, 46, .4); border-radius: 14px; }
.guide .g-facts li { margin: 0 0 .45rem; padding-left: 26px; position: relative; }
.g-facts li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 2px; font-size: .8rem; color: var(--g-brown); }

/* ===== Index des guides ===== */
.g-index-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: #fffaf1;
  border: 1px solid rgba(138, 90, 46, .18); box-shadow: 0 18px 40px rgba(60, 40, 20, .12); margin: 0 0 2.4rem; text-decoration: none; color: inherit; }
.g-index-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.g-index-feature__body { padding: 30px 30px 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.g-index-feature__eyebrow, .g-index-card__eyebrow { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #8a5a2e; }
.g-index-feature h2 { font-family: var(--font-heading); font-size: 1.7rem; line-height: 1.2; margin: 0; color: #33230f; }
.g-index-feature p { margin: 0; color: #6b5238; line-height: 1.6; }
.g-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-index-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fffaf1; border: 1px solid rgba(138, 90, 46, .16);
  text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.g-index-card:hover, .g-index-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(60, 40, 20, .16); }
.g-index-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-index-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.g-index-card h2 { font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.3; margin: 0; color: #33230f; }
.g-index-card p { margin: 0; font-size: .88rem; line-height: 1.55; color: #6b5238; }
.g-index-card__cta, .g-index-feature__cta { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .86rem; color: #8a5a2e; }

@media (max-width: 860px) {
  .g-index-grid { grid-template-columns: repeat(2, 1fr); }
  .g-index-feature { grid-template-columns: 1fr; }
  .g-index-feature img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .g-chap, .g-chap--flip { grid-template-columns: 1fr; gap: 14px; margin: 2.2rem 0; }
  .g-chap--flip .g-chap__media { order: 0; }
  .g-bref { grid-template-columns: 1fr; }
  .g-cover img { height: 52vh; }
  .g-lede { font-size: 1.06rem; }
  .g-step { grid-template-columns: 64px 1fr; gap: 12px; }
  .g-step svg { width: 64px; height: 64px; }
  .article-duo { grid-template-columns: 1fr; }
  .article-gallery, .article-stats { grid-template-columns: repeat(2, 1fr); }
  .g-index-grid { grid-template-columns: 1fr; }
}

/* Icône d'étape (à la place d'un schéma) et liste en deux colonnes */
.g-step__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--g-kraft); border: 1px solid var(--g-line); display: flex; align-items: center; justify-content: center; justify-self: center; }
.g-step__icon i { font-size: 1.5rem; color: var(--g-brown); }
.g-step:has(.g-step__icon) { grid-template-columns: 72px 1fr; }
.g-names { columns: 2; column-gap: 28px; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.guide .g-names li { break-inside: avoid; margin: 0 0 .7rem; padding: 10px 12px; background: #fffaf1; border: 1px solid var(--g-line); border-radius: 10px; font-size: .92rem; line-height: 1.5; }
@media (max-width: 640px) { .g-names { columns: 1; } }
