/* Sommaire (liens d'ancrage) en haut de la page des particules */

.particules-sommaire {
    scroll-margin-top: 90px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.particules-sommaire .sommaire-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}

.particules-sommaire .sommaire-link:hover,
.particules-sommaire .sommaire-link:focus-visible {
    background: #27374d;
    border-color: rgba(220,38,38,.4);
    color: #fff;
}

.particules-sommaire .tab-symbol {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    color: #f87171;
    min-width: 1.5rem;
    text-align: center;
}

.particules-sommaire .tab-label {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.particules-sommaire .tab-label small {
    color: #94a3b8;
    font-weight: 400;
    font-size: .75rem;
}

/* En-tête de chaque section de particule (dans le contenu, plus de sidebar) */

.particule-section {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 2px solid rgba(255,255,255,.08);
    scroll-margin-top: 90px;
}

.particule-section:first-of-type {
    margin-top: 24px;
}

.particule-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.particule-section-header .tab-symbol {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.4rem;
    line-height: 1;
    color: #f87171;
}

.particule-section-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    flex: 1;
}

.particule-section-title small {
    display: block;
    margin-top: 2px;
    font-size: .9rem;
    font-weight: 500;
    color: #94a3b8;
}

.retour-sommaire {
    flex-shrink: 0;
    font-size: .8rem;
    font-weight: 600;
    color: #cbd5e1;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.retour-sommaire:hover,
.retour-sommaire:focus-visible {
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ===== Barre de navigation par niveau JLPT ===== */
.niveau-nav-strip {
    padding: 20px 0 0;
}

.niveau-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.niveau-nav .niveau-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1;
    transition: all .15s ease;
}

.niveau-nav a.niveau-link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.niveau-nav .niveau-link.active {
    background: #f87171;
    border-color: #f87171;
    color: #fff;
}

.niveau-nav .niveau-link.disabled {
    opacity: .4;
    cursor: not-allowed;
}

.niveau-nav .niveau-link small {
    font-weight: 500;
    font-size: .75rem;
    opacity: .85;
}
