/* Blog AGP Garage : liste et pages article. S'appuie sur les jetons de site.css. */

/* ---------- Liste ---------- */
.blog-entete { padding: var(--s-7) 0 var(--s-5); }
.blog-entete p { margin-top: var(--s-3); color: var(--texte-2); font-size: var(--fs-2); max-width: 60ch; }
.filtres { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filtre { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--bord); border-radius: 999px; background: var(--surface); color: var(--texte-2); font: inherit; font-size: var(--fs-0); font-weight: 600; cursor: pointer; }
.filtre span { color: var(--texte-3); font-weight: 400; }
.filtre.est-actif { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.filtre.est-actif span { color: rgba(255, 255, 255, 0.8); }
.filtres__vide { color: var(--texte-3); }

.posts { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); color: inherit; transition: border-color var(--transition), transform var(--transition); }
.post:hover { border-color: var(--rouge-clair); transform: translateY(-2px); }
.post__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(18, 18, 18, 0.85); color: var(--blanc); font-size: 12px; font-weight: 700; }
.post__body { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; }
.post__meta { display: inline-flex; align-items: center; gap: 6px; color: var(--texte-3); font-size: 13px; }
.post__title { font-size: var(--fs-2); font-weight: 700; line-height: 1.25; margin: 0; }
.post__excerpt { color: var(--texte-2); font-size: var(--fs-0); }
.post__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: var(--s-2); color: var(--rouge-clair); font-weight: 700; font-size: var(--fs-0); }
.icone { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Article ---------- */
.article__entete { padding: var(--s-6) 0 var(--s-5); background: var(--surface); border-bottom: 1px solid var(--bord); }
.article__conteneur { max-width: 820px; }
.fil { font-size: 13px; color: var(--texte-3); margin-bottom: var(--s-4); }
.fil ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.fil li + li::before { content: "›"; margin-right: 6px; }
.fil a { color: var(--texte-2); }
.article__titre { font-size: var(--fs-5); margin-top: var(--s-3); }
.article__meta { margin-top: var(--s-3); color: var(--texte-3); font-size: var(--fs-0); }
.article__cover { margin: var(--s-6) 0 0; }
.article__cover img { width: 100%; border-radius: var(--rayon); aspect-ratio: 3 / 2; object-fit: cover; }
.article__label { font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rouge-clair); margin-bottom: var(--s-2); }
.article__essentiel { margin-top: var(--s-6); padding: var(--s-5); border-left: 4px solid var(--rouge); border-radius: 0 var(--rayon) var(--rayon) 0; background: var(--surface); }
.article__essentiel ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; color: var(--texte-2); }
.sommaire { margin-top: var(--s-5); padding: var(--s-4) var(--s-5); border: 1px solid var(--bord); border-radius: var(--rayon); }
.sommaire ol { padding-left: 20px; list-style: decimal; display: grid; gap: 4px; color: var(--texte-2); font-size: var(--fs-0); }
.sommaire a:hover { color: var(--blanc); text-decoration: underline; }

.prose { margin-top: var(--s-6); font-size: var(--fs-1); line-height: 1.7; }
.prose h2 { font-size: var(--fs-3); margin: var(--s-7) 0 var(--s-3); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font-size: var(--fs-2); margin: var(--s-5) 0 var(--s-2); }
.prose p { max-width: none; margin: 0 0 var(--s-4); color: var(--texte-2); }
.prose p strong { color: var(--blanc); }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: 22px; color: var(--texte-2); display: grid; gap: 6px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--rouge-clair); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 4px solid var(--rouge); background: var(--surface); border-radius: 0 var(--rayon-s) var(--rayon-s) 0; color: var(--blanc); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--s-4) 0 var(--s-5); font-size: var(--fs-0); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: top; color: var(--texte-2); }
.prose th { color: var(--blanc); background: var(--surface); font-weight: 700; }

.article__faq { margin-top: var(--s-7); }
.article__faq h2 { font-size: var(--fs-3); margin-bottom: var(--s-4); }
.faq__item { padding: var(--s-4) 0; border-top: 1px solid var(--bord); }
.faq__item h3 { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.faq__item p { color: var(--texte-2); max-width: none; }
.article__auteur { display: flex; gap: var(--s-4); align-items: flex-start; margin-top: var(--s-7); padding: var(--s-5); border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--surface); }
.article__auteur img { flex: none; }
.article__auteur-nom { font-weight: 700; color: var(--blanc); margin-bottom: 4px; }
.article__auteur p { color: var(--texte-2); font-size: var(--fs-0); max-width: none; }
