.ajc-catalogue {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

.ajc-catalogue-introduction {
    margin-bottom: 28px;
    text-align: center;
}

.ajc-catalogue-introduction h2 {
    margin-bottom: 8px;
    color: #1e3a8a;
}

.ajc-catalogue-filtres {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border: 1px solid #d8e2f1;
    border-radius: 14px;
    background: #f3f6fc;
}

.ajc-catalogue-filtre span {
    display: block;
    margin-bottom: 7px;
    color: #1e3a8a;
    font-weight: 700;
}

.ajc-catalogue-filtre select {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #b8c6df;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
}

.ajc-catalogue-filtre select:focus-visible,
.ajc-catalogue-actions a:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.45);
    outline-offset: 2px;
}

.ajc-catalogue-resume {
    margin: 22px 0 12px;
    color: #526381;
}

.ajc-catalogue-resultats {
    display: block;
}

.ajc-catalogue-groupe {
    margin: 0 0 30px;
    overflow: hidden;
    border: 1px solid #c8d4e8;
    border-radius: 16px;
    background: #f8faff;
}

.ajc-groupe-entete {
    padding: 20px 22px;
    border-bottom: 1px solid #c8d4e8;
    background: #eaf1ff;
}

.ajc-groupe-entete p {
    margin: 0;
    color: #526381;
    font-weight: 700;
}

.ajc-groupe-entete h2 {
    margin: 3px 0 0;
    color: #1e3a8a;
}

.ajc-groupe-chapitres {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
}

.ajc-catalogue-chapitre {
    padding: 22px;
    border: 1px solid #c8d4e8;
    border-left: 5px solid #3b82f6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.08);
}

.ajc-catalogue-chemin {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.ajc-catalogue-chemin span {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
}

.ajc-catalogue-chapitre h3 {
    margin: 0 0 12px;
    color: #1e3a8a;
}

.ajc-chapitre-ordre {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eaf1ff;
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 700;
}

.ajc-catalogue-brouillon {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff3dc;
    color: #9a5400;
    font-weight: 700;
}

.ajc-catalogue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.ajc-catalogue-actions a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #1e3a8a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.ajc-catalogue-actions a:hover {
    background: #3b82f6;
    color: #fff;
}

.ajc-catalogue-actions .ajc-action-secondaire {
    border: 1px solid #1e3a8a;
    background: #fff;
    color: #1e3a8a;
}

.ajc-catalogue-actions .ajc-action-secondaire:hover {
    background: #eaf1ff;
    color: #1e3a8a;
}

.ajc-catalogue-aucun,
.ajc-catalogue-vide {
    padding: 24px;
    border: 1px dashed #b8c6df;
    border-radius: 12px;
    text-align: center;
}

.ajc-catalogue [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .ajc-groupe-chapitres {
        grid-template-columns: 1fr;
    }

    .ajc-catalogue-filtres {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ajc-catalogue-filtres {
        grid-template-columns: 1fr;
    }

    .ajc-catalogue {
        padding-right: 10px;
        padding-left: 10px;
    }

    .ajc-catalogue-actions a {
        width: 100%;
        text-align: center;
    }
}
