/* ============================================================
   DossImmo — Guides (articles éditoriaux)
   S'appuie sur styles.css (variables --s-*, header/footer du site).
   ============================================================ */

/* ---------- Sommaire des guides ---------- */
.guides-hero { background: var(--s-navy); color: #fff; padding: 64px 0 56px; }
.guides-hero h1 { font-family: var(--s-display); font-weight: 500; font-size: clamp(2rem, 4vw, 2.8rem); max-width: 22ch; margin-bottom: 14px; color: #fff; }
.guides-hero p { color: var(--s-on-navy); max-width: 58ch; font-size: 1.05rem; }
.guides-hero .eyebrow { color: #9DB6D9; margin-bottom: 14px; }

.guides-liste { padding: 56px 0 24px; }
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.guide-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--s-card); border: 1px solid var(--s-line); border-radius: 4px;
  padding: 26px 26px 22px; text-decoration: none; color: var(--s-ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--s-shadow); border-color: var(--s-accent); }
.guide-card .gc-theme { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-accent); font-weight: 600; }
.guide-card h2 { font-family: var(--s-display); font-weight: 500; font-size: 1.38rem; line-height: 1.2; color: var(--s-ink); }
.guide-card p { color: var(--s-muted); font-size: 0.95rem; flex: 1; }
.guide-card .gc-meta { font-size: 0.8rem; color: var(--s-faint); display: flex; justify-content: space-between; }
.guide-card .gc-meta b { color: var(--s-accent); font-weight: 600; }

/* ---------- Article ---------- */
.article-head { background: var(--s-navy); color: #fff; padding: 52px 0 48px; }
.article-head .wrap { max-width: 860px; }
.crumbs { font-size: 0.82rem; color: #9DB6D9; margin-bottom: 22px; }
.crumbs a { color: #9DB6D9; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .6; }
.article-head .eyebrow { color: #9DB6D9; }
.article-head h1 { font-family: var(--s-display); font-weight: 500; font-size: clamp(1.95rem, 4vw, 2.7rem); line-height: 1.15; color: #fff; margin-bottom: 18px; max-width: 24ch; }
.article-head .chapo { color: var(--s-on-navy); font-size: 1.12rem; max-width: 60ch; line-height: 1.6; }
.article-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 0.82rem; color: #9DB6D9; }
.article-meta b { color: #fff; font-weight: 500; }

.article-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 40px; }
.article-body > p, .article-body > ul, .article-body > ol { font-size: 1.06rem; line-height: 1.72; color: var(--s-ink); margin-bottom: 20px; font-weight: 400; }
.article-body > ul, .article-body > ol { padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--s-accent); font-weight: 600; }
.article-body h2 { font-family: var(--s-display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin: 46px 0 16px; color: var(--s-ink); }
.article-body h3 { font-family: var(--s-display); font-weight: 500; font-size: 1.3rem; margin: 30px 0 10px; color: var(--s-accent-2); }
.article-body a { color: var(--s-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--s-accent-2); }
.article-body strong { font-weight: 600; }
.article-body em { font-style: italic; }

/* Sommaire de l'article */
.toc { background: var(--s-panel); border-left: 3px solid var(--s-accent); border-radius: 0 4px 4px 0; padding: 18px 22px; margin: 0 0 36px; }
.toc .toc-t { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-accent); font-weight: 600; margin-bottom: 8px; }
.toc ol { padding-left: 20px; margin: 0; font-size: 0.95rem; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--s-ink); text-decoration: none; }
.toc a:hover { color: var(--s-accent); text-decoration: underline; }

/* Encadrés */
.note, .astuce, .attention {
  border-radius: 4px; padding: 18px 22px; margin: 26px 0; font-size: 0.98rem; line-height: 1.6;
}
.note { background: var(--s-panel); border-left: 3px solid var(--s-accent); }
.astuce { background: #E9F3EE; border-left: 3px solid var(--s-ok); }
.attention { background: #F7EDE4; border-left: 3px solid #A96B2C; }
.note b, .astuce b, .attention b { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.note b { color: var(--s-accent); } .astuce b { color: var(--s-ok); } .attention b { color: #A96B2C; }
.note p:last-child, .astuce p:last-child, .attention p:last-child { margin-bottom: 0; }

/* Chiffre clé */
.chiffre { display: flex; gap: 18px; align-items: baseline; border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); padding: 18px 4px; margin: 30px 0; }
.chiffre .c-n { font-family: var(--s-display); font-size: 2.6rem; color: var(--s-accent); font-weight: 500; line-height: 1; white-space: nowrap; }
.chiffre .c-t { color: var(--s-muted); font-size: 0.98rem; }

/* Tableau */
.tbl-wrap { overflow-x: auto; margin: 24px 0 30px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--s-card); }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--s-line); vertical-align: top; }
table.tbl th { background: var(--s-panel); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--s-accent); }
table.tbl td:first-child { font-weight: 500; }

/* Check-list */
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px;
  border: 1.5px solid var(--s-accent); border-radius: 3px;
}

/* Appel à l'action */
.cta-box {
  background: var(--s-navy); color: #fff; border-radius: 4px; padding: 30px 32px; margin: 44px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 20px 28px; align-items: center;
}
@media (max-width: 640px) { .cta-box { grid-template-columns: 1fr; } }
.cta-box h3 { font-family: var(--s-display); font-weight: 500; font-size: 1.45rem; color: #fff; margin: 0 0 6px; }
.cta-box p { color: var(--s-on-navy); margin: 0; font-size: 0.97rem; }
.cta-box .btn { background: #fff; color: var(--s-accent); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.cta-box .btn:hover { background: #E2E7ED; }
.cta-box.fine { grid-template-columns: 1fr; text-align: left; }
.cta-box small { display: block; color: #9DB6D9; font-size: 0.8rem; margin-top: 10px; }

/* Pied d'article */
.article-foot { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; }
.related { border-top: 1px solid var(--s-line); padding-top: 30px; }
.related .r-t { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-accent); font-weight: 600; margin-bottom: 14px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li a { display: block; padding: 14px 18px; background: var(--s-card); border: 1px solid var(--s-line); border-radius: 4px; color: var(--s-ink); text-decoration: none; font-weight: 500; }
.related li a:hover { border-color: var(--s-accent); color: var(--s-accent); }
.related li a small { display: block; color: var(--s-muted); font-weight: 400; font-size: 0.88rem; margin-top: 3px; }

.sources { margin-top: 30px; font-size: 0.84rem; color: var(--s-muted); line-height: 1.6; }
.sources b { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--s-faint); margin-bottom: 6px; font-weight: 600; }

footer.site { margin-top: 30px; }

/* En-têtes centrés : plus de vide à droite */
.guides-hero .wrap, .article-head .wrap { text-align: center; max-width: 900px; }
.guides-hero h1, .guides-hero p, .article-head h1, .article-head .chapo { margin-left: auto; margin-right: auto; }
.guides-hero h1, .article-head h1 { max-width: 26ch; }
.guides-hero p, .article-head .chapo { max-width: 64ch; }
.crumbs { text-align: center; }
.article-meta { justify-content: center; }
.guides-hero { padding: 72px 0 64px; }
.article-head { padding: 56px 0 52px; }
