/* ============================================================
   Copie de prototype de main-landing@2efdee9 : les pages catégorie du
   catalogue, aides/[category=category]/[...subCategory]/+page.svelte.
   L'article (titre collant, sections, partage, colonne) est LP.article
   du socle ; ici : l'en-tête de méta (.extra), les blocs FAQ, Catégories
   et Aides (.faq, .categories, #grants), l'état vide.
   Les rem de la source sont recopiés tels quels (racine rejouée par
   lp-base.css).
   ============================================================ */

/* ---------- En-tête de l'article (slot header-meta, .extra) ---------- */
.lp-cat-extra { width: 100%; margin-top: 1rem; }
.lp-cat-extra__description { font-size: 1.5rem; font-weight: 500; }
.lp-cat-extra__stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-block: 2rem 1rem;
}
.lp-cat-extra__compteur { font-size: 1.6rem; font-weight: 700; }
.lp-cat-extra__offre { color: var(--lp-blue); font-size: 1.1rem; font-weight: 500; }
.lp-cat-extra__offre:hover,
.lp-cat-extra__offre:focus-visible { text-decoration: underline; }
@media (max-width: 480px) { .lp-cat-extra__stat { flex-direction: column; } }

/* Croisement sans section : la prod ne rend que l'en-tête de l'article
   (content-wrapper conditionné par les sections), donc ni corps, ni
   partage, ni colonne de conversion. */
.lp-cat-article--sans-corps .lp-article__corps { display: none; }

/* ---------- Blocs .faq, .categories, #grants ---------- */
.lp-cat-bloc { padding-top: 2.5rem; background-color: var(--lp-bg); }
.lp-cat-bloc__conteneur {
    max-width: min(100%, 1336px);
    margin-inline: auto;
    padding: 1.5rem;
    border-radius: 2.5rem;
    background: var(--lp-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
/* Taille propre au bloc ; graisse et interligne viennent du :global(h2)
   d'Article.svelte, qui touchait tous les <h2> de la page en prod. */
.lp-cat-bloc h2 { margin-bottom: 1rem; color: var(--lp-blue); font-size: 2.2rem; font-weight: 700; line-height: 32px; }

/* Grille « Catégories » : deux colonnes de cartes de 39rem, ombre orange */
@media (max-width: 480px) { .lp-cat-categories { padding-inline: 1rem; } }
.lp-cat-liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 1.5rem;
}
.lp-cat-carte {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 39rem;
    padding: 1rem;
    border: 2px solid var(--lp-ink);
    border-radius: 3px 3px 30px 3px;
    background: var(--lp-white);
    box-shadow: 4px 4px 0 0 var(--lp-orange);
    font-weight: 500;
}
.lp-cat-carte__compte {
    display: inline-block;
    padding: 4px .5rem;
    border-radius: 1rem;
    background: var(--lp-blue-pale);
    color: var(--lp-blue);
}
.lp-cat-carte__titre { margin-top: .5rem; font-size: 1.4rem; font-weight: 700; }
.lp-cat-carte__filet { border-bottom: 1px solid var(--lp-blue-pale); }
.lp-cat-carte__resume { line-height: 1.5; }
.lp-cat-carte__actions {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: .5rem;
    margin-top: auto;
}

/* Liste d'aides : défilement horizontal des cartes (colonne de
   recommandations), ou grille qui passe à la ligne pour un croisement. */
.lp-cat-aides { padding-bottom: 5rem; }
.lp-cat-aides__defilement {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
    overflow-x: auto;
}
.lp-cat-aides--liste { padding-top: 0; }
.lp-cat-aides--liste .lp-cat-aides__defilement { flex-wrap: wrap; justify-content: space-between; }

/* ---------- État vide (EmptyPage.svelte) ---------- */
.lp-cat-vide { padding: 3rem 1rem 6rem 0; overflow: auto; text-align: center; }
.lp-cat-vide__titre { margin: 0 0 1.5rem; color: var(--lp-ink); font-size: 1.8rem; font-weight: 700; }
.lp-cat-vide__desc { margin: 0; color: var(--lp-blue); font-size: 1.5rem; font-weight: 700; }
.lp-cat-vide__actions { margin-top: 1rem; color: var(--lp-blue); font-size: 1rem; font-weight: 500; }
@media (max-width: 1200px) { .lp-cat-vide__titre { font-size: 1.5rem; } }
