/* Grande box ESV avec 3 catégories côte à côte */
.category-box.esv-all {
    height: auto;
    min-height: 400px;
}

/* Ligne des 3 catégories M6/M8/M10 */
.categories-row {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cat-col {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header cliquable global */
.category-header.global-toggle {
    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-weight: 600;
}

.toggle-arrow {
    font-size: 1.2rem;
}

/* Bloc infos global */
.category-details.global-details {
    width: 100%;
    margin-top: 1.5rem;
    display: none; /* géré en JS */
    background: rgba(0, 0, 0, 0.35);
    border-radius: 15px;
    padding: 1.5rem;
}

.category-details.global-details .details-block {
    margin-bottom: 1.5rem;
}

.category-details.global-details .details-block:last-child {
    margin-bottom: 0;
}

.category-details.global-details h3 {
    color: var(--jaune);
    margin-bottom: 0.5rem;
}

.category-details.global-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-details.global-details li {
    margin-bottom: 0.4rem;
}

/* Bloc Loisirs dans la grande box */
.loisirs-link {
    text-decoration: none;
    color: inherit;
    margin-top: 2rem;
    width: 100%;
}

.loisirs-block {
    margin-top: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.3s, transform 0.3s;
}

.loisirs-block .category-title {
    font-size: 1.6rem;
}

.loisirs-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.loisirs-link:hover .loisirs-block {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .categories-row {
        flex-direction: column;
        align-items: center;
    }
}
