/* ==========================================================================
   Guides et conseils (guides/index.html.twig, guides/article.html.twig)
   Complète pages/aide.css (mise en page commune aux pages d'aide).
   ========================================================================== */

/* ─── Fil d'Ariane ─── */
.guide-fil {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.guide-fil a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-fil a:hover {
    color: var(--text-primary);
}

/* ─── Liste des guides ─── */
.guides-liste {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .guides-liste {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guide-carte {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.guide-carte__titre {
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
}

.guide-carte__titre a {
    color: var(--text-primary);
    text-decoration: none;
}

.guide-carte__titre a:hover,
.guide-carte__titre a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-carte__resume {
    margin: 0;
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.guide-carte__meta {
    margin: 0;
    margin-top: auto;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ─── Article ─── */
.guide-article__meta {
    margin: 0 0 var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.guide-article .guide-chapeau {
    font-size: var(--text-lg);
    color: var(--text-primary);
    line-height: var(--leading-normal);
}

.guide-article a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-article h3 {
    margin: var(--space-6) 0 var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--text-primary);
}

.guide-article ol {
    padding-left: var(--space-6);
}

/* Encadré « L'essentiel » en tête d'article (résumé repris par les moteurs et les IA). */
.guide-essentiel {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-5);
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.guide-essentiel__titre {
    margin: 0 0 var(--space-2);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
}

.guide-essentiel ul {
    margin: 0;
}

.guides-suggestions {
    margin-top: var(--space-10);
}
