/* NIVEAU 1 : grands thèmes */
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--nested > .md-nav__link {
    background: #dbeafe;
    color: #174ea6;
    font-weight: 700;
    border-radius: 6px;
    padding: 10px 8px;
    margin: 5px 0;
}

/* NIVEAU 2 : modules */
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--nested
> .md-nav > .md-nav__list > .md-nav__item--nested > .md-nav__link {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
    border-radius: 5px;
    padding: 7px 6px;
    margin: 3px 0;
}

/* NIVEAU 3 : fiches / chapitres */
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item--nested
> .md-nav > .md-nav__list > .md-nav__item > .md-nav__link {
    color: #475569;
}

/* Fiche sélectionnée */
.md-sidebar--primary .md-nav__link--active {
    color: #1d4ed8 !important;
    font-weight: 700;
}


/* ===== PAGE D'ACCUEIL TSSR ===== */

.md-content img[src*="banniere-tssr"] {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 24px;
}

.accueil-cartes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.accueil-carte {
    padding: 18px;
    border: 1px solid;
    border-radius: 10px;
}

.accueil-carte h3 {
    margin: 0 0 12px;
    font-weight: 700;
}

.accueil-carte p {
    margin: 0;
}

.carte-bleue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.carte-verte {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.carte-orange {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.carte-violette {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}

@media (min-width: 1200px) {
    .accueil-cartes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .accueil-cartes {
        grid-template-columns: 1fr;
    }
}
