/* Page /blog/ et pages de thème /blog/theme/<slug>/.
   Reprend la charte du site (palette « Ivoire & Or », Instrument Serif + Geist).
   Feuille séparée de blog.css, qui reste celle des articles et des guides villes. */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/geist-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-400-italic.woff2') format('woff2');
}

:root {
  --ivoire: #F7F1E8;
  --sable: #EFE3D0;
  --sable-fonce: #E6D6BD;
  --encre: #1F1612;
  --brun: #66483D;
  --doux: #5A4036;
  --or: #C29A62;
  --or-fonce: #8A5A1F;
  --trait: rgba(31, 22, 18, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--or-fonce); }
a:hover { color: var(--encre); }
:focus-visible { outline: 2px solid var(--or-fonce); outline-offset: 3px; border-radius: 6px; }
.serif { font-family: var(--serif); font-weight: 400; }
.accent { font-style: italic; color: var(--or-fonce); }
.wrap { max-width: 1168px; margin: 0 auto; padding: 0 24px; }
.kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--or-fonce); }

/* En-tête (même forme que celui du site) */
.hub-header { padding: 16px 16px 0; }
.hub-nav {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(102, 72, 61, 0.1);
  border-radius: 28px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 10px 30px -18px rgba(31, 22, 18, 0.35);
}
.hub-logo { display: flex; align-items: center; gap: 8px; color: var(--encre); text-decoration: none; }
.hub-logo img { width: 32px; height: 32px; object-fit: contain; }
.hub-logo span { font-family: var(--serif); font-size: 26px; line-height: 1; }
.hub-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.hub-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--brun); text-decoration: none;
}
.hub-links a:hover { background: var(--ivoire); color: var(--encre); }
.hub-links a[aria-current] { background: var(--ivoire); color: var(--encre); font-weight: 600; }
.hub-links a.hub-cta { background: var(--encre); color: var(--ivoire); font-weight: 600; padding: 0 20px; margin-left: 6px; }
.hub-links a.hub-cta:hover { background: var(--brun); }
@media (max-width: 640px) {
  .hub-links a.hub-optional { display: none; }
}

.breadcrumbs { font-size: 14px; color: var(--brun); }
.breadcrumbs a { color: var(--brun); text-decoration: none; }
.breadcrumbs a:hover { color: var(--encre); text-decoration: underline; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 64px; }
.hero-main { flex: 1 1 520px; min-width: 0; padding-top: 12px; }
.hero h1 { margin: 24px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6.4vw, 92px); line-height: 0.95; letter-spacing: -0.02em; }
.hero-intro { margin: 28px 0 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--doux); }
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(31, 22, 18, 0.14); background: #fff;
  color: var(--encre); font-size: 15px; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: rgba(31, 22, 18, 0.35); color: var(--encre); }
.chip .count { font-size: 13px; color: var(--brun); }
.chip-plain { border-color: transparent; background: none; color: var(--or-fonce); font-weight: 600; }

/* Par où commencer */
.starter {
  flex: 1 1 360px; min-width: 0;
  background: var(--encre); color: var(--ivoire);
  border-radius: 28px; padding: 36px;
  box-shadow: 0 40px 80px -40px rgba(31, 22, 18, 0.6);
}
.starter .kicker { color: var(--or); }
.starter h2 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; }
.starter h2 em { color: var(--or); }
.starter ol { margin: 24px 0 0; padding: 0; list-style: none; }
.starter li a {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px 0;
  border-top: 1px solid rgba(247, 241, 232, 0.14); color: var(--ivoire); text-decoration: none;
}
.starter li a:hover .step-label { text-decoration: underline; }
.step-num { font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--or); width: 28px; flex: 0 0 28px; }
.step-label { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.step-detail { display: block; margin-top: 4px; font-size: 14px; color: var(--sable-fonce); }

/* Sections de thème */
.theme { padding-top: 88px; scroll-margin-top: 24px; }
.theme-inner { display: flex; flex-wrap: wrap; gap: 48px; border-top: 1px solid rgba(31, 22, 18, 0.14); padding-top: 40px; }
.theme-head { flex: 1 1 300px; min-width: 0; }
.theme-num { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--or-fonce); }
.theme-head h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 46px); line-height: 1; }
.theme-head h2 a { color: var(--encre); text-decoration: none; }
.theme-head h2 a:hover { color: var(--or-fonce); }
.theme-head p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--doux); }
.theme-more { display: inline-block; margin-top: 16px; font-size: 15px; font-weight: 600; }
.theme-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* Ligne d'article */
.post-row { border-bottom: 1px solid rgba(31, 22, 18, 0.1); }
.post-row a.row-link { display: flex; gap: 24px; align-items: center; padding: 8px 0 24px; color: inherit; text-decoration: none; }
.post-row a.row-link:hover h3 { color: var(--or-fonce); }
.thumb {
  flex: 0 0 120px; height: 120px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
  font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--or-fonce);
  background-color: var(--ivoire);
  background-image: conic-gradient(var(--sable) 25%, transparent 0 50%, var(--sable) 0 75%, transparent 0);
  background-size: 40px 40px;
  border: 1px solid rgba(31, 22, 18, 0.06);
}
.thumb-img { width: 120px; padding: 0; object-fit: cover; background: var(--sable); }
.post-body { flex: 1 1 auto; min-width: 0; }
.post-body h3 { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.3; color: var(--encre); }
.post-body p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--doux); }
.post-body .post-meta { font-size: 13px; color: var(--brun); }
@media (max-width: 520px) {
  .post-row a.row-link { gap: 16px; align-items: flex-start; }
  .thumb { flex-basis: 72px; height: 72px; font-size: 18px; border-radius: 12px; background-size: 24px 24px; }
  .thumb-img { width: 72px; }
  .post-body h3 { font-size: 18px; }
}

/* Carte « guide pratique » */
.guide-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: 20px; background: var(--sable); color: var(--encre); text-decoration: none;
}
.guide-card:hover { color: var(--encre); background: var(--sable-fonce); }
.guide-card .guide-label { display: block; margin-top: 4px; font-family: var(--serif); font-size: 32px; line-height: 1.05; }
.btn-dark {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--encre); color: var(--ivoire); font-size: 15px; font-weight: 600; text-decoration: none;
}

/* FAQ */
.faq { padding-top: 96px; scroll-margin-top: 24px; }
.faq-card { background: #fff; border: 1px solid rgba(31, 22, 18, 0.08); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; }
.faq-head { flex: 1 1 280px; min-width: 0; }
.faq-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 46px); line-height: 1; }
.faq-head p { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--doux); }
.faq-list { flex: 2 1 520px; min-width: 0; border-bottom: 1px solid var(--trait); }
.faq-list details { border-top: 1px solid var(--trait); padding: 20px 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 600; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--or-fonce); font-weight: 500; font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--doux); }

/* Bandeau application */
.app-band { padding-top: 32px; }
.app-card {
  background: var(--encre); color: var(--ivoire); border-radius: 28px; padding: 36px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.app-card-title { display: flex; align-items: center; gap: 18px; }
.app-card img { width: 52px; height: 52px; object-fit: contain; }
.app-card h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 36px); line-height: 1.05; }
.app-card h2 em { color: var(--or); }
.app-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.app-buttons a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.app-buttons a.light { background: var(--ivoire); color: var(--encre); }
.app-buttons a.outline { border: 1px solid rgba(247, 241, 232, 0.3); color: var(--ivoire); }
.app-buttons a.outline:hover { border-color: var(--ivoire); }

/* Pied de page */
.hub-footer { max-width: 1120px; margin: 0 auto; padding: 72px 24px 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--brun); }
.hub-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hub-footer a { color: var(--brun); }
.hub-footer a:hover { color: var(--encre); }

/* Page de thème */
.theme-page-head { padding-top: 64px; max-width: 760px; }
.theme-page-head h1 { margin: 24px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.02em; }
.theme-page-head .hero-intro { max-width: none; }
.theme-page-list { margin-top: 48px; max-width: 860px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid rgba(31, 22, 18, 0.14); padding-top: 24px; }
.other-themes { padding-top: 64px; }
.other-themes h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }

@media (max-width: 640px) {
  .hero { gap: 40px; padding-top: 40px; }
  .hero-intro { font-size: 17px; }
  .starter, .faq-card { padding: 28px 24px; border-radius: 24px; }
  .theme { padding-top: 64px; }
  .theme-inner { gap: 24px; }
  .app-card { padding: 28px 24px; }
}
