/* Achat Futé — feuille de style éditoriale */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Charter, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #1c1917;
  background-color: #fafaf9;
}
h1, h2, h3, nav, .meta, .tag, .site-header, .site-footer, button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1 { font-size: 2.25rem; line-height: 1.2; margin: 0 0 1rem; font-weight: 700; }
h2 { font-size: 1.625rem; line-height: 1.3; margin: 2.5rem 0 1rem; font-weight: 700; }
h3 { font-size: 1.25rem; line-height: 1.35; margin: 1.5rem 0 0.75rem; font-weight: 600; }
p { margin: 0 0 1.1rem; }
a { color: #1e40af; text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0 0 1.5rem; }
figcaption { font-size: 0.875rem; color: #57534e; margin-top: 0.5rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: #ffffff; border-bottom: 1px solid #e7e5e4; padding: 1rem 0; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.375rem; font-weight: 700; color: #1c1917; text-decoration: none; }
.brand:hover { color: #1e40af; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-nav a { color: #57534e; text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: #1e40af; }

/* Hero */
.hero { background: #ffffff; border-bottom: 1px solid #e7e5e4; padding: 3rem 0; }
.hero p { font-size: 1.125rem; color: #57534e; max-width: 640px; }

/* Article grid */
.section { padding: 3rem 0; }
.section-title { margin-top: 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: #ffffff; border: 1px solid #e7e5e4; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e7e5e4; }
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.card h3 a { color: #1c1917; text-decoration: none; }
.card h3 a:hover { color: #1e40af; }
.card p { color: #57534e; font-size: 0.9375rem; margin: 0.5rem 0 0; }
.meta { font-size: 0.8125rem; color: #57534e; text-transform: uppercase; letter-spacing: 0.04em; }
.tag { display: inline-block; font-size: 0.75rem; color: #1e40af; background: #eff2fb; padding: 0.15rem 0.5rem; border-radius: 3px; margin-left: 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Editorial blocks */
.editorial-blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.editorial-blocks section { background: #ffffff; border: 1px solid #e7e5e4; padding: 1.75rem; border-radius: 4px; }
.editorial-blocks h2 { margin-top: 0; font-size: 1.375rem; }

/* Article page */
.article-header { background: #ffffff; border-bottom: 1px solid #e7e5e4; padding: 2.5rem 0; }
.article-header .meta { margin-bottom: 0.75rem; }
.article-body { padding: 2.5rem 0 3rem; }
.article-body h2 { font-size: 1.375rem; }
.article-body h3 { font-size: 1.125rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 0 0 1.1rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote { border-left: 3px solid #1e40af; margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1rem; color: #57534e; font-style: italic; }

/* Footer */
.site-footer { background: #ffffff; border-top: 1px solid #e7e5e4; padding: 2.5rem 0; margin-top: 3rem; font-size: 0.9375rem; color: #57534e; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.site-footer h3 { font-size: 1rem; margin: 0 0 0.75rem; color: #1c1917; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #57534e; text-decoration: none; }
.site-footer a:hover { color: #1e40af; text-decoration: underline; }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #e7e5e4; font-size: 0.875rem; }

/* Responsive */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-blocks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.875rem; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0; }
  .section { padding: 2rem 0; }
  h1 { font-size: 1.625rem; }
  h2 { font-size: 1.375rem; }
}
