* {
    box-sizing: border-box;
}

/* =========================================================
   KIZUMA — BIBLIOTHÈQUE PC V1
   Refonte ciblée : navigation principale + bibliothèque.
   ========================================================= */

.page-bibliotheque-pc {
    --library-surface: #151822;
    --library-surface-hover: #1a1e2a;
    --library-border: #292e3c;
    --library-muted: #9299aa;
    --library-purple: #826bf7;
    max-width: 1260px;
    margin: 0 auto;
}

.bibliotheque-entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
}

.bibliotheque-entete .sur-titre {
    display: block;
    margin-bottom: 7px;
    color: #9e8dff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.bibliotheque-entete h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.bibliotheque-entete p {
    margin: 9px 0 0;
    color: var(--library-muted);
    font-size: 14px;
}

.bibliotheque-total {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 9px 13px;
    color: var(--library-muted);
    background: rgba(21, 24, 34, .78);
    border: 1px solid var(--library-border);
    border-radius: 10px;
    font-size: 12px;
}

.bibliotheque-total strong {
    color: #f5f3ff;
    font-size: 17px;
}

.bibliotheque-barre-outils {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 56px;
    margin-bottom: 18px;
    padding: 6px;
    background: rgba(19, 22, 31, .92);
    border: 1px solid var(--library-border);
    border-radius: 13px;
}

.bibliotheque-onglets {
    gap: 3px;
}

.bibliotheque-onglets a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 9px;
    color: #a6adbc;
    font-size: 13px;
    font-weight: 700;
}

.bibliotheque-onglets a:hover {
    color: #fff;
    background: #202431;
}

.bibliotheque-onglets a.is-active {
    color: #fff;
    background: #2a244d;
    box-shadow: inset 0 0 0 1px rgba(130, 107, 247, .32);
}

.bibliotheque-filtre {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    padding-right: 4px;
}

.bibliotheque-filtre label {
    color: #7f8797;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bibliotheque-filtre select {
    width: 172px;
    height: 40px;
    padding: 0 34px 0 12px;
    background-color: #1b1f2a;
    border-color: #303646;
    border-radius: 8px;
    font-size: 12px;
}

.bibliotheque-sous-onglets {
    justify-content: flex-start;
    gap: 4px;
    margin: -3px 0 18px;
}

.bibliotheque-sous-onglets a {
    padding: 7px 12px;
    border-radius: 999px;
    color: #8e96a7;
    background: #181b25;
    border: 1px solid #292e3b;
    font-size: 11px;
    font-weight: 700;
}

.bibliotheque-sous-onglets a.is-active {
    color: #dcd6ff;
    border-color: rgba(130, 107, 247, .52);
    background: rgba(130, 107, 247, .13);
}

.bibliotheque-grille {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.bibliotheque-grille-compacte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bibliotheque-carte {
    position: relative;
    min-width: 0;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 17px;
    overflow: hidden;
    color: #f2f3f8;
    text-decoration: none;
    background: linear-gradient(145deg, var(--library-surface), #12151d);
    border: 1px solid var(--library-border);
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.bibliotheque-carte::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(#9a87ff, #6550db);
    transition: opacity .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .bibliotheque-carte:hover {
        color: #fff;
        transform: translateY(-2px);
        border-color: #47405f;
        background: linear-gradient(145deg, var(--library-surface-hover), #151821);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    }

    .bibliotheque-carte:hover::before {
        opacity: 1;
    }
}

.bibliotheque-carte.is-abandoned {
    border-color: rgba(208, 92, 105, .3);
}

.bibliotheque-carte.is-compact {
    min-height: 88px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 17px;
}

.bibliotheque-carte-principale {
    min-width: 0;
}

.bibliotheque-carte-titre {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.bibliotheque-carte-titre h2 {
    flex: 1 1 12rem;
    min-width: 0;
    margin: 0;
    overflow: visible;
    color: #f3f4f8;
    font-size: 15px;
    line-height: 1.35;
    white-space: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.badge-etat {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.badge-abandon {
    color: #ffadb5;
    background: rgba(204, 73, 89, .13);
    border: 1px solid rgba(216, 90, 105, .3);
}

.badge-en-cours {
    color: #cfc6ff;
    background: rgba(130, 107, 247, .14);
    border: 1px solid rgba(130, 107, 247, .3);
}

.bibliotheque-carte-meta {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow: hidden;
}

.bibliotheque-carte-meta span {
    flex: 0 0 auto;
    color: #8e96a7;
    font-size: 11px;
}

.bibliotheque-carte-meta span + span::before {
    content: "·";
    margin-right: 6px;
    color: #525969;
}

.bibliotheque-carte-resultats {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.bibliotheque-ligne-note-tier {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.bibliotheque-note {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    margin-right: auto;
}

.bibliotheque-note strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.04em;
}

.bibliotheque-note small {
    color: #737b8b;
    font-size: 10px;
}

.bibliotheque-tier {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.badge-recommandation {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 750;
}

.badge-recommandation.is-positive {
    color: #8ce0ae;
    background: rgba(59, 164, 104, .11);
}

.badge-recommandation.is-neutral {
    color: #949baa;
    background: rgba(139, 147, 163, .08);
}

.bibliotheque-carte-fin {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 13px;
}

.badge-priorite {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    color: #f0cd78;
    background: rgba(222, 167, 54, .1);
    border: 1px solid rgba(222, 167, 54, .18);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 800;
}

.carte-fleche {
    flex: 0 0 auto;
    color: #6f7788;
    font-size: 18px;
    transition: color .18s ease, transform .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .bibliotheque-carte:hover .carte-fleche {
        color: #b9adff;
        transform: translateX(3px);
    }
}

.bibliotheque-vide {
    min-height: 275px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px;
    text-align: center;
    background: rgba(20, 23, 32, .66);
    border: 1px dashed #343949;
    border-radius: 14px;
}

.bibliotheque-vide-icone {
    margin-bottom: 12px;
    color: #7766d3;
    font-size: 34px;
}

.bibliotheque-vide h2 {
    margin-bottom: 7px;
    font-size: 19px;
}

.bibliotheque-vide p {
    max-width: 430px;
    margin-bottom: 18px;
    color: var(--library-muted);
    font-size: 13px;
}

@media (min-width: 921px) {
    .nakama-shell .barre-navigation {
        min-height: 66px;
        flex-wrap: nowrap;
        gap: clamp(15px, 2vw, 28px);
        padding: 0 clamp(24px, 4vw, 64px);
        background: rgba(14, 16, 23, .96);
    }

    .nakama-shell .logo-nakama {
        flex: 0 0 auto;
        gap: 9px;
        font-size: 16px;
    }

    .nakama-shell .logo-nakama img {
        width: 31px;
        height: 31px;
        border-radius: 9px;
    }

    .nakama-shell .recherche-navbar {
        flex: 1 1 360px;
        order: initial;
        max-width: 470px;
        min-width: 190px;
    }

    .nakama-shell .recherche-navbar-champ input {
        height: 38px;
        background: #191c25;
        border-color: #2b303c;
        border-radius: 999px;
    }

    .nakama-shell .navigation-principale-pc {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        padding: 0;
        overflow: visible;
        gap: 4px;
    }

    .nakama-shell .navigation-principale-pc > a:not(.bouton-ajouter):not(.lien-profil-navbar) {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 11px;
        border-radius: 8px;
        color: #9ea5b5;
        font-size: 12px;
        font-weight: 700;
    }

    .nakama-shell .navigation-principale-pc > a:not(.bouton-ajouter):not(.lien-profil-navbar):hover {
        color: #fff;
        background: #1c202a;
    }

    .nakama-shell .navigation-principale-pc > a.nav-actif:not(.bouton-ajouter):not(.lien-profil-navbar) {
        color: #d8d1ff !important;
        background: rgba(130, 107, 247, .1) !important;
        text-shadow: none !important;
    }

    .nakama-shell .navigation-principale-pc .bouton-ajouter {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        padding: 0 14px;
        border-radius: 9px;
        font-size: 12px;
        box-shadow: 0 7px 20px rgba(100, 77, 218, .24);
    }

    .nakama-shell .lien-profil-navbar {
        width: 39px;
        height: 39px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 3px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: 50%;
    }

    .nakama-shell .lien-profil-navbar:hover,
    .nakama-shell .lien-profil-navbar.nav-actif {
        border-color: #7765df !important;
        background: rgba(130, 107, 247, .09) !important;
        text-shadow: none !important;
    }

    .nakama-shell .lien-profil-navbar .avatar-navbar {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
    }

    .nakama-shell main {
        width: min(92%, 1500px);
        margin-top: 32px;
    }
}

@media (max-width: 1120px) and (min-width: 921px) {
    .bibliotheque-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nakama-shell .navigation-principale-pc > a:not(.bouton-ajouter):not(.lien-profil-navbar) {
        padding-inline: 8px;
    }
}

@media (max-width: 760px) {
    .page-bibliotheque-pc {
        margin: 0;
    }

    .bibliotheque-entete {
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .bibliotheque-entete h1 {
        font-size: 28px;
    }

    .bibliotheque-entete > div > p,
    .bibliotheque-total {
        display: none;
    }

    .bibliotheque-barre-outils {
        display: block;
        min-height: 0;
        padding: 5px;
        overflow: visible;
    }

    .bibliotheque-onglets {
        width: 100%;
        max-width: 100%;
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: none;
    }

    .bibliotheque-onglets a {
        flex: 0 0 auto;
        min-width: max-content;
        min-height: 40px;
        padding-inline: 13px;
        font-size: 12px;
        white-space: nowrap;
        writing-mode: horizontal-tb;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bibliotheque-filtre {
        justify-content: space-between;
        padding: 7px 5px 3px;
        border-top: 1px solid #272c38;
    }

    .bibliotheque-filtre select {
        width: min(70%, 210px);
    }

    .bibliotheque-grille,
    .bibliotheque-grille-compacte {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bibliotheque-carte,
    .bibliotheque-carte.is-compact {
        min-height: 94px;
        padding: 14px;
    }

    .bibliotheque-carte-resultats {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .bibliotheque-ligne-note-tier {
        width: 100%;
        justify-content: space-between;
    }

    .badge-recommandation {
        margin-left: 0;
        align-self: flex-start;
        white-space: nowrap;
        overflow: visible;
        text-overflow: unset;
        max-width: none;
        font-size: 11px;
    }
}

/* =========================================================
   KIZUMA V1 — TMDB, TIER LISTS, STATISTIQUES ET INSTALLATION
   ========================================================= */

.tmdb-vues,
.tier-type-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: #11141c;
    border: 1px solid #292e3c;
    border-radius: 11px;
}

.tmdb-vues {
    width: fit-content;
    margin-bottom: 10px;
}

.tmdb-vues a,
.tier-type-tabs a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #858d9d;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.tmdb-vues a:hover,
.tmdb-vues a.is-active,
.tier-type-tabs a:hover,
.tier-type-tabs a.is-active {
    color: #fff;
    background: #27233d;
}

.tmdb-catalogue-recherche {
    display: grid;
    grid-template-columns: minmax(240px, 420px) auto auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.tmdb-catalogue-recherche input {
    min-height: 42px;
}

.tmdb-catalogue-recherche > a {
    color: #8e96a6;
    font-size: 11px;
}

.tmdb-fiche-ligne b.is-associated {
    color: #8ddbad;
}

.tmdb-section-entete-selection small {
    display: block;
    margin-top: 4px;
    color: #858d9d;
    font-size: 10px;
}

.tmdb-correction-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 11px 12px;
    color: #cdc7f7;
    background: rgba(114, 89, 243, .08);
    border: 1px solid rgba(130, 107, 247, .22);
    border-radius: 9px;
}

.tmdb-correction-info strong,
.tmdb-correction-info span {
    display: block;
}

.tmdb-correction-info strong {
    font-size: 11px;
}

.tmdb-correction-info span {
    margin-top: 3px;
    color: #858d9d;
    font-size: 10px;
}

.tmdb-correction-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tmdb-correction-info button,
.tmdb-fusion-form button {
    min-height: 34px;
    padding: 0 10px;
    color: #f0b1b7;
    background: rgba(204, 73, 89, .08);
    border: 1px solid rgba(204, 73, 89, .28);
    border-radius: 7px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 750;
}

.tmdb-fusion-form {
    display: grid;
    justify-items: stretch;
    gap: 5px;
}

.tmdb-fusion-form small {
    color: #8ddbad;
    text-align: center;
}

.tmdb-historique-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tmdb-historique-actions a {
    color: #aaa0eb;
    font-size: 10px;
    font-weight: 750;
}

.page-tier-v2,
.page-statistiques-v2 {
    max-width: 1180px;
    margin: 0 auto;
}

.tier-entete-v2,
.statistiques-entete-v2 {
    margin-bottom: 14px;
}

.tier-entete-v2 h1,
.statistiques-entete-v2 h1 {
    margin: 4px 0 5px;
}

.tier-entete-v2 p,
.statistiques-entete-v2 p {
    margin: 0;
    color: #858d9d;
    font-size: 13px;
}

.tier-type-tabs {
    width: fit-content;
    margin-bottom: 14px;
}

.page-tier-v2 .ligne-tier-list {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 94px;
}

.page-tier-v2 .lettre-tier {
    font-size: 40px;
}

.page-tier-v2 .contenu-tier-list {
    align-items: center;
}

.page-tier-v2 .anime-tier-texte {
    min-width: 180px;
}

.statistiques-kpis-v2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.statistiques-kpis-v2 article,
.statistiques-bloc-v2 {
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
}

.statistiques-kpis-v2 article {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 17px;
}

.statistiques-kpis-v2 span {
    color: #858d9d;
    font-size: 11px;
}

.statistiques-kpis-v2 strong {
    margin-top: 8px;
    color: #fff;
    font-size: 29px;
    line-height: 1;
}

.statistiques-kpis-v2 small {
    margin-left: 3px;
    color: #747d8e;
    font-size: 11px;
}

.statistiques-grille-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.statistiques-bloc-v2 {
    padding: 18px;
}

.statistiques-bloc-entete-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.statistiques-bloc-entete-v2 span,
.statistiques-bloc-entete-v2 h2 {
    display: block;
}

.statistiques-bloc-entete-v2 span {
    margin-bottom: 4px;
    color: #777f90;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.statistiques-bloc-entete-v2 h2 {
    margin: 0;
    font-size: 17px;
}

.statistiques-bloc-entete-v2 > strong {
    color: #bcb3f5;
    font-size: 22px;
}

.statistiques-progression-v2,
.statistiques-genres-liste-v2 div > div {
    overflow: hidden;
    background: #242936;
    border-radius: 999px;
}

.statistiques-progression-v2 {
    height: 9px;
}

.statistiques-progression-v2 span,
.statistiques-genres-liste-v2 i {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #7259f3, #a38cff);
    border-radius: inherit;
}

.statistiques-bloc-v2 > p {
    margin: 10px 0 0;
    color: #858d9d;
    font-size: 11px;
}

.statistiques-rangs-v2,
.statistiques-genres-liste-v2 {
    display: grid;
    gap: 8px;
}

.statistiques-rangs-v2 > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 5px 8px;
    background: #1b1f2a;
    border-radius: 8px;
}

.statistiques-rangs-v2 span,
.statistiques-rangs-v2 strong {
    font-size: 11px;
}

.statistiques-rangs-v2 span {
    color: #aeb4c0;
}

.statistiques-rangs-v2 strong {
    color: #858d9d;
}

.statistiques-rang-badge {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

.statistiques-rang-badge.rang-s { background: #c28b2b; color: #15100a; }
.statistiques-rang-badge.rang-a { background: #7557d7; }
.statistiques-rang-badge.rang-b { background: #3f7fcf; }
.statistiques-rang-badge.rang-c { background: #458f67; }
.statistiques-rang-badge.rang-d { background: #9e633a; }
.statistiques-rang-badge.rang-e { background: #914452; }

.statistiques-genres-liste-v2 > div {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) minmax(180px, 2fr) 36px;
    align-items: center;
    gap: 12px;
}

.statistiques-genres-liste-v2 span {
    color: #c9cdd5;
    font-size: 12px;
}

.statistiques-genres-liste-v2 div > div {
    height: 7px;
}

.statistiques-genres-liste-v2 strong {
    color: #858d9d;
    font-size: 11px;
    text-align: right;
}

.statistiques-vide-v2 {
    padding: 24px;
    color: #777f90;
    background: #1a1e29;
    border-radius: 9px;
    font-size: 12px;
    text-align: center;
}

.profil-installation-pwa {
    display: none;
}

.profil-installation-pwa[hidden] {
    display: none !important;
}

@media (max-width: 760px) {
    .tmdb-catalogue-recherche {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .tmdb-catalogue-recherche > a {
        grid-column: 1 / -1;
    }

    .tmdb-vues,
    .tier-type-tabs {
        width: 100%;
    }

    .tmdb-vues a,
    .tier-type-tabs a {
        flex: 1;
        padding-inline: 8px;
    }

    .tmdb-correction-info {
        align-items: stretch;
        flex-direction: column;
    }

    .tmdb-correction-info button {
        width: 100%;
        min-height: 40px;
    }

    .tmdb-correction-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tmdb-resultat > .tmdb-fusion-form {
        grid-column: 1 / -1;
    }

    .statistiques-kpis-v2,
    .statistiques-grille-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .statistiques-kpis-v2 article {
        min-height: 92px;
        padding: 14px;
    }

    .statistiques-kpis-v2 strong {
        font-size: 24px;
    }

    .statistiques-grille-v2 > section {
        grid-column: 1 / -1;
    }

    .statistiques-bloc-v2 {
        padding: 15px;
    }

    .statistiques-genres-liste-v2 > div {
        grid-template-columns: minmax(90px, .8fr) minmax(90px, 1.5fr) 28px;
        gap: 8px;
    }

    .page-tier-v2 .ligne-tier-list {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .page-tier-v2 .anime-tier-texte {
        min-width: min(155px, 100%);
    }

    .profil-installation-pwa {
        min-height: 68px;
        display: flex;
        align-items: center;
        gap: 11px;
        margin-bottom: 14px;
        padding: 11px;
        color: #fff;
        background:
            radial-gradient(circle at 100% 0, rgba(141, 116, 255, .2), transparent 55%),
            #171a25;
        border: 1px solid rgba(130, 107, 247, .28);
        border-radius: 13px;
    }

    .profil-installation-pwa-icone {
        width: 39px;
        height: 39px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #d9d2ff;
        background: rgba(130, 107, 247, .16);
        border-radius: 10px;
    }

    .profil-installation-pwa-icone svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .profil-installation-pwa > div {
        min-width: 0;
        flex: 1;
    }

    .profil-installation-pwa strong,
    .profil-installation-pwa span {
        display: block;
    }

    .profil-installation-pwa strong {
        font-size: 13px;
    }

    .profil-installation-pwa > div > span {
        margin-top: 3px;
        color: #929aab;
        font-size: 10px;
    }

    .profil-installation-pwa-bouton {
        min-height: 38px;
        flex: 0 0 auto;
        padding: 0 12px;
        color: #fff;
        background: #7259f3;
        border: 0;
        border-radius: 9px;
        cursor: pointer;
        font-size: 11px;
        font-weight: 800;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, #1b2034 0, transparent 32%),
        #0d0f14;
    color: #f2f3f5;
    min-height: 100vh;
}

a {
    color: inherit;
}

.barre-navigation {
    min-height: 74px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 20, 28, 0.94);
    border-bottom: 1px solid #292d38;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

nav a {
    text-decoration: none;
    color: #aeb3c0;
    font-size: 14px;
    transition: 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    nav a:hover {
        color: white;
    }
}

.bouton-ajouter {
    background: #7259f3;
    padding: 10px 15px;
    border-radius: 8px;
    color: white !important;
    font-weight: bold;
}

main {
    width: 90%;
    max-width: 1500px;
    margin: 42px auto 80px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.sous-titre {
    color: #9096a5;
    margin-bottom: 7px;
}

.compteur {
    color: #686e7c;
    font-size: 13px;
}

.titre-page {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.bouton-principal {
    display: inline-block;
    background: #7259f3;
    color: white;
    border: 0;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .bouton-principal:hover {
        background: #806af5;
    }
}

.bouton-secondaire {
    display: inline-block;
    padding: 11px 16px;
    background: #242833;
    color: #ddd;
    border-radius: 8px;
    text-decoration: none;
}

.bouton-danger {
    padding: 12px 18px;
    background: transparent;
    border: 1px solid #6e343b;
    border-radius: 8px;
    color: #ee7d87;
    cursor: pointer;
}

.filtres {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    background: #151821;
    padding: 15px;
    border: 1px solid #252a35;
    border-radius: 11px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background: #171a22;
    border: 1px solid #323743;
    border-radius: 7px;
    color: white;
    font: inherit;
}

.filtres input {
    flex: 1;
    min-width: 250px;
}

.filtres select {
    width: auto;
    min-width: 160px;
}

.filtres button {
    padding: 10px 18px;
    border: 0;
    border-radius: 7px;
    background: #7259f3;
    color: white;
    cursor: pointer;
}


/* =========================================================
   CARTES
   ========================================================= */

.grille-animes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.carte-anime {
    background: #151821;
    border: 1px solid #252936;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .carte-anime:hover {
        transform: translateY(-5px);
        border-color: #484e61;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
    }

    .carte-anime:hover .affiche-anime {
        transform: scale(1.035);
    }
}

.tier {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}

.tier-S {
    background: #e6a93d;
    color: #15100a;
}

.tier-A {
    background: #9b6df1;
    color: white;
}

.tier-B {
    background: #4d8fea;
    color: white;
}

.tier-C {
    background: #55ad7c;
    color: white;
}

.tier-D {
    background: #c57c48;
    color: white;
}

.tier-E {
    background: #ad515f;
    color: white;
}

.contenu-carte {
    padding: 15px;
}

.contenu-carte h2 {
    font-size: 16px;
    margin-bottom: 11px;
    line-height: 1.3;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tags span,
.badges-detail span {
    display: inline-block;
    background: #252935;
    color: #aeb3bf;
    padding: 5px 7px;
    border-radius: 5px;
    font-size: 11px;
}

.recommande-carte {
    margin: 12px 0 0;
    font-size: 12px;
    color: #78d39a;
}


/* =========================================================
   DETAIL
   ========================================================= */

.detail-anime {
    max-width: 1200px;
    margin: auto;
}

.detail-entete {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 40px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 15px;
    padding: 28px;
}

.detail-affiche img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-oeuvre {
    color: #7259f3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.detail-titre-ligne {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.detail-titre-ligne h1 {
    font-size: 42px;
}

.grande-tier {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    font-size: 34px;
    flex-shrink: 0;
}

.badges-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badges-detail span {
    padding: 7px 10px;
    font-size: 12px;
}

.grosse-note {
    margin-top: 34px;
}

.grosse-note span {
    font-size: 68px;
    line-height: 1;
    font-weight: 900;
}

.grosse-note small {
    color: #747b8c;
    font-size: 20px;
}

.badge-recommande {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 12px;
    border-radius: 7px;
    background: rgba(71, 168, 117, 0.13);
    color: #76d39b;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.section-detail {
    margin-top: 25px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 13px;
    padding: 25px;
}

.grille-notes-detail {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 13px;
}

.note-detail {
    padding: 18px;
    border-radius: 10px;
    background: #1d202a;
}

.note-detail span {
    display: block;
    font-size: 12px;
    color: #858b99;
    margin-bottom: 13px;
}

.note-detail strong {
    font-size: 27px;
}

.note-detail small {
    color: #707685;
}

.grille-detail-bas {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.texte-commentaire {
    color: #bbc0ca;
    line-height: 1.7;
    white-space: pre-line;
}

.personnage-favori {
    font-size: 22px;
    font-weight: bold;
}


/* =========================================================
   TIER LIST
   ========================================================= */

.tier-list {
    display: grid;
    gap: 4px;
}

.ligne-tier-list {
    display: grid;
    grid-template-columns: 105px 1fr;
    min-height: 185px;
    background: #151821;
    border: 1px solid #272b36;
    border-radius: 12px;
    overflow: visible;
}

.lettre-tier {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 900;
}

.contenu-tier-list {
    padding: 15px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 13px;
}

.mini-anime-tier:hover {
    transform: translateY(-3px);
}

.mini-anime-tier img,
.mini-placeholder {
    width: 105px;
    height: 145px;
    object-fit: cover;
    border-radius: 7px;
    background: #242936;
}

.mini-info strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}

.mini-info span {
    color: #858b98;
    font-size: 10px;
}

.tier-vide {
    color: #696f7c;
}


/* =========================================================
   FORMULAIRES
   ========================================================= */

.formulaire-page {
    max-width: 850px;
    margin: auto;
}

.formulaire {
    display: grid;
    gap: 20px;
}

.bloc-formulaire {
    padding: 25px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 13px;
}

.bloc-formulaire label {
    display: block;
    margin-top: 18px;
    color: #c7cad1;
}

.bloc-formulaire input,
.bloc-formulaire select,
.bloc-formulaire textarea {
    margin-top: 8px;
}

.deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.notes-formulaire {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.aide {
    color: #767c89;
    font-size: 13px;
}

.checkbox {
    display: flex !important;
    gap: 10px;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.actions-formulaire {
    display: flex;
    gap: 12px;
}


/* =========================================================
   STATISTIQUES
   ========================================================= */

.statistiques-principales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 17px;
    margin: 30px 0;
}

.stat-card {
    background: #151821;
    padding: 23px;
    border-radius: 12px;
    border: 1px solid #272b37;
}

.stat-card span {
    display: block;
    color: #888e9c;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 29px;
}

.stats-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bloc-stat {
    padding: 25px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 12px;
}

.ligne-stat {
    min-height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #292d38;
}


/* =========================================================
   VIDE
   ========================================================= */

.etat-vide {
    padding: 80px 30px;
    text-align: center;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

    .barre-navigation {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 5%;
        gap: 18px;
    }

    nav {
        flex-wrap: wrap;
    }

    .detail-entete {
        grid-template-columns: 220px 1fr;
    }

    .detail-affiche {
        height: 330px;
    }

    .grille-notes-detail {
        grid-template-columns: repeat(3, 1fr);
    }

    .grille-detail-bas {
        grid-template-columns: 1fr;
    }

    .stats-grille {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    main {
        width: 94%;
        margin-top: 25px;
    }

    h1 {
        font-size: 29px;
    }

    .titre-page {
        flex-direction: column;
        align-items: flex-start;
    }

    .grille-animes {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .affiche-wrapper {
        height: 245px;
    }

    .detail-entete {
        grid-template-columns: 1fr;
    }

    .detail-affiche {
        width: 220px;
        height: 320px;
    }

    .detail-titre-ligne h1 {
        font-size: 31px;
    }

    .grille-notes-detail {
        grid-template-columns: 1fr 1fr;
    }

    .deux-colonnes,
    .notes-formulaire {
        grid-template-columns: 1fr;
    }

    .ligne-tier-list {
        grid-template-columns: 60px 1fr;
    }

    .lettre-tier {
        font-size: 36px;
    }

}

/* =========================================================
   CARTES SANS AFFICHES
   ========================================================= */

.grille-animes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.carte-sans-image {
    padding: 20px;
    min-height: 180px;
}

.carte-entete {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.carte-entete h2 {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 12px;
}

.tier-carte {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    font-size: 22px;
    flex-shrink: 0;
}

.note-carte {
    margin-top: 25px;
    font-size: 34px;
    font-weight: 900;
}

.note-carte small {
    font-size: 13px;
    color: #777d89;
}


/* =========================================================
   FICHE SANS AFFICHE
   ========================================================= */

.detail-entete-sans-image {
    display: block;
}

.detail-entete-sans-image .detail-infos {
    width: 100%;
}


/* =========================================================
   TIER LIST TEXTE
   ========================================================= */

.contenu-tier-list {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.anime-tier-texte {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 170px;
    max-width: 250px;

    padding: 11px 13px;

    background: #20242e;

    border: 1px solid #303541;
    border-radius: 8px;

    text-decoration: none;

    transition: 0.2s;
}

.anime-tier-texte:hover {
    background: #292e3a;
    transform: translateY(-2px);
}

.anime-tier-texte strong {
    font-size: 13px;
}

.anime-tier-texte span {
    font-size: 11px;
    color: #898f9d;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-kpi {
    padding: 22px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 12px;
}

.dashboard-kpi span {
    display: block;
    margin-bottom: 12px;
    color: #8c92a0;
    font-size: 13px;
}

.dashboard-kpi strong {
    font-size: 31px;
}

.dashboard-kpi small {
    font-size: 14px;
    color: #777d8a;
}


.dashboard-deux-colonnes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}


.dashboard-bloc {
    padding: 24px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 13px;
}

.dashboard-bloc-large {
    margin-bottom: 20px;
}

.dashboard-bloc h2 {
    font-size: 19px;
    margin-bottom: 22px;
}


.dashboard-titre-bloc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-titre-bloc h2 {
    margin: 0;
}

.dashboard-titre-bloc a {
    color: #8d7cf5;
    text-decoration: none;
    font-size: 12px;
}


/* =========================================================
   TOP
   ========================================================= */

.dashboard-top {
    display: grid;
}

.dashboard-top-ligne {
    min-height: 57px;

    display: grid;
    grid-template-columns: 35px 1fr 35px 55px;

    gap: 10px;
    align-items: center;

    text-decoration: none;

    border-bottom: 1px solid #252a34;

    transition: 0.2s;
}

.dashboard-top-ligne:hover {
    padding-left: 5px;
    background: #191d26;
}

.dashboard-position {
    color: #696f7c;
    font-weight: bold;
}

.dashboard-top-nom {
    min-width: 0;
}

.dashboard-top-nom strong {
    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 13px;
}

.dashboard-top-nom small {
    display: block;

    margin-top: 3px;

    color: #737986;
    font-size: 10px;
}

.dashboard-top-note {
    text-align: right;
}

.dashboard-mini-tier {
    width: 30px;
    height: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   CRITÈRES
   ========================================================= */

.criteres-dashboard {
    display: grid;
    gap: 20px;
}

.critere-dashboard {
    display: grid;
    gap: 8px;
}

.critere-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.critere-entete span {
    color: #a8adb8;
    font-size: 13px;
}

.critere-entete strong {
    font-size: 13px;
}

.barre-fond {
    height: 7px;

    background: #282d38;

    border-radius: 100px;

    overflow: hidden;
}

.barre-valeur {
    height: 100%;

    background: #7259f3;

    border-radius: 100px;
}


/* =========================================================
   TIERS
   ========================================================= */

.dashboard-tiers {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.dashboard-tier {
    padding: 15px;

    background: #1b1f28;

    border: 1px solid #292e3a;
    border-radius: 10px;

    text-align: center;
    text-decoration: none;

    transition: 0.2s;
}

.dashboard-tier:hover {
    transform: translateY(-3px);

    border-color: #474d5e;
}

.dashboard-tier-lettre {
    width: 48px;
    height: 48px;

    margin: 0 auto 12px;

    border-radius: 9px;

    font-size: 22px;
}

.dashboard-tier strong {
    display: block;

    font-size: 24px;
}

.dashboard-tier span {
    display: block;

    margin-top: 3px;

    color: #7e8492;
    font-size: 11px;
}


/* =========================================================
   GENRES
   ========================================================= */

.genres-dashboard {
    display: grid;
    gap: 16px;
}

.genre-dashboard {
    display: grid;
    gap: 7px;
}

.genre-dashboard-entete {
    display: flex;
    justify-content: space-between;
}

.genre-dashboard-entete span {
    color: #a8adb8;
    font-size: 13px;
}

.genre-dashboard-entete strong {
    font-size: 12px;
}


/* =========================================================
   S TIER
   ========================================================= */

.dashboard-s-tier {
    display: grid;
    gap: 9px;
}

.dashboard-s-ligne {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 11px;

    background: #1b1f28;

    border: 1px solid #292e39;
    border-radius: 9px;

    text-decoration: none;

    transition: 0.2s;
}

.dashboard-s-ligne:hover {
    background: #222630;
}

.dashboard-s-ligne strong {
    display: block;

    font-size: 13px;
}

.dashboard-s-ligne span {
    display: block;

    margin-top: 3px;

    color: #838996;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE DASHBOARD
   ========================================================= */

@media (max-width: 1100px) {

    .dashboard-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-tiers {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 800px) {

    .dashboard-deux-colonnes {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .dashboard-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-tiers {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================================================
   SÉLECTION DES GENRES
   ========================================================= */

.champ-genres {
    margin-top: 18px;
}

.titre-champ {
    display: block;
    margin-bottom: 12px;
    color: #c7cad1;
}

.grille-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.genre-checkbox {
    position: relative;
    margin: 0 !important;
    cursor: pointer;
}

.genre-checkbox span {
    display: block;

    padding: 9px 13px;

    background: #1c2029;

    border: 1px solid #323743;
    border-radius: 8px;

    color: #aeb3bf;

    font-size: 13px;

    transition: 0.15s;
}

.genre-checkbox:hover span {
    border-color: #5a6070;
    color: white;
}

/* =========================================================
   NOTATION
   ========================================================= */

.bloc-notes {
    margin-top: 28px;
}

.bloc-notes h2 {
    margin-bottom: 20px;
}

.ligne-note {
    display: grid;
    grid-template-columns: 130px 1fr 40px 35px;
    align-items: center;
    gap: 12px;

    margin-bottom: 18px;
}

.ligne-note label {
    font-weight: 600;
}

.ligne-note input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.valeur-note {
    font-size: 18px;
    font-weight: bold;
    text-align: right;
}

.sur-dix {
    color: #8c919d;
    font-size: 14px;
}

/* =========================================================
   PROFIL DES NOTES
   ========================================================= */

.profil-notes {
    margin-top: 35px;
}

.profil-notes h2 {
    margin-bottom: 22px;
}

.critere-note {
    margin-bottom: 18px;
}

.critere-entete {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 7px;
}

.critere-entete span {
    color: #c6cad3;
}

.critere-entete strong {
    font-size: 15px;
}

.barre-note {
    height: 9px;

    background: #252a34;

    border-radius: 20px;

    overflow: hidden;
}

.barre-note-remplie {
    height: 100%;

    background: #7259f3;

    border-radius: 20px;
}

@media (max-width: 800px) {

}

/* =========================================================
   NOTATION
   ========================================================= */

.bloc-notes {
    margin-top: 25px;
}

.bloc-notes h2 {
    margin-bottom: 15px;
}

.grille-notation {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.grille-notation label {
    display: flex;
    flex-direction: column;
    gap: 7px;

    font-size: 14px;
    color: #c6cad3;
}

.grille-notation input {
    width: 100%;
    box-sizing: border-box;

    padding: 11px;

    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 800px) {

    .grille-notation {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =========================================================
   FORMULAIRE ANIME
   ========================================================= */

.page-formulaire {
    max-width: 1050px;
    margin: 0 auto;
}

.entete-page {
    margin-bottom: 30px;
}

.entete-page h1 {
    margin-bottom: 8px;
}

.entete-page p {
    color: #9298a5;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section-formulaire {
    margin-bottom: 35px;
    padding: 25px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 12px;
}

.section-formulaire h2 {
    margin-top: 0;
    margin-bottom: 18px;
}


/* =========================================================
   CHAMPS CLASSIQUES
   ========================================================= */

.grille-formulaire {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grille-formulaire label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.champ-large {
    grid-column: 1 / -1;
}

.formulaire-anime input[type="text"],
.formulaire-anime input[type="number"],
.formulaire-anime select,
.formulaire-anime textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    background: #20242d;

    border: 1px solid #343a46;
    border-radius: 8px;

    color: white;

    font-size: 16px;
}

.formulaire-anime textarea {
    resize: vertical;
}


/* =========================================================
   GENRES
   ========================================================= */

.grille-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-checkbox {
    position: relative;
    cursor: pointer;
}

.genre-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.genre-checkbox span {
    display: block;

    padding: 9px 14px;

    background: #20242d;

    border: 1px solid #343a46;
    border-radius: 8px;

    color: #b8bdc7;

    transition: 0.15s;
}

.genre-checkbox:hover span {
    border-color: #666d7b;
    color: white;
}

.genre-checkbox input:checked + span {
    background: #7259f3;
    border-color: #7259f3;
    color: white;
}


/* =========================================================
   NOTATION
   ========================================================= */

.grille-notation {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(130px, 1fr));

    gap: 18px;

    margin-top: 20px;
}

.grille-notation > label {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 0;

    font-weight: 600;
}

.champ-note {
    display: flex;
    align-items: center;
    gap: 7px;
}

.champ-note input {
    min-width: 0;
    width: 100% !important;

    padding: 13px 10px !important;

    text-align: center;

    font-size: 18px !important;
    font-weight: 700;
}

.champ-note > span {
    flex-shrink: 0;

    color: #9298a5;

    font-size: 14px;
}

.aide {
    margin-top: -8px;

    color: #858b98;
    font-size: 13px;
}


/* =========================================================
   MOYENNE
   ========================================================= */

.moyenne-actuelle {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-top: 25px;
    padding: 15px 18px;

    background: #20242d;

    border-radius: 8px;
}

.moyenne-actuelle strong {
    font-size: 22px;
}

.rang-formulaire {
    padding: 5px 10px;

    background: #2d3240;

    border-radius: 6px;

    font-weight: 700;
}


/* =========================================================
   RECOMMANDATION
   ========================================================= */

.champ-recommande {
    display: flex !important;
    flex-direction: row !important;

    align-items: center;

    gap: 10px !important;

    margin-top: 30px;

    cursor: pointer;
}

.champ-recommande input {
    width: auto;
}


/* =========================================================
   BOUTONS
   ========================================================= */

.actions-formulaire {
    display: flex;
    gap: 12px;

    margin-top: 20px;
    margin-bottom: 40px;
}

.bouton-principal,
.bouton-secondaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.bouton-principal {
    border: none;

    background: #7259f3;
    color: white;
}

.bouton-secondaire {
    background: #252a34;

    border: 1px solid #343a46;

    color: white;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .grille-notation {
        grid-template-columns:
            repeat(2, minmax(150px, 1fr));
    }

}

@media (max-width: 650px) {

    .grille-formulaire {
        grid-template-columns: 1fr;
    }

    .champ-large {
        grid-column: auto;
    }

    .grille-notation {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   PAGE DETAIL ANIME
   ========================================================= */

.page-detail-anime {
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================================================
   ENTETE
   ========================================================= */

.detail-entete {
    margin-bottom: 30px;
}

.detail-titre {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}

.detail-titre h1 {
    margin: 0 0 12px 0;

    font-size: 38px;
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-info {
    padding: 6px 10px;

    background: #20242d;

    border: 1px solid #343a46;
    border-radius: 7px;

    color: #b9bec8;

    font-size: 13px;
}


/* =========================================================
   SCORE PRINCIPAL
   ========================================================= */

.detail-score {
    display: flex;
    align-items: center;

    gap: 15px;

    flex-shrink: 0;
}

.detail-rang {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    border-radius: 12px;

    background: #7259f3;

    color: white;

    font-size: 30px;
    font-weight: 800;
}

.detail-moyenne {
    display: flex;

    align-items: baseline;

    gap: 4px;
}

.detail-moyenne strong {
    font-size: 38px;
}

.detail-moyenne span {
    color: #9298a5;

    font-size: 16px;
}


/* =========================================================
   GENRES
   ========================================================= */

.detail-genres {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}

.badge-genre {
    padding: 7px 11px;

    background: #20242d;

    border: 1px solid #343a46;
    border-radius: 7px;

    color: #c6cad3;

    font-size: 13px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.detail-section {
    margin-bottom: 28px;

    padding: 25px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 12px;
}

.detail-section h2 {
    margin-top: 0;
    margin-bottom: 22px;
}


/* =========================================================
   NOTES
   ========================================================= */

.detail-grille-notes {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(120px, 1fr));

    gap: 15px;
}

.detail-note {
    padding: 18px 12px;

    background: #20242d;

    border: 1px solid #303641;
    border-radius: 10px;

    text-align: center;
}

.detail-note-nom {
    display: block;

    margin-bottom: 10px;

    color: #9298a5;

    font-size: 13px;
}

.detail-note strong {
    font-size: 27px;
}

.detail-note small {
    margin-left: 2px;

    color: #7f8591;

    font-size: 13px;
}


/* =========================================================
   MON AVIS
   ========================================================= */

.detail-infos {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.detail-info {
    padding: 18px;

    background: #20242d;

    border-radius: 9px;
}

.detail-label {
    display: block;

    margin-bottom: 8px;

    color: #8e949f;

    font-size: 13px;
}

.detail-info strong {
    font-size: 16px;
}


/* =========================================================
   COMMENTAIRE
   ========================================================= */

.detail-commentaire {
    margin-top: 18px;

    padding: 20px;

    background: #20242d;

    border-radius: 9px;
}

.detail-commentaire p {
    margin: 0;

    color: #d5d8de;

    line-height: 1.65;

    white-space: pre-line;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.detail-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;
    margin-bottom: 40px;
}

.detail-actions form {
    margin: 0;
}

.bouton-supprimer {
    min-height: 44px;

    padding: 0 18px;

    background: transparent;

    border: 1px solid #a84242;
    border-radius: 8px;

    color: #dc7373;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.bouton-supprimer:hover {
    background: #3a2024;

    color: white;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .detail-titre {
        flex-direction: column;
    }

    .detail-grille-notes {
        grid-template-columns:
            repeat(2, minmax(120px, 1fr));
    }

}


@media (max-width: 600px) {

    .detail-titre h1 {
        font-size: 30px;
    }

    .detail-grille-notes {
        grid-template-columns: 1fr;
    }

    .detail-infos {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   ONGLET ACTIF
   ========================================================= */

.barre-navigation nav a.nav-actif {
    background: transparent !important;
    color: #b9aaff !important;
    border-radius: 0;
    padding: 0;
    text-shadow: 0 0 12px rgba(114, 89, 243, 0.45);
}

/* =========================================================
   AUTHENTIFICATION
   ========================================================= */

.page-auth {
    max-width: 470px;

    margin: 50px auto;
}

.carte-auth {
    padding: 30px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 12px;
}

.carte-auth h1 {
    margin-top: 0;
    margin-bottom: 8px;
}

.auth-description {
    margin-bottom: 25px;

    color: #9298a5;
}

.formulaire-auth {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.formulaire-auth label {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.formulaire-auth input {
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    background: #20242d;

    border: 1px solid #343a46;
    border-radius: 8px;

    color: white;

    font-size: 16px;
}

.formulaire-auth .bouton-principal {
    margin-top: 5px;
}

.message-erreur {
    margin-bottom: 20px;
    padding: 12px 15px;

    background: #3a2024;

    border: 1px solid #7f3c43;
    border-radius: 8px;

    color: #f0a2a8;
}

.auth-lien {
    margin-top: 22px;
    margin-bottom: 0;

    text-align: center;

    color: #9298a5;
}

.auth-lien a {
    color: white;
}

/* =========================================================
   COMPTE UTILISATEUR
   ========================================================= */

.menu-compte {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-left: 10px;
    padding-left: 15px;

    border-left: 1px solid #343a46;
}

.pseudo-connecte {
    color: #c9cdd6;
    font-size: 14px;
    font-weight: 600;
}

.bouton-deconnexion {
    padding: 8px 12px;

    background: #252a34;

    border: 1px solid #343a46;
    border-radius: 7px;

    color: #c9cdd6 !important;

    font-size: 13px;

    text-decoration: none;
}

.bouton-deconnexion:hover {
    background: #343a46;
    color: white !important;
}

/* =========================================================
   UTILISATEURS
   ========================================================= */

.page-utilisateurs,
.page-profil-public {
    max-width: 1100px;
    margin: 0 auto;
}


.grille-utilisateurs {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(280px, 1fr)
        );

    gap: 16px;
}


.carte-utilisateur {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 20px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 12px;

    color: white;
    text-decoration: none;

    transition: 0.15s;
}


.carte-utilisateur:hover {
    transform: translateY(-2px);

    border-color: #4b5260;
}


.avatar-utilisateur,
.profil-avatar-grand {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #7259f3;

    color: white;

    font-weight: 800;
}


.avatar-utilisateur {
    width: 55px;
    height: 55px;

    border-radius: 12px;

    font-size: 24px;
}


.profil-avatar-grand {
    width: 85px;
    height: 85px;

    border-radius: 16px;

    font-size: 38px;
}


.infos-utilisateur h2 {
    display: inline-block;

    margin: 0 8px 8px 0;

    font-size: 19px;
}


.badge-moi {
    display: inline-block;

    padding: 3px 7px;

    background: #7259f3;

    border-radius: 5px;

    font-size: 11px;
    font-weight: 700;
}


.stats-utilisateur {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    color: #9298a5;

    font-size: 13px;
}


.stats-utilisateur strong {
    color: white;
}


/* =========================================================
   PROFIL PUBLIC
   ========================================================= */

.profil-public-entete {
    display: flex;

    align-items: center;

    gap: 22px;

    margin: 20px 0 25px;
}


.profil-public-entete h1 {
    margin: 3px 0 7px;

    font-size: 34px;
}


.profil-public-entete p {
    margin: 0;

    color: #9298a5;
}


.profil-indication {
    color: #9298a5;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.navigation-profil {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 28px;

    padding: 8px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 10px;
}


.navigation-profil a {
    padding: 9px 12px;

    border-radius: 7px;

    color: #aeb3bd;

    text-decoration: none;

    font-size: 14px;
}


.navigation-profil a:hover,
.navigation-profil a.profil-nav-actif {
    background: #7259f3;

    color: white;
}


.grille-profil-stats {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(120px, 1fr));

    gap: 14px;

    margin-bottom: 28px;
}


.profil-stat {
    padding: 20px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 10px;

    text-align: center;
}


.profil-stat strong {
    display: block;

    margin-bottom: 5px;

    font-size: 27px;
}


.profil-stat span {
    color: #9298a5;

    font-size: 13px;
}


.profil-section {
    padding: 24px;

    background: #171a21;

    border: 1px solid #292e38;
    border-radius: 12px;
}


.profil-section h2 {
    margin-top: 0;
}


.profil-top-animes {
    display: flex;
    flex-direction: column;

    gap: 9px;
}


.profil-top-anime {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 15px;

    background: #20242d;

    border-radius: 8px;
}


.position-top {
    display: inline-block;

    width: 32px;

    color: #7f8591;

    font-size: 12px;
}


.profil-top-note {
    display: flex;

    align-items: baseline;

    gap: 5px;
}


.profil-top-note > span {
    padding: 3px 7px;

    background: #303542;

    border-radius: 5px;

    font-weight: 700;
}


.profil-top-note strong {
    font-size: 18px;
}


.profil-top-note small,
.texte-vide {
    color: #9298a5;
}


@media (max-width: 850px) {

    .grille-profil-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .profil-public-entete {
        align-items: flex-start;
    }

    .profil-avatar-grand {
        width: 65px;
        height: 65px;

        font-size: 28px;
    }

    .grille-profil-stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .navigation-profil {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .navigation-profil a {
        flex-shrink: 0;
    }

}

/* =========================================================
   CONSULTATION D'UN PROFIL PUBLIC
   ========================================================= */

.bandeau-profil-public {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto 22px;
    padding: 12px 15px;
    background: #20242d;
    border: 1px solid #343a46;
    border-radius: 9px;
}

.bandeau-profil-public a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.bandeau-profil-public a:hover {
    text-decoration: underline;
}

.bandeau-profil-public span {
    color: #9298a5;
    font-size: 13px;
}

@media (max-width: 650px) {
    .bandeau-profil-public {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   CATALOGUE COMMUN + FORMULAIRE MOBILE
   ========================================================= */
.page-catalogue,
.page-avis,
.page-nouvelle-fiche {
    max-width: 1050px;
    margin: 0 auto;
}

.recherche-catalogue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #151821;
    border: 1px solid #292e38;
    border-radius: 12px;
}

.recherche-catalogue input {
    min-width: 0;
    font-size: 16px;
}

.liste-catalogue {
    display: grid;
    gap: 12px;
}

.carte-catalogue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 12px;
}

.carte-catalogue-infos {
    min-width: 0;
}

.carte-catalogue h2,
.fiche-catalogue-resume h2 {
    margin: 5px 0 8px;
    font-size: 20px;
}

.carte-catalogue p {
    margin: 0;
    color: #9298a5;
    font-size: 13px;
}

.catalogue-type {
    color: #8d7cf5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalogue-deja {
    flex-shrink: 0;
    color: #78d39a;
    font-size: 13px;
    font-weight: 700;
}

.fiche-catalogue-resume {
    margin-bottom: 22px;
    padding: 20px;
    background: #20242d;
    border: 1px solid #343a46;
    border-radius: 12px;
}

@media (max-width: 650px) {
    .page-formulaire,
    .page-catalogue,
    .page-avis,
    .page-nouvelle-fiche {
        width: 100%;
        max-width: none;
    }

    .catalogue-entete {
        gap: 14px;
        margin-bottom: 20px;
    }

    .catalogue-entete .bouton-secondaire {
        width: 100%;
    }

    .recherche-catalogue {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .recherche-catalogue .bouton-principal {
        width: 100%;
        min-height: 48px;
    }

    .carte-catalogue {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .carte-catalogue .bouton-principal,
    .catalogue-deja {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .section-formulaire {
        padding: 17px;
        margin-bottom: 18px;
    }

    .grille-formulaire,
    .grille-notation {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }

    .champ-note {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .champ-note input,
    .formulaire-anime input,
    .formulaire-anime select,
    .formulaire-anime textarea {
        max-width: 100%;
        font-size: 16px !important;
    }

    .actions-formulaire {
        flex-direction: column;
    }

    .actions-formulaire .bouton-principal,
    .actions-formulaire .bouton-secondaire {
        width: 100%;
        min-height: 48px;
    }
}


/* =========================================================
   V2 — NAVIGATION DÉROULANTE
   ========================================================= */

.menu-deroulant {
    position: relative;
}

.menu-deroulant summary {
    list-style: none;
    cursor: pointer;
    color: #aeb3c0;
    font-size: 14px;
    user-select: none;
}

.menu-deroulant summary::-webkit-details-marker {
    display: none;
}

.menu-deroulant summary::after {
    content: " ▾";
    font-size: 10px;
}

.menu-deroulant[open] summary,
.menu-deroulant summary:hover {
    color: white;
}

.menu-deroulant-contenu {
    position: absolute;
    top: calc(100% + 14px);
    left: -14px;
    min-width: 190px;
    padding: 8px;
    background: #171a21;
    border: 1px solid #303541;
    border-radius: 10px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
    z-index: 300;
}

.menu-deroulant-contenu a {
    display: block;
    padding: 10px 11px;
    border-radius: 7px;
    white-space: nowrap;
}

.menu-deroulant-contenu a:hover {
    background: #242833;
}

.nav-actif {
    color: white !important;
}


/* =========================================================
   V2 — CATALOGUE
   ========================================================= */

.actions-catalogue {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.catalogue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.catalogue-meta span {
    padding: 5px 8px;
    background: #252935;
    border-radius: 6px;
    color: #aeb3bf;
    font-size: 11px;
}

.fiche-catalogue-resume {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.bouton-modifier-fiche {
    flex-shrink: 0;
}

.titre-section-avec-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.titre-section-avec-info h2 {
    margin-bottom: 0;
}

#compteurGenres {
    color: #8d7cf5;
    font-weight: 800;
    font-size: 13px;
}

.watchlist-aide {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 12px 14px;
    background: rgba(114, 89, 243, 0.09);
    border: 1px solid rgba(114, 89, 243, 0.25);
    border-radius: 8px;
}


/* =========================================================
   V2 — COMMUNAUTÉ
   ========================================================= */

.communaute-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cartes-communaute {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.carte-communaute {
    display: block;
    min-height: 190px;
    padding: 24px;
    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.carte-communaute:hover {
    transform: translateY(-3px);
    border-color: #4a5060;
}

.carte-communaute h2 {
    margin-bottom: 10px;
}

.carte-communaute p {
    color: #979daa;
    line-height: 1.55;
}

.carte-communaute span {
    color: #8d7cf5;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   V2 — COMPARAISON
   ========================================================= */

.formulaire-comparaison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
    padding: 18px;
    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 12px;
}

.formulaire-comparaison label {
    display: grid;
    gap: 8px;
    color: #c8ccd4;
    font-size: 13px;
}

.comparaison-vs {
    align-self: center;
    padding-bottom: 11px;
    color: #676e7c;
    font-weight: 900;
}

.comparaison-resume {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-items: center;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: #20242d;
    border-radius: 10px;
    text-align: center;
}

.comparaison-resume strong:first-child {
    text-align: right;
}

.comparaison-resume strong:last-child {
    text-align: left;
}

.comparaison-resume span {
    color: #858b98;
    font-size: 12px;
}

.liste-comparaisons {
    display: grid;
    gap: 16px;
}

.carte-comparaison {
    padding: 20px;
    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 12px;
}

.comparaison-oeuvre h2 {
    margin: 5px 0 6px;
}

.comparaison-oeuvre p {
    color: #858b98;
    font-size: 12px;
}

.comparaison-notes-principales {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: center;
    margin: 18px 0;
}

.comparaison-notes-principales > div {
    padding: 15px;
    background: #20242d;
    border-radius: 9px;
    text-align: center;
}

.comparaison-notes-principales span {
    display: block;
    margin-bottom: 5px;
    color: #858b98;
    font-size: 12px;
}

.comparaison-notes-principales strong {
    font-size: 28px;
}

.comparaison-ecart {
    color: #8d7cf5 !important;
    font-weight: 800;
}

.tableau-comparaison-notes {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border-radius: 9px;
    background: #303541;
}

.ligne-comparaison-note {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 10px;
    align-items: center;
    padding: 11px 14px;
    background: #20242d;
    text-align: center;
}

.ligne-comparaison-note strong {
    color: #9298a5;
    font-size: 12px;
}


/* =========================================================
   V2 — RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {
    .menu-deroulant {
        position: static;
    }

    .menu-deroulant-contenu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
    }

    .communaute-kpis,
    .cartes-communaute {
        grid-template-columns: 1fr;
    }

    .formulaire-comparaison {
        grid-template-columns: 1fr;
    }

    .comparaison-vs {
        display: none;
    }
}

@media (max-width: 650px) {
    .fiche-catalogue-resume,
    .recommandation-entete {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-catalogue {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .actions-catalogue a,
    .bouton-modifier-fiche {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .comparaison-resume {
        grid-template-columns: 1fr;
    }

    .comparaison-resume strong:first-child,
    .comparaison-resume strong:last-child {
        text-align: center;
    }

    .comparaison-notes-principales {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .ligne-comparaison-note {
        grid-template-columns: 1fr 100px 1fr;
        padding: 10px 8px;
    }
}


/* =========================================================
   AJUSTEMENT — CARTES PLUS COMPACTES DANS MES ANIMÉS
   ========================================================= */

.grille-animes {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.carte-sans-image {
    padding: 15px;
    min-height: 145px;
}

.carte-entete h2 {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 9px;
}

.tier-carte {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.note-carte {
    margin-top: 18px;
    font-size: 28px;
}

.tags span {
    padding: 4px 6px;
    font-size: 10px;
}

@media (max-width: 650px) {
    .grille-animes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .carte-sans-image {
        padding: 12px;
        min-height: 130px;
    }

    .carte-entete {
        gap: 8px;
    }

    .carte-entete h2 {
        font-size: 14px;
    }

    .tier-carte {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .note-carte {
        margin-top: 14px;
        font-size: 24px;
    }
}


/* =========================================================
   CARTES COMPACTES — MES ANIMÉS / MES FILMS
   Classe dédiée pour éviter les anciennes règles CSS.
   ========================================================= */

.grille-animes.grille-animes-compacte {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
    gap: 10px !important;
}

.grille-animes-compacte .carte-anime.carte-sans-image {
    padding: 10px 11px !important;
    min-height: 105px !important;
    border-radius: 9px !important;
}

.grille-animes-compacte .carte-entete {
    gap: 8px !important;
}

.grille-animes-compacte .carte-entete h2 {
    font-size: 13px !important;
    line-height: 1.25 !important;
    margin: 0 0 7px 0 !important;
}

.grille-animes-compacte .tags {
    gap: 4px !important;
}

.grille-animes-compacte .tags span {
    padding: 3px 5px !important;
    font-size: 9px !important;
    border-radius: 5px !important;
}

.grille-animes-compacte .tier-carte {
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.grille-animes-compacte .note-carte {
    margin-top: 10px !important;
    font-size: 21px !important;
    line-height: 1 !important;
}

.grille-animes-compacte .note-carte small {
    font-size: 9px !important;
}

.grille-animes-compacte .recommande-carte {
    margin-top: 7px !important;
    font-size: 9px !important;
}

@media (max-width: 650px) {
    .grille-animes.grille-animes-compacte {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .grille-animes-compacte .carte-anime.carte-sans-image {
        padding: 9px !important;
        min-height: 95px !important;
    }

    .grille-animes-compacte .carte-entete h2 {
        font-size: 12px !important;
    }

    .grille-animes-compacte .tier-carte {
        width: 27px !important;
        height: 27px !important;
        font-size: 12px !important;
    }

    .grille-animes-compacte .note-carte {
        font-size: 19px !important;
    }
}


/* =========================================================
   MES ANIMÉS / MES FILMS — VERSION TRÈS COMPACTE
   ========================================================= */

.grille-animes.grille-animes-compacte {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 8px !important;
}

.grille-animes.grille-animes-compacte > .carte-anime.carte-sans-image {
    box-sizing: border-box !important;
    min-height: 82px !important;
    height: auto !important;
    padding: 8px 9px !important;
    border-radius: 7px !important;
}

.grille-animes-compacte .carte-entete {
    gap: 6px !important;
    align-items: flex-start !important;
}

.grille-animes-compacte .carte-entete > div:first-child {
    min-width: 0 !important;
}

.grille-animes-compacte .carte-entete h2 {
    margin: 0 0 5px 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    overflow-wrap: anywhere !important;
}

.grille-animes-compacte .tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
}

.grille-animes-compacte .tags span {
    padding: 2px 4px !important;
    border-radius: 4px !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
}

.grille-animes-compacte .tier-carte {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 5px !important;
    font-size: 11px !important;
}

.grille-animes-compacte .note-carte {
    margin-top: 6px !important;
    font-size: 17px !important;
    line-height: 1 !important;
}

.grille-animes-compacte .note-carte small {
    font-size: 8px !important;
}

.grille-animes-compacte .recommande-carte {
    margin: 5px 0 0 0 !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
}

@media (min-width: 1200px) {
    .grille-animes.grille-animes-compacte {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    }
}

@media (max-width: 650px) {
    .grille-animes.grille-animes-compacte {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .grille-animes.grille-animes-compacte > .carte-anime.carte-sans-image {
        min-height: 76px !important;
        padding: 7px !important;
    }

    .grille-animes-compacte .carte-entete h2 {
        font-size: 10px !important;
    }

    .grille-animes-compacte .tier-carte {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
        font-size: 10px !important;
    }

    .grille-animes-compacte .note-carte {
        font-size: 15px !important;
    }
}


/* =========================================================
   V3 — CLASSEMENTS COMMUNAUTAIRES
   ========================================================= */
.filtres-classement-groupe {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0;
}

.filtres-classement-groupe label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.filtres-classement-groupe select {
    min-width: 180px;
}

.classement-groupe {
    display: grid;
    gap: 8px;
}

.ligne-classement-groupe {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 90px 90px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--bordure, #d9d9d9);
    border-radius: 10px;
}

.position-classement {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.infos-classement-groupe h2 {
    margin: 0;
    font-size: 15px;
}

.infos-classement-groupe p {
    margin: 3px 0 0;
    font-size: 11px;
    opacity: .7;
}

.note-classement-groupe {
    text-align: right;
}

.note-classement-groupe strong {
    font-size: 20px;
}

.note-classement-groupe span,
.nombre-notes-groupe {
    font-size: 11px;
    opacity: .75;
}

.nombre-notes-groupe {
    text-align: right;
}

.classement-attente {
    margin-top: 24px;
}

.classement-attente > summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 12px;
}

.classement-groupe-secondaire {
    opacity: .82;
}

/* =========================================================
   V3 — COMPATIBILITÉ
   ========================================================= */
.comparaison-resume-v3 {
    align-items: center;
}

.compatibilite-bloc {
    display: grid;
    justify-items: center;
    gap: 3px;
}

.compatibilite-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
}

.compatibilite-score {
    font-size: 32px;
    line-height: 1;
}

@media (max-width: 650px) {
    .ligne-classement-groupe {
        grid-template-columns: 30px minmax(0, 1fr) 65px;
        gap: 8px;
        padding: 9px;
    }

    .nombre-notes-groupe {
        grid-column: 2 / 4;
        text-align: left;
    }

    .filtres-classement-groupe {
        align-items: stretch;
    }

    .filtres-classement-groupe label,
    .filtres-classement-groupe select {
        width: 100%;
    }
}


/* =========================================================
   V4 — SUCCÈS
   ========================================================= */

.resume-succes {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin: 22px 0 30px;
    padding: 18px;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 12px;
}

.resume-succes > div:first-child {
    display: grid;
    gap: 2px;
}

.resume-succes-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .65;
}

.resume-succes strong {
    font-size: 24px;
}

.resume-succes-pourcentage {
    font-size: 20px;
    font-weight: 800;
}

.section-succes {
    margin-top: 30px;
}

.section-succes > h2 {
    margin-bottom: 12px;
}

.grille-succes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
}

.carte-succes {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(127, 127, 127, .25);
    border-radius: 11px;
    transition: transform .15s ease, opacity .15s ease;
}

.carte-succes:hover {
    transform: translateY(-2px);
}

.succes-verrouille {
    opacity: .55;
}

.succes-debloque {
    opacity: 1;
}

.icone-succes {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(127, 127, 127, .35);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 900;
}

.contenu-succes {
    min-width: 0;
}

.entete-succes {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
}

.entete-succes h3 {
    margin: 0;
    font-size: 15px;
}

.contenu-succes p {
    margin: 5px 0 12px;
    font-size: 12px;
    opacity: .72;
}

.badge-succes-debloque {
    flex: 0 0 auto;
    padding: 3px 6px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.progression-succes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.progression-succes strong {
    min-width: 45px;
    text-align: right;
    font-size: 11px;
}

.barre-progression {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(127, 127, 127, .18);
}

.barre-progression > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.barre-progression-globale {
    height: 9px;
}

@media (max-width: 650px) {
    .resume-succes {
        grid-template-columns: 1fr auto;
    }

    .barre-progression-globale {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .grille-succes {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   V4.1 — AJOUT DEPUIS LE CATALOGUE
   ========================================================= */

.fiche-catalogue-lecture-seule {
    overflow: hidden;
}

.entete-section-fiche {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.entete-section-fiche h2 {
    margin: 2px 0 0;
    font-size: 24px;
}

.sur-titre-fiche {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .6;
}

.infos-fiche-pre-remplie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.info-fiche-pre-remplie {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border: 1px solid rgba(127, 127, 127, .22);
    border-radius: 9px;
    background: rgba(127, 127, 127, .05);
}

.info-fiche-pre-remplie span {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .6;
}

.info-fiche-pre-remplie strong {
    font-size: 13px;
    line-height: 1.35;
}

.fiche-verrouillee {
    margin: 14px 0 0;
}

@media (max-width: 650px) {
    .entete-section-fiche h2 {
        font-size: 20px;
    }

    .infos-fiche-pre-remplie {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================================
   CATALOGUE V4.2 - recherche dynamique + filtre type
   ============================================================ */
.catalogue-compteur {
    margin-top: 8px;
    margin-bottom: 0;
}

.recherche-catalogue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
    gap: 12px;
    align-items: center;
}

.recherche-catalogue input,
.recherche-catalogue select {
    width: 100%;
}

@media (max-width: 700px) {
    .recherche-catalogue {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   V4.3 - PROFIL OTAKU
   ========================================================= */
.page-profil-otaku-edition {
    max-width: 1100px;
    margin: 0 auto;
}

.profil-otaku-titre {
    align-items: flex-end;
}

.formulaire-profil-otaku {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profil-otaku-section {
    padding: 24px;
    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 14px;
}

.profil-otaku-section-titre {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.profil-otaku-section-titre > span {
    display: grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #28233f;
    color: #a995ff;
    font-weight: 800;
    font-size: 13px;
}

.profil-otaku-section-titre h2 {
    margin: 0 0 5px;
}

.profil-otaku-section-titre p {
    margin: 0;
    color: #8f95a3;
    font-size: 14px;
}

.profil-otaku-section textarea,
.profil-otaku-section input,
.profil-otaku-section select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #343946;
    border-radius: 8px;
    background: #101218;
    color: #f1f2f5;
    font: inherit;
}

.profil-otaku-section textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

.profil-otaku-section input:focus,
.profil-otaku-section select:focus,
.profil-otaku-section textarea:focus {
    outline: 2px solid rgba(114, 89, 243, 0.35);
    border-color: #7259f3;
}

.grille-profil-otaku-champs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grille-profil-otaku-champs label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.grille-profil-otaku-champs label > span {
    color: #c6cad3;
    font-size: 13px;
    font-weight: 700;
}

.actions-profil-otaku {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.bandeau-mon-profil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
    padding: 12px 14px;
    background: #171a21;
    border: 1px solid #343946;
    border-radius: 10px;
    color: #aeb3c0;
}

.profil-public-entete-v43 {
    justify-content: flex-start;
}

.profil-identite {
    min-width: 0;
}

.badge-profil-otaku {
    display: inline-block;
    margin: 2px 6px 2px 0;
    padding: 6px 9px;
    border-radius: 999px;
    background: #2b244d;
    color: #c0b4ff;
    font-size: 12px;
    font-weight: 700;
}

.badge-profil-secondaire {
    background: #242934;
    color: #c7cbd4;
}

.profil-a-propos,
.profil-test-otaku,
.profil-top-section {
    margin-bottom: 20px;
}

.profil-section-sur-titre {
    margin-bottom: 4px;
    color: #7f8591;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.profil-a-propos p {
    margin: 0;
    color: #c3c7d0;
    line-height: 1.65;
    white-space: pre-wrap;
}

.profil-section-entete-ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.profil-section-entete-ligne h2 {
    margin-bottom: 0;
}

.grille-reponses-otaku {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.reponse-otaku {
    min-height: 128px;
    padding: 16px;
    background: #20242d;
    border: 1px solid #2d323e;
    border-radius: 10px;
}

.reponse-otaku-categorie {
    display: inline-block;
    margin-bottom: 11px;
    color: #8f7cff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reponse-personnage .reponse-otaku-categorie {
    color: #7fb8ff;
}

.reponse-otaku h3 {
    margin: 0 0 8px;
    color: #9399a7;
    font-size: 12px;
    font-weight: 600;
}

.reponse-otaku strong {
    display: block;
    color: #f3f4f7;
    font-size: 16px;
    line-height: 1.35;
}

.profil-otaku-vide {
    padding: 24px 0 4px;
}

@media (max-width: 850px) {
    .grille-reponses-otaku {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .grille-profil-otaku-champs,
    .grille-reponses-otaku {
        grid-template-columns: 1fr;
    }

    .profil-section-entete-ligne,
    .bandeau-mon-profil,
    .profil-otaku-titre {
        align-items: flex-start;
        flex-direction: column;
    }

    .actions-profil-otaku {
        justify-content: stretch;
        flex-direction: column;
    }
}

.lien-profil-connecte {
    color: #f2f3f5 !important;
    text-decoration: none;
    font-weight: 700;
}

.lien-profil-connecte:hover {
    text-decoration: underline;
}


/* =========================================================
   KIZUMA V4.5 — IDENTITÉ / PWA / COMMUNAUTÉ / PLAN DU SITE
   ========================================================= */

.logo-nakama {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-nakama img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(114, 89, 243, 0.22);
}

.logo-nakama span {
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.2em;
    font-size: 15px;
}

.communaute-kpis-large {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.progression-communaute {
    margin: 28px 0;
    padding: 26px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 14px;
}

.progression-entete,
.progression-infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.progression-label {
    color: #8e94a2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.progression-entete h2 {
    margin: 5px 0 0;
    font-size: 30px;
}

.progression-total {
    color: #c9cdd6;
    font-weight: 700;
}

.progression-infos {
    margin-top: 22px;
    color: #aeb3bd;
    font-size: 13px;
}

.barre-progression-communaute {
    height: 12px;
    margin-top: 9px;
    overflow: hidden;
    background: #232733;
    border-radius: 999px;
}

.barre-progression-communaute > div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7259f3, #a98cff);
}

.liste-paliers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 8px;
    margin-top: 22px;
}

.palier {
    padding: 10px 11px;
    background: #20242d;
    border: 1px solid #2c313d;
    border-radius: 8px;
    opacity: 0.48;
}

.palier strong,
.palier span {
    display: block;
}

.palier strong {
    font-size: 12px;
}

.palier span {
    margin-top: 4px;
    color: #858b98;
    font-size: 11px;
}

.palier-debloque {
    opacity: 1;
    border-color: rgba(114, 89, 243, 0.75);
    background: rgba(114, 89, 243, 0.10);
}

.page-plan-site {
    max-width: 1200px;
    margin: 0 auto;
}

.plan-flux,
.schema-donnees,
.plan-mobile {
    margin-bottom: 24px;
    padding: 24px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 14px;
}

.plan-noeud {
    padding: 16px 18px;
    background: #20242d;
    border: 1px solid #343a46;
    border-radius: 10px;
    text-align: center;
}

.plan-noeud strong,
.plan-noeud span {
    display: block;
}

.plan-noeud span {
    margin-top: 5px;
    color: #9298a5;
    font-size: 13px;
}

.plan-noeud-principal {
    max-width: 420px;
    margin: 0 auto;
    border-color: #7259f3;
}

.plan-noeud-principal strong {
    font-size: 24px;
    letter-spacing: 0.18em;
}

.plan-fleche {
    padding: 12px 0;
    color: #7259f3;
    font-size: 25px;
    text-align: center;
}

.plan-couches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.grille-plan-pages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.bloc-plan {
    padding: 22px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 12px;
}

.bloc-plan h2 {
    margin-top: 0;
    font-size: 18px;
}

.bloc-plan a,
.bloc-plan > span {
    display: block;
    margin: 8px 0;
    color: #c9cdd6;
    text-decoration: none;
}

.bloc-plan a:hover {
    color: #fff;
}

.bloc-plan p {
    color: #8f96a3;
    line-height: 1.6;
    font-size: 13px;
}

.schema-ligne {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.schema-ligne div {
    padding: 13px 16px;
    background: #20242d;
    border-radius: 8px;
}

.schema-ligne span {
    align-self: center;
    color: #7259f3;
    font-size: 18px;
}

.schema-secondaire {
    margin-top: 14px;
}

.plan-mobile p {
    color: #aeb3bd;
    line-height: 1.7;
}

@media (max-width: 850px) {
    .plan-couches,
    .grille-plan-pages {
        grid-template-columns: 1fr;
    }

    .progression-entete,
    .progression-infos {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}


/* =========================================================
   KIZUMA V4.6 — RECHERCHE ET FICHES COMMUNAUTAIRES
   ========================================================= */

.recherche-communaute-accueil {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 28px;
    margin: 24px 0;
    padding: 26px;
    background: linear-gradient(135deg, rgba(114, 89, 243, 0.14), rgba(21, 24, 33, 0.96) 60%);
    border: 1px solid rgba(114, 89, 243, 0.35);
    border-radius: 14px;
}

.recherche-communaute-accueil h2 {
    margin: 5px 0 8px;
}

.recherche-communaute-accueil p {
    margin: 0;
    color: #aeb3bd;
    line-height: 1.55;
}

.barre-recherche-oeuvres {
    display: flex;
    gap: 10px;
}

.barre-recherche-oeuvres input,
.filtres-oeuvres-communaute input,
.filtres-oeuvres-communaute select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #20242d;
    border: 1px solid #343a46;
    border-radius: 8px;
    color: white;
    font-size: 15px;
}

.carte-communaute-prioritaire {
    border-color: rgba(114, 89, 243, 0.55);
    background: linear-gradient(145deg, rgba(114, 89, 243, 0.12), #171a21 62%);
}

.page-oeuvres-communaute,
.page-fiche-communaute {
    max-width: 1150px;
    margin: 0 auto;
}

.filtres-oeuvres-communaute {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 10px;
    margin: 24px 0 12px;
}

.entete-resultats-oeuvres {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    color: #8f96a3;
    font-size: 13px;
}

.grille-oeuvres-communaute {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 15px;
}

.carte-oeuvre-communaute {
    display: block;
    padding: 20px;
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: 0.16s ease;
}

.carte-oeuvre-communaute:hover {
    transform: translateY(-2px);
    border-color: #4b5260;
    background: #181c26;
}

.carte-oeuvre-entete {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.carte-oeuvre-entete h2 {
    margin: 9px 0 5px;
    font-size: 18px;
}

.carte-oeuvre-entete p {
    margin: 0;
    color: #8f96a3;
    font-size: 13px;
}

.badge-type-oeuvre,
.badge-genre-oeuvre {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.badge-type-oeuvre {
    background: rgba(114, 89, 243, 0.18);
    color: #c6baff;
}

.badge-genre-oeuvre {
    background: #242936;
    color: #aeb3bd;
}

.note-communaute-carte {
    flex-shrink: 0;
    text-align: right;
}

.note-communaute-carte strong {
    font-size: 28px;
}

.note-communaute-carte span {
    color: #858b98;
    font-size: 12px;
}

.stats-carte-oeuvre {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #292e38;
    color: #8f96a3;
    font-size: 12px;
}

.stats-carte-oeuvre strong {
    color: #e6e8ed;
}

.fiche-communaute-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 24px;
}

.ligne-badges-oeuvre {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fiche-communaute-entete h1 {
    margin: 10px 0 3px;
    font-size: clamp(30px, 4vw, 48px);
}

.action-fiche-utilisateur {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 9px;
    color: #8f96a3;
    font-size: 13px;
}

.resume-note-communaute {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
    gap: 16px;
    margin-bottom: 16px;
}

.note-principale-communaute,
.kpis-fiche-oeuvre,
.bloc-fiche-communaute {
    background: #151821;
    border: 1px solid #272b37;
    border-radius: 13px;
}

.note-principale-communaute {
    padding: 24px;
}

.note-principale-communaute > span {
    color: #8f96a3;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.note-principale-communaute > div {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 9px 0 2px;
}

.note-principale-communaute > div > strong {
    font-size: 44px;
}

.note-principale-communaute small,
.note-principale-communaute p {
    color: #858b98;
}

.note-principale-communaute p {
    margin-bottom: 0;
}

.rang-communaute,
.rang-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    margin-left: 8px;
    border-radius: 6px;
    background: #303542;
    color: white;
    font-size: 13px;
}

.kpis-fiche-oeuvre {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.kpis-fiche-oeuvre > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 112px;
    padding: 18px;
    border-right: 1px solid #272b37;
}

.kpis-fiche-oeuvre > div:last-child {
    border-right: none;
}

.kpis-fiche-oeuvre strong {
    font-size: 27px;
}

.kpis-fiche-oeuvre span {
    margin-top: 5px;
    color: #8f96a3;
    font-size: 12px;
}

.grille-fiche-communaute {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
    margin-bottom: 16px;
}

.bloc-fiche-communaute {
    padding: 22px;
}

.bloc-fiche-communaute h2 {
    margin-top: 0;
    font-size: 18px;
}

.grille-notes-communaute {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.grille-notes-communaute > div {
    padding: 14px 10px;
    background: #20242d;
    border-radius: 8px;
    text-align: center;
}

.grille-notes-communaute span {
    display: block;
    margin-bottom: 7px;
    color: #8f96a3;
    font-size: 11px;
}

.grille-notes-communaute strong {
    font-size: 20px;
}

.grille-notes-communaute small {
    color: #777d89;
    font-size: 10px;
}

.distribution-tiers-communaute {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ligne-tier-communaute {
    display: grid;
    grid-template-columns: 35px 1fr 28px;
    align-items: center;
    gap: 9px;
}

.ligne-tier-communaute .rang-mini {
    margin: 0;
}

.barre-tier-communaute {
    height: 8px;
    overflow: hidden;
    background: #272c37;
    border-radius: 999px;
}

.barre-tier-communaute div {
    height: 100%;
    background: #7259f3;
    border-radius: inherit;
}

.ligne-tier-communaute > span {
    color: #8f96a3;
    font-size: 12px;
    text-align: right;
}

.entete-commentaires {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entete-commentaires > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: #272c37;
    border-radius: 999px;
    color: #aeb3bd;
    font-size: 11px;
}

.liste-commentaires-communaute {
    display: grid;
    gap: 11px;
}

.commentaire-communaute {
    padding: 17px;
    background: #20242d;
    border-radius: 9px;
}

.commentaire-entete {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
}

.commentaire-entete a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.commentaire-entete > div {
    display: flex;
    align-items: center;
}

.commentaire-communaute > p {
    margin: 13px 0;
    color: #d0d3da;
    line-height: 1.6;
    white-space: pre-line;
}

.commentaire-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
    color: #8f96a3;
    font-size: 11px;
}

@media (max-width: 900px) {
    .recherche-communaute-accueil,
    .resume-note-communaute,
    .grille-fiche-communaute {
        grid-template-columns: 1fr;
    }

    .filtres-oeuvres-communaute {
        grid-template-columns: 1fr 1fr;
    }

    .champ-recherche-oeuvre {
        grid-column: 1 / -1;
    }

    .kpis-fiche-oeuvre {
        grid-template-columns: repeat(2, 1fr);
    }

    .kpis-fiche-oeuvre > div {
        border-bottom: 1px solid #272b37;
    }

    .grille-notes-communaute {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .barre-recherche-oeuvres {
        flex-direction: column;
    }

    .filtres-oeuvres-communaute {
        grid-template-columns: 1fr;
    }

    .champ-recherche-oeuvre {
        grid-column: auto;
    }

    .entete-resultats-oeuvres,
    .fiche-communaute-entete {
        align-items: flex-start;
        flex-direction: column;
    }

    .action-fiche-utilisateur {
        align-items: flex-start;
    }

    .kpis-fiche-oeuvre,
    .grille-notes-communaute {
        grid-template-columns: repeat(2, 1fr);
    }

    .grille-oeuvres-communaute {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   KIZUMA V4.7 — RECHERCHE DIRECTE COMMUNAUTAIRE
   ========================================================= */

.recherche-directe-oeuvre {
    position: relative;
    width: 100%;
}

.recherche-directe-champ {
    position: relative;
}

.recherche-directe-champ input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 46px 15px 16px;
    background: #20242d;
    border: 1px solid #3a4050;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: 0.16s ease;
}

.recherche-directe-champ input:focus {
    border-color: #7259f3;
    box-shadow: 0 0 0 3px rgba(114, 89, 243, 0.14);
}

.recherche-directe-icone {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #9d91eb;
    font-size: 22px;
    pointer-events: none;
}

.suggestions-oeuvres {
    position: absolute;
    z-index: 30;
    top: calc(100% + 7px);
    left: 0;
    right: 0;
    overflow: hidden;
    background: #171a22;
    border: 1px solid #353b49;
    border-radius: 11px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.suggestion-oeuvre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    border-bottom: 1px solid #282d38;
    color: #fff;
    text-decoration: none;
}

.suggestion-oeuvre:last-child {
    border-bottom: none;
}

.suggestion-oeuvre:hover,
.suggestion-oeuvre:focus {
    background: #242936;
}

.suggestion-texte {
    min-width: 0;
}

.suggestion-texte strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.suggestion-genre {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #8f96a3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-type {
    flex-shrink: 0;
    padding: 4px 8px;
    background: rgba(114, 89, 243, 0.15);
    border-radius: 999px;
    color: #c8beff;
    font-size: 10px;
    font-weight: 700;
}

.message-recherche-oeuvre {
    min-height: 18px;
    margin: 8px 2px 0 !important;
    color: #8f96a3 !important;
    font-size: 12px;
}

/* L'ancienne page /oeuvres n'existe plus en V4.7. */


/* =========================================================
   KIZUMA V4.8 — RECHERCHE GLOBALE DANS LA NAVIGATION
   ========================================================= */

.barre-navigation {
    gap: 18px;
}

.recherche-navbar {
    position: relative;
    flex: 1 1 320px;
    max-width: 390px;
    min-width: 180px;
}

.recherche-navbar-champ {
    position: relative;
}

.recherche-navbar-champ input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 13px;
    background: #20242d;
    border: 1px solid #343a46;
    border-radius: 9px;
    color: #fff;
    outline: none;
    font-size: 13px;
}

.recherche-navbar-champ input:focus {
    border-color: #7259f3;
    box-shadow: 0 0 0 3px rgba(114, 89, 243, 0.12);
}

.recherche-navbar-icone {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: #9c90eb;
    pointer-events: none;
}

.suggestions-globales-oeuvres {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: min(430px, 70vh);
    overflow-y: auto;
    background: #171a22;
    border: 1px solid #353b49;
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.suggestion-globale-oeuvre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 11px 13px;
    border-bottom: 1px solid #282d38;
    color: #fff !important;
    text-decoration: none;
}

.suggestion-globale-oeuvre:last-child {
    border-bottom: 0;
}

.suggestion-globale-oeuvre:hover,
.suggestion-globale-oeuvre.suggestion-active {
    background: #252a36;
}

.suggestion-globale-oeuvre > span {
    min-width: 0;
}

.suggestion-globale-oeuvre strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.suggestion-globale-oeuvre small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #8f96a3;
    font-size: 10px;
}

.suggestion-globale-oeuvre b {
    flex-shrink: 0;
    padding: 4px 7px;
    background: rgba(114, 89, 243, 0.16);
    border-radius: 999px;
    color: #c8beff;
    font-size: 9px;
}

.suggestion-globale-vide {
    padding: 13px;
    color: #8f96a3;
    font-size: 12px;
}

/* L'ancienne recherche dans le contenu de Communauté est supprimée. */

@media (max-width: 1180px) {
    .barre-navigation {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .recherche-navbar {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .barre-navigation nav {
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    .logo-nakama span {
        display: none;
    }

    .barre-navigation nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
}


/* =========================================================
   KIZUMA V4.9 — NAVIGATION ACTIVE SANS FOND
   ========================================================= */

.barre-navigation nav > a.nav-actif,
.barre-navigation .menu-deroulant > summary.nav-actif {
    background: transparent !important;
    color: #b9aaff !important;
    box-shadow: none !important;
    border: none !important;
    text-shadow: 0 0 12px rgba(114, 89, 243, 0.48);
}

.barre-navigation .menu-deroulant > summary.nav-actif {
    padding: 0 !important;
}

.barre-navigation nav > a.nav-actif:hover,
.barre-navigation .menu-deroulant > summary.nav-actif:hover {
    color: #d4cbff !important;
}

/* + Ajouter reste un bouton d'action, mais son état actif ne rajoute
   aucun second fond ou contour. */
.barre-navigation .bouton-ajouter.nav-actif {
    background: #7259f3 !important;
    color: white !important;
    text-shadow: none;
}

/* La recherche doit rester accessible au-dessus des menus. */
.recherche-navbar {
    z-index: 950;
}

.suggestions-globales-oeuvres {
    z-index: 2000;
}


/* =========================================================
   KIZUMA V5.0 — OPTIMISATION SMARTPHONE
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 0;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

button,
input,
select,
textarea,
a {
    touch-action: manipulation;
}

@media (max-width: 760px) {

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .barre-navigation {
        position: sticky;
        top: 0;
        z-index: 3000;

        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;

        width: 100%;
        box-sizing: border-box;

        padding:
            calc(9px + env(safe-area-inset-top))
            12px
            9px;

        gap: 9px 11px;

        background: rgba(15, 17, 24, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        border-bottom: 1px solid #272b37;
    }

    .logo-nakama {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        min-width: 42px;
    }

    .logo-nakama img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .logo-nakama span {
        display: none !important;
    }

    .recherche-navbar {
        grid-column: 2;
        grid-row: 1;

        order: unset !important;
        width: 100%;
        min-width: 0;
        max-width: none !important;
        flex-basis: auto !important;

        z-index: 3200;
    }

    .recherche-navbar-champ input {
        height: 44px;
        padding: 0 42px 0 14px;
        font-size: 16px;
        border-radius: 12px;
    }

    .suggestions-globales-oeuvres {
        position: fixed;

        top: calc(62px + env(safe-area-inset-top));
        left: 10px;
        right: 10px;

        width: auto;
        max-height: min(62vh, 500px);

        border-radius: 13px;
        z-index: 5000;
    }

    .suggestion-globale-oeuvre {
        min-height: 52px;
        padding: 12px 14px;
    }

    .suggestion-globale-oeuvre strong {
        font-size: 14px;
    }

    .suggestion-globale-oeuvre small {
        font-size: 11px;
    }

    .barre-navigation nav {
        grid-column: 1 / -1;
        grid-row: 2;

        display: flex !important;
        align-items: center;
        flex-wrap: nowrap !important;

        width: 100%;
        margin: 0 !important;
        padding: 2px 0 3px;

        gap: 4px;

        overflow-x: auto;
        overflow-y: visible;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .barre-navigation nav::-webkit-scrollbar {
        display: none;
    }

    .barre-navigation nav > a,
    .barre-navigation .menu-deroulant > summary,
    .menu-compte > a {
        flex-shrink: 0;
        min-height: 40px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        padding: 9px 11px !important;

        font-size: 13px;
        white-space: nowrap;

        scroll-snap-align: start;
    }

    .barre-navigation nav > a.nav-actif,
    .barre-navigation .menu-deroulant > summary.nav-actif {
        padding: 9px 11px !important;
    }

    .menu-deroulant {
        flex-shrink: 0;
        position: static;
    }

    .menu-deroulant-contenu {
        position: fixed !important;

        top: calc(112px + env(safe-area-inset-top));
        left: 10px !important;
        right: 10px !important;

        width: auto !important;
        min-width: 0 !important;
        max-height: calc(100vh - 140px);

        padding: 8px;
        overflow-y: auto;

        border-radius: 13px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
        z-index: 4800;
    }

    .menu-deroulant-contenu a {
        display: flex;
        align-items: center;

        min-height: 46px;
        padding: 0 13px;

        border-radius: 8px;
        font-size: 14px;
    }

    .menu-compte {
        flex-shrink: 0;
        margin-left: 0 !important;
        padding-left: 0 !important;
        border-left: 0 !important;
    }

    .pseudo-connecte {
        max-width: 115px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    main {
        width: auto !important;
        max-width: none !important;

        margin: 18px 12px 40px !important;
        padding: 0 !important;
    }

    h1 {
        font-size: clamp(27px, 8vw, 34px) !important;
        line-height: 1.12;
    }

    h2 {
        line-height: 1.2;
    }

    .titre-page {
        gap: 12px;
    }

    .grille-animes,
    .grille-animes.grille-animes-compacte,
    .grille-utilisateurs,
    .grille-plan-pages,
    .grille-oeuvres-communaute {
        grid-template-columns: 1fr !important;
    }

    .carte-anime,
    .carte-sans-image,
    .carte-utilisateur,
    .carte-communaute,
    .profil-section,
    .bloc-stat,
    .bloc-fiche-communaute,
    .progression-communaute {
        border-radius: 12px;
    }

    .carte-anime,
    .carte-sans-image {
        min-height: 0 !important;
    }

    .grille-formulaire,
    .deux-colonnes,
    .notes-formulaire,
    .grille-notation,
    .grille-profil-otaku-champs,
    .stats-grille,
    .plan-couches,
    .resume-note-communaute,
    .grille-fiche-communaute {
        grid-template-columns: 1fr !important;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }

    input,
    select,
    textarea {
        min-height: 44px;
    }

    textarea {
        min-height: 110px;
    }

    .actions-formulaire {
        flex-direction: column;
    }

    .actions-formulaire .bouton-principal,
    .actions-formulaire .bouton-secondaire,
    .actions-formulaire button {
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
    }

    .statistiques-principales,
    .grille-profil-stats,
    .communaute-kpis,
    .communaute-kpis-large {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .stat-card,
    .profil-stat {
        min-width: 0;
        padding: 15px 12px;
    }

    .stat-card strong,
    .profil-stat strong {
        font-size: 23px;
    }

    .kpis-fiche-oeuvre {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grille-notes-communaute {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .ligne-tier-list {
        grid-template-columns: 52px minmax(0, 1fr) !important;
        min-height: 0;
    }

    .lettre-tier {
        font-size: 30px !important;
    }

    .contenu-tier-list {
        padding: 10px !important;
    }

    .anime-tier-texte {
        min-width: min(155px, 100%) !important;
        max-width: 100% !important;
    }

    .tableau-comparaison-notes,
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .navigation-profil {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .navigation-profil::-webkit-scrollbar {
        display: none;
    }

    .navigation-profil a {
        flex-shrink: 0;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
    }

    .liste-paliers {
        display: flex !important;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .liste-paliers::-webkit-scrollbar {
        display: none;
    }

    .palier {
        flex: 0 0 112px;
    }
}

@media (max-width: 420px) {

    main {
        margin-left: 9px !important;
        margin-right: 9px !important;
    }

    .barre-navigation {
        padding-left: 9px;
        padding-right: 9px;
    }

    .statistiques-principales,
    .grille-profil-stats,
    .communaute-kpis,
    .communaute-kpis-large {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .carte-entete {
        gap: 10px;
    }

    .tier-carte {
        width: 42px;
        height: 42px;
        font-size: 19px;
    }

    .note-carte {
        font-size: 28px;
    }
}

@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    .barre-navigation {
        position: relative;
    }

    .menu-deroulant-contenu,
    .suggestions-globales-oeuvres {
        max-height: 70vh;
    }
}


/* =========================================================
   KIZUMA V5.1 — INSTALLATION PWA
   ========================================================= */

.modal-installation-pwa[hidden] {
    display: none !important;
}

.modal-installation-pwa {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;
    background: rgba(0, 0, 0, 0.68);
}

.modal-installation-pwa-carte {
    position: relative;
    width: min(430px, 100%);
    box-sizing: border-box;
    padding: 26px;

    background: #171a22;
    border: 1px solid #353b49;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.modal-installation-pwa-icone {
    width: 64px;
    height: 64px;
    border-radius: 15px;
}

.modal-installation-pwa-carte h2 {
    margin: 14px 0 8px;
}

.modal-installation-pwa-carte p,
.modal-installation-pwa-carte li {
    color: #b7bdc8;
    line-height: 1.55;
}

.modal-installation-pwa-carte ol {
    margin-bottom: 0;
    padding-left: 22px;
}

.modal-installation-pwa-fermer {
    position: absolute;
    top: 10px;
    right: 12px;

    width: 38px;
    height: 38px;
    padding: 0;

    background: transparent;
    border: 0;
    color: #aeb4bf;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.diagnostic-pwa {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #303644;
}

.diagnostic-pwa summary {
    color: #d9d2ff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.diagnostic-pwa ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.diagnostic-pwa p {
    margin: 10px 0 0;
    font-size: 12px;
}

@media (max-width: 760px) {
    .modal-installation-pwa {
        align-items: flex-end;
        padding:
            12px
            12px
            calc(12px + env(safe-area-inset-bottom));
    }

    .modal-installation-pwa-carte {
        width: 100%;
        border-radius: 18px;
        padding: 23px;
    }
}

/* =========================================================
   KIZUMA V5.2 — PHOTOS DE PROFIL
   ========================================================= */

.profil-avatar-image {
    display: block;
    object-fit: cover;
    object-position: center;
    background: #20242d;
    border: 1px solid #343a46;
}

.profil-photo-section {
    overflow: hidden;
}

.editeur-photo-profil {
    display: flex;
    align-items: center;
    gap: 24px;
}

.apercu-photo-profil {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7259f3;
    color: #fff;
    font-size: 44px;
    font-weight: 850;
    border: 1px solid #3d4350;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.apercu-photo-profil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.controles-photo-profil {
    min-width: 0;
}

.controles-photo-profil p {
    margin: 10px 0 0;
    color: #898f9c;
    font-size: 12px;
    line-height: 1.5;
}

.input-photo-profil {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.bouton-choisir-photo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.supprimer-photo-profil {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    color: #c9cdd6;
    cursor: pointer;
    font-size: 13px;
}

.supprimer-photo-profil input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: #7259f3;
}

.commentaire-auteur {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.avatar-commentaire {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: #7259f3;
}

.avatar-commentaire-initiale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 760px) {
    .editeur-photo-profil {
        align-items: flex-start;
        gap: 16px;
    }

    .apercu-photo-profil {
        width: 88px;
        height: 88px;
        flex-basis: 88px;
        border-radius: 18px;
        font-size: 34px;
    }

    .bouton-choisir-photo {
        min-height: 44px;
        padding: 0 13px;
    }

    .profil-public-entete-v43 {
        align-items: center;
    }

    .profil-avatar-grand {
        width: 72px;
        height: 72px;
        border-radius: 15px;
    }
}

@media (max-width: 420px) {
    .editeur-photo-profil {
        flex-direction: column;
    }
}


/* =========================================================
   KIZUMA V5.3 — PHOTO DE PROFIL FIABLE
   ========================================================= */

.formulaire-photo-profil,
.formulaire-suppression-photo {
    margin: 0;
}

.formulaire-photo-profil {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.message-photo-profil {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #303547;
    border-radius: 10px;
    background: #171a23;
}

.message-photo-succes {
    color: #c7f7d8;
    border-color: #315842;
}

.message-photo-erreur {
    color: #ffd0d0;
    border-color: #6b3838;
}

.bouton-supprimer-photo {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .formulaire-photo-profil,
    .formulaire-photo-profil .bouton-principal,
    .formulaire-suppression-photo,
    .formulaire-suppression-photo button {
        width: 100%;
        box-sizing: border-box;
    }
}


/* =========================================================
   KIZUMA V5.4 — AVATARS PARTOUT
   ========================================================= */

/* Barre du haut */
.lien-profil-connecte {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.avatar-navbar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #7259f3;
    color: #fff;
    border: 1px solid #3a4050;

    font-size: 12px;
    font-weight: 850;
}

.avatar-navbar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.pseudo-navbar {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Page Utilisateurs */
.avatar-utilisateur-image {
    display: block !important;
    object-fit: cover;
    object-position: center;
    background: #20242d;
    border: 1px solid #343a46;
}

/* Tous les avatars image */
.avatar-image-universel {
    object-fit: cover;
    object-position: center;
}

/* La photo remplace l'initiale sans déformer les cartes */
.carte-utilisateur .avatar-utilisateur {
    overflow: hidden;
}

@media (max-width: 760px) {
    .avatar-navbar {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .pseudo-navbar {
        max-width: 95px;
    }
}


/* =========================================================
   KIZUMA V5.5 — AVATAR NAVBAR FIABLE ET COMPACT
   ========================================================= */

/*
   Bureau :
   l'avatar est sorti du flux avec position:absolute.
   Il occupe l'espace qui existait déjà entre le menu principal
   et le pseudo. Il n'élargit donc pas la barre de navigation.
*/
.menu-compte-avec-avatar {
    position: relative;
}

.menu-compte-avec-avatar .lien-profil-connecte {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0 !important;
    min-width: 0;
}

/* 22 px seulement, hors flux sur écran large */
.menu-compte-avec-avatar .avatar-navbar {
    position: absolute;
    left: -29px;
    top: 50%;
    transform: translateY(-50%);

    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: none;

    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #7259f3;
    border: 1px solid #454b5a;
    color: #fff;

    font-size: 10px;
    font-weight: 800;

    pointer-events: none;
}

.menu-compte-avec-avatar .avatar-navbar img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50%;
}

.menu-compte-avec-avatar .pseudo-navbar {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*
   Téléphone :
   le menu horizontal avait déjà 11 px de padding à gauche + 11 px à droite.
   On utilise presque ce même espace pour une miniature de 18 px :
   l'ensemble photo + pseudo ne devient pratiquement pas plus large
   que l'ancien pseudo seul.
*/
@media (max-width: 760px) {
    .menu-compte-avec-avatar .lien-profil-connecte {
        position: relative;
        gap: 4px !important;

        /* Surcharge la règle mobile générique de la navigation. */
        padding-left: 2px !important;
        padding-right: 2px !important;

        max-width: 128px;
    }

    .menu-compte-avec-avatar .avatar-navbar {
        position: static;
        transform: none;

        width: 18px;
        height: 18px;
        min-width: 18px;
        flex: 0 0 18px;

        font-size: 9px;
    }

    .menu-compte-avec-avatar .pseudo-navbar {
        max-width: 100px;
    }
}

/* Écrans très étroits : on gagne encore quelques pixels sans toucher aux autres boutons. */
@media (max-width: 420px) {
    .menu-compte-avec-avatar .lien-profil-connecte {
        max-width: 112px;
    }

    .menu-compte-avec-avatar .pseudo-navbar {
        max-width: 84px;
    }
}


/* =========================================================
   KIZUMA V5.6 — NAVIGATION DES PROFILS + RECOMMANDATIONS
   ========================================================= */

.barre-profil-public {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;

    margin: 0 0 24px;
    padding: 9px;

    background: #14171e;
    border: 1px solid #292e38;
    border-radius: 12px;
}

.barre-profil-identite {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-width: 0;
    padding: 3px 7px 3px 3px;

    color: #f3f4f7;
    text-decoration: none;
    border-radius: 9px;
}

.barre-profil-identite:hover {
    background: #1d2029;
}

.barre-profil-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: block;
    object-fit: cover;
    object-position: center;

    border-radius: 50%;
    border: 1px solid #414756;
    background: #20242d;
}

.barre-profil-avatar-initiale {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: white;
    background: #7259f3;
    font-size: 13px;
    font-weight: 850;
}

.barre-profil-pseudo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.barre-profil-pseudo small {
    color: #858c9a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.barre-profil-pseudo strong {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    margin-top: 3px;
    font-size: 13px;
}

.navigation-profil-globale {
    margin: 0 !important;
    min-width: 0;
    background: transparent;
    border: 0;
    padding: 0;
}

.navigation-profil-globale a {
    white-space: nowrap;
}

/* Recommandations d'un membre */
.resume-recommandations-profil {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.grille-recommandations-profil {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 15px;
}

.carte-recommandation-profil {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 235px;
    padding: 18px;

    color: #eef0f5;
    text-decoration: none;

    background: #171a21;
    border: 1px solid #292e38;
    border-radius: 12px;

    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.carte-recommandation-profil:hover {
    transform: translateY(-2px);
    border-color: #7259f3;
    background: #1a1d26;
}

.carte-recommandation-profil-haut {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.badges-recommandation-profil {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.badge-type-recommandation,
.badge-genre-recommandation {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 8px;

    border-radius: 999px;
    font-size: 11px;
    line-height: 1.2;
}

.badge-type-recommandation {
    color: #ddd8ff;
    background: rgba(114, 89, 243, .16);
    border: 1px solid rgba(114, 89, 243, .42);
}

.badge-genre-recommandation {
    color: #aeb4c0;
    background: #20242d;
    border: 1px solid #303642;
}

.tier-recommandation-profil {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    background: #242833;
    font-weight: 900;
    font-size: 16px;
}

.carte-recommandation-profil h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.meta-recommandation-profil {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;

    color: #9ca3b1;
    font-size: 13px;
}

.meta-recommandation-profil strong {
    color: #f2f3f7;
    font-size: 17px;
}

.commentaire-recommandation-profil {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    margin: 0 0 10px;
    color: #bdc2cc;
    line-height: 1.5;
}

.perso-recommandation-profil {
    margin: 0 0 12px;
    color: #939aa8;
    font-size: 12px;
}

.voir-fiche-recommandation {
    margin-top: auto;
    padding-top: 10px;
    color: #9b8cff;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .barre-profil-public {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .barre-profil-identite {
        width: max-content;
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .barre-profil-public {
        margin-bottom: 16px;
        padding: 8px;
    }

    .barre-profil-avatar {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .navigation-profil-globale {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .navigation-profil-globale a {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 8px 10px;
    }

    .resume-recommandations-profil {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .resume-recommandations-profil .profil-stat {
        padding: 13px 7px !important;
    }

    .resume-recommandations-profil .profil-stat strong {
        font-size: 21px;
    }

    .resume-recommandations-profil .profil-stat span {
        font-size: 11px;
    }

    .grille-recommandations-profil {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .carte-recommandation-profil {
        min-height: 0;
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .barre-profil-pseudo small {
        display: none;
    }

    .barre-profil-pseudo strong {
        margin-top: 0;
    }

    .resume-recommandations-profil {
        grid-template-columns: 1fr 1fr 1fr;
    }
}


/* =========================================================
   KIZUMA V5.7 — ADMIN CATALOGUE + FICHES PUBLIQUES
   ========================================================= */

.actions-mon-profil {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Fiche publique lecture seule */
.page-fiche-publique {
    max-width: 1050px;
    margin: 0 auto;
}

.fiche-publique-entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    background: #171a21;
    border: 1px solid #2b303b;
    border-radius: 14px;
}

.fiche-publique-entete h1 {
    margin: 5px 0 10px;
}

.fiche-publique-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.fiche-publique-badges span,
.badge-neutre-public,
.badge-recommande-public {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    background: #20242d;
    border: 1px solid #333946;
    color: #b9bfca;
}

.badge-recommande-public {
    color: #c9f5d7;
    border-color: #315c42;
    background: #182a20;
}

.fiche-publique-note {
    display: flex;
    align-items: baseline;
    gap: 3px;
    flex: 0 0 auto;
}

.fiche-publique-note strong {
    font-size: 34px;
}

.fiche-publique-note small {
    color: #8c94a2;
}

.fiche-publique-tier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    border-radius: 10px;
    background: #7259f3;
    color: #fff;
    font-weight: 900;
}

.fiche-publique-section {
    padding: 18px;
    background: #171a21;
    border: 1px solid #2b303b;
    border-radius: 12px;
}

.fiche-publique-section h2 {
    margin: 0 0 14px;
}

.grille-notes-publiques {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 10px;
}

.grille-notes-publiques > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    background: #20242d;
    border-radius: 10px;
}

.grille-notes-publiques span {
    color: #9198a6;
    font-size: 12px;
}

.grille-notes-publiques strong {
    font-size: 23px;
}

.grille-fiche-publique-bas {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 14px;
    margin: 14px 0;
}

.commentaire-fiche-publique {
    margin: 14px 0 0;
    line-height: 1.65;
    white-space: pre-wrap;
}

.personnage-prefere-public {
    font-size: 18px;
    font-weight: 700;
}

.retour-profil-public {
    display: inline-flex;
    margin-top: 4px;
}

/* Administration du catalogue */
.page-admin-catalogue {
    max-width: 1300px;
    margin: 0 auto;
}

.message-admin {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #303642;
    background: #171a21;
}

.message-admin-ok {
    color: #c8f2d4;
    border-color: #315a40;
}

.message-admin-erreur {
    color: #ffd1d1;
    border-color: #6b3b3b;
}

.filtres-admin-catalogue {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 10px;
    margin: 16px 0;
}

.admin-catalogue-resume {
    margin-bottom: 10px;
    color: #9299a7;
    font-size: 13px;
}

.table-admin-catalogue-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #2b303b;
    border-radius: 12px;
}

.table-admin-catalogue {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    background: #15181f;
}

.table-admin-catalogue th,
.table-admin-catalogue td {
    padding: 12px 10px;
    border-bottom: 1px solid #272c35;
    text-align: left;
    vertical-align: top;
}

.table-admin-catalogue th {
    color: #9299a7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.table-admin-catalogue td small {
    display: block;
    margin-top: 3px;
    color: #868d9b;
}

.admin-id {
    color: #7f8794;
    font-family: monospace;
}

.compteur-utilisation-catalogue {
    display: inline-flex;
    min-width: 28px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #222630;
    font-weight: 800;
}

.actions-admin-catalogue {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 7px;
}

.bouton-admin-compact {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 12px !important;
}

.bouton-danger {
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #703c3c;
    border-radius: 8px;
    background: #311d1d;
    color: #ffcdcd;
    cursor: pointer;
}

.fusion-admin-catalogue {
    position: relative;
}

.fusion-admin-catalogue summary {
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid #3a4050;
    border-radius: 8px;
    background: #20242d;
    cursor: pointer;
    font-size: 12px;
    list-style: none;
}

.fusion-admin-catalogue form {
    position: absolute;
    z-index: 20;
    right: 0;
    top: 40px;
    width: 270px;
    padding: 12px;
    background: #171a21;
    border: 1px solid #393f4d;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0,0,0,.32);
}

.fusion-admin-catalogue form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: #a8afbb;
}

.fusion-admin-catalogue form input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 760px) {
    .fiche-publique-entete {
        padding: 16px;
    }

    .grille-notes-publiques {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grille-fiche-publique-bas {
        grid-template-columns: 1fr;
    }

    .filtres-admin-catalogue {
        grid-template-columns: 1fr;
    }

    .fiche-publique-note strong {
        font-size: 27px;
    }
}


/* =========================================================
   KIZUMA V5.8 — CATALOGUE ADMINISTRATEUR
   ========================================================= */
.aide-admin-catalogue {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #2f3541;
    border-radius: 11px;
    background: #171a21;
    color: #aeb4c0;
    font-size: 13px;
    line-height: 1.45;
}

.aide-admin-catalogue > strong {
    color: #f0f2f6;
    margin-bottom: 2px;
}

.aide-admin-catalogue b {
    color: #cfc9ff;
}

.admin-titre-oeuvre {
    min-width: 210px;
}

.aide-fusion-admin {
    margin: 0 0 9px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
}

.table-admin-catalogue td > small {
    display: inline-block;
    margin-left: 5px;
    color: #878f9d;
    font-size: 11px;
}

@media (max-width: 760px) {
    .aide-admin-catalogue {
        padding: 12px;
    }
}


/* =========================================================
   KIZUMA V5.11 — NOTES COMMUNAUTAIRES / ABANDONS / CLASSEMENT
   ========================================================= */

/* ---------- + AJOUTER : APERÇU COMMUNAUTAIRE ---------- */

.actions-catalogue-entete {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grille-catalogue-communautaire {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 15px;
}

.carte-catalogue-communautaire {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border: 1px solid #2c313c;
    border-radius: 12px;
    background: #171a21;
}

.catalogue-carte-entete {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.catalogue-carte-entete h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.badge-deja-ajoute {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #46504d;
    border-radius: 999px;
    background: #1d2824;
    color: #bfe5d0;
    font-size: 10px;
    font-weight: 700;
}

.apercu-communaute-ajout {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #282d37;
}

.moyenne-communaute-ajout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 3px 12px;
}

.moyenne-communaute-ajout > span {
    color: #989fac;
    font-size: 12px;
}

.moyenne-communaute-ajout strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 25px;
    line-height: 1;
}

.moyenne-communaute-ajout strong small {
    color: #8f96a3;
    font-size: 11px;
}

.moyenne-communaute-ajout em {
    color: #777f8d;
    font-size: 11px;
    font-style: normal;
}

.details-notes-ajout {
    margin-top: 12px;
}

.details-notes-ajout summary {
    cursor: pointer;
    color: #a99cff;
    font-size: 12px;
    font-weight: 700;
}

.liste-notes-utilisateurs-ajout {
    display: grid;
    gap: 6px;
    margin-top: 9px;
}

.note-utilisateur-ajout,
.ligne-note-classement-utilisateur {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #20242d;
    color: #eef0f5;
    text-decoration: none;
}

.note-utilisateur-ajout:hover,
.ligne-note-classement-utilisateur:hover {
    background: #282d38;
}

.avatar-note-mini,
.avatar-classement-utilisateur {
    width: 28px;
    height: 28px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #7259f3;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.avatar-note-mini img,
.avatar-classement-utilisateur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pseudo-note-ajout,
.pseudo-classement-utilisateur {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-tier-note {
    display: inline-flex;
    min-width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #303541;
    font-size: 11px;
    font-weight: 900;
}

.aucun-avis-ajout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #8e95a2;
    font-size: 12px;
}

.aucun-avis-ajout strong {
    color: #c7cbd3;
}

.actions-carte-catalogue {
    margin-top: auto;
    padding-top: 16px;
}

/* ---------- LISTES UTILISATEURS : ABANDONNÉ ---------- */

.ligne-titre-statut {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ligne-titre-statut h2 {
    margin-bottom: 0 !important;
}

.badge-abandonne {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #744c3c;
    border-radius: 999px;
    background: #2d211b;
    color: #ffc8aa;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.carte-anime-abandonne {
    border-color: #4d3930 !important;
}

.carte-anime-abandonne:hover {
    border-color: #8a5a45 !important;
}

.abandonne-sans-note {
    margin-top: 22px;
    color: #9b8377;
    font-size: 12px;
}

/* ---------- CLASSEMENT GROUPE DÉPLIANT ---------- */

.liste-classement-groupe {
    display: grid;
    gap: 9px;
}

.ligne-classement-groupe {
    overflow: hidden;
    border: 1px solid #2c313c;
    border-radius: 11px;
    background: #171a21;
}

.ligne-classement-groupe > summary {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto 86px 22px;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
}

.ligne-classement-groupe > summary::-webkit-details-marker {
    display: none;
}

.ligne-classement-groupe[open] > summary {
    border-bottom: 1px solid #2b303a;
    background: #1b1e26;
}

.position-classement {
    color: #8d94a2;
    font-size: 13px;
    font-weight: 800;
}

.infos-classement-oeuvre {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.infos-classement-oeuvre strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meta-classement-oeuvre {
    color: #858c99;
    font-size: 11px;
}

.nombre-notes-classement {
    color: #9097a4;
    font-size: 11px;
}

.moyenne-classement {
    text-align: right;
    font-size: 20px;
    font-weight: 900;
}

.moyenne-classement small {
    color: #858c99;
    font-size: 10px;
}

.chevron-classement {
    color: #8f96a4;
    font-size: 17px;
    transition: transform .15s ease;
}

.ligne-classement-groupe[open] .chevron-classement {
    transform: rotate(180deg);
}

.details-classement-utilisateurs {
    display: grid;
    gap: 7px;
    padding: 12px 14px 14px 58px;
}

.ligne-note-classement-utilisateur {
    grid-template-columns: 32px minmax(0, 1fr) auto 72px;
}

.avatar-classement-utilisateur {
    width: 32px;
    height: 32px;
}

.note-classement-utilisateur {
    text-align: right;
}

.bloc-en-attente-classement {
    margin-top: 30px;
}

.bloc-en-attente-classement h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.ligne-classement-attente {
    opacity: .82;
}

@media (max-width: 760px) {
    .grille-catalogue-communautaire {
        grid-template-columns: 1fr;
    }

    .ligne-classement-groupe > summary {
        grid-template-columns: 34px minmax(0, 1fr) 70px 18px;
        gap: 8px;
        padding: 10px;
    }

    .nombre-notes-classement {
        display: none;
    }

    .moyenne-classement {
        font-size: 17px;
    }

    .details-classement-utilisateurs {
        padding: 9px 10px 11px 44px;
    }

    .ligne-note-classement-utilisateur {
        grid-template-columns: 28px minmax(0, 1fr) auto 58px;
        gap: 6px;
        padding: 6px;
    }

    .avatar-classement-utilisateur {
        width: 28px;
        height: 28px;
    }

    .actions-catalogue-entete {
        width: 100%;
    }

    .actions-catalogue-entete a {
        flex: 1 1 auto;
        text-align: center;
    }
}


/* =========================================================
   KIZUMA V5.12 — MOBILE APP SHELL
   ========================================================= */

.mobile-appbar,
.mobile-bottom-nav,
.mobile-sheet-backdrop,
.mobile-search-overlay {
    display: none;
}

.mobile-appbar svg,
.mobile-bottom-nav svg,
.mobile-more-card svg,
.mobile-search-header svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-overlay-open {
    overflow: hidden !important;
}

@media (max-width: 760px) {

    :root {
        --nakama-bg: #0f1118;
        --nakama-surface: #171a22;
        --nakama-surface-2: #20242d;
        --nakama-border: #2d3340;
        --nakama-purple: #7259f3;
        --nakama-purple-soft: rgba(114, 89, 243, 0.16);
        --nakama-text: #f4f5f7;
        --nakama-muted: #9299a6;
        --mobile-appbar-height: 58px;
        --mobile-bottom-height: 72px;
    }

    html {
        background: var(--nakama-bg);
    }

    body {
        background:
            radial-gradient(
                circle at 100% 0%,
                rgba(114, 89, 243, 0.08),
                transparent 34%
            ),
            var(--nakama-bg);
        padding-bottom: 0 !important;
        overscroll-behavior-y: contain;
    }

    /* Desktop navigation disappears only on phone. */
    .barre-navigation {
        display: none !important;
    }

    /* ---------- TOP APP BAR ---------- */

    .mobile-appbar {
        position: sticky;
        top: 0;
        z-index: 7000;

        display: flex;
        align-items: center;
        justify-content: space-between;

        height: calc(
            var(--mobile-appbar-height)
            + env(safe-area-inset-top)
        );
        box-sizing: border-box;

        padding:
            env(safe-area-inset-top)
            14px
            0;

        background: rgba(15, 17, 24, 0.94);
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mobile-appbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 9px;

        min-width: 0;

        color: var(--nakama-text);
        text-decoration: none;
    }

    .mobile-appbar-brand img {
        width: 34px;
        height: 34px;

        flex: 0 0 34px;
        border-radius: 10px;
    }

    .mobile-appbar-brand strong {
        font-size: 17px;
        letter-spacing: 0.6px;
    }

    .mobile-appbar-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-appbar-icon,
    .mobile-appbar-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        padding: 0;

        border: 1px solid var(--nakama-border);
        border-radius: 13px;

        background: var(--nakama-surface);
        color: #d9dce3;

        text-decoration: none;
        cursor: pointer;
    }

    .mobile-appbar-icon svg {
        width: 20px;
        height: 20px;
    }

    .mobile-appbar-avatar {
        overflow: hidden;

        border-radius: 50%;
        background: var(--nakama-purple);
        color: #fff;

        font-size: 12px;
        font-weight: 850;
    }

    .mobile-appbar-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ---------- PAGE CONTENT ---------- */

    main {
        width: auto !important;
        max-width: none !important;

        margin:
            0
            12px
            calc(
                var(--mobile-bottom-height)
                + 30px
                + env(safe-area-inset-bottom)
            ) !important;

        padding: 16px 0 0 !important;
    }

    .titre-page {
        margin-bottom: 16px !important;
        gap: 10px !important;
    }

    .titre-page h1 {
        margin: 0 !important;
        font-size: clamp(25px, 7.4vw, 31px) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.5px;
    }

    /*
       Sur mobile on retire les petites phrases explicatives répétitives
       sous les titres. Les compteurs restent visibles.
    */
    .titre-page .sous-titre,
    .titre-page > div > p:not(.compteur),
    .titre-page > p:not(.compteur),
    .titre-page .sur-titre {
        display: none !important;
    }

    .titre-page .compteur {
        display: inline-flex !important;
        width: max-content;
        margin: 8px 0 0 !important;
        padding: 5px 9px;

        border: 1px solid var(--nakama-border);
        border-radius: 999px;

        background: var(--nakama-surface);
        color: var(--nakama-muted);

        font-size: 11px;
    }

    /* ---------- CARDS / BUTTONS / FORMS ---------- */

    .carte-anime,
    .carte-sans-image,
    .carte-utilisateur,
    .carte-communaute,
    .profil-section,
    .bloc-stat,
    .bloc-fiche-communaute,
    .progression-communaute,
    .carte-catalogue-communautaire,
    .ligne-classement-groupe,
    .fiche-publique-section,
    .fiche-publique-entete {
        border-radius: 16px !important;
        border-color: rgba(255, 255, 255, 0.075) !important;
        background: var(--nakama-surface) !important;
    }

    .carte-anime,
    .carte-sans-image,
    .carte-catalogue-communautaire {
        padding: 16px !important;
    }

    .bouton-principal,
    .bouton-secondaire,
    button:not(.mobile-bottom-item):not(.mobile-appbar-icon):not(.mobile-sheet-close):not(.mobile-search-back),
    input[type="submit"] {
        min-height: 46px;
        border-radius: 12px !important;
        font-weight: 750;
    }

    .bouton-principal,
    .bouton-ajouter {
        box-shadow: 0 8px 24px rgba(114, 89, 243, 0.20);
    }

    input,
    select,
    textarea {
        min-height: 48px;
        border-radius: 12px !important;
        background: var(--nakama-surface) !important;
        border-color: var(--nakama-border) !important;
    }

    .filtres,
    .filtres-catalogue-ajout,
    .filtres-classements {
        gap: 9px !important;
    }

    /* ---------- PUBLIC PROFILE SECONDARY NAV ---------- */

    .barre-profil-public {
        position: sticky;
        top: calc(
            var(--mobile-appbar-height)
            + env(safe-area-inset-top)
        );
        z-index: 6500;

        grid-template-columns: 1fr !important;
        gap: 7px !important;

        margin:
            -16px
            -12px
            16px !important;

        padding: 8px 12px !important;

        border-width: 0 0 1px !important;
        border-radius: 0 !important;

        background: rgba(15, 17, 24, 0.96) !important;
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .barre-profil-identite {
        min-height: 34px;
        padding: 0 !important;
    }

    .barre-profil-avatar {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
    }

    .barre-profil-pseudo small {
        display: none !important;
    }

    .barre-profil-pseudo strong {
        margin: 0 !important;
        font-size: 13px !important;
    }

    .navigation-profil-globale {
        display: flex !important;
        gap: 6px !important;

        overflow-x: auto;
        padding: 0 0 2px !important;

        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .navigation-profil-globale::-webkit-scrollbar {
        display: none;
    }

    .navigation-profil-globale a {
        min-height: 36px !important;
        padding: 7px 11px !important;

        border: 1px solid var(--nakama-border);
        border-radius: 999px !important;

        background: var(--nakama-surface);
        font-size: 12px !important;

        scroll-snap-align: start;
    }

    .navigation-profil-globale a.profil-nav-actif {
        border-color: var(--nakama-purple) !important;
        background: var(--nakama-purple-soft) !important;
        color: #e8e4ff !important;
    }

    /* ---------- BOTTOM APP NAV ---------- */

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 8000;

        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: end;

        height: calc(
            var(--mobile-bottom-height)
            + env(safe-area-inset-bottom)
        );
        box-sizing: border-box;

        padding:
            7px
            7px
            calc(7px + env(safe-area-inset-bottom));

        background: rgba(18, 20, 28, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.08);

        box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.28);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-bottom-item {
        position: relative;

        min-width: 0;
        height: 54px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;

        padding: 0;
        border: 0;

        background: transparent;
        color: #818896;

        text-decoration: none;
        cursor: pointer;

        font: inherit;
        font-size: 10px;
        font-weight: 650;
        line-height: 1;
    }

    .mobile-bottom-button {
        border-radius: 0 !important;
        min-height: 54px !important;
        font-size: 10px !important;
    }

    .mobile-bottom-item svg {
        width: 22px;
        height: 22px;
    }

    .mobile-bottom-item.is-active {
        color: #b9adff;
    }

    .mobile-bottom-item.is-active::after {
        content: "";
        position: absolute;
        bottom: 1px;
        width: 18px;
        height: 2px;

        border-radius: 999px;
        background: var(--nakama-purple);
    }

    .mobile-bottom-add {
        overflow: visible;
        color: #e9e6ff;
    }

    .mobile-bottom-add::after {
        display: none !important;
    }

    .mobile-add-circle {
        width: 48px;
        height: 48px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        margin-top: -23px;

        border: 4px solid #12141c;
        border-radius: 17px;

        background: linear-gradient(145deg, #836cf7, #654bea);
        color: #fff;

        box-shadow:
            0 10px 30px rgba(114, 89, 243, 0.38),
            inset 0 1px 0 rgba(255,255,255,.20);
    }

    .mobile-add-circle svg {
        width: 25px;
        height: 25px;
        stroke: currentColor;
        stroke-width: 2.2;
        fill: none;
        overflow: visible;
    }

    .mobile-bottom-add > span:last-child {
        margin-top: -1px;
    }

    /* ---------- MORE BOTTOM SHEET ---------- */

    .mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9000;

        display: flex;
        align-items: flex-end;

        padding: 0;

        background: rgba(0, 0, 0, 0.56);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-sheet-backdrop[hidden] {
        display: none !important;
    }

    .mobile-more-sheet {
        width: 100%;
        max-height: min(84vh, 760px);
        box-sizing: border-box;

        overflow-y: auto;
        overscroll-behavior: contain;

        padding:
            7px
            14px
            calc(18px + env(safe-area-inset-bottom));

        border: 1px solid rgba(255, 255, 255, 0.09);
        border-bottom: 0;
        border-radius: 24px 24px 0 0;

        background: #151820;

        box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.42);
    }

    .mobile-sheet-handle {
        width: 42px;
        height: 4px;

        margin: 2px auto 9px;

        border-radius: 999px;
        background: #4b5160;
    }

    .mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        margin-bottom: 12px;
    }

    .mobile-sheet-header h2 {
        margin: 0;
        font-size: 22px;
    }

    .mobile-sheet-close {
        width: 42px;
        height: 42px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
        border: 0;
        border-radius: 13px;

        background: var(--nakama-surface-2);
        color: #ccd0d8;

        font-size: 25px !important;
        cursor: pointer;
    }

    .mobile-more-section {
        margin-top: 17px;
    }

    .mobile-more-section h3 {
        margin: 0 0 9px;

        color: #8f96a3;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.75px;
    }

    .mobile-more-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-more-grid form {
        display: contents;
    }

    .mobile-more-card {
        min-width: 0;
        min-height: 82px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;

        padding: 9px 6px;
        box-sizing: border-box;

        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 15px;

        background: #1b1e27;
        color: #d4d8e0;

        text-decoration: none;
        text-align: center;
        cursor: pointer;
        font: inherit;
        width: 100%;
    }

    .mobile-more-card:active {
        transform: scale(.97);
        background: #222631;
    }

    .mobile-more-card svg {
        width: 23px;
        height: 23px;
        color: #a99cff;
    }

    .mobile-more-card span {
        max-width: 100%;
        overflow: hidden;

        font-size: 10.5px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-more-danger svg,
    .mobile-more-danger {
        color: #f0a3a3;
    }

    /* ---------- GLOBAL SEARCH OVERLAY ---------- */

    .mobile-search-overlay {
        position: fixed;
        inset: 0;
        z-index: 9500;

        display: block;

        padding:
            env(safe-area-inset-top)
            0
            env(safe-area-inset-bottom);

        box-sizing: border-box;

        background: rgba(15, 17, 24, 0.985);
    }

    .mobile-search-overlay[hidden] {
        display: none !important;
    }

    .mobile-search-panel {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-search-header {
        min-height: 60px;

        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 8px;

        padding: 8px 12px;
        box-sizing: border-box;

        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .mobile-search-back {
        width: 42px;
        height: 42px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 0;
        border: 0;
        border-radius: 13px;

        background: var(--nakama-surface);
        color: #d7dbe3;

        cursor: pointer;
    }

    .mobile-search-back svg {
        width: 21px;
        height: 21px;
    }

    .mobile-search-field {
        min-width: 0;
        height: 46px;

        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        gap: 7px;

        padding: 0 12px;
        box-sizing: border-box;

        border: 1px solid var(--nakama-border);
        border-radius: 14px;

        background: var(--nakama-surface);
        color: #8e95a2;
    }

    .mobile-search-field svg {
        width: 19px;
        height: 19px;
    }

    .mobile-search-field input {
        width: 100%;
        min-height: 0 !important;
        height: 42px !important;

        padding: 0 !important;
        border: 0 !important;
        outline: 0 !important;

        background: transparent !important;
        color: var(--nakama-text);

        font-size: 16px !important;
    }

    .mobile-search-results {
        flex: 1;
        overflow-y: auto;
        padding: 10px 12px 24px;
    }

    .mobile-search-result {
        min-height: 62px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;

        padding: 10px 12px;
        box-sizing: border-box;

        border-bottom: 1px solid rgba(255,255,255,.055);

        color: var(--nakama-text);
        text-decoration: none;
    }

    .mobile-search-result > span {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-search-result strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        font-size: 14px;
    }

    .mobile-search-result small {
        color: var(--nakama-muted);
        font-size: 11px;
    }

    .mobile-search-result b {
        flex: 0 0 auto;

        padding: 5px 8px;

        border-radius: 999px;
        background: var(--nakama-purple-soft);
        color: #cfc8ff;

        font-size: 10px;
    }

    .mobile-search-empty {
        padding: 28px 12px;

        color: var(--nakama-muted);
        text-align: center;
        line-height: 1.5;
        font-size: 13px;
    }

    /* ---------- SMALL PHONE ---------- */

    @media (max-width: 390px) {
        .mobile-more-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .mobile-bottom-item {
            font-size: 9px;
        }

        .mobile-bottom-item svg {
            width: 21px;
            height: 21px;
        }
    }
}

/*
   Landscape phones: keep global navigation available instead of
   reverting to the old horizontal desktop navbar.
*/
@media (max-height: 500px) and (orientation: landscape) and (max-width: 950px) {
    .mobile-appbar {
        position: sticky !important;
    }

    .barre-navigation {
        display: none !important;
    }

    .mobile-more-sheet {
        max-height: 94vh;
    }
}


/* =========================================================
   KIZUMA V5.13 — CHARTE GRAPHIQUE V1
   ========================================================= */

:root {
    --nk-purple-50: #f0edff;
    --nk-purple-100: #ded8ff;
    --nk-purple-300: #a99cff;
    --nk-purple-500: #7259f3;
    --nk-purple-600: #654bea;
    --nk-purple-700: #5740ce;

    --nk-bg: #0d1017;
    --nk-bg-elevated: #10131b;
    --nk-surface: #151923;
    --nk-surface-2: #1b202b;
    --nk-surface-3: #232936;
    --nk-border: #2a303d;
    --nk-border-strong: #3a4252;

    --nk-text: #f5f7fb;
    --nk-text-2: #c7ccd6;
    --nk-muted: #8d95a5;
    --nk-muted-2: #687180;

    --nk-success: #65d39a;
    --nk-success-bg: rgba(101, 211, 154, 0.12);
    --nk-warning: #f1ad72;
    --nk-warning-bg: rgba(241, 173, 114, 0.12);
    --nk-danger: #ef858c;
    --nk-danger-bg: rgba(239, 133, 140, 0.12);
    --nk-info: #79a9ff;
    --nk-info-bg: rgba(121, 169, 255, 0.12);

    --nk-r-sm: 9px;
    --nk-r-md: 13px;
    --nk-r-lg: 17px;
    --nk-r-xl: 22px;
    --nk-pill: 999px;

    --nk-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.16);
    --nk-shadow-md: 0 12px 34px rgba(0, 0, 0, 0.24);
    --nk-shadow-purple: 0 10px 28px rgba(114, 89, 243, 0.22);

    --nk-fast: 140ms;
    --nk-normal: 190ms;
}

/* ---------- TYPOGRAPHY / GLOBAL ---------- */

.nakama-shell {
    font-family:
        "Segoe UI Variable",
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 15% -10%,
            rgba(114, 89, 243, 0.13),
            transparent 34rem
        ),
        var(--nk-bg);

    color: var(--nk-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nakama-shell h1,
.nakama-shell h2,
.nakama-shell h3,
.nakama-shell h4 {
    color: var(--nk-text);
    letter-spacing: -0.02em;
}

.nakama-shell h1 {
    font-weight: 780;
}

.nakama-shell h2,
.nakama-shell h3 {
    font-weight: 720;
}

.nakama-shell p {
    color: var(--nk-text-2);
    line-height: 1.55;
}

.nakama-shell ::selection {
    background: rgba(114, 89, 243, 0.42);
    color: #fff;
}

.nakama-shell a,
.nakama-shell button,
.nakama-shell input,
.nakama-shell select,
.nakama-shell textarea,
.nakama-shell summary {
    -webkit-tap-highlight-color: transparent;
}

.nakama-shell :focus-visible {
    outline: 3px solid rgba(169, 156, 255, 0.42);
    outline-offset: 2px;
}

/* ---------- PAGE HEADERS ---------- */

.nakama-shell .titre-page {
    align-items: flex-end;
}

.nakama-shell .titre-page h1 {
    margin-bottom: 7px;
    color: var(--nk-text);
}

.nakama-shell .sous-titre,
.nakama-shell .profil-indication,
.nakama-shell .texte-vide {
    color: var(--nk-muted);
}

.nakama-shell .compteur {
    color: var(--nk-muted-2);
}

/* ---------- BUTTON SYSTEM ---------- */

.nakama-shell .bouton-principal,
.nakama-shell .bouton-ajouter,
.nakama-shell .filtres button,
.nakama-shell button[type="submit"]:not(.bouton-danger):not(.bouton-supprimer) {
    border: 1px solid transparent;
    background: linear-gradient(145deg, #7c64f6, var(--nk-purple-600));
    color: white;
    border-radius: var(--nk-r-sm);
    box-shadow: 0 6px 18px rgba(114, 89, 243, 0.16);
    font-weight: 720;
    transition:
        transform var(--nk-fast) ease,
        box-shadow var(--nk-fast) ease,
        filter var(--nk-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
    .nakama-shell .bouton-principal:hover,
    .nakama-shell .bouton-ajouter:hover,
    .nakama-shell .filtres button:hover,
    .nakama-shell button[type="submit"]:not(.bouton-danger):not(.bouton-supprimer):hover {
        filter: brightness(1.07);
        box-shadow: var(--nk-shadow-purple);
    }
}

.nakama-shell .bouton-principal:active,
.nakama-shell .bouton-ajouter:active,
.nakama-shell .bouton-secondaire:active,
.nakama-shell button:active {
    transform: scale(0.975);
}

.nakama-shell .bouton-secondaire,
.nakama-shell .bouton-modifier-fiche {
    border: 1px solid var(--nk-border);
    background: var(--nk-surface-2);
    color: var(--nk-text-2);
    border-radius: var(--nk-r-sm);
    transition:
        background var(--nk-fast) ease,
        color var(--nk-fast) ease,
        border-color var(--nk-fast) ease,
        transform var(--nk-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
    .nakama-shell .bouton-secondaire:hover,
    .nakama-shell .bouton-modifier-fiche:hover {
        background: var(--nk-surface-3);
        border-color: var(--nk-border-strong);
        color: var(--nk-text);
    }
}

.nakama-shell .bouton-danger,
.nakama-shell .bouton-supprimer,
.nakama-shell .bouton-supprimer-photo {
    border: 1px solid rgba(239, 133, 140, .35);
    background: var(--nk-danger-bg);
    color: #f5a6ac;
    border-radius: var(--nk-r-sm);
}

/* ---------- FORM SYSTEM ---------- */

.nakama-shell input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
.nakama-shell select,
.nakama-shell textarea {
    border: 1px solid var(--nk-border);
    background: var(--nk-surface);
    color: var(--nk-text);
    border-radius: var(--nk-r-sm);
    transition:
        border-color var(--nk-fast) ease,
        background var(--nk-fast) ease,
        box-shadow var(--nk-fast) ease;
}

.nakama-shell input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):hover,
.nakama-shell select:hover,
.nakama-shell textarea:hover {
    border-color: var(--nk-border-strong);
}

.nakama-shell input:not([type="range"]):not([type="checkbox"]):not([type="radio"]):focus,
.nakama-shell select:focus,
.nakama-shell textarea:focus {
    border-color: var(--nk-purple-500);
    background: #181c27;
    box-shadow: 0 0 0 3px rgba(114, 89, 243, 0.11);
    outline: none;
}

.nakama-shell input::placeholder,
.nakama-shell textarea::placeholder {
    color: #697180;
}

.nakama-shell .filtres,
.nakama-shell .filtres-recommandations,
.nakama-shell .filtres-oeuvres-communaute,
.nakama-shell .filtres-admin-catalogue {
    background: rgba(21, 25, 35, 0.82);
    border: 1px solid var(--nk-border);
    border-radius: var(--nk-r-md);
    box-shadow: var(--nk-shadow-sm);
}

/* ---------- UNIVERSAL CARD LANGUAGE ---------- */

.nakama-shell .carte-anime,
.nakama-shell .carte-sans-image,
.nakama-shell .carte-utilisateur,
.nakama-shell .carte-communaute,
.nakama-shell .carte-recommandation,
.nakama-shell .carte-recommandation-profil,
.nakama-shell .carte-oeuvre-communaute,
.nakama-shell .carte-catalogue,
.nakama-shell .carte-catalogue-communautaire,
.nakama-shell .carte-comparaison,
.nakama-shell .carte-succes,
.nakama-shell .dashboard-bloc,
.nakama-shell .dashboard-kpi,
.nakama-shell .stat-card,
.nakama-shell .profil-section,
.nakama-shell .profil-otaku-section,
.nakama-shell .bloc-fiche-communaute,
.nakama-shell .progression-communaute,
.nakama-shell .fiche-publique-entete,
.nakama-shell .fiche-publique-section {
    border: 1px solid var(--nk-border);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.014),
            transparent 38%
        ),
        var(--nk-surface);
    border-radius: var(--nk-r-md);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.018);
    transition:
        border-color var(--nk-normal) ease,
        background var(--nk-normal) ease,
        transform var(--nk-normal) ease,
        box-shadow var(--nk-normal) ease;
}

@media (hover: hover) {
    .nakama-shell .carte-anime:hover,
    .nakama-shell .carte-utilisateur:hover,
    .nakama-shell .carte-communaute:hover,
    .nakama-shell .carte-recommandation:hover,
    .nakama-shell .carte-recommandation-profil:hover,
    .nakama-shell .carte-oeuvre-communaute:hover,
    .nakama-shell .carte-catalogue:hover,
    .nakama-shell .carte-catalogue-communautaire:hover {
        border-color: #454d60;
        background: var(--nk-surface-2);
        transform: translateY(-2px);
        box-shadow: var(--nk-shadow-md);
    }
}

/* ---------- TAGS / CHIPS ---------- */

.nakama-shell .tags {
    gap: 6px;
}

.nakama-shell .tags span,
.nakama-shell .badge-profil-otaku,
.nakama-shell .badge-profil-secondaire,
.nakama-shell .badge-type-recommandation,
.nakama-shell .badge-genre-recommandation {
    border: 1px solid var(--nk-border);
    background: var(--nk-surface-2);
    color: #aeb5c2;
    border-radius: var(--nk-pill);
    font-size: 11px;
    font-weight: 620;
}

.nakama-shell .recommande-carte,
.nakama-shell .badge-recommande,
.nakama-shell .badge-recommande-public {
    color: #cfc8ff !important;
}

.nakama-shell .badge-abandonne {
    border-color: rgba(241, 173, 114, .34);
    background: var(--nk-warning-bg);
    color: #f3bd8d;
}

/* ---------- ANIME CARDS ---------- */

.nakama-shell .carte-entete h2 {
    color: var(--nk-text);
    font-weight: 720;
}

.nakama-shell .note-carte {
    color: #fff;
    letter-spacing: -0.04em;
}

.nakama-shell .note-carte small {
    color: var(--nk-muted);
}

.nakama-shell .carte-anime-abandonne {
    border-color: rgba(241, 173, 114, .25) !important;
}

/* ---------- DASHBOARD ---------- */

.nakama-shell .dashboard-kpis {
    gap: 12px;
}

.nakama-shell .dashboard-kpi {
    padding: 18px;
}

.nakama-shell .dashboard-kpi strong {
    color: #fff;
    letter-spacing: -0.04em;
}

.nakama-shell .dashboard-kpi span {
    color: var(--nk-muted);
}

.nakama-shell .dashboard-titre-bloc {
    color: var(--nk-text);
}

.nakama-shell .dashboard-top-ligne,
.nakama-shell .dashboard-s-ligne {
    border-color: rgba(255,255,255,.055);
}

/* ---------- COMMUNITY ---------- */

.nakama-shell .communaute-kpis .stat-card,
.nakama-shell .statistiques-principales .stat-card {
    background: var(--nk-surface);
}

.nakama-shell .note-principale-communaute,
.nakama-shell .moyenne-classement,
.nakama-shell .note-communaute-carte {
    color: var(--nk-text);
}

.nakama-shell .ligne-classement-groupe {
    border-radius: var(--nk-r-md);
}

.nakama-shell .ligne-classement-groupe[open] {
    border-color: rgba(114, 89, 243, .32);
    box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

/* ---------- SUCCESS ---------- */

.nakama-shell .succes-debloque {
    border-color: rgba(114, 89, 243, .30);
    background:
        linear-gradient(
            145deg,
            rgba(114, 89, 243, .10),
            transparent 55%
        ),
        var(--nk-surface);
}

.nakama-shell .succes-verrouille {
    opacity: .64;
}

/* ---------- PROFILE ---------- */

.nakama-shell .profil-avatar-grand,
.nakama-shell .barre-profil-avatar,
.nakama-shell .avatar-utilisateur,
.nakama-shell .avatar-navbar {
    box-shadow: 0 0 0 2px rgba(114, 89, 243, .15);
}

.nakama-shell .navigation-profil a {
    transition:
        background var(--nk-fast) ease,
        border-color var(--nk-fast) ease,
        color var(--nk-fast) ease;
}

.nakama-shell .profil-nav-actif {
    color: #d9d3ff !important;
}

/* ---------- EMPTY STATES ---------- */

.nakama-shell .etat-vide {
    padding: 38px 24px;
    border: 1px dashed #343b49;
    border-radius: var(--nk-r-lg);
    background: rgba(21, 25, 35, .46);
    text-align: center;
}

.nakama-shell .etat-vide h2,
.nakama-shell .etat-vide h3 {
    margin-bottom: 8px;
}

.nakama-shell .etat-vide p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    color: var(--nk-muted);
}

/* ---------- DESKTOP NAV POLISH ---------- */

@media (min-width: 761px) {
    .nakama-shell .barre-navigation {
        background: rgba(15, 18, 26, .91);
        border-bottom-color: rgba(255,255,255,.065);
        box-shadow: 0 8px 34px rgba(0,0,0,.10);
    }

    .nakama-shell .nav-actif:not(.bouton-ajouter) {
        color: #d9d3ff !important;
    }

    .nakama-shell main {
        margin-top: 36px;
    }
}

/* =========================================================
   MOBILE — PROFESSIONAL APP VISUAL LANGUAGE
   ========================================================= */

@media (max-width: 760px) {
    .nakama-shell {
        --mobile-gutter: 13px;

        background:
            radial-gradient(
                circle at 85% -5%,
                rgba(114, 89, 243, .13),
                transparent 22rem
            ),
            var(--nk-bg);
    }

    .nakama-shell .mobile-appbar {
        background: rgba(13, 16, 23, .94);
        border-bottom-color: rgba(255,255,255,.045);
        box-shadow: none;
    }

    .nakama-shell .mobile-appbar-brand strong {
        font-size: 16px;
        font-weight: 800;
        letter-spacing: .75px;
    }

    .nakama-shell .mobile-appbar-icon {
        border-color: transparent;
        background: transparent;
    }

    .nakama-shell .mobile-appbar-icon:active {
        background: var(--nk-surface-2);
    }

    .nakama-shell main {
        margin-left: var(--mobile-gutter) !important;
        margin-right: var(--mobile-gutter) !important;
        padding-top: 18px !important;
    }

    .nakama-shell .titre-page {
        margin-bottom: 17px !important;
    }

    .nakama-shell .titre-page h1 {
        max-width: 92%;
        font-size: clamp(26px, 7.7vw, 32px) !important;
        font-weight: 800 !important;
        line-height: 1.04 !important;
        letter-spacing: -.75px;
    }

    .nakama-shell .titre-page .compteur {
        margin-top: 9px !important;
        border: 0;
        background: transparent;
        padding: 0;
        color: var(--nk-muted);
        font-size: 11px;
        font-weight: 650;
    }

    .nakama-shell .grille-animes,
    .nakama-shell .grille-utilisateurs,
    .nakama-shell .grille-oeuvres-communaute,
    .nakama-shell .grille-catalogue-communautaire,
    .nakama-shell .grille-recommandations-profil {
        gap: 10px !important;
    }

    .nakama-shell .carte-anime,
    .nakama-shell .carte-sans-image,
    .nakama-shell .carte-catalogue-communautaire,
    .nakama-shell .carte-utilisateur,
    .nakama-shell .carte-communaute,
    .nakama-shell .carte-recommandation,
    .nakama-shell .carte-recommandation-profil {
        border-radius: var(--nk-r-lg) !important;
        box-shadow: var(--nk-shadow-sm);
    }

    .nakama-shell .carte-sans-image {
        min-height: 150px !important;
    }

    .nakama-shell .carte-entete h2,
    .nakama-shell .carte-catalogue-communautaire h2 {
        font-size: 17px !important;
        line-height: 1.25 !important;
    }

    .nakama-shell .note-carte {
        margin-top: 20px !important;
        font-size: 30px !important;
    }

    .nakama-shell .filtres,
    .nakama-shell .filtres-recommandations,
    .nakama-shell .filtres-oeuvres-communaute {
        margin-bottom: 16px !important;
        padding: 10px !important;
        gap: 8px !important;
        border-radius: var(--nk-r-lg) !important;
        box-shadow: none;
    }

    .nakama-shell .filtres input,
    .nakama-shell .filtres select,
    .nakama-shell .filtres button,
    .nakama-shell .filtres .bouton-secondaire {
        min-height: 46px;
    }

    .nakama-shell .section-formulaire,
    .nakama-shell .bloc-formulaire,
    .nakama-shell .formulaire-auth,
    .nakama-shell .profil-otaku-section {
        border-radius: var(--nk-r-lg) !important;
    }

    .nakama-shell .mobile-bottom-nav {
        height: calc(74px + env(safe-area-inset-bottom));
        background: rgba(15, 18, 25, .965);
        border-top-color: rgba(255,255,255,.065);
        box-shadow:
            0 -12px 40px rgba(0,0,0,.31),
            inset 0 1px 0 rgba(255,255,255,.012);
    }

    .nakama-shell .mobile-bottom-item {
        color: #777f8e;
        border-radius: 12px !important;
        transition:
            color var(--nk-fast) ease,
            transform var(--nk-fast) ease,
            background var(--nk-fast) ease;
    }

    .nakama-shell .mobile-bottom-item:active {
        transform: scale(.94);
        background: rgba(255,255,255,.03);
    }

    .nakama-shell .mobile-bottom-item.is-active {
        color: #c7beff;
    }

    .nakama-shell .mobile-bottom-item.is-active svg {
        filter: drop-shadow(0 0 6px rgba(114, 89, 243, .28));
    }

    .nakama-shell .mobile-bottom-item.is-active::after {
        width: 5px;
        height: 5px;
        bottom: 0;
        border-radius: 50%;
    }

    .nakama-shell .mobile-add-circle {
        border-radius: 16px;
        background: linear-gradient(145deg, #846ef7, var(--nk-purple-600));
        box-shadow:
            0 12px 34px rgba(114, 89, 243, .36),
            inset 0 1px 0 rgba(255,255,255,.20);
    }

    .nakama-shell .mobile-more-sheet {
        border-color: rgba(255,255,255,.07);
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.018),
                transparent 9rem
            ),
            #141821;
    }

    .nakama-shell .mobile-more-section h3 {
        color: #747d8c;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .95px;
    }

    .nakama-shell .mobile-more-card {
        min-height: 84px;
        border-color: rgba(255,255,255,.055);
        background: #1a1f2a;
        border-radius: 16px;
    }

    .nakama-shell .mobile-more-card svg {
        color: #b0a5ff;
    }

    .nakama-shell .mobile-more-card span {
        color: #d3d7df;
    }

    .nakama-shell .mobile-search-overlay {
        background:
            radial-gradient(
                circle at 100% 0,
                rgba(114,89,243,.12),
                transparent 23rem
            ),
            rgba(13,16,23,.992);
    }

    .nakama-shell .mobile-search-result {
        min-height: 66px;
        border-bottom-color: rgba(255,255,255,.045);
        border-radius: 12px;
    }

    .nakama-shell .mobile-search-result:active {
        background: var(--nk-surface);
    }

    .nakama-shell .barre-profil-public {
        background: rgba(13,16,23,.965) !important;
        border-bottom-color: rgba(255,255,255,.055) !important;
    }

    .nakama-shell .navigation-profil-globale a {
        border-color: var(--nk-border) !important;
        background: var(--nk-surface) !important;
        color: #9aa2b1 !important;
    }

    .nakama-shell .navigation-profil-globale a.profil-nav-actif {
        border-color: rgba(114,89,243,.42) !important;
        background: rgba(114,89,243,.15) !important;
        color: #d6d0ff !important;
    }

    .nakama-shell .ligne-note-classement-utilisateur,
    .nakama-shell .note-utilisateur-ajout {
        border: 1px solid rgba(255,255,255,.04);
        background: var(--nk-surface-2);
        border-radius: 11px;
    }

    .nakama-shell .carte-anime:hover,
    .nakama-shell .carte-utilisateur:hover,
    .nakama-shell .carte-communaute:hover,
    .nakama-shell .carte-recommandation:hover,
    .nakama-shell .carte-catalogue:hover {
        transform: none;
    }
}

/* ---------- ACCESSIBILITY / MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .nakama-shell *,
    .nakama-shell *::before,
    .nakama-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* =========================================================
   KIZUMA V5.14 — MOBILE SCREEN PASS + PROFIL / COMPTE
   ========================================================= */

/* ---------- OTAKU COMPLETENESS ---------- */

.profil-otaku-incomplet-indicateur {
    position: relative;
}

.profil-otaku-incomplet-indicateur::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border: 2px solid #0f1118;
    border-radius: 50%;
    background: #f1ad72;
}

.badge-profil-incomplet,
.pastille-profil-incomplet {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(241, 173, 114, .30);
    border-radius: 999px;
    background: rgba(241, 173, 114, .10);
    color: #efb681;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 750;
}

.utilisateur-titre-ligne {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.utilisateur-titre-ligne h2 {
    margin: 0;
}

/* ---------- PROFILE EPISODES ---------- */

.grille-profil-stats {
    grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.profil-stat-episodes strong {
    color: #cfc8ff;
}

/* ---------- ACCOUNT ---------- */

.page-compte {
    max-width: 780px;
    margin: 0 auto;
}

.compte-carte {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--nk-border, #2a303d);
    border-radius: 14px;
    background: var(--nk-surface, #151923);
}

.compte-carte-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.compte-carte-entete > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.compte-label {
    color: var(--nk-muted, #8d95a5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.compte-carte-entete strong {
    overflow-wrap: anywhere;
}

.formulaire-compte {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: 16px;
}

.formulaire-compte label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.texte-attention {
    color: #efb681 !important;
}

/* ---------- ONBOARDING ---------- */

.page-onboarding {
    max-width: 600px;
    margin: 44px auto;
}

.onboarding-hero {
    padding: 32px;
    border: 1px solid var(--nk-border, #2a303d);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 75% 0,
            rgba(114, 89, 243, .16),
            transparent 19rem
        ),
        var(--nk-surface, #151923);
}

.onboarding-logo {
    width: 58px;
    height: 58px;
    display: inline-flex;
    overflow: hidden;
    margin-bottom: 18px;
    border-radius: 17px;
}

.onboarding-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onboarding-hero h1 {
    margin: 0 0 24px;
}

.onboarding-etape {
    padding: 18px;
    border: 1px solid rgba(114, 89, 243, .24);
    border-radius: 15px;
    background: rgba(114, 89, 243, .07);
}

.onboarding-etape > span {
    color: #a99cff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.onboarding-etape h2 {
    margin: 7px 0 8px;
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.auth-logo-mobile {
    display: none;
}

.auth-actions-liens {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}

.auth-actions-liens a {
    color: #b7adff;
    font-size: 12px;
}

.lien-reset-dev {
    margin: 12px 0;
    padding: 10px;
    border-radius: 9px;
    background: rgba(121, 169, 255, .10);
    color: #b9cff7;
    font-size: 12px;
}

/* ---------- ADMIN EPISODE CHECK ---------- */

.actions-admin-entete {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.actions-admin-entete form {
    margin: 0;
}

.source-episodes {
    display: block;
    margin-top: 4px !important;
    margin-left: 0 !important;
    color: #7f8795 !important;
    font-size: 9px !important;
}

/* ---------- MOBILE SCREEN-BY-SCREEN PASS ---------- */

@media (max-width: 760px) {

    /* AUTH : vraie entrée d'application, pas page web centrée */
    .page-auth {
        max-width: none !important;
        margin: 0 !important;
    }

    .page-auth-mobile-pro .carte-auth {
        min-height: calc(
            100dvh
            - var(--mobile-appbar-height, 58px)
            - 105px
        );
        padding: 22px 18px !important;
        border: 0 !important;
        border-radius: 20px !important;
        background:
            radial-gradient(
                circle at 100% 0,
                rgba(114, 89, 243, .12),
                transparent 18rem
            ),
            #151923 !important;
    }

    .page-auth-mobile-pro .carte-auth h1 {
        margin-top: 4px;
        font-size: 29px;
    }

    .auth-logo-mobile {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 24px;
    }

    .auth-logo-mobile img {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .auth-logo-mobile strong {
        font-size: 14px;
        letter-spacing: .8px;
    }

    .formulaire-auth {
        gap: 15px !important;
    }

    .auth-actions-liens {
        flex-direction: column;
        align-items: center;
    }

    /* DASHBOARD : KPIs plus lisibles, densité app */
    .dashboard-kpis,
    .statistiques-principales,
    .communaute-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .dashboard-kpi,
    .stat-card {
        min-height: 96px;
        box-sizing: border-box;
        padding: 15px !important;
    }

    .dashboard-kpi strong,
    .stat-card strong {
        font-size: 25px !important;
    }

    /* MES ANIMÉS : carte plus compacte, statut visible */
    .grille-animes {
        grid-template-columns: 1fr !important;
    }

    .carte-sans-image {
        min-height: 142px !important;
    }

    .carte-entete {
        gap: 10px !important;
    }

    .tier-carte {
        width: 42px !important;
        height: 42px !important;
        font-size: 19px !important;
    }

    /* AJOUTER : une fiche = un bloc tactile clair */
    .page-catalogue-ajout .grille-catalogue-communautaire {
        grid-template-columns: 1fr !important;
    }

    .page-catalogue-ajout .carte-catalogue-communautaire {
        padding: 15px !important;
    }

    .page-catalogue-ajout .actions-carte-catalogue a {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    /* COMMUNAUTÉ : cartes utilisateurs/œuvres pleine largeur */
    .grille-utilisateurs,
    .grille-oeuvres-communaute {
        grid-template-columns: 1fr !important;
    }

    .carte-utilisateur {
        min-height: 76px;
        padding: 12px !important;
    }

    .avatar-utilisateur {
        width: 48px !important;
        height: 48px !important;
        flex-basis: 48px !important;
    }

    /* PROFIL : 6 stats en grille app 2x3 */
    .grille-profil-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .profil-stat {
        min-height: 82px;
        padding: 13px 9px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .profil-stat strong {
        font-size: 22px !important;
    }

    .profil-public-entete {
        gap: 12px !important;
    }

    .profil-avatar-grand {
        width: 76px !important;
        height: 76px !important;
        flex-basis: 76px !important;
    }

    .profil-identite h1 {
        font-size: 25px !important;
    }

    .profil-section {
        padding: 16px !important;
    }

    /* FICHE ANIMÉ : le score remonte, données en cartes */
    .fiche-publique-entete {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        padding: 15px !important;
    }

    .fiche-publique-note {
        align-self: start;
    }

    .grille-notes-publiques {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .grille-notes-publiques > div:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* COMPTE / ONBOARDING */
    .page-compte {
        max-width: none;
    }

    .compte-carte {
        padding: 15px;
        border-radius: 16px;
    }

    .compte-carte-entete {
        align-items: flex-start;
    }

    .formulaire-compte {
        grid-template-columns: 1fr;
    }

    .page-onboarding {
        margin: 0;
    }

    .onboarding-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .onboarding-actions {
        flex-direction: column;
    }

    .onboarding-actions a {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    /* ADMIN catalogue reste utilisable au téléphone sans écraser les colonnes */
    .actions-admin-entete {
        width: 100%;
        justify-content: stretch;
    }

    .actions-admin-entete form,
    .actions-admin-entete a,
    .actions-admin-entete button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   KIZUMA — VISUEL PC V2
   ========================================================= */

@media (min-width: 921px) {
    .nakama-shell .navigation-principale-pc > a:not(.bouton-ajouter):not(.lien-profil-navbar),
    .nakama-shell .navigation-principale-pc .bouton-ajouter {
        font-size: 14px;
    }

    .nakama-shell .navigation-principale-pc > a:not(.bouton-ajouter):not(.lien-profil-navbar) {
        padding-inline: 13px;
    }
}

.nakama-shell .bibliotheque-grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.nakama-shell .bibliotheque-grille-compacte {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Dashboard */
.dashboard-v2,
.communaute-v2 {
    max-width: 1260px;
    margin: 0 auto;
}

.dashboard-v2 a,
.communaute-v2 a {
    text-decoration: none !important;
}

.dashboard-entete-v2,
.communaute-entete-v2 {
    margin-bottom: 24px;
}

.dashboard-entete-v2 .sur-titre,
.communaute-entete-v2 .sur-titre,
.anime-section-entete-v2 > span {
    display: block;
    margin-bottom: 7px;
    color: #9e8dff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dashboard-entete-v2 h1,
.communaute-entete-v2 h1 {
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    letter-spacing: -.035em;
}

.dashboard-entete-v2 p,
.communaute-entete-v2 p {
    margin: 9px 0 0;
    color: #9299aa;
    font-size: 14px;
}

.dashboard-kpis-v2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-kpi-v2 {
    min-width: 0;
    min-height: 142px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    color: #f3f4f8;
    background: radial-gradient(circle at 100% 0, rgba(130,107,247,.13), transparent 46%), #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,.14);
    transition: transform .18s ease, border-color .18s ease;
}

a.dashboard-kpi-v2:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: #4a4265;
}

.dashboard-kpi-v2 > span {
    color: #9da4b4;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-kpi-v2 > strong {
    margin: 8px 0 6px;
    color: #fff;
    font-size: clamp(32px, 3vw, 44px);
    line-height: 1;
    letter-spacing: -.045em;
}

.dashboard-kpi-v2 > small {
    color: #6f7788;
    font-size: 11px;
}

.dashboard-tops-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-panneau-v2,
.dashboard-succes-v2,
.communaute-activite-v2 {
    min-width: 0;
    padding: 21px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
    box-shadow: 0 10px 27px rgba(0,0,0,.13);
}

.dashboard-panneau-entete-v2,
.communaute-section-entete-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.dashboard-panneau-entete-v2 span,
.communaute-section-entete-v2 span {
    display: block;
    margin-bottom: 4px;
    color: #747c8d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dashboard-panneau-entete-v2 h2,
.communaute-section-entete-v2 h2 {
    margin: 0;
    font-size: 19px;
}

.dashboard-panneau-entete-v2 > a,
.communaute-section-entete-v2 > a,
.dashboard-succes-v2 > a {
    flex: 0 0 auto;
    color: #ae9fff;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-liste-top-v2 {
    display: grid;
    gap: 7px;
}

.dashboard-ligne-top-v2 {
    min-width: 0;
    min-height: 50px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 30px 57px;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    color: #e9ebf1;
    background: #191d27;
    border: 1px solid #242a37;
    border-radius: 9px;
    transition: .18s ease;
}

.dashboard-ligne-top-v2:hover {
    color: #fff;
    transform: translateX(2px);
    background: #1e2330;
    border-color: #393849;
}

.dashboard-ligne-top-v2 > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-ligne-top-v2 > b {
    color: #f4f4f7;
    font-size: 13px;
    text-align: right;
}

.dashboard-ligne-top-v2 > b small {
    color: #697181;
    font-size: 9px;
}

.dashboard-position-v2 {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8d95a5;
    background: #242936;
    border: 1px solid #303646;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.dashboard-ligne-top-v2.podium-1 .dashboard-position-v2 {
    color: #2b210b;
    background: linear-gradient(145deg,#f4d77b,#c9932f);
    border-color: #f0cc65;
}

.dashboard-ligne-top-v2.podium-2 .dashboard-position-v2 {
    color: #252932;
    background: linear-gradient(145deg,#e5e8ed,#aeb5c0);
    border-color: #d4d8df;
}

.dashboard-ligne-top-v2.podium-3 .dashboard-position-v2 {
    color: #2d170d;
    background: linear-gradient(145deg,#dca06d,#98572e);
    border-color: #ce8954;
}

.dashboard-tier-v2 {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 900;
}

.dashboard-vide-v2 {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    color: #7f8797;
    background: #181b24;
    border: 1px dashed #303645;
    border-radius: 9px;
    font-size: 12px;
}

.dashboard-succes-v2 {
    display: grid;
    grid-template-columns: minmax(180px,auto) minmax(180px,1fr) auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
    padding-block: 17px;
}

.dashboard-succes-v2 > div:first-child > span {
    display: block;
    margin-bottom: 4px;
    color: #858d9d;
    font-size: 11px;
}

.dashboard-succes-v2 > div:first-child > strong {
    font-size: 21px;
}

.dashboard-succes-v2 > div:first-child small {
    color: #888f9f;
    font-size: 11px;
}

.dashboard-succes-progression-v2 {
    height: 7px;
    overflow: hidden;
    background: #242936;
    border-radius: 999px;
}

.dashboard-succes-progression-v2 > span,
.communaute-progression-v2 > span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg,#7259f3,#9f8cff);
    border-radius: inherit;
}

/* Communauté */
.communaute-stats-v2 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr)) minmax(250px,1.25fr);
    gap: 16px;
    margin-bottom: 20px;
}

.communaute-stat-v2,
.communaute-niveau-v2 {
    min-width: 0;
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    color: #f1f2f7;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(0,0,0,.12);
}

a.communaute-stat-v2:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: #4a4265;
}

.communaute-stat-v2 > span,
.communaute-niveau-entete-v2 > span {
    color: #9199a9;
    font-size: 12px;
    font-weight: 700;
}

.communaute-stat-v2 > strong {
    margin: 7px 0 5px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.communaute-stat-v2 > small,
.communaute-niveau-v2 > small {
    color: #697182;
    font-size: 10px;
}

.communaute-niveau-v2 {
    background: radial-gradient(circle at 100% 0,rgba(130,107,247,.18),transparent 52%),#171926;
}

.communaute-niveau-entete-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.communaute-niveau-entete-v2 > strong {
    color: #ded8ff;
    font-size: 17px;
}

.communaute-progression-v2 {
    height: 8px;
    margin: 16px 0 9px;
    overflow: hidden;
    background: #292d3a;
    border-radius: 999px;
}

.communaute-raccourcis-v2 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.communaute-raccourci-v2 {
    min-width: 0;
    min-height: 82px;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: #f0f1f6;
    background: #171a24;
    border: 1px solid #2a303d;
    border-radius: 13px;
    transition: .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .communaute-raccourci-v2:hover {
        color: #fff;
        transform: translateY(-2px);
        background: #1c202b;
        border-color: #493f64;
    }
}

.communaute-raccourci-icone-v2 {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bcb0ff;
    background: rgba(130,107,247,.12);
    border: 1px solid rgba(130,107,247,.2);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -2px;
}

.communaute-raccourci-podium-v2 {
    color: #e5c46d;
    letter-spacing: 0;
}

.communaute-raccourci-v2 strong,
.communaute-raccourci-v2 small {
    display: block;
}

.communaute-raccourci-v2 strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.communaute-raccourci-v2 small {
    color: #7f8797;
    font-size: 11px;
}

.communaute-raccourci-v2 > b {
    color: #777f8f;
    font-size: 18px;
}

.communaute-activite-v2 {
    margin-bottom: 30px;
}

/* Fiche personnelle d'une œuvre */
.page-anime-detail-v2 {
    max-width: 1120px;
    margin: 0 auto;
}

.page-anime-detail-v2 a {
    text-decoration: none !important;
}

.anime-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0,1fr) 190px;
    gap: 30px;
    padding: 27px;
    background: radial-gradient(circle at 100% 0,rgba(130,107,247,.14),transparent 44%),#151822;
    border: 1px solid #2a2f3d;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.anime-hero-contenu-v2 {
    min-width: 0;
}

.anime-sur-titre-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.anime-sur-titre-v2 > span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    color: #b7accd;
    background: #212532;
    border: 1px solid #303645;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.anime-sur-titre-v2 .is-complete {
    color: #8ee1b0;
    background: rgba(61,164,106,.10);
    border-color: rgba(61,164,106,.23);
}

.anime-sur-titre-v2 .is-abandoned {
    color: #ffabb5;
    background: rgba(204,73,89,.10);
    border-color: rgba(204,73,89,.25);
}

.anime-sur-titre-v2 .is-current,
.anime-sur-titre-v2 .is-watchlist {
    color: #cfc7ff;
    background: rgba(130,107,247,.11);
    border-color: rgba(130,107,247,.26);
}

.anime-hero-v2 h1 {
    max-width: 760px;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(30px,4vw,48px);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.anime-genres-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.anime-genres-v2 > span {
    max-width: 190px;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    overflow: hidden;
    color: #adb4c2;
    background: #1d212c;
    border: 1px solid #2b313e;
    border-radius: 7px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime-meta-v2 {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.anime-meta-v2 > span {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(25,29,39,.72);
    border: 1px solid #272d39;
    border-radius: 9px;
}

.anime-meta-v2 small {
    color: #727a8a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.anime-meta-v2 strong {
    color: #e4e6eb;
    font-size: 12px;
}

.anime-priorite-v2 {
    color: #ebc875 !important;
}

.anime-score-v2 {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(24,27,38,.82);
    border: 1px solid #303646;
    border-radius: 13px;
    text-align: center;
}

.anime-score-v2 > span {
    color: #858d9e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.anime-score-valeur-v2 {
    display: flex;
    align-items: baseline;
    margin: 8px 0 12px;
}

.anime-score-valeur-v2 strong {
    color: #fff;
    font-size: 46px;
    line-height: 1;
    letter-spacing: -.06em;
}

.anime-score-valeur-v2 small {
    color: #777f90;
    font-size: 13px;
}

.anime-tier-v2 {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 18px;
    font-weight: 900;
}

.anime-score-vide-v2 {
    margin-top: 12px;
    color: #a3aaba;
    font-size: 18px;
    font-weight: 800;
}

.anime-actions-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 20px;
}

.anime-section-v2 {
    min-width: 0;
    padding: 22px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
}

.anime-section-entete-v2 {
    margin-bottom: 17px;
}

.anime-section-entete-v2 h2 {
    margin: 0;
    font-size: 20px;
}

.anime-notes-v2 {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 11px;
}

.anime-note-v2 {
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    background: #1b1f2a;
    border: 1px solid #292f3c;
    border-radius: 10px;
}

.anime-note-v2 > span {
    overflow: hidden;
    color: #8991a1;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime-note-v2 > strong {
    color: #f5f5f8;
    font-size: 24px;
}

.anime-note-v2 > strong small {
    color: #737b8b;
    font-size: 10px;
}

.anime-contenu-v2 {
    display: grid;
    grid-template-columns: minmax(0,1.65fr) minmax(230px,.75fr);
    gap: 16px;
    margin-top: 16px;
}

.anime-commentaire-v2 {
    margin: 0;
    color: #c8ccd5;
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-line;
}

.anime-information-vide-v2 {
    margin: 0;
    color: #747c8c;
    font-size: 13px;
}

.anime-colonne-v2 {
    display: grid;
    gap: 16px;
}

.anime-info-courte-v2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.anime-info-courte-v2 > span {
    color: #858d9e;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.anime-info-courte-v2 > strong {
    color: #eef0f4;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.anime-info-courte-v2 .is-positive { color: #8ce0ad; }
.anime-info-courte-v2 .is-neutral { color: #a1a8b5; }

.anime-attente-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.anime-attente-v2 span {
    color: #9887f2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.anime-attente-v2 h2 {
    margin: 7px 0;
    font-size: 19px;
}

.anime-attente-v2 p {
    margin: 0;
    color: #848c9c;
    font-size: 12px;
}

.anime-zone-danger-v2 {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #242936;
}

.anime-zone-danger-v2 form { margin: 0; }

.anime-zone-danger-v2 button {
    padding: 7px 0;
    color: #a97178;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 11px;
}

.anime-zone-danger-v2 button:hover { color: #ef929d; }

@media (max-width: 1180px) and (min-width: 761px) {
    .nakama-shell .bibliotheque-grille {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .communaute-stats-v2 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .dashboard-kpis-v2,
    .dashboard-tops-v2,
    .communaute-raccourcis-v2,
    .anime-contenu-v2 {
        grid-template-columns: 1fr;
    }

    .dashboard-kpis-v2 { gap: 12px; }
    .dashboard-kpi-v2 { min-height: 112px; }

    .dashboard-succes-v2 {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .anime-hero-v2 { grid-template-columns: 1fr; }

    .anime-score-v2 {
        min-height: 120px;
        align-items: flex-start;
        text-align: left;
    }

    .anime-notes-v2 {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .nakama-shell .bibliotheque-grille,
    .nakama-shell .bibliotheque-grille-compacte,
    .communaute-stats-v2 {
        grid-template-columns: 1fr;
    }

    .dashboard-entete-v2 p,
    .communaute-entete-v2 p { display: none; }

    .dashboard-kpi-v2 {
        min-height: 102px;
        padding: 17px;
    }

    .dashboard-kpi-v2 > strong { font-size: 32px; }

    .dashboard-panneau-v2,
    .dashboard-succes-v2,
    .communaute-activite-v2,
    .anime-section-v2 { padding: 16px; }

    .communaute-stats-v2,
    .communaute-raccourcis-v2 { gap: 10px; }

    .communaute-stat-v2,
    .communaute-niveau-v2 {
        min-height: 105px;
        padding: 16px;
    }

    .anime-hero-v2 {
        gap: 18px;
        padding: 18px;
    }

    .anime-hero-v2 h1 { font-size: 30px; }

    .anime-notes-v2 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .anime-note-v2:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .anime-attente-v2 {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   KIZUMA — SOCIAL ET PROFIL V3
   ========================================================= */

.page-membres-v3,
.page-classements-v3,
.page-profil-v3,
.page-catalogue-v3 {
    max-width: 1260px;
    margin: 0 auto;
}

.page-membres-v3 a,
.page-classements-v3 a,
.page-profil-v3 a,
.page-catalogue-v3 a {
    text-decoration: none !important;
}

.membres-entete-v3,
.classements-entete-v3,
.catalogue-entete-v3 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.membres-entete-v3 .sur-titre,
.classements-entete-v3 .sur-titre,
.catalogue-entete-v3 .sur-titre,
.profil-bloc-entete-v3 > span {
    display: block;
    margin-bottom: 7px;
    color: #9e8dff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.membres-entete-v3 h1,
.classements-entete-v3 h1,
.catalogue-entete-v3 h1 {
    margin: 0;
    font-size: clamp(30px,3vw,42px);
    letter-spacing: -.035em;
}

.membres-entete-v3 p,
.classements-entete-v3 p,
.catalogue-entete-v3 p {
    margin: 8px 0 0;
    color: #8d95a5;
    font-size: 13px;
}

/* Membres */
.membres-grille-v3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
}

.membre-carte-v3 {
    min-width: 0;
    min-height: 88px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    color: #f1f2f6;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.membre-carte-v3:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: #49415f;
    background: #191d28;
}

.membres-section-v3 {
    margin: 0 0 28px;
}

.membres-section-v3 h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.membres-vide-ligne-v3 {
    margin: 0;
    color: #8d95a5;
    font-size: 13px;
}

.membre-carte-actions-v3 {
    grid-template-columns: minmax(0,1fr) auto;
}

.membre-lien-v3 {
    min-width: 0;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    align-items: center;
    gap: 14px;
    color: inherit;
}

.membres-actions-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.membres-recherche-v3 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 0 0 16px;
}

.membres-recherche-v3 label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #8d95a5;
    font-size: 12px;
}

.membres-recherche-v3 input {
    min-width: 220px;
    padding: 10px 12px;
    color: #f1f2f6;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 10px;
}

.dialog-ajout-ami {
    width: min(520px, calc(100vw - 28px));
    max-height: min(80vh, 640px);
    padding: 18px;
    color: #f1f2f6;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 16px;
}

.dialog-ajout-ami::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

.badge-reco-non-lue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    color: #fff;
    background: #7259f3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.recommandation-ciblee-carte-v4.is-non-lue {
    box-shadow: inset 0 0 0 1px rgba(130, 107, 247, .45);
}

.profil-actions-v3 form {
    display: inline-flex;
}

.profil-stats-v3 span {
    white-space: nowrap;
    writing-mode: horizontal-tb;
    word-break: normal;
}

.membre-avatar-v3 {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    border: 1px solid #393f50;
    border-radius: 50%;
    background: #7259f3;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.membre-infos-v3 { min-width: 0; }

.membre-nom-v3 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.membre-nom-v3 h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.membre-nom-v3 > span {
    flex: 0 0 auto;
    padding: 3px 6px;
    color: #d8d0ff;
    background: rgba(130,107,247,.13);
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.membre-infos-v3 p {
    margin: 7px 0 0;
    color: #7f8797;
    font-size: 11px;
}

.membre-infos-v3 p strong { color: #bcc2cc; }
.membre-infos-v3 p span { margin: 0 4px; color: #4f5665; }
.membre-fleche-v3 { color: #697181; font-size: 18px; }

/* Classements */
.classements-grille-v3 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
}

.classement-panneau-v3 {
    min-width: 0;
    padding: 20px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
    box-shadow: 0 10px 27px rgba(0,0,0,.13);
}

.classement-panneau-entete-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.classement-panneau-entete-v3 span {
    display: block;
    margin-bottom: 4px;
    color: #777f90;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.classement-panneau-entete-v3 h2 {
    margin: 0;
    font-size: 20px;
}

.classement-panneau-entete-v3 > b {
    min-width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b8adf6;
    background: rgba(130,107,247,.11);
    border-radius: 999px;
    font-size: 11px;
}

.classement-liste-v3 {
    display: grid;
    gap: 7px;
}

.classement-ligne-v3 {
    overflow: hidden;
    background: #191d27;
    border: 1px solid #262c38;
    border-radius: 10px;
}

.classement-ligne-v3[open] {
    border-color: #433b5e;
    background: #1b1f2a;
}

.classement-ligne-v3 > summary {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 58px 18px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    cursor: pointer;
    list-style: none;
}

.classement-ligne-v3 > summary::-webkit-details-marker { display: none; }

.classement-position-v3 {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8d95a5;
    background: #242936;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}

.classement-ligne-v3.podium-1 .classement-position-v3 {
    color: #2b210b;
    background: linear-gradient(145deg,#f4d77b,#c9932f);
}

.classement-ligne-v3.podium-2 .classement-position-v3 {
    color: #252932;
    background: linear-gradient(145deg,#e5e8ed,#aeb5c0);
}

.classement-ligne-v3.podium-3 .classement-position-v3 {
    color: #2d170d;
    background: linear-gradient(145deg,#dca06d,#98572e);
}

.classement-oeuvre-v3 {
    min-width: 0;
}

.classement-oeuvre-v3 strong,
.classement-oeuvre-v3 small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    word-break: normal;
}

.classement-oeuvre-v3 strong { font-size: 13px; }
.classement-oeuvre-v3 small { margin-top: 3px; color: #737b8b; font-size: 9px; }

.classement-score-v3 {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}

.classement-score-v3 strong { color: #fff; font-size: 17px; }
.classement-score-v3 small { color: #737b8b; font-size: 9px; }
.classement-chevron-v3 { color: #737b8b; transition: transform .18s ease; }
.classement-ligne-v3[open] .classement-chevron-v3 { transform: rotate(180deg); }

.classement-notes-v3 {
    display: grid;
    gap: 5px;
    padding: 0 10px 10px 54px;
}

.classement-note-membre-v3 {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) 26px 52px;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    color: #cbd0da;
    background: #141821;
    border-radius: 7px;
}

.classement-note-membre-v3:hover { color: #fff; background: #202531; }

.classement-note-membre-v3 img,
.classement-avatar-v3 {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    background: #7259f3;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
}

.classement-note-membre-v3 > strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classement-note-membre-v3 > b { font-size: 11px; text-align: right; }
.classement-note-membre-v3 > b small { color: #727989; font-size: 8px; }

.classement-tier-v3 {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
}

.classement-vide-v3 {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #747c8c;
    border: 1px dashed #303645;
    border-radius: 9px;
    font-size: 12px;
}

.classement-attente-v3 {
    margin-top: 18px;
    overflow: hidden;
    background: #141720;
    border: 1px solid #292e3b;
    border-radius: 12px;
}

.classement-attente-v3 > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.classement-attente-v3 > summary::-webkit-details-marker { display: none; }
.classement-attente-v3 > summary span strong,
.classement-attente-v3 > summary span small { display: block; }
.classement-attente-v3 > summary span strong { font-size: 13px; }
.classement-attente-v3 > summary span small { margin-top: 4px; color: #737b8b; font-size: 10px; }
.classement-attente-v3 > summary > b { color: #aaa0e7; font-size: 12px; }

.classement-attente-liste-v3 {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    padding: 0 15px 15px;
}

.classement-attente-liste-v3 > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 4px 10px;
    padding: 10px;
    background: #1a1e28;
    border-radius: 8px;
}

.classement-attente-liste-v3 strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classement-attente-liste-v3 span { color: #737b8b; font-size: 9px; }
.classement-attente-liste-v3 b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 12px; }
.classement-attente-liste-v3 b small { color: #737b8b; font-size: 8px; }

/* Profil personnel et public : une seule structure. */
.profil-hero-v3 {
    overflow: hidden;
    margin-bottom: 16px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 16px;
    box-shadow: 0 13px 32px rgba(0,0,0,.15);
}

.profil-couverture-v3 {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(120deg,#231e44,#3c2d72 52%,#171b2c);
}

.profil-couverture-v3.is-default {
    background:
        radial-gradient(circle at 76% 28%,rgba(174,153,255,.25),transparent 16%),
        radial-gradient(circle at 20% 80%,rgba(97,74,206,.24),transparent 22%),
        linear-gradient(120deg,#171a2a,#2c2354 58%,#171b27);
}

.profil-couverture-v3 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profil-identite-v3 {
    min-height: 105px;
    display: grid;
    grid-template-columns: 112px minmax(0,1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0 24px 20px;
}

.profil-avatar-v3 {
    width: 104px;
    height: 104px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -42px;
    object-fit: cover;
    color: #fff;
    background: #7259f3;
    border: 5px solid #151822;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    font-size: 34px;
    font-weight: 900;
}

.profil-nom-v3 { min-width: 0; padding-top: 14px; }

.profil-nom-v3 > span {
    color: #7e8697;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profil-nom-v3 h1 {
    margin: 3px 0 8px;
    overflow: hidden;
    font-size: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profil-badges-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profil-badges-v3 span {
    padding: 5px 8px;
    color: #cfc7ff;
    background: rgba(130,107,247,.11);
    border: 1px solid rgba(130,107,247,.22);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.profil-actions-v3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 15px;
}

.profil-stats-v3 {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 11px;
    margin-bottom: 16px;
}

.profil-stats-v3 > a,
.profil-stats-v3 > div {
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #f0f1f5;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 12px;
}

.profil-stats-v3 > a:hover {
    color: #fff;
    transform: translateY(-2px);
    border-color: #4a4265;
}

.profil-stats-v3 strong {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.profil-stats-v3 span {
    color: #838b9b;
    font-size: 10px;
}

.profil-stat-watchlist-v3 {
    background: radial-gradient(circle at 100% 0,rgba(130,107,247,.15),transparent 60%),#151822 !important;
}

.profil-bloc-v3 {
    min-width: 0;
    padding: 21px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
}

.profil-a-propos-v3 {
    margin-bottom: 16px;
}

.profil-a-propos-v3 p {
    max-width: 850px;
    margin: 0;
    color: #bdc2cc;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
}

.profil-bloc-entete-v3 h2 {
    margin: 0;
    font-size: 19px;
}

.profil-bloc-entete-ligne-v3 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.profil-bloc-entete-ligne-v3 > a {
    color: #ae9fff;
    font-size: 11px;
    font-weight: 700;
}

.profil-contenu-v3 {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 16px;
}

.profil-top-v3 {
    display: grid;
    gap: 7px;
}

.profil-top-ligne-v3 {
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) 28px 53px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    color: #e9ebf0;
    background: #191d27;
    border: 1px solid #252b37;
    border-radius: 8px;
}

.profil-top-ligne-v3:hover { color: #fff; border-color: #413a57; }

.profil-top-ligne-v3 > span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8a92a2;
    background: #242936;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

.profil-top-ligne-v3.podium-1 > span { color:#2b210b; background:linear-gradient(145deg,#f4d77b,#c9932f); }
.profil-top-ligne-v3.podium-2 > span { color:#252932; background:linear-gradient(145deg,#e5e8ed,#aeb5c0); }
.profil-top-ligne-v3.podium-3 > span { color:#2d170d; background:linear-gradient(145deg,#dca06d,#98572e); }

.profil-top-ligne-v3 > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profil-top-ligne-v3 > b {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 900;
}

.profil-top-ligne-v3 > em {
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-align: right;
}

.profil-top-ligne-v3 > em small { color: #737b8b; font-size: 8px; }

.profil-otaku-apercu-v3,
.profil-reponses-v3 {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.profil-otaku-apercu-v3 article,
.profil-reponses-v3 article {
    min-width: 0;
    padding: 12px;
    background: #1a1e28;
    border: 1px solid #282e3a;
    border-radius: 9px;
}

.profil-otaku-apercu-v3 span,
.profil-reponses-v3 span {
    display: block;
    margin-bottom: 5px;
    color: #777f90;
    font-size: 9px;
}

.profil-otaku-apercu-v3 strong,
.profil-reponses-v3 strong {
    display: block;
    overflow: hidden;
    color: #e2e4e9;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profil-otaku-details-v3 {
    margin-top: 10px;
}

.profil-otaku-details-v3 > summary {
    padding: 9px 0;
    color: #a99df1;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.profil-reponses-v3 { margin-top: 8px; }

.profil-vide-v3 {
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #777f8f;
    border: 1px dashed #303645;
    border-radius: 9px;
    font-size: 11px;
}

.profil-vide-v3 a { color: #b2a7f6; }

/* Catalogue d'ajout */
.catalogue-actions-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalogue-admin-v3 {
    color: #777f8f;
    font-size: 10px;
}

.catalogue-recherche-v3 {
    display: grid;
    grid-template-columns: auto minmax(280px,1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
    padding: 7px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
}

.catalogue-types-v3 { gap: 3px; }

.catalogue-types-v3 a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #969ead;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.catalogue-types-v3 a.is-active {
    color: #fff;
    background: #2a244d;
    box-shadow: inset 0 0 0 1px rgba(130,107,247,.3);
}

.catalogue-recherche-v3 form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
}

.catalogue-recherche-v3 input {
    height: 40px;
    padding-block: 0;
}

.catalogue-recherche-v3 button {
    min-height: 40px;
    padding: 0 15px;
    color: #fff;
    background: #7259f3;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.catalogue-resultats-v3 {
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #737b8b;
    font-size: 10px;
}

.catalogue-resultats-v3 a { color: #a99df1; }

.catalogue-grille-v3 {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
}

.catalogue-carte-v3 {
    min-width: 0;
    min-height: 218px;
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
    transition: transform .18s ease, border-color .18s ease;
}

.catalogue-carte-v3:hover {
    transform: translateY(-2px);
    border-color: #46405d;
}

.catalogue-carte-v3.is-added { border-color: rgba(83,164,116,.28); }

.catalogue-carte-entete-v3 {
    min-height: 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalogue-carte-entete-v3 > span {
    color: #9688e8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.catalogue-carte-entete-v3 > b {
    color: #87dba8;
    font-size: 9px;
}

.catalogue-carte-v3 h2 {
    min-height: 40px;
    margin: 10px 0 8px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalogue-genres-v3 {
    display: flex;
    gap: 5px;
    min-height: 24px;
    overflow: hidden;
}

.catalogue-genres-v3 span {
    flex: 0 0 auto;
    padding: 4px 6px;
    color: #8991a1;
    background: #1e222d;
    border-radius: 5px;
    font-size: 9px;
}

.catalogue-score-v3 {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 2px 8px;
    margin: 14px 0;
    padding: 10px;
    background: #191d27;
    border-radius: 8px;
}

.catalogue-score-v3 > span { color: #7e8696; font-size: 9px; }
.catalogue-score-v3 > strong { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #fff; font-size: 18px; }
.catalogue-score-v3 > strong small { color: #6f7787; font-size: 8px; }
.catalogue-score-v3 > p { margin: 0; color: #697181; font-size: 9px; }

.catalogue-bouton-v3 {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    color: #fff;
    background: #7259f3;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.catalogue-bouton-v3:hover { color: #fff; background: #806af5; }
.catalogue-bouton-v3.is-secondary { color: #aeb5c3; background: #222733; }

@media (max-width: 1120px) and (min-width: 761px) {
    .membres-grille-v3,
    .catalogue-grille-v3 {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .profil-stats-v3 {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .classements-grille-v3,
    .profil-contenu-v3 {
        grid-template-columns: 1fr;
    }

    .classement-attente-liste-v3 {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .profil-identite-v3 {
        grid-template-columns: 100px minmax(0,1fr);
    }

    .profil-actions-v3 {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 0;
    }
}

@media (max-width: 760px) {
    .membres-entete-v3,
    .classements-entete-v3,
    .catalogue-entete-v3 {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .membres-grille-v3,
    .catalogue-grille-v3,
    .profil-stats-v3,
    .classement-attente-liste-v3 {
        grid-template-columns: 1fr;
    }

    .classement-panneau-v3 { padding: 14px; }
    .classement-notes-v3 { padding-left: 10px; }

    .profil-couverture-v3 { height: 130px; }

    .profil-identite-v3 {
        grid-template-columns: 76px minmax(0,1fr);
        gap: 12px;
        padding: 0 15px 16px;
    }

    .profil-avatar-v3 {
        width: 74px;
        height: 74px;
        margin-top: -28px;
        border-width: 4px;
        font-size: 25px;
    }

    .profil-nom-v3 { padding-top: 8px; }
    .profil-nom-v3 h1 { font-size: 23px; }
    .profil-actions-v3 a { flex: 1 1 auto; text-align: center; }
    .profil-bloc-v3 { padding: 16px; }
    .profil-otaku-apercu-v3,
    .profil-reponses-v3 { grid-template-columns: 1fr; }

    .catalogue-actions-v3 { width: 100%; flex-wrap: wrap; }
    .catalogue-recherche-v3 { grid-template-columns: 1fr; }
    .catalogue-types-v3 { overflow-x: auto; }
    .catalogue-recherche-v3 form { grid-template-columns: 1fr; }
}

/* ================================================================
   KIZUMA PC V3.1 — ÉCHELLE TYPOGRAPHIQUE COMMUNE
   Cette couche finale neutralise les tailles historiques incohérentes
   sans aplatir la hiérarchie nécessaire à la lecture.
   ================================================================ */

:root {
    --nakama-type-caption: 12px;
    --nakama-type-small: 13px;
    --nakama-type-body: 14px;
    --nakama-type-card-title: 15px;
    --nakama-type-subtitle: 16px;
    --nakama-type-section-title: 20px;
    --nakama-type-page-title: clamp(30px, 3vw, 36px);
    --nakama-type-stat: 34px;
    --nakama-type-score: 44px;
}

body,
.nakama-shell {
    font-size: var(--nakama-type-body);
    line-height: 1.5;
}

.nakama-shell h1,
.page-dashboard h1,
.page-communaute h1,
.page-anime-detail-v2 h1,
.page-membres-v3 h1,
.page-classements-v3 h1,
.page-profil-v3 h1,
.page-catalogue-v3 h1 {
    font-size: var(--nakama-type-page-title) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em;
}

.nakama-shell h2,
.dashboard-panneau-entete-v2 h2,
.communaute-section-entete-v2 h2,
.anime-section-entete-v2 h2,
.profil-bloc-entete-v3 h2,
.classement-panneau-entete-v3 h2 {
    font-size: var(--nakama-type-section-title) !important;
    line-height: 1.25 !important;
}

.nakama-shell h3,
.anime-section-v2 h3,
.catalogue-carte-v3 h2,
.communaute-raccourci-v2 strong,
.membre-nom-v3 strong {
    font-size: var(--nakama-type-subtitle) !important;
    line-height: 1.3 !important;
}

.nakama-shell p,
.nakama-shell li,
.nakama-shell td,
.nakama-shell summary {
    font-size: var(--nakama-type-body);
}

.nakama-shell small {
    font-size: var(--nakama-type-caption) !important;
    line-height: 1.35;
}

.nakama-shell button,
.nakama-shell input,
.nakama-shell select,
.nakama-shell textarea,
.bouton-principal,
.bouton-secondaire,
.bouton-ajouter,
.catalogue-bouton-v3 {
    font-size: var(--nakama-type-body) !important;
    line-height: 1.25;
}

.nakama-shell label,
.formulaire-groupe label,
.champ-formulaire label {
    font-size: var(--nakama-type-small) !important;
}

.sur-titre,
.anime-sur-titre-v2,
.anime-statut-v2,
.dashboard-position-v2,
.classement-position-v3,
.catalogue-admin-v3,
.catalogue-types-v3 a,
.profil-badges-v3 span,
.membre-nom-v3 span,
.badge-info,
.badge-genre,
.badge-abandonne,
.badge-deja-ajoute,
.badge-deja-vu,
.badge-recommande,
.badge-profil-otaku,
.tag-genre,
.type-oeuvre,
.source-episodes {
    font-size: var(--nakama-type-caption) !important;
    line-height: 1.25 !important;
}

.sous-titre,
.aide,
.compteur,
.dashboard-entete-v2 p,
.communaute-entete-v2 p,
.membres-entete-v3 p,
.classements-entete-v3 p,
.catalogue-entete-v3 p,
.anime-meta-v2,
.anime-information-vide-v2,
.profil-vide-v3,
.classement-vide-v3,
.catalogue-resultats-v3,
.etat-vide {
    font-size: var(--nakama-type-small) !important;
    line-height: 1.5 !important;
}

/* Navigation : les libellés gardent tous la même présence. */
.navigation-principale a,
.navigation-principale button,
.menu-principal a,
.navigation-principale-pc > a:not(.lien-profil-navbar),
.navigation-principale-pc > button,
.nav-lien,
.nav-action,
.header-action,
.bouton-menu {
    font-size: var(--nakama-type-body) !important;
}

/* Pages historiques encore accessibles : aucun texte utile sous 12 px. */
.bibliotheque-entete .sur-titre,
.bibliotheque-filtre label,
.bibliotheque-sous-onglets a,
.bibliotheque-carte-meta span,
.bibliotheque-note small,
.badge-etat,
.badge-recommandation,
.badge-priorite,
.tags span,
.badges-detail span,
.mini-info span,
.anime-tier-texte span,
.dashboard-top-nom small,
.dashboard-tier span,
.dashboard-s-ligne span,
.badge-moi,
.catalogue-type,
.catalogue-meta span,
.infos-classement-groupe p,
.note-classement-groupe span,
.nombre-notes-groupe,
.compatibilite-label,
.resume-succes-label,
.badge-succes-debloque,
.progression-succes strong,
.sur-titre-fiche,
.info-fiche-pre-remplie span,
.profil-section-sur-titre,
.reponse-otaku-categorie,
.palier span,
.badge-type-oeuvre,
.badge-genre-oeuvre,
.grille-notes-communaute span,
.grille-notes-communaute small,
.entete-commentaires > span,
.commentaire-meta,
.suggestion-genre,
.suggestion-type,
.suggestion-globale-oeuvre small,
.suggestion-globale-oeuvre b,
.barre-profil-pseudo small,
.badge-type-recommandation,
.badge-genre-recommandation,
.resume-recommandations-profil .profil-stat span,
.table-admin-catalogue th,
.aide-fusion-admin,
.table-admin-catalogue td > small,
.moyenne-communaute-ajout strong small,
.moyenne-communaute-ajout em,
.avatar-note-mini,
.avatar-classement-utilisateur,
.mini-tier-note,
.meta-classement-oeuvre,
.nombre-notes-classement,
.moyenne-classement small,
.titre-page .compteur,
.badge-profil-incomplet,
.pastille-profil-incomplet,
.compte-label,
.onboarding-etape > span {
    font-size: var(--nakama-type-caption) !important;
    line-height: 1.3 !important;
}

.mini-info strong,
.grille-animes-compacte .carte-entete h2,
.grille-animes-compacte .tier-carte {
    font-size: var(--nakama-type-small) !important;
}

.grille-animes-compacte .tags span,
.grille-animes-compacte .note-carte small,
.grille-animes-compacte .recommande-carte,
.source-episodes {
    font-size: var(--nakama-type-caption) !important;
}

.mobile-bottom-item,
.mobile-bottom-button,
.mobile-more-section h3,
.mobile-more-card span,
.mobile-search-result small,
.mobile-search-result b {
    font-size: var(--nakama-type-caption) !important;
}

/* Dashboard */
.dashboard-kpi-v2 span,
.dashboard-succes-v2 p,
.dashboard-panneau-entete-v2 a {
    font-size: var(--nakama-type-small) !important;
}

.dashboard-kpi-v2 strong {
    font-size: var(--nakama-type-stat) !important;
    line-height: 1 !important;
}

.dashboard-ligne-top-v2 > span:nth-child(2),
.dashboard-ligne-top-v2 .dashboard-titre-v2 {
    font-size: var(--nakama-type-body) !important;
}

.dashboard-tier-v2,
.dashboard-ligne-top-v2 > span:last-child {
    font-size: var(--nakama-type-small) !important;
}

/* Communauté */
.communaute-stat-v2 span,
.communaute-niveau-entete-v2 span,
.communaute-raccourci-v2 span:not(.communaute-raccourci-icone-v2) {
    font-size: var(--nakama-type-small) !important;
}

.communaute-stat-v2 strong {
    font-size: var(--nakama-type-stat) !important;
    line-height: 1 !important;
}

.communaute-niveau-entete-v2 strong,
.communaute-raccourci-v2 strong {
    font-size: var(--nakama-type-card-title) !important;
}

/* Fiche d'œuvre */
.anime-genres-v2 span,
.anime-meta-v2 small,
.anime-score-v2 > span,
.anime-note-v2 span {
    font-size: var(--nakama-type-caption) !important;
}

.anime-meta-v2 strong,
.anime-note-v2 strong,
.anime-info-courte-v2 strong {
    font-size: var(--nakama-type-body) !important;
}

.anime-score-valeur-v2 strong,
.anime-score-vide-v2 {
    font-size: var(--nakama-type-score) !important;
    line-height: 1 !important;
}

.anime-score-valeur-v2 small {
    font-size: var(--nakama-type-small) !important;
}

.anime-tier-v2 {
    font-size: 28px !important;
    line-height: 1 !important;
}

.anime-commentaire-v2 {
    font-size: var(--nakama-type-body) !important;
    line-height: 1.65 !important;
}

/* Membres */
.membre-infos-v3 p,
.membre-fleche-v3 {
    font-size: var(--nakama-type-small) !important;
}

.membre-avatar-initiale-v3 {
    font-size: 18px !important;
}

/* Classements */
.classement-panneau-entete-v3 p,
.classement-oeuvre-v3 small,
.classement-score-v3 small,
.classement-note-membre-v3 span,
.classement-attente-v3 summary,
.classement-attente-liste-v3 span {
    font-size: var(--nakama-type-caption) !important;
}

.classement-oeuvre-v3 strong,
.classement-note-membre-v3 strong {
    font-size: var(--nakama-type-body) !important;
}

.classement-score-v3 strong {
    font-size: 18px !important;
}

.classement-avatar-v3 {
    font-size: 11px !important;
}

/* Profil */
.profil-nom-v3 p,
.profil-stat-watchlist-v3 span,
.profil-bloc-entete-v3 p,
.profil-top-ligne-v3 span,
.profil-otaku-apercu-v3 span,
.profil-reponses-v3 dt {
    font-size: var(--nakama-type-caption) !important;
}

.profil-stats-v3 strong {
    font-size: 28px !important;
    line-height: 1 !important;
}

.profil-stats-v3 span,
.profil-top-ligne-v3 strong,
.profil-otaku-details-v3 summary,
.profil-reponses-v3 dd {
    font-size: var(--nakama-type-small) !important;
}

/* Catalogue */
.catalogue-resultats-v3,
.catalogue-carte-entete-v3 span,
.catalogue-genres-v3 span,
.catalogue-score-v3 span {
    font-size: var(--nakama-type-caption) !important;
}

.catalogue-carte-v3 h2 {
    font-size: var(--nakama-type-card-title) !important;
}

.catalogue-score-v3 strong {
    font-size: 18px !important;
}

.catalogue-bouton-v3 {
    font-size: var(--nakama-type-small) !important;
}

@media (max-width: 760px) {
    :root {
        --nakama-type-page-title: 30px;
        --nakama-type-section-title: 19px;
    }

    .nakama-shell input,
    .nakama-shell select,
    .nakama-shell textarea {
        font-size: 16px !important;
    }

    .profil-nom-v3 h1 {
        font-size: 30px !important;
    }
}

/* ================================================================
   KIZUMA PC V4 — AJOUT COMPACT ET PROFIL OTAKU
   ================================================================ */

/* Ajouter : une carte sert d’abord à identifier puis ajouter l’œuvre. */
.catalogue-carte-v3 {
    min-height: 166px;
    padding: 15px;
}

.catalogue-contenu-v4 {
    min-width: 0;
}

.catalogue-carte-v3 h2 {
    min-height: 0;
    margin: 8px 0 5px;
    font-size: var(--nakama-type-card-title) !important;
}

.catalogue-meta-v4 {
    min-height: 20px;
    margin: 0;
    overflow: hidden;
    color: #8f97a7;
    font-size: var(--nakama-type-small) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogue-communaute-v4 {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 10px 0 0;
    color: #747d8e;
    font-size: var(--nakama-type-caption) !important;
}

.catalogue-communaute-v4 strong {
    color: #d8d1ff;
    font-size: var(--nakama-type-body);
}

.catalogue-communaute-v4 span {
    font-size: var(--nakama-type-caption) !important;
}

.catalogue-carte-entete-v3 > span,
.catalogue-carte-entete-v3 > b {
    font-size: var(--nakama-type-caption) !important;
    letter-spacing: 0;
    text-transform: none;
}

.catalogue-bouton-v3 {
    min-height: 36px;
    margin-top: 13px;
}

/* Profil public : quatre réponses-signatures, puis le détail sans doublon. */
.profil-otaku-signature-v4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.profil-otaku-signature-v4 article {
    min-width: 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: linear-gradient(145deg, #1b1f2a, #181b25);
    border: 1px solid #2a3040;
    border-radius: 10px;
}

.profil-otaku-signature-v4 article > span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c7bcff;
    background: #2a244b;
    border-radius: 8px;
    font-size: var(--nakama-type-caption) !important;
    font-weight: 900;
}

.profil-otaku-signature-v4 div {
    min-width: 0;
}

.profil-otaku-signature-v4 small {
    display: block;
    margin-bottom: 2px;
    color: #858e9f;
    font-size: var(--nakama-type-caption) !important;
}

.profil-otaku-signature-v4 strong {
    display: block;
    overflow: hidden;
    color: #f0f1f4;
    font-size: var(--nakama-type-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profil-otaku-details-v3 {
    margin-top: 12px;
    border-top: 1px solid #292f3b;
}

.profil-otaku-details-v3 > summary {
    padding: 12px 2px 6px;
    font-size: var(--nakama-type-small) !important;
}

.profil-reponses-v3 article {
    padding: 10px 11px;
}

.profil-reponses-v3 span {
    margin-bottom: 3px;
    font-size: var(--nakama-type-caption) !important;
}

.profil-reponses-v3 strong {
    font-size: var(--nakama-type-small) !important;
}

/* Édition du Profil Otaku : moins de hauteur, groupes immédiatement lisibles. */
.page-profil-otaku-edition {
    max-width: 1180px;
}

.profil-otaku-titre {
    margin-bottom: 17px;
}

.profil-photo-section,
.formulaire-profil-otaku .profil-otaku-section {
    padding: 20px;
    border-color: #2a3040;
    border-radius: 13px;
}

.profil-otaku-intro-grid-v4 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 16px;
}

.profil-otaku-intro-grid-v4 .profil-otaku-section {
    height: 100%;
    box-sizing: border-box;
}

.profil-otaku-section-titre {
    gap: 12px;
    margin-bottom: 16px;
}

.profil-otaku-section-titre > span {
    min-width: 34px;
    height: 34px;
    font-size: var(--nakama-type-caption) !important;
}

.profil-otaku-section-titre h2 {
    font-size: var(--nakama-type-section-title) !important;
}

.profil-otaku-section-titre p {
    font-size: var(--nakama-type-small) !important;
}

.grille-profil-otaku-champs {
    gap: 13px 15px;
}

.grille-profil-otaku-champs label > span {
    font-size: var(--nakama-type-small) !important;
}

.profil-otaku-section textarea,
.profil-otaku-section input,
.profil-otaku-section select {
    font-size: var(--nakama-type-body) !important;
}

.actions-profil-otaku {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    align-items: center;
    padding: 11px;
    background: rgba(18, 20, 28, .92);
    border: 1px solid #303646;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
    .profil-otaku-intro-grid-v4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .profil-otaku-signature-v4 {
        grid-template-columns: 1fr;
    }

    .actions-profil-otaku {
        position: static;
    }
}

/* ================================================================
   KIZUMA PC V5 — ACTIVITÉ, INVITATION ET COMMUNAUTÉ
   ================================================================ */

.communaute-entete-v2,
.activite-entete-v5,
.inviter-entete-v5 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
}

.communaute-inviter-v5 {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 17px;
}

.activites-feed-v5 {
    display: grid;
    gap: 7px;
}

.activite-ligne-v5 {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #191d27;
    border: 1px solid #262c38;
    border-radius: 10px;
}

.activite-ligne-v5:hover {
    background: #1d222d;
    border-color: #39364a;
}

.activite-avatar-v5 {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff !important;
    background: #7259f3;
    border: 1px solid #433b67;
    border-radius: 50%;
    font-size: var(--nakama-type-small) !important;
    font-weight: 850;
}

.activite-avatar-v5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activite-contenu-v5 {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.activite-contenu-v5 p {
    min-width: 0;
    margin: 0;
    color: #aeb5c2;
    font-size: var(--nakama-type-body) !important;
    line-height: 1.45;
}

.activite-contenu-v5 p > a:first-child {
    color: #f0f1f5;
    font-weight: 800;
}

.activite-oeuvre-v5 {
    color: #c7bdff !important;
    font-weight: 750;
}

.activite-meta-v5 {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #747d8d;
    font-size: var(--nakama-type-caption) !important;
    white-space: nowrap;
}

.activite-meta-v5 b {
    padding: 3px 6px;
    color: #e7e2ff;
    background: #2a244b;
    border-radius: 6px;
    font-size: var(--nakama-type-caption);
}

.activite-ligne-v5.action-inscription {
    border-color: rgba(83, 164, 116, .28);
}

.activite-ligne-v5.action-abandonne {
    border-color: rgba(202, 104, 116, .24);
}

.activites-vide-v5 {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px;
    color: #7e8797;
    text-align: center;
    border: 1px dashed #303746;
    border-radius: 10px;
}

.activites-vide-v5 strong {
    color: #b8bec9;
    font-size: var(--nakama-type-body);
}

.activites-vide-v5 span {
    font-size: var(--nakama-type-small);
}

.page-activite-v5,
.page-inviter-v5 {
    max-width: 1050px;
    margin: 0 auto;
}

.activite-entete-v5,
.inviter-entete-v5 {
    margin-bottom: 22px;
}

.activite-entete-v5 h1,
.inviter-entete-v5 h1 {
    margin: 0;
    font-size: var(--nakama-type-page-title) !important;
}

.activite-entete-v5 p,
.inviter-entete-v5 p {
    margin: 8px 0 0;
    color: #9299aa;
    font-size: var(--nakama-type-body) !important;
}

.activite-panneau-v5 {
    padding: 18px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
}

.inviter-carte-v5 {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: 25px;
    background: radial-gradient(circle at 0 0, rgba(130, 107, 247, .14), transparent 42%), #151822;
    border: 1px solid #2d3240;
    border-radius: 15px;
}

.inviter-icone-v5 {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #826bf7, #5f48cf);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(95, 72, 207, .28);
    font-size: 34px;
    font-weight: 500;
}

.inviter-contenu-v5 h2 {
    margin: 0 0 6px;
    font-size: var(--nakama-type-section-title) !important;
}

.inviter-contenu-v5 > p {
    margin: 0 0 16px;
    color: #8f97a7;
    font-size: var(--nakama-type-small) !important;
}

.inviter-lien-v5 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.inviter-lien-v5 input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    background: #10131a;
}

.inviter-partager-v5 {
    margin-top: 10px;
}

.inviter-contenu-v5 .inviter-avertissement-v5 {
    margin: 16px 0 0;
    padding: 11px 13px;
    color: #d6c58f;
    background: rgba(177, 135, 43, .09);
    border: 1px solid rgba(205, 164, 72, .22);
    border-radius: 9px;
    line-height: 1.5;
}

.inviter-avertissement-v5 code {
    color: #f0dfaa;
    font-size: var(--nakama-type-caption);
}

.inviter-contenu-v5 .inviter-etat-v5 {
    min-height: 20px;
    margin: 9px 0 0;
    color: #89d4a6;
}

@media (max-width: 760px) {
    .communaute-entete-v2,
    .activite-entete-v5,
    .inviter-entete-v5 {
        align-items: flex-start;
        flex-direction: column;
    }

    .communaute-inviter-v5 {
        width: 100%;
        box-sizing: border-box;
    }

    .activite-contenu-v5 {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .inviter-carte-v5 {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .inviter-icone-v5 {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        font-size: 28px;
    }

    .inviter-lien-v5 {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   KIZUMA PC V6 — PROFIL IDENTITAIRE ET COMPARAISON COMPACTE
   ================================================================ */

/* Le Profil présente l'identité ; les classements restent au Dashboard. */
.profil-contenu-identite-v6 {
    grid-template-columns: minmax(0, 1fr);
}

.profil-contenu-identite-v6 .profil-otaku-v3 {
    min-width: 0;
}

/* Édition du profil : deux imports simples et des blocs réellement séparés. */
.page-profil-otaku-edition .profil-images-v6 {
    margin-bottom: 22px;
    padding: 18px;
}

.page-profil-otaku-edition .formulaire-profil-otaku {
    gap: 22px;
}

.profil-images-grille-v6 {
    display: grid;
    grid-template-columns: minmax(290px, .8fr) minmax(420px, 1.2fr);
    gap: 14px;
}

.profil-image-carte-v6 {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
    gap: 13px;
    padding: 14px;
    background: #12151d;
    border: 1px solid #292f3b;
    border-radius: 11px;
}

.profil-image-carte-v6 h3 {
    margin: 0 0 10px;
    color: #dfe2e8;
    font-size: var(--nakama-type-body) !important;
}

.profil-image-avatar-v6 > div:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profil-image-avatar-v6 h3 {
    min-width: 105px;
    margin: 0;
}

.profil-images-v6 .apercu-photo-profil {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    border-radius: 50%;
    font-size: 29px;
}

.apercu-couverture-v6 {
    height: 92px;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(126, 96, 245, .56), transparent 48%),
        linear-gradient(25deg, #181b25, #292342);
    border: 1px solid #353b49;
    border-radius: 9px;
}

.apercu-couverture-v6 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profil-image-actions-v6 {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.profil-image-actions-v6 .bouton-choisir-photo {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profil-image-actions-v6 button,
.profil-image-actions-v6 label {
    min-height: 38px;
    box-sizing: border-box;
}

.profil-image-suppression-v6 {
    margin-top: -5px;
}

.profil-image-suppression-v6 button {
    padding: 0;
    color: #8d95a4;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: var(--nakama-type-caption) !important;
}

.profil-image-suppression-v6 button:hover {
    color: #e399a3;
}

.profil-images-aide-v6 {
    margin: 11px 0 0;
    color: #747d8d;
    font-size: var(--nakama-type-caption) !important;
}

.page-profil-otaku-edition .profil-otaku-intro-grid-v4 {
    gap: 22px;
}

.page-profil-otaku-edition .profil-otaku-intro-grid-v4 .profil-otaku-section {
    padding: 16px 18px;
}

.page-profil-otaku-edition .profil-otaku-intro-grid-v4 .profil-otaku-section-titre {
    margin-bottom: 10px;
}

.page-profil-otaku-edition .profil-otaku-intro-grid-v4 textarea {
    min-height: 72px;
    max-height: 130px;
}

/* Comparaison : aucune sélection redondante, uniquement les deux profils utiles. */
.page-comparaison-v6 {
    max-width: 1160px;
    margin: 0 auto;
}

.comparaison-entete-v6 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.comparaison-entete-v6 h1 {
    margin: 0;
    font-size: var(--nakama-type-page-title) !important;
}

.comparaison-entete-v6 p {
    margin: 7px 0 0;
    color: #8e96a6;
    font-size: var(--nakama-type-body) !important;
}

.comparaison-hero-v6 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background:
        radial-gradient(circle at 50% 0, rgba(124, 91, 246, .16), transparent 44%),
        #151922;
    border: 1px solid #2c3240;
    border-radius: 14px;
}

.comparaison-personne-v6 {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparaison-personne-droite-v6 {
    flex-direction: row-reverse;
    text-align: right;
}

.comparaison-personne-v6 > img,
.comparaison-personne-v6 > span {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    object-fit: cover;
    color: #fff;
    background: #735af2;
    border: 2px solid #413961;
    border-radius: 50%;
    font-size: var(--nakama-type-section-title) !important;
    font-weight: 850;
}

.comparaison-personne-v6 div {
    min-width: 0;
}

.comparaison-personne-v6 small,
.comparaison-personne-v6 strong {
    display: block;
}

.comparaison-personne-v6 small {
    margin-bottom: 2px;
    color: #7f8898;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-personne-v6 strong {
    overflow: hidden;
    color: #eef0f5;
    font-size: var(--nakama-type-section-title) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comparaison-score-v6 {
    text-align: center;
}

.comparaison-score-v6 strong,
.comparaison-score-v6 span {
    display: block;
}

.comparaison-score-v6 strong {
    color: #c3b5ff;
    font-size: clamp(31px, 4vw, 46px) !important;
    line-height: 1;
}

.comparaison-score-v6 span {
    margin-top: 4px;
    color: #929aaa;
    font-size: var(--nakama-type-small) !important;
}

.comparaison-resume-v6 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.comparaison-resume-v6 article {
    min-width: 0;
    padding: 12px 14px;
    background: #171b24;
    border: 1px solid #292f3b;
    border-radius: 10px;
}

.comparaison-resume-v6 span,
.comparaison-resume-v6 strong {
    display: block;
}

.comparaison-resume-v6 span {
    margin-bottom: 5px;
    color: #7f8898;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-resume-v6 strong {
    overflow: hidden;
    color: #e6e8ed;
    font-size: var(--nakama-type-body) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comparaison-resume-v6 article:first-child strong,
.comparaison-resume-v6 article:nth-child(2) strong {
    color: #c5baff;
    font-size: var(--nakama-type-section-title) !important;
}

.comparaison-resume-v6 strong small {
    color: #929aaa;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-liste-v6 {
    padding: 17px;
    background: #151922;
    border: 1px solid #2b303d;
    border-radius: 14px;
}

.comparaison-liste-entete-v6 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.comparaison-liste-entete-v6 span {
    color: #7566ce;
    font-size: var(--nakama-type-caption) !important;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.comparaison-liste-entete-v6 h2 {
    margin: 3px 0 0;
    font-size: var(--nakama-type-section-title) !important;
}

.comparaison-liste-entete-v6 > small {
    color: #7f8796;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-table-v6 {
    display: grid;
    gap: 6px;
}

.comparaison-table-titres-v6,
.comparaison-ligne-v6 {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 105px 105px 72px;
    align-items: center;
    column-gap: 10px;
}

.comparaison-table-titres-v6 {
    padding: 0 12px 4px;
    color: #6f7888;
    font-size: var(--nakama-type-caption) !important;
    text-align: center;
}

.comparaison-table-titres-v6 span:first-child {
    text-align: left;
}

.comparaison-ligne-v6 {
    padding: 10px 12px;
    background: #191e28;
    border: 1px solid #272e3a;
    border-radius: 9px;
}

.comparaison-ligne-v6:hover {
    background: #1d222d;
    border-color: #38364a;
}

.comparaison-oeuvre-v6 {
    min-width: 0;
}

.comparaison-oeuvre-v6 a,
.comparaison-oeuvre-v6 small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comparaison-oeuvre-v6 a {
    color: #eef0f4;
    font-size: var(--nakama-type-body) !important;
    font-weight: 800;
}

.comparaison-oeuvre-v6 small {
    margin-top: 3px;
    color: #747e8e;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-note-v6,
.comparaison-ecart-v6 {
    color: #e3e5eb;
    font-size: var(--nakama-type-body) !important;
    text-align: center;
}

.comparaison-note-v6 small {
    color: #747d8d;
    font-size: var(--nakama-type-caption) !important;
}

.comparaison-ecart-v6 {
    justify-self: center;
    min-width: 38px;
    padding: 4px 6px;
    color: #bcb1f3;
    background: #292342;
    border-radius: 6px;
    font-size: var(--nakama-type-caption) !important;
    font-weight: 800;
}

.comparaison-details-v6 {
    grid-column: 1 / -1;
    margin-top: 7px;
    border-top: 1px solid #29303c;
}

.comparaison-details-v6 summary {
    width: max-content;
    padding-top: 8px;
    color: #8f84ce;
    cursor: pointer;
    font-size: var(--nakama-type-caption) !important;
    font-weight: 750;
}

.comparaison-details-v6 > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.comparaison-details-v6 p {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    margin: 0;
    padding: 7px;
    text-align: center;
    background: #141821;
    border-radius: 7px;
}

.comparaison-details-v6 p strong {
    color: #7e8797;
    font-size: var(--nakama-type-caption) !important;
    font-weight: 650;
    order: -1;
}

.comparaison-details-v6 p span {
    color: #d9dce4;
    font-size: var(--nakama-type-small) !important;
}

.comparaison-vide-v6 {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    color: #7f8898;
    text-align: center;
    border: 1px dashed #313847;
    border-radius: 9px;
}

.comparaison-vide-v6 strong {
    color: #c9cdd5;
    font-size: var(--nakama-type-body) !important;
}

.comparaison-vide-v6 span {
    font-size: var(--nakama-type-small) !important;
}

@media (max-width: 900px) {
    .profil-images-grille-v6 {
        grid-template-columns: 1fr;
    }

    .comparaison-resume-v6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .comparaison-table-titres-v6,
    .comparaison-ligne-v6 {
        grid-template-columns: minmax(190px, 1fr) 82px 82px 58px;
    }
}

@media (max-width: 700px) {
    .comparaison-entete-v6 {
        align-items: flex-start;
        flex-direction: column;
    }

    .comparaison-hero-v6 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .comparaison-personne-v6,
    .comparaison-personne-droite-v6 {
        justify-content: center;
        flex-direction: row;
        text-align: left;
    }

    .comparaison-table-titres-v6 {
        display: none;
    }

    .comparaison-ligne-v6 {
        grid-template-columns: minmax(0, 1fr) 58px 58px 45px;
    }

    .comparaison-details-v6 > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ================================================================
   KIZUMA MOBILE V1 — COQUE D'APPLICATION ET ÉCRANS COMPACTS
   Couche finale limitée au téléphone : la présentation PC V6 reste
   volontairement inchangée au-dessus de 760 px.
   ================================================================ */

@media (max-width: 760px) {
    :root {
        --mobile-appbar-height: 56px;
        --mobile-bottom-height: 74px;
        --mobile-gutter-v1: 14px;
        --mobile-surface-v1: #171a23;
        --mobile-surface-raised-v1: #1c202b;
        --mobile-border-v1: #2a303d;
        --mobile-purple-v1: #826bf7;
        --mobile-muted-v1: #8c94a4;
        --nakama-type-page-title: 27px;
        --nakama-type-section-title: 18px;
    }

    html {
        color-scheme: dark;
        background: #0e1017;
    }

    body.nakama-shell {
        min-width: 0;
        background:
            radial-gradient(circle at 84% -8%, rgba(130, 107, 247, .11), transparent 30%),
            #0e1017;
        font-size: 14px;
        -webkit-tap-highlight-color: transparent;
    }

    .nakama-shell main {
        width: auto !important;
        max-width: none !important;
        margin: 0 var(--mobile-gutter-v1) calc(var(--mobile-bottom-height) + 24px + env(safe-area-inset-bottom)) !important;
        padding: 14px 0 0 !important;
    }

    .nakama-shell h1,
    .page-dashboard h1,
    .page-communaute h1,
    .page-anime-detail-v2 h1,
    .page-membres-v3 h1,
    .page-classements-v3 h1,
    .page-profil-v3 h1,
    .page-catalogue-v3 h1,
    .page-comparaison-v6 h1,
    .page-profil-otaku-edition h1 {
        font-size: 27px !important;
        line-height: 1.12 !important;
        letter-spacing: -.035em;
    }

    .nakama-shell h2,
    .dashboard-panneau-entete-v2 h2,
    .communaute-section-entete-v2 h2,
    .anime-section-entete-v2 h2,
    .profil-bloc-entete-v3 h2,
    .classement-panneau-entete-v3 h2 {
        font-size: 18px !important;
    }

    .sur-titre {
        margin-bottom: 5px !important;
        font-size: 10px !important;
    }

    /* Coque haute : recherche globale + accès aux pages secondaires. */
    .nakama-shell .mobile-appbar {
        height: calc(var(--mobile-appbar-height) + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 12px 0;
        background: rgba(14, 16, 23, .94);
        border-bottom-color: rgba(255, 255, 255, .06);
        box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
    }

    .nakama-shell .mobile-appbar-brand {
        gap: 8px;
    }

    .nakama-shell .mobile-appbar-brand img {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        border-radius: 9px;
    }

    .nakama-shell .mobile-appbar-brand strong {
        font-size: 16px !important;
        letter-spacing: .055em;
    }

    .nakama-shell .mobile-appbar-actions {
        gap: 6px;
    }

    .nakama-shell .mobile-appbar-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-color: transparent;
        border-radius: 12px !important;
        background: transparent;
        box-shadow: none;
    }

    .nakama-shell .mobile-appbar-icon:active {
        background: #202430;
        transform: scale(.96);
    }

    .nakama-shell .mobile-appbar-more-v1 svg {
        width: 19px;
        height: 19px;
    }

    /* Navigation basse : cinq destinations stables, action au centre. */
    .nakama-shell .mobile-bottom-nav {
        height: calc(var(--mobile-bottom-height) + env(safe-area-inset-bottom));
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        align-items: stretch;
        background: rgba(17, 19, 27, .97);
        border-top-color: rgba(255, 255, 255, .075);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .3);
    }

    .nakama-shell .mobile-bottom-item {
        min-height: 56px;
        height: 56px;
        gap: 3px;
        color: #7f8797;
        border-radius: 12px;
        font-size: 10px !important;
        font-weight: 700;
        letter-spacing: -.015em;
        white-space: nowrap;
    }

    .nakama-shell .mobile-bottom-item > svg {
        width: 42px;
        height: 28px;
        box-sizing: border-box;
        padding: 4px 10px;
        border-radius: 999px;
        transition: background .18s ease, color .18s ease;
    }

    .nakama-shell .mobile-bottom-item.is-active {
        color: #d7d0ff;
    }

    .nakama-shell .mobile-bottom-item.is-active > svg {
        color: #d9d2ff;
        background: rgba(130, 107, 247, .18);
    }

    .nakama-shell .mobile-bottom-item.is-active::after {
        display: none !important;
    }

    .mobile-bottom-profile-v1 {
        width: 27px;
        height: 27px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-sizing: border-box;
        color: currentColor;
        border: 1px solid #464d5c;
        border-radius: 50%;
        background: #222733;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    .mobile-bottom-profile-v1 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-bottom-profile-v1 svg {
        width: 19px !important;
        height: 19px !important;
        padding: 0 !important;
    }

    .mobile-bottom-item.is-active .mobile-bottom-profile-v1 {
        border-color: #a697ff;
        box-shadow: 0 0 0 3px rgba(130, 107, 247, .16);
    }

    .nakama-shell .mobile-bottom-add {
        color: #ece9ff;
    }

    .nakama-shell .mobile-add-circle {
        width: 52px;
        height: 52px;
        margin-top: -24px;
        border: 4px solid #11131b;
        border-radius: 50%;
        background: linear-gradient(145deg, #927cff, #684ee4);
        box-shadow: 0 11px 28px rgba(114, 89, 243, .4), inset 0 1px 0 rgba(255, 255, 255, .24);
    }

    .nakama-shell .mobile-bottom-add > span:last-child {
        margin-top: -1px;
    }

    /* Panneau secondaire volontairement compact. */
    .nakama-shell .mobile-more-sheet {
        max-height: min(82vh, 660px);
        padding: 7px 14px calc(17px + env(safe-area-inset-bottom));
        border-radius: 22px 22px 0 0;
        background: #14171f;
    }

    .nakama-shell .mobile-sheet-header {
        margin-bottom: 2px;
    }

    .nakama-shell .mobile-sheet-header h2 {
        font-size: 21px !important;
    }

    .nakama-shell .mobile-more-section {
        margin-top: 15px;
    }

    .nakama-shell .mobile-more-section h3 {
        margin-bottom: 7px;
        font-size: 10px !important;
    }

    .nakama-shell .mobile-more-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .nakama-shell .mobile-more-card {
        min-height: 69px;
        gap: 6px;
        padding: 8px 5px;
        border-radius: 13px;
        background: #1a1e27;
    }

    .nakama-shell .mobile-more-card svg {
        width: 20px;
        height: 20px;
    }

    .nakama-shell .mobile-more-card span {
        overflow: hidden;
        font-size: 11px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Recherche plein écran, pensée comme une action et non une destination. */
    .nakama-shell .mobile-search-overlay {
        background: #0f1118;
    }

    .nakama-shell .mobile-search-panel {
        padding: calc(8px + env(safe-area-inset-top)) 12px 18px;
    }

    .nakama-shell .mobile-search-header {
        gap: 8px;
    }

    .nakama-shell .mobile-search-field {
        min-height: 46px;
        border-radius: 13px;
        background: #1a1e27;
    }

    .nakama-shell .mobile-search-results {
        padding-top: 12px;
    }

    .nakama-shell .mobile-search-result {
        min-height: 58px;
        padding: 10px 12px;
        border-radius: 11px;
    }

    /* En-têtes d'écran : titre fort, explication retirée si elle est redondante. */
    .dashboard-entete-v2,
    .bibliotheque-entete,
    .communaute-entete-v2,
    .membres-entete-v3,
    .classements-entete-v3,
    .catalogue-entete-v3,
    .activite-entete-v5,
    .inviter-entete-v5,
    .comparaison-entete-v6,
    .profil-otaku-titre {
        margin-bottom: 14px !important;
        gap: 10px !important;
    }

    .dashboard-entete-v2 p,
    .bibliotheque-entete p,
    .communaute-entete-v2 p,
    .membres-entete-v3 p,
    .classements-entete-v3 p,
    .catalogue-entete-v3 p,
    .comparaison-entete-v6 p,
    .activite-entete-v5 p,
    .inviter-entete-v5 p {
        display: none !important;
    }

    .membres-entete-v3 > a,
    .classements-entete-v3 > a,
    .activite-entete-v5 > a,
    .inviter-entete-v5 > a,
    .comparaison-entete-v6 > a,
    .profil-otaku-titre > a {
        min-height: 40px;
        padding: 0 12px;
    }

    /* Dashboard : trois indicateurs sur une ligne, contenu en piles courtes. */
    .dashboard-v2 {
        width: 100%;
    }

    .dashboard-kpis-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 14px;
    }

    .dashboard-kpi-v2 {
        min-height: 86px !important;
        padding: 11px 7px !important;
        align-items: center;
        text-align: center;
        border-radius: 12px;
    }

    .dashboard-kpi-v2 > span {
        font-size: 10px !important;
        line-height: 1.25;
    }

    .dashboard-kpi-v2 > strong {
        margin: 6px 0 0;
        font-size: clamp(23px, 7vw, 29px) !important;
    }

    .dashboard-kpi-v2 > small {
        display: none;
    }

    .dashboard-tops-v2 {
        grid-template-columns: 1fr !important;
        gap: 13px;
        margin-bottom: 13px;
    }

    .dashboard-panneau-v2,
    .dashboard-succes-v2,
    .communaute-activite-v2 {
        padding: 14px !important;
        border-radius: 13px;
    }

    .dashboard-panneau-entete-v2,
    .communaute-section-entete-v2 {
        gap: 10px;
        margin-bottom: 12px;
    }

    .dashboard-liste-top-v2 {
        gap: 6px;
    }

    .dashboard-ligne-top-v2 {
        min-height: 48px;
        grid-template-columns: 30px minmax(0, 1fr) 28px 49px;
        gap: 7px;
        padding: 6px 7px;
    }

    .dashboard-ligne-top-v2 > strong {
        font-size: 13px !important;
    }

    .dashboard-ligne-top-v2 > b {
        font-size: 12px;
    }

    .dashboard-succes-v2 {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 10px 12px !important;
    }

    .dashboard-succes-v2 > div:first-child {
        min-width: 0;
    }

    .dashboard-succes-v2 > a {
        grid-column: 2;
        grid-row: 1;
    }

    .dashboard-succes-progression-v2 {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    /* Bibliothèque : deux cartes notées, une ligne pour watchlist/en cours. */
    .page-bibliotheque-pc {
        width: 100%;
    }

    .bibliotheque-entete {
        align-items: center !important;
    }

    .bibliotheque-entete h1 {
        margin-bottom: 0;
        font-size: 27px !important;
    }

    .bibliotheque-total {
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 11px;
        white-space: nowrap;
    }

    .bibliotheque-barre-outils {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        margin-bottom: 12px;
        padding: 6px;
        border-radius: 13px;
    }

    .bibliotheque-onglets,
    .bibliotheque-sous-onglets,
    .catalogue-types-v3 {
        display: flex;
        max-width: 100%;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .bibliotheque-onglets::-webkit-scrollbar,
    .bibliotheque-sous-onglets::-webkit-scrollbar,
    .catalogue-types-v3::-webkit-scrollbar {
        display: none;
    }

    .bibliotheque-onglets a,
    .bibliotheque-sous-onglets a,
    .catalogue-types-v3 a {
        flex: 0 0 auto;
        min-width: max-content;
        min-height: 39px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        border-radius: 9px;
        white-space: nowrap;
        writing-mode: horizontal-tb;
        word-break: normal;
        overflow-wrap: normal;
    }

    .bibliotheque-filtre {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
    }

    .bibliotheque-filtre label {
        padding-left: 5px;
    }

    .bibliotheque-filtre select {
        width: 100%;
        min-height: 42px;
    }

    .nakama-shell .bibliotheque-grille {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    .nakama-shell .bibliotheque-grille-compacte {
        grid-template-columns: 1fr !important;
    }

    .bibliotheque-carte {
        min-width: 0;
        min-height: 132px;
        padding: 13px !important;
        border-radius: 13px !important;
    }

    .bibliotheque-carte.is-compact {
        min-height: 84px;
        padding: 13px 14px !important;
    }

    .bibliotheque-carte-titre {
        align-items: flex-start;
        gap: 6px;
    }

    .bibliotheque-carte-titre h2 {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        font-size: 15px !important;
        line-height: 1.28 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .bibliotheque-carte-resultats {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px;
        margin-top: 16px;
    }

    .bibliotheque-note strong {
        font-size: 23px !important;
    }

    .bibliotheque-tier {
        width: 31px;
        height: 31px;
    }

    .badge-recommandation {
        grid-column: 1 / -1;
        width: max-content;
        max-width: 100%;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bibliotheque-vide {
        min-height: 250px;
        padding: 24px 16px;
    }

    /* Communauté : tableau 2 × 2, accès rapides, puis cinq activités. */
    .communaute-entete-v2 {
        align-items: stretch !important;
    }

    .communaute-inviter-v5 {
        width: 100%;
        min-height: 44px;
        box-sizing: border-box;
    }

    .communaute-stats-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        margin-bottom: 13px;
    }

    .communaute-stat-v2,
    .communaute-niveau-v2 {
        min-height: 101px !important;
        padding: 13px !important;
        border-radius: 13px;
    }

    .communaute-stat-v2 > strong {
        margin: 6px 0 3px;
        font-size: 28px !important;
    }

    .communaute-stat-v2 > small,
    .communaute-niveau-v2 > small {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .communaute-niveau-entete-v2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .communaute-niveau-entete-v2 > strong {
        font-size: 14px !important;
    }

    .communaute-progression-v2 {
        height: 6px;
        margin: 10px 0 7px;
    }

    .communaute-raccourcis-v2 {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-bottom: 13px;
    }

    .communaute-raccourci-v2 {
        min-height: 70px;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 11px;
        padding: 11px 13px;
        border-radius: 12px;
    }

    .communaute-raccourci-icone-v2 {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .communaute-raccourci-v2 strong {
        margin-bottom: 2px;
    }

    .communaute-activite-v2 {
        margin-bottom: 0;
    }

    .activites-feed-v5 {
        gap: 6px;
    }

    .activite-ligne-v5 {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
        padding: 9px 10px;
    }

    .activite-avatar-v5 {
        width: 34px;
        height: 34px;
    }

    .activite-contenu-v5 {
        gap: 3px;
    }

    .activite-contenu-v5 p {
        font-size: 13px !important;
    }

    /* Membres et classements : de vraies listes tactiles. */
    .membres-grille-v3,
    .classements-grille-v3 {
        gap: 9px;
    }

    .membre-carte-v3 {
        min-height: 74px;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        gap: 11px;
        padding: 11px 12px;
        border-radius: 13px;
    }

    .membre-avatar-v3 {
        width: 46px;
        height: 46px;
    }

    .membre-nom-v3 h2 {
        font-size: 15px !important;
    }

    .classement-panneau-v3 {
        padding: 12px !important;
        border-radius: 13px;
    }

    .classement-panneau-entete-v3 {
        margin-bottom: 10px;
    }

    .classement-ligne-v3 > summary {
        min-height: 58px;
        grid-template-columns: 31px minmax(0, 1fr) 51px 16px;
        gap: 7px;
        padding: 8px 7px;
    }

    .classement-position-v3 {
        width: 28px;
        height: 28px;
    }

    .classement-oeuvre-v3 strong {
        font-size: 13px !important;
    }

    .classement-oeuvre-v3 small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .classement-notes-v3 {
        padding: 5px 5px 8px 36px !important;
    }

    /* Profil : identité en premier, statistiques horizontales comme une app. */
    .profil-hero-v3 {
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .profil-couverture-v3 {
        height: 118px !important;
    }

    .profil-identite-v3 {
        grid-template-columns: 70px minmax(0, 1fr) !important;
        gap: 11px !important;
        padding: 0 13px 13px !important;
    }

    .profil-avatar-v3 {
        width: 68px !important;
        height: 68px !important;
        margin-top: -25px !important;
        border-width: 4px !important;
    }

    .profil-nom-v3 {
        min-width: 0;
        padding-top: 7px !important;
    }

    .profil-nom-v3 h1 {
        margin: 2px 0 6px;
        font-size: 23px !important;
    }

    .profil-badges-v3 span {
        padding: 4px 7px;
    }

    .profil-actions-v3 {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding-top: 2px;
    }

    .profil-actions-v3 > :only-child {
        grid-column: 1 / -1;
    }

    .profil-actions-v3 a {
        min-height: 42px;
        padding-inline: 10px;
    }

    .profil-stats-v3 {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(100px, 30vw);
        grid-template-columns: none !important;
        gap: 8px;
        margin: 0 -2px 12px;
        padding: 0 2px 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .profil-stats-v3::-webkit-scrollbar {
        display: none;
    }

    .profil-stats-v3 > a,
    .profil-stats-v3 > div {
        min-height: 76px;
        gap: 5px;
        scroll-snap-align: start;
    }

    .profil-stats-v3 strong {
        font-size: 24px !important;
    }

    .profil-bloc-v3 {
        margin-bottom: 12px;
        padding: 14px !important;
        border-radius: 13px;
    }

    .profil-otaku-signature-v4 {
        grid-template-columns: 1fr !important;
        gap: 7px;
    }

    .profil-otaku-signature-v4 article {
        min-height: 61px;
        padding: 9px 10px;
    }

    .profil-reponses-v3 {
        grid-template-columns: 1fr !important;
    }

    /* Fiche d'œuvre : les métadonnées deviennent des groupes courts. */
    .anime-hero-v2 {
        grid-template-columns: 1fr !important;
        gap: 13px !important;
        padding: 15px !important;
        border-radius: 14px;
    }

    .anime-hero-v2 h1 {
        font-size: 27px !important;
    }

    .anime-genres-v2 {
        gap: 5px;
        margin-top: 12px;
    }

    .anime-genres-v2 > span {
        max-width: 100%;
        min-height: 25px;
        padding: 4px 8px;
        white-space: normal;
    }

    .anime-meta-v2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 13px;
    }

    .anime-meta-v2 > span {
        min-width: 0;
        padding: 9px 10px;
    }

    .anime-score-v2 {
        min-height: 68px !important;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center !important;
        gap: 10px;
        padding: 11px 13px;
        text-align: left !important;
    }

    .anime-score-valeur-v2 {
        margin: 0;
    }

    .anime-score-valeur-v2 strong {
        font-size: 36px !important;
    }

    .anime-score-vide-v2 {
        margin: 0;
        font-size: 16px !important;
    }

    .anime-tier-v2 {
        width: 35px;
        height: 35px;
        font-size: 17px !important;
    }

    .anime-actions-v2 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 10px 0 13px;
    }

    .anime-actions-v2 a {
        width: 100%;
        min-height: 43px;
        box-sizing: border-box;
    }

    .anime-section-v2 {
        padding: 14px !important;
        border-radius: 13px;
    }

    .anime-section-entete-v2 {
        margin-bottom: 12px;
    }

    .anime-notes-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .anime-note-v2 {
        min-height: 72px;
        padding: 11px;
    }

    .anime-note-v2 > strong {
        font-size: 21px !important;
    }

    .anime-contenu-v2 {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-top: 10px;
    }

    .anime-colonne-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .anime-info-courte-v2 {
        min-height: 88px;
    }

    /* Ajouter : recherche d'abord, résultats en cartes-lignes compactes. */
    .catalogue-actions-v3 {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .catalogue-actions-v3 .catalogue-admin-v3 {
        text-align: center;
    }

    .catalogue-recherche-v3 {
        grid-template-columns: 1fr !important;
        gap: 7px;
        margin-bottom: 10px;
        padding: 6px;
        border-radius: 13px;
    }

    .catalogue-recherche-v3 form {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 6px;
    }

    .catalogue-recherche-v3 input {
        min-width: 0;
        height: 44px;
    }

    .catalogue-recherche-v3 button {
        min-height: 44px;
        padding: 0 13px;
    }

    .catalogue-grille-v3 {
        grid-template-columns: 1fr !important;
        gap: 7px;
    }

    .catalogue-carte-v3 {
        min-height: 0 !important;
        padding: 8px !important;
        border-radius: 12px;
    }

    .catalogue-carte-v3.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 6px;
        align-items: center;
    }

    .catalogue-carte-v3.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) .catalogue-affiche-vtmdb {
        grid-row: 1 / span 2;
        width: 64px !important;
        height: 92px;
        margin: 0 !important;
        aspect-ratio: auto;
        border-radius: 8px;
        border: 0;
        object-fit: cover;
    }

    .catalogue-carte-v3.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) .catalogue-contenu-v4 {
        grid-column: 2;
        min-width: 0;
    }

    .catalogue-carte-v3.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) .catalogue-bouton-v3,
    .catalogue-carte-v3.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) .catalogue-import-form-vtmdb {
        grid-column: 2;
        margin-top: 0;
    }

    .catalogue-carte-v3 h2 {
        min-height: 0;
        margin: 2px 0 3px;
        font-size: 14px;
        line-height: 1.25;
        -webkit-line-clamp: 2;
    }

    .catalogue-meta-v4 {
        margin: 0;
        font-size: 11px;
        line-height: 1.3;
    }

    .catalogue-communaute-v4,
    .catalogue-titre-original-vtmdb {
        display: none;
    }

    .catalogue-bouton-v3 {
        min-height: 36px;
        margin-top: 6px;
        font-size: 12px;
    }

    /* Comparaison : score central visible sans trois grands blocs verticaux. */
    .comparaison-hero-v6 {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        gap: 7px;
        padding: 14px;
        text-align: center;
    }

    .comparaison-personne-v6,
    .comparaison-personne-droite-v6 {
        min-width: 0;
        justify-content: center;
        flex-direction: column !important;
        gap: 6px;
        text-align: center !important;
    }

    .comparaison-personne-v6 > img,
    .comparaison-personne-v6 > span {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .comparaison-personne-v6 strong {
        max-width: 100%;
        display: block;
        overflow: hidden;
        font-size: 12px !important;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .comparaison-personne-v6 small {
        display: none;
    }

    .comparaison-score-v6 strong {
        font-size: 31px !important;
    }

    .comparaison-score-v6 span {
        font-size: 10px !important;
    }

    .comparaison-resume-v6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px;
    }

    .comparaison-resume-v6 article {
        min-height: 82px;
        padding: 11px;
    }

    .comparaison-liste-v6 {
        padding: 13px;
    }

    .comparaison-ligne-v6 {
        grid-template-columns: minmax(0, 1fr) 47px 47px 38px !important;
        gap: 4px;
        padding: 9px 6px;
    }

    .comparaison-note-v6,
    .comparaison-ecart-v6 {
        font-size: 12px !important;
    }

    /* Édition du profil, activité et invitation. */
    .page-profil-otaku-edition .profil-images-v6,
    .formulaire-profil-otaku .profil-otaku-section {
        margin-bottom: 0;
        padding: 14px !important;
        border-radius: 13px;
    }

    .page-profil-otaku-edition .formulaire-profil-otaku {
        gap: 12px !important;
    }

    .profil-images-grille-v6 {
        grid-template-columns: 1fr !important;
        gap: 9px;
    }

    .profil-image-carte-v6 {
        gap: 10px;
        padding: 12px;
    }

    .profil-image-actions-v6 {
        grid-template-columns: 1fr 1fr;
    }

    .profil-images-aide-v6 {
        margin-bottom: 0;
    }

    .grille-profil-otaku-champs,
    .grille-profil-otaku-champs.grille-deux-colonnes {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .activite-panneau-v5,
    .inviter-carte-v5 {
        padding: 13px;
        border-radius: 13px;
    }

    .inviter-carte-v5 {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .inviter-icone-v5 {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 24px;
    }

    .inviter-lien-v5 {
        grid-template-columns: 1fr;
    }

    /* Formulaires : taille tactile sans multiplier les grands espaces. */
    .nakama-shell input,
    .nakama-shell select,
    .nakama-shell textarea {
        font-size: 16px !important;
    }

    .nakama-shell .bouton-principal,
    .nakama-shell .bouton-secondaire,
    .nakama-shell button:not(.mobile-bottom-item):not(.mobile-appbar-icon):not(.mobile-sheet-close):not(.mobile-search-back):not(.watchlist-priorite-bouton):not(.catalogue-bouton-v3),
    .nakama-shell input[type="submit"] {
        min-height: 44px;
        border-radius: 11px !important;
    }
}

@media (max-width: 370px) {
    .nakama-shell .mobile-bottom-item {
        font-size: 9px !important;
    }

    .nakama-shell .mobile-bottom-nav {
        padding-inline: 1px;
    }

    .dashboard-kpi-v2 > span {
        font-size: 9px !important;
    }

    .dashboard-kpi-v2 > strong {
        font-size: 22px !important;
    }

    .nakama-shell .bibliotheque-grille {
        gap: 7px !important;
    }

    .bibliotheque-carte {
        padding: 11px !important;
    }
}

/* =========================================================
   KIZUMA — CATALOGUE TMDB V1
   Couche additive : aucune règle de navigation n'est remplacée.
   ========================================================= */

.bibliotheque-carte.has-poster-vtmdb {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    column-gap: 13px;
    row-gap: 12px;
    min-height: 150px;
}

.bibliotheque-carte.has-poster-vtmdb.is-compact {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 108px;
}

.bibliotheque-affiche-vtmdb {
    grid-row: 1 / 3;
    width: 72px;
    height: 108px;
    display: block;
    object-fit: cover;
    background: #202431;
    border: 1px solid #303646;
    border-radius: 8px;
}

.bibliotheque-carte.has-poster-vtmdb.is-compact .bibliotheque-affiche-vtmdb {
    grid-row: 1;
    width: 58px;
    height: 82px;
}

.bibliotheque-carte.has-poster-vtmdb .bibliotheque-carte-principale,
.bibliotheque-carte.has-poster-vtmdb .bibliotheque-carte-resultats {
    min-width: 0;
}

.catalogue-section-titre {
    margin: 18px 0 12px;
    color: #f0f1f6;
    font-size: 17px;
}

.catalogue-message-tmdb {
    margin: 0 0 14px;
    padding: 11px 13px;
    color: #d7cfaa;
    background: rgba(186, 145, 61, .08);
    border: 1px solid rgba(186, 145, 61, .2);
    border-radius: 9px;
    font-size: 12px;
}

.catalogue-carte-image-vtmdb {
    overflow: hidden;
}

.catalogue-carte-image-vtmdb:has(.catalogue-affiche-vtmdb) {
    padding-top: 0;
}

.catalogue-affiche-vtmdb {
    width: calc(100% + 32px);
    aspect-ratio: 2 / 2.55;
    display: block;
    margin: 0 -16px 15px;
    object-fit: cover;
    object-position: center 24%;
    background: #202431;
    border-bottom: 1px solid #2d3240;
}

.catalogue-date-vtmdb,
.catalogue-titre-original-vtmdb {
    margin: -3px 0 8px;
    overflow: hidden;
    color: #828a9a;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogue-annee-vtmdb {
    color: #9098a8 !important;
}

.catalogue-import-form-vtmdb {
    display: block;
    margin-top: auto;
}

.catalogue-import-form-vtmdb .catalogue-bouton-v3 {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.catalogue-tmdb-resultats {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #292e3b;
}

.catalogue-tmdb-entete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.catalogue-tmdb-entete > div > span {
    color: #9585ee;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.catalogue-tmdb-entete h2 {
    margin: 4px 0 0;
    font-size: 21px;
}

.catalogue-tmdb-entete small {
    max-width: 390px;
    color: #858d9c;
    font-size: 11px;
    text-align: right;
}

.tmdb-attribution {
    margin: 18px 0 0;
    color: #666e7d;
    font-size: 9px;
    text-align: right;
}

.anime-identite-vtmdb {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.anime-affiche-vtmdb {
    width: 142px;
    aspect-ratio: 2 / 3;
    display: block;
    object-fit: cover;
    background: #202431;
    border: 1px solid #343a49;
    border-radius: 11px;
    box-shadow: 0 13px 30px rgba(0, 0, 0, .28);
}

.anime-titre-original-vtmdb {
    margin: 8px 0 0;
    color: #7f8797;
    font-size: 12px;
}

/* Administration TMDB */
.page-tmdb-admin {
    max-width: 1260px;
    margin: 0 auto;
}

.page-tmdb-admin a {
    text-decoration: none !important;
}

.tmdb-admin-entete,
.tmdb-section-entete,
.tmdb-action-lot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.tmdb-admin-entete {
    margin-bottom: 20px;
}

.tmdb-admin-entete h1 {
    margin: 4px 0 0;
    font-size: clamp(28px, 3vw, 40px);
}

.tmdb-admin-entete p,
.tmdb-action-lot p {
    margin: 7px 0 0;
    color: #858d9d;
    font-size: 12px;
}

.tmdb-message,
.tmdb-configuration {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 12px;
}

.tmdb-message.is-success {
    color: #9ce4b9;
    background: rgba(61, 164, 106, .09);
    border: 1px solid rgba(61, 164, 106, .22);
}

.tmdb-message.is-error,
.tmdb-configuration {
    color: #f0a9b0;
    background: rgba(204, 73, 89, .08);
    border: 1px solid rgba(204, 73, 89, .21);
}

.tmdb-configuration p {
    margin: 5px 0 0;
}

.tmdb-configuration code {
    color: #fff;
}

.tmdb-resume {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.tmdb-resume article {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 12px;
}

.tmdb-resume strong {
    color: #fff;
    font-size: 27px;
}

.tmdb-resume span {
    margin-top: 4px;
    color: #858d9d;
    font-size: 10px;
}

.tmdb-action-lot {
    margin-bottom: 18px;
    padding: 16px;
    background: rgba(114, 89, 243, .07);
    border: 1px solid rgba(130, 107, 247, .2);
    border-radius: 12px;
}

.tmdb-action-lot h2 {
    margin: 0;
    font-size: 16px;
}

.tmdb-action-lot button:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.tmdb-admin-grille {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.35fr);
    gap: 16px;
}

.tmdb-fiches,
.tmdb-correspondances {
    min-width: 0;
    padding: 16px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
}

.tmdb-section-entete {
    min-height: 32px;
    margin-bottom: 12px;
}

.tmdb-section-entete h2 {
    margin: 0;
    font-size: 16px;
}

.tmdb-section-entete > span {
    color: #9285df;
    font-size: 10px;
    font-weight: 800;
}

.tmdb-fiches-liste {
    max-height: 630px;
    display: grid;
    gap: 6px;
    overflow-y: auto;
}

.tmdb-fiche-ligne {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    color: #e7e9ee;
    background: #1a1e29;
    border: 1px solid transparent;
    border-radius: 8px;
}

.tmdb-fiche-ligne:hover,
.tmdb-fiche-ligne.is-selected {
    color: #fff;
    border-color: #50466b;
    background: #202431;
}

.tmdb-fiche-ligne > span {
    min-width: 0;
}

.tmdb-fiche-ligne strong,
.tmdb-fiche-ligne small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-fiche-ligne strong {
    font-size: 12px;
}

.tmdb-fiche-ligne small {
    margin-top: 4px;
    color: #7d8595;
    font-size: 9px;
}

.tmdb-fiche-ligne b {
    flex: 0 0 auto;
    color: #a99df1;
    font-size: 9px;
}

.tmdb-fiche-ligne b.is-error {
    color: #e997a0;
}

.tmdb-section-entete-selection > div > span {
    display: block;
    margin-bottom: 4px;
    color: #777f90;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.tmdb-recherche-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    margin-bottom: 12px;
}

.tmdb-recherche-form input,
.tmdb-recherche-form button {
    min-height: 40px;
}

.tmdb-recherche-form button,
.tmdb-resultat button {
    color: #fff;
    background: #7259f3;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
}

.tmdb-resultats-liste {
    display: grid;
    gap: 8px;
}

.tmdb-resultat {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 9px;
    background: #1a1e29;
    border: 1px solid #282e3b;
    border-radius: 9px;
}

.tmdb-resultat > img,
.tmdb-poster-vide {
    width: 48px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    color: #6656c1;
    background: #232735;
    border-radius: 6px;
}

.tmdb-resultat > div:nth-child(2) {
    min-width: 0;
}

.tmdb-resultat strong,
.tmdb-resultat span,
.tmdb-resultat small {
    display: block;
}

.tmdb-resultat strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-resultat span,
.tmdb-resultat small {
    margin-top: 4px;
    color: #7f8797;
    font-size: 9px;
}

.tmdb-resultat button {
    min-height: 34px;
    padding: 0 12px;
}

.tmdb-deja-associe {
    color: #8ddbad !important;
    font-weight: 800;
}

.tmdb-selection-vide {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tmdb-selection-vide > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dcd6ff;
    background: rgba(130, 107, 247, .15);
    border-radius: 50%;
    font-weight: 900;
}

.tmdb-selection-vide h2 {
    margin: 12px 0 5px;
    font-size: 17px;
}

.tmdb-selection-vide p,
.tmdb-aide {
    color: #7e8696;
    font-size: 11px;
}

.tmdb-historique {
    margin-top: 16px;
    padding: 16px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 13px;
}

.tmdb-historique-liste {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.tmdb-historique-liste article {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 11px;
    background: #1a1e29;
    border-radius: 8px;
}

.tmdb-historique-liste article > span {
    min-width: 0;
}

.tmdb-historique-liste strong,
.tmdb-historique-liste small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tmdb-historique-liste strong {
    font-size: 11px;
}

.tmdb-historique-liste small {
    margin-top: 3px;
    color: #747c8c;
    font-size: 9px;
}

.tmdb-historique-liste button {
    min-height: 31px;
    padding: 0 9px;
    color: #dba0a7;
    background: transparent;
    border: 1px solid rgba(204, 73, 89, .25);
    border-radius: 7px;
    cursor: pointer;
    font-size: 9px;
}

@media (max-width: 980px) {
    .tmdb-admin-grille {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .bibliotheque-carte.has-poster-vtmdb {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 146px;
        column-gap: 9px;
        row-gap: 9px;
    }

    .bibliotheque-carte.has-poster-vtmdb .bibliotheque-affiche-vtmdb {
        width: 50px;
        height: 75px;
    }

    .bibliotheque-carte.has-poster-vtmdb .bibliotheque-carte-resultats {
        grid-column: 1 / -1;
    }

    .bibliotheque-carte.has-poster-vtmdb.is-compact {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        min-height: 96px;
    }

    .bibliotheque-carte.has-poster-vtmdb.is-compact .bibliotheque-affiche-vtmdb {
        width: 50px;
        height: 72px;
    }

    .catalogue-tmdb-entete,
    .tmdb-admin-entete,
    .tmdb-action-lot {
        align-items: stretch;
        flex-direction: column;
    }

    .catalogue-tmdb-entete small {
        text-align: left;
    }

    .catalogue-affiche-vtmdb {
        width: 64px;
        margin: 0;
        aspect-ratio: auto;
    }

    .anime-identite-vtmdb {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .anime-affiche-vtmdb {
        width: 88px;
        border-radius: 8px;
    }

    .anime-identite-vtmdb .anime-hero-v2 h1,
    .anime-identite-vtmdb h1 {
        font-size: 24px !important;
    }

    .tmdb-resume {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .tmdb-admin-grille {
        grid-template-columns: 1fr;
    }

    .tmdb-resultat {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .tmdb-resultat > img,
    .tmdb-poster-vide {
        width: 44px;
        height: 64px;
    }

    .tmdb-resultat > form,
    .tmdb-resultat > .tmdb-deja-associe {
        grid-column: 1 / -1;
    }

    .tmdb-resultat button {
        width: 100%;
        min-height: 40px;
    }

    .tmdb-historique-liste {
        grid-template-columns: 1fr;
    }
}

.fiche-communaute-entete.has-poster-vtmdb {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.communaute-affiche-vtmdb {
    width: 112px;
    aspect-ratio: 2 / 3;
    display: block;
    object-fit: cover;
    background: #202431;
    border: 1px solid #343a49;
    border-radius: 9px;
}

.communaute-titre-original-vtmdb {
    margin: 6px 0 0;
    color: #7f8797;
    font-size: 11px;
}

@media (max-width: 760px) {
    .fiche-communaute-entete.has-poster-vtmdb {
        grid-template-columns: 78px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .communaute-affiche-vtmdb {
        width: 78px;
    }

    .fiche-communaute-entete.has-poster-vtmdb .action-fiche-utilisateur {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   KIZUMA V1.1 — RANGS, BIBLIOTHÈQUE, RETOUR ET WATCHLIST
   ========================================================= */

.navigation-retour-pc {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 14px;
    padding: 0;
    color: #c8cdd7;
    background: #171a23;
    border: 1px solid #2c3240;
    border-radius: 11px;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.navigation-retour-pc:hover {
    color: #fff;
    background: #202431;
    border-color: #574b85;
}

.navigation-retour-pc svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.bibliotheque-carte-conteneur {
    position: relative;
    min-width: 0;
    display: flex;
}

.bibliotheque-carte-conteneur > .bibliotheque-carte {
    width: 100%;
    box-sizing: border-box;
}

.bibliotheque-carte-titre h2 {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
    writing-mode: horizontal-tb;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

.bibliotheque-carte-resultats {
    align-items: flex-end;
    justify-content: space-between;
}

.bibliotheque-evaluation {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.bibliotheque-evaluation .bibliotheque-note {
    margin-right: 0;
}

.bibliotheque-evaluation .badge-recommandation {
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}

.bibliotheque-carte-resultats .bibliotheque-tier {
    align-self: flex-end;
    margin-left: 8px;
}

.bibliotheque-carte.has-priority-control {
    padding-right: 66px !important;
}

.watchlist-priorite-form {
    position: absolute;
    top: 50%;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: 0;
    transform: translateY(-50%);
}

.watchlist-priorite-bouton {
    width: 40px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #4a5160;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    line-height: 1;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.watchlist-priorite-bouton svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.watchlist-priorite-bouton:hover,
.watchlist-priorite-bouton:focus-visible {
    color: #c4b5fd;
    background: rgba(130, 107, 247, .12);
    border-color: rgba(167, 139, 250, .4);
    outline: none;
    transform: scale(1.04);
}

.watchlist-priorite-bouton.is-active {
    color: #f6d277;
    background: linear-gradient(180deg, rgba(130, 107, 247, .38), rgba(91, 72, 196, .28));
    border-color: #a78bfa;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, .28), 0 6px 16px rgba(114, 89, 243, .28);
}

.watchlist-priorite-bouton.is-active svg {
    fill: #f6d277;
    stroke: #f4c45a;
}

.watchlist-priorite-bouton.is-active:hover,
.watchlist-priorite-bouton.is-active:focus-visible {
    color: #ffe9a8;
    border-color: #c4b5fd;
}

.profil-admin-catalogue {
    color: #d9d2ff !important;
    border-color: rgba(130, 107, 247, .4) !important;
    background: rgba(130, 107, 247, .08) !important;
}

@media (min-width: 921px) {
    .nakama-shell .bibliotheque-grille:not(.bibliotheque-grille-compacte) {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .navigation-retour-pc {
        display: none;
    }

    .mobile-appbar-debut {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .mobile-appbar-debut .navigation-retour-global {
        flex: 0 0 40px;
    }

    .mobile-appbar-debut .mobile-appbar-brand {
        min-width: 0;
    }

    .bibliotheque-carte.has-priority-control {
        padding-right: 56px !important;
    }

    .watchlist-priorite-form {
        right: 9px;
    }

    .watchlist-priorite-bouton {
        width: 40px;
        height: 40px;
        min-height: 40px !important;
        border-radius: 10px !important;
    }

    .bibliotheque-carte-resultats {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-end;
    }

    .bibliotheque-evaluation {
        flex: 1 1 auto;
    }

    .bibliotheque-evaluation .badge-recommandation {
        margin-left: 0;
    }
}

/* =========================================================
   KIZUMA V1.2 — RECOMMANDATIONS, LOGO ET NAVIGATION PC
   ========================================================= */

.navigation-retour-pc {
    width: max-content;
    height: auto;
    min-height: 34px;
    gap: 7px;
    margin: 0 0 12px;
    padding: 0 8px 0 3px;
    color: #9da5b5;
    background: transparent;
    border: 0;
    border-radius: 8px;
    text-decoration: none !important;
}

.navigation-retour-pc:hover {
    color: #fff;
    background: rgba(130, 107, 247, .08);
}

.navigation-retour-pc svg {
    width: 18px;
    height: 18px;
}

.navigation-retour-pc span {
    font-size: 13px;
    font-weight: 750;
}

.dashboard-entete-v2,
.bibliotheque-entete,
.communaute-entete-v2,
.catalogue-entete-v3 {
    margin-bottom: 14px;
}

.dashboard-entete-v2 h1,
.bibliotheque-entete h1,
.communaute-entete-v2 h1,
.catalogue-entete-v3 h1 {
    line-height: 1.08;
}

.communaute-raccourcis-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.communaute-raccourci-recommandations-v2 {
    color: #d7c6ff;
    font-size: 20px;
    letter-spacing: 0;
}

/* Sélection contrôlée des raisons d'une recommandation. */
.recommandation-toggle-v2 {
    grid-column: 1 / -1;
}

.recommandation-toggle-v2 > span {
    display: grid;
    gap: 3px;
}

.recommandation-toggle-v2 small {
    color: #858d9d;
    font-size: 11px !important;
    font-weight: 500;
}

.criteres-recommandation-v2 {
    display: grid;
    gap: 12px;
    padding: 15px;
    background: rgba(130, 107, 247, .07);
    border: 1px solid rgba(130, 107, 247, .22);
    border-radius: 12px;
}

.criteres-recommandation-v2[hidden] {
    display: none !important;
}

.criteres-recommandation-v2 > div:first-child {
    display: grid;
    gap: 3px;
}

.criteres-recommandation-v2 > div:first-child > strong {
    color: #f0eefc;
    font-size: 13px;
}

.criteres-recommandation-v2 > div:first-child > small,
.criteres-recommandation-v2 > small {
    color: #858d9d;
    font-size: 11px !important;
}

.criteres-recommandation-options-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.criteres-recommandation-options-v2 label {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: #c9ced8;
    background: #1b1f2a;
    border: 1px solid #313746;
    border-radius: 9px;
    cursor: pointer;
}

.criteres-recommandation-options-v2 label:has(input:checked) {
    color: #eeeaff;
    background: rgba(130, 107, 247, .16);
    border-color: rgba(130, 107, 247, .48);
}

.criteres-recommandation-options-v2 input {
    width: 15px !important;
    height: 15px !important;
    min-height: 0 !important;
    margin: 0;
    accent-color: #826bf7;
}

.criteres-recommandation-options-v2 input:disabled + span {
    opacity: .42;
}

.criteres-recommandation-watchlist-v2 {
    margin-top: 10px;
}

/* Liste communautaire compacte : le détail reste fermé par défaut. */
.page-recommandations-v2 {
    max-width: 1080px;
    margin: 0 auto 34px;
}

.recommandations-entete-v2 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.recommandations-entete-v2 h1 {
    margin: 0;
    font-size: var(--nakama-type-page-title) !important;
}

.recommandations-entete-v2 > span {
    color: #858d9d;
    font-size: 12px;
}

.recommandations-filtres-v2 {
    width: max-content;
    max-width: 100%;
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    padding: 4px;
    overflow-x: auto;
    background: #141821;
    border: 1px solid #292f3d;
    border-radius: 11px;
}

.recommandations-filtres-v2 a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #8f97a7;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 750;
}

.recommandations-filtres-v2 a:hover,
.recommandations-filtres-v2 a.is-active {
    color: #fff;
    background: #242333;
}

.recommandations-filtres-v2 a.is-active {
    box-shadow: inset 0 0 0 1px rgba(130, 107, 247, .28);
}

.recommandations-liste-v2 {
    display: grid;
    gap: 10px;
}

.recommandation-carte-v2 {
    overflow: hidden;
    background: #151922;
    border: 1px solid #2a303d;
    border-radius: 13px;
}

.recommandation-carte-v2[open] {
    border-color: #46405e;
}

.recommandation-carte-v2 > summary {
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 16px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
}

.recommandation-carte-v2.has-poster > summary {
    grid-template-columns: 58px minmax(0, 1fr) auto 22px;
}

.recommandation-carte-v2 > summary::-webkit-details-marker {
    display: none;
}

.recommandation-carte-v2 > summary:hover {
    background: #191e28;
}

.recommandation-carte-v2 > summary > img {
    width: 58px;
    aspect-ratio: 2 / 3;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}

.recommandation-resume-v2 {
    min-width: 0;
}

.recommandation-badges-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.recommandation-badges-v2 span {
    padding: 3px 6px;
    color: #b7aecf;
    background: #232735;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.recommandation-badges-v2 .is-seen {
    color: #8fd9ac;
    background: rgba(57, 151, 97, .12);
}

.recommandation-resume-v2 h2 {
    margin: 0;
    color: #f2f3f7;
    font-size: 16px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.recommandation-resume-v2 p {
    margin: 5px 0 0;
    color: #7e8797;
    font-size: 11px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommandation-compte-v2 {
    min-width: 48px;
    display: grid;
    justify-items: center;
    gap: 1px;
    color: #8f97a7;
}

.recommandation-compte-v2 strong {
    color: #dcd6ff;
    font-size: 20px;
    line-height: 1;
}

.recommandation-compte-v2 span {
    font-size: 10px;
}

.recommandation-chevron-v2 {
    color: #7d8493;
    font-size: 20px;
    transition: transform .18s ease;
}

.recommandation-carte-v2[open] .recommandation-chevron-v2 {
    transform: rotate(180deg);
}

.recommandation-details-v2 {
    display: grid;
    gap: 9px;
    padding: 0 16px 16px;
    border-top: 1px solid #252b37;
}

.recommandeur-v2 {
    padding: 13px;
    background: #1b202a;
    border: 1px solid #292f3b;
    border-radius: 10px;
}

.recommandeur-v2:first-child {
    margin-top: 13px;
}

.recommandeur-identite-v2 {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.recommandeur-avatar-v2 {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: #7259f3;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 850;
}

.recommandeur-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommandeur-identite-v2 strong {
    color: #f0f1f5;
    font-size: 13px;
}

.recommandeur-identite-v2 > b {
    color: #fff;
    font-size: 18px;
}

.recommandeur-identite-v2 > b small {
    margin-left: 2px;
    color: #777f8f;
    font-size: 10px !important;
}

.recommandeur-criteres-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.recommandeur-criteres-v2 span {
    padding: 3px 6px;
    color: #c8beff;
    background: rgba(130, 107, 247, .12);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
}

.recommandeur-criteres-v2 .is-legacy {
    color: #8a92a1;
    background: #252a35;
    font-weight: 600;
}

.recommandeur-v2 > p {
    margin: 11px 0 0;
    color: #b5bac5;
    font-size: 13px !important;
    line-height: 1.55;
    white-space: pre-line;
}

.recommandation-fiche-lien-v2 {
    width: max-content;
    margin-top: 2px;
    color: #b9afff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 750;
}

.recommandations-vide-v2 {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #151922;
    border: 1px dashed #303746;
    border-radius: 13px;
}

.recommandations-vide-v2 h2 {
    margin: 0 0 7px;
    font-size: 18px !important;
}

.recommandations-vide-v2 p {
    max-width: 540px;
    margin: 0;
    color: #858d9d;
}

/* Recommandations V1.3 : découverte, moyenne du groupe et filtres utiles. */
.page-recommandations-v3 {
    max-width: 1080px;
    margin: 0 auto 34px;
}

.recommandations-entete-v3 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.recommandations-entete-v3 h1 {
    margin: 0;
    font-size: var(--nakama-type-page-title) !important;
    line-height: 1.08;
}

.recommandations-entete-v3 p {
    margin: 6px 0 0;
    color: #858d9d;
    font-size: 12px !important;
}

.recommandations-entete-v3 > span {
    flex: 0 0 auto;
    padding-top: 5px;
    color: #858d9d;
    font-size: 12px;
}

.recommandations-outils-v3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 10px;
    padding: 12px;
    background: #141821;
    border: 1px solid #292f3d;
    border-radius: 12px;
}

.recommandations-outils-v3 label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.recommandations-outils-v3 label > span {
    color: #9299a8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.recommandations-outils-v3 select {
    width: 100%;
    min-height: 40px;
    padding: 0 34px 0 11px;
    color: #e8e9ee;
    background: #1b202a;
    border: 1px solid #303746;
    border-radius: 9px;
    font-size: 12px;
}

.recommandations-outils-v3 button {
    min-height: 40px;
    padding: 0 16px;
    color: #fff;
    background: #7259f3;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.recommandations-conseil-v3 {
    margin: 10px 2px 14px;
    color: #777f8f;
    font-size: 11px !important;
    line-height: 1.45;
}

.recommandations-liste-v3 {
    display: grid;
    gap: 10px;
}

.recommandation-carte-v3 {
    overflow: hidden;
    background: #151922;
    border: 1px solid #2a303d;
    border-radius: 13px;
}

.recommandation-carte-v3[open] {
    border-color: #46405e;
}

.recommandation-carte-v3 > summary {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 18px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
}

.recommandation-carte-v3.has-poster > summary {
    grid-template-columns: 58px minmax(0, 1fr) auto 22px;
}

.recommandation-carte-v3 > summary::-webkit-details-marker {
    display: none;
}

.recommandation-carte-v3 > summary:hover {
    background: #191e28;
}

.recommandation-carte-v3 > summary > img {
    width: 58px;
    aspect-ratio: 2 / 3;
    display: block;
    object-fit: cover;
    border-radius: 7px;
}

.recommandation-resume-v3 {
    min-width: 0;
}

.recommandation-badges-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.recommandation-badges-v3 span {
    padding: 3px 6px;
    color: #b7aecf;
    background: #232735;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.recommandation-resume-v3 h2 {
    margin: 0;
    color: #f2f3f7;
    font-size: 16px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.recommandation-resume-v3 p {
    margin: 5px 0 0;
    overflow: hidden;
    color: #7e8797;
    font-size: 11px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommandation-stats-v3 {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.recommandation-note-v3,
.recommandation-compte-v3 {
    min-width: 78px;
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    padding: 8px 10px;
    text-align: center;
    background: #1c212c;
    border: 1px solid #2d3442;
    border-radius: 9px;
}

.recommandation-note-v3 strong,
.recommandation-compte-v3 strong {
    color: #f0edff;
    font-size: 18px;
    line-height: 1;
}

.recommandation-note-v3 small {
    align-self: end;
    margin: 0 0 1px 2px;
    color: #777f8f;
    font-size: 9px !important;
}

.recommandation-note-v3 span,
.recommandation-compte-v3 span {
    grid-column: 1 / -1;
    margin-top: 4px;
    color: #858d9d;
    font-size: 9px;
    white-space: nowrap;
}

.recommandation-chevron-v3 {
    color: #7d8493;
    font-size: 20px;
    transition: transform .18s ease;
}

.recommandation-carte-v3[open] .recommandation-chevron-v3 {
    transform: rotate(180deg);
}

.recommandation-details-v3 {
    display: grid;
    gap: 9px;
    padding: 0 16px 16px;
    border-top: 1px solid #252b37;
}

.recommandeur-v3 {
    padding: 13px;
    background: #1b202a;
    border: 1px solid #292f3b;
    border-radius: 10px;
}

.recommandeur-v3:first-child {
    margin-top: 13px;
}

.recommandeur-identite-v3 {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.recommandeur-avatar-v3 {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: #7259f3;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 850;
}

.recommandeur-avatar-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommandeur-identite-v3 strong {
    color: #f0f1f5;
    font-size: 13px;
}

.recommandeur-identite-v3 > b {
    color: #fff;
    font-size: 18px;
}

.recommandeur-identite-v3 > b small {
    margin-left: 2px;
    color: #777f8f;
    font-size: 10px !important;
}

.recommandeur-criteres-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.recommandeur-criteres-v3 span {
    padding: 3px 6px;
    color: #c8beff;
    background: rgba(130, 107, 247, .12);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 750;
}

.recommandeur-criteres-v3 .is-missing {
    color: #8a92a1;
    background: #252a35;
    font-weight: 600;
}

.recommandeur-v3 > p {
    margin: 11px 0 0;
    color: #b5bac5;
    font-size: 13px !important;
    line-height: 1.55;
    white-space: pre-line;
}

.recommandeur-v3 > p.is-missing {
    color: #777f8f;
    font-style: italic;
}

.recommandation-fiche-lien-v3 {
    width: max-content;
    margin-top: 2px;
    color: #b9afff;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 750;
}

.recommandations-vide-v3 {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: #151922;
    border: 1px dashed #303746;
    border-radius: 13px;
}

.recommandations-vide-v3 h2 {
    margin: 0 0 7px;
    font-size: 18px !important;
}

.recommandations-vide-v3 p {
    max-width: 540px;
    margin: 0;
    color: #858d9d;
}

.profil-installation-pwa-icone img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

@media (max-width: 920px) and (min-width: 761px) {
    .communaute-raccourcis-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navigation-retour-pc {
        display: none;
    }

    .dashboard-entete-v2,
    .bibliotheque-entete,
    .communaute-entete-v2,
    .catalogue-entete-v3 {
        margin-bottom: 11px;
    }

    .communaute-raccourcis-v2 {
        grid-template-columns: 1fr;
    }

    .recommandations-entete-v2 {
        margin-bottom: 10px;
    }

    .recommandations-filtres-v2 {
        width: 100%;
        box-sizing: border-box;
    }

    .recommandations-filtres-v2 a {
        flex: 1 0 auto;
        justify-content: center;
    }

    .recommandation-carte-v2 > summary {
        min-height: 78px;
        grid-template-columns: minmax(0, 1fr) auto 18px;
        gap: 10px;
        padding: 11px;
    }

    .recommandation-carte-v2.has-poster > summary {
        grid-template-columns: 48px minmax(0, 1fr) auto 18px;
    }

    .recommandation-carte-v2 > summary > img {
        width: 48px;
    }

    .recommandation-resume-v2 h2 {
        font-size: 14px !important;
    }

    .recommandation-resume-v2 p {
        max-width: 45vw;
    }

    .recommandation-compte-v2 {
        min-width: 36px;
    }

    .recommandation-compte-v2 strong {
        font-size: 17px;
    }

    .recommandation-details-v2 {
        padding: 0 10px 10px;
    }

    .recommandeur-identite-v2 {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .recommandeur-avatar-v2 {
        width: 34px;
        height: 34px;
    }

    .criteres-recommandation-options-v2 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .criteres-recommandation-options-v2 label {
        min-width: 0;
    }

    .recommandations-entete-v3 {
        gap: 10px;
        margin-bottom: 10px;
    }

    .recommandations-entete-v3 p {
        max-width: 290px;
        font-size: 10px !important;
    }

    .recommandations-outils-v3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .recommandations-outils-v3 label:nth-child(3),
    .recommandations-outils-v3 button {
        grid-column: 1 / -1;
    }

    .recommandations-conseil-v3 {
        margin-bottom: 11px;
    }

    .recommandation-carte-v3 > summary {
        min-height: 78px;
        grid-template-columns: minmax(0, 1fr) 18px;
        gap: 10px;
        padding: 11px;
    }

    .recommandation-carte-v3.has-poster > summary {
        grid-template-columns: 48px minmax(0, 1fr) 18px;
    }

    .recommandation-carte-v3 > summary > img {
        width: 48px;
    }

    .recommandation-resume-v3 h2 {
        font-size: 14px !important;
    }

    .recommandation-resume-v3 p {
        max-width: 52vw;
    }

    .recommandation-stats-v3 {
        grid-column: 1 / -2;
        justify-self: start;
        gap: 6px;
    }

    .recommandation-carte-v3.has-poster .recommandation-stats-v3 {
        grid-column: 2 / -2;
    }

    .recommandation-note-v3,
    .recommandation-compte-v3 {
        min-width: 72px;
        padding: 7px 8px;
    }

    .recommandation-note-v3 strong,
    .recommandation-compte-v3 strong {
        font-size: 16px;
    }

    .recommandation-chevron-v3 {
        grid-column: -2 / -1;
        grid-row: 1;
    }

    .recommandation-details-v3 {
        padding: 0 10px 10px;
    }

    .recommandeur-identite-v3 {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .recommandeur-avatar-v3 {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   KIZUMA V1.4 — FIABILITÉ AVIS, FICHES SOCIALES ET MOBILE
   ========================================================= */

/* Membres ayant vu l'œuvre */
.membres-vus-v4 {
    min-width: 0;
}

.membres-vus-entete-v4 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.membres-vus-entete-v4 > strong {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(114, 89, 243, .13);
    border: 1px solid rgba(114, 89, 243, .28);
    color: #d7d0ff;
    font-size: 14px;
}

.membres-vus-liste-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.membre-vu-v4 {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    color: #eef0f6;
    text-decoration: none;
    background: #171b24;
    border: 1px solid #2b313d;
    border-radius: 12px;
    transition: border-color .16s ease, background .16s ease;
}

.membre-vu-v4:hover {
    background: #1b202b;
    border-color: rgba(114, 89, 243, .42);
}

.membre-vu-avatar-v4 {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #262b37;
    color: #d7d0ff;
    font-weight: 850;
}

.membre-vu-avatar-v4 img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.membre-vu-identite-v4 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.membre-vu-identite-v4 strong,
.membre-vu-identite-v4 small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.membre-vu-identite-v4 strong {
    font-size: 13px;
}

.membre-vu-identite-v4 strong small,
.membre-vu-identite-v4 > small {
    color: #8e96a5;
    font-size: 10px;
    font-weight: 600;
}

.membre-vu-note-v4 {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.membre-vu-note-v4 > strong {
    font-size: 17px;
}

.membre-vu-note-v4 > small {
    color: #8e96a5;
    font-size: 10px;
}

.membre-vu-note-v4 > b {
    width: 26px;
    height: 26px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #252b37;
    font-size: 11px;
}

/* Recommandation directe à un membre */
.recommandation-ciblee-v4 {
    overflow: hidden;
}

.form-reco-ciblee-v4 {
    display: grid;
    grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.5fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 14px;
}

.form-reco-ciblee-v4 label {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.form-reco-ciblee-v4 label > span {
    color: #aeb4c0;
    font-size: 11px;
    font-weight: 700;
}

.form-reco-ciblee-v4 label > span small {
    color: #737c8d;
    font-weight: 600;
}

.form-reco-ciblee-v4 select,
.form-reco-ciblee-v4 textarea {
    width: 100%;
    box-sizing: border-box;
}

.form-reco-ciblee-v4 textarea {
    min-height: 48px;
    resize: vertical;
}

.message-reco-ciblee-v4 {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.message-reco-ciblee-v4.is-ok {
    color: #c9f2d4;
    background: rgba(73, 170, 103, .09);
    border: 1px solid rgba(73, 170, 103, .28);
}

.message-reco-ciblee-v4.is-info {
    color: #d7d0ff;
    background: rgba(114, 89, 243, .09);
    border: 1px solid rgba(114, 89, 243, .25);
}

/* Recommandations personnelles reçues */
.recommandations-ciblees-v4 {
    margin: 0 0 22px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(114, 89, 243, .10), rgba(20, 24, 33, .92));
    border: 1px solid rgba(114, 89, 243, .28);
    border-radius: 14px;
}

.page-recommandations-v3 .recommandations-ciblees-v4 {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.recommandations-ciblees-entete-v4 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.recommandations-ciblees-entete-v4 span {
    color: #a99cff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.recommandations-ciblees-entete-v4 h2 {
    margin: 3px 0 0;
    font-size: 19px;
}

.recommandations-ciblees-entete-v4 > strong {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(114, 89, 243, .17);
    color: #ddd8ff;
}

.recommandations-ciblees-grille-v4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 10px;
}

.recommandation-ciblee-carte-v4 {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: #151923;
    border: 1px solid #2b313d;
    border-radius: 12px;
}

.recommandation-ciblee-carte-v4.has-poster {
    grid-template-columns: 84px minmax(0, 1fr);
}

.recommandation-ciblee-carte-v4 > img {
    width: 84px;
    height: 100%;
    min-height: 150px;
    display: block;
    object-fit: cover;
}

.recommandation-ciblee-contenu-v4 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.recommandation-ciblee-auteur-v4 {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #969eae;
    font-size: 11px;
}

.recommandation-ciblee-auteur-v4 > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommandation-ciblee-auteur-v4 strong {
    color: #e5e1ff;
}

.recommandation-ciblee-contenu-v4 h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.recommandation-ciblee-contenu-v4 > p {
    margin: 0;
    color: #b8bec9;
    font-size: 12px;
    line-height: 1.5;
}

.recommandation-ciblee-contenu-v4 .recommandation-fiche-lien-v3 {
    margin-top: auto;
}

/* Protection stricte contre les débordements sur les profils publics mobiles. */
@media (max-width: 760px) {
    html,
    body,
    .nakama-shell,
    .nakama-shell main,
    .page-bibliotheque-pc,
    .bibliotheque-entete-public,
    .barre-profil-public,
    .bandeau-profil-public {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    html,
    body,
    .nakama-shell {
        overflow-x: hidden;
    }

    .nakama-shell .mobile-appbar,
    .nakama-shell .mobile-bottom-nav {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .bibliotheque-entete-public {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .bibliotheque-entete-public > div,
    .bibliotheque-entete-public .bibliotheque-filtre,
    .bibliotheque-entete-public select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .bibliotheque-entete-public h1,
    .bibliotheque-entete-public p,
    .bibliotheque-entete-public .sur-titre,
    .bandeau-profil-public a,
    .bandeau-profil-public span {
        max-width: 100%;
        min-width: 0;
        writing-mode: horizontal-tb;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .barre-profil-public {
        width: auto !important;
        max-width: none !important;
        overflow: hidden;
    }

    .navigation-profil-globale {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box;
        overscroll-behavior-inline: contain;
    }

    .navigation-profil-globale a {
        flex: 0 0 auto !important;
        max-width: calc(100vw - 42px);
    }

    .membres-vus-liste-v4 {
        grid-template-columns: 1fr;
    }

    .membre-vu-v4 {
        width: 100%;
        box-sizing: border-box;
    }

    .form-reco-ciblee-v4 {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .form-reco-ciblee-v4 button {
        width: 100%;
    }

    .recommandations-ciblees-v4 {
        padding: 12px;
    }

    .recommandations-ciblees-grille-v4 {
        grid-template-columns: 1fr;
    }

    .recommandation-ciblee-carte-v4.has-poster {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .recommandation-ciblee-carte-v4 > img {
        width: 72px;
        min-height: 136px;
    }
}


/* =========================================================
   KIZUMA V1.4.1 — CORRECTIF MOBILE NAVIGATION + SCROLL
   ========================================================= */
@media (max-width: 760px) {
    /*
       Sécurité anti-blocage : un ancien état mobile-overlay-open ne doit
       jamais rendre toute l'application impossible à faire défiler.
       Les panneaux mobile sont déjà fixed et capturent les interactions.
    */
    html,
    body,
    body.nakama-shell {
        min-height: 100%;
        height: auto !important;
        overflow-y: auto !important;
        touch-action: pan-y pinch-zoom !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-overlay-open,
    body.nakama-shell.mobile-overlay-open {
        overflow-y: auto !important;
        position: static !important;
        height: auto !important;
        touch-action: pan-y pinch-zoom !important;
    }

    /* Les overlays restent tactiles et empêchent naturellement les clics
       vers la page placée dessous sans verrouiller le body. */
    .mobile-sheet-backdrop,
    .mobile-search-overlay,
    .mobile-more-sheet,
    .mobile-search-panel {
        touch-action: pan-y !important;
        overscroll-behavior: contain;
    }

    /* Barre basse : chaque case doit pouvoir rétrécir. Les libellés longs
       (Bibliothèque / Communauté) ne peuvent plus élargir la page. */
    .nakama-shell .mobile-bottom-nav {
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .nakama-shell .mobile-bottom-item {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    .nakama-shell .mobile-bottom-add {
        overflow: visible !important;
        z-index: 2;
    }

    .nakama-shell .mobile-add-circle {
        flex: 0 0 auto;
        overflow: visible;
    }

    .nakama-shell .mobile-bottom-item > span:last-child {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
        line-height: 1.15;
        text-align: center;
    }

    /* Bibliothèque d'un autre membre : aucune chaîne, filtre ou entête
       ne peut imposer une largeur supérieure à l'écran. */
    .nakama-shell main,
    .page-bibliotheque-pc,
    .bibliotheque-entete-public,
    .bibliotheque-entete-public > div,
    .bibliotheque-entete-public .bibliotheque-filtre,
    .bibliotheque-entete-public select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-bibliotheque-pc,
    .bibliotheque-entete-public {
        overflow-x: clip !important;
        overflow-y: visible !important;
    }

    .bibliotheque-entete-public .sur-titre,
    .bibliotheque-entete-public h1,
    .bibliotheque-entete-public p {
        min-width: 0;
        max-width: 100%;
        writing-mode: horizontal-tb;
        white-space: normal !important;
        word-break: normal;
        overflow-wrap: break-word;
    }

    /* Ancienne navigation secondaire de profil : on la force dans la
       largeur disponible, sans bande horizontale dépassant du viewport. */
    .barre-profil-public,
    .nakama-shell .barre-profil-public {
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .navigation-profil-globale,
    .nakama-shell .navigation-profil-globale {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity !important;
    }

    .navigation-profil-globale a,
    .nakama-shell .navigation-profil-globale a {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;
        padding: 7px 12px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        text-align: center;
        scroll-snap-align: start;
    }
}


/* =========================================================
   KIZUMA V1.4.2 — CORRECTIF URGENT SCROLL TACTILE MOBILE
   ========================================================= */

/* Un élément réellement masqué ne doit jamais intercepter un geste tactile,
   même si une règle plus ancienne lui donne position:fixed/display:flex. */
[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

@media (max-width: 760px) {
    /*
       On rend le contrôle du défilement au navigateur Android.
       Une ancienne version forçait overflow-y/touch-action sur html ET body,
       créant deux contextes de scroll possibles. Certains Chrome Android
       finissaient alors avec un viewport tactile figé après navigation/BFCache.
    */
    html {
        min-height: 100% !important;
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: auto !important;
        overscroll-behavior-y: auto !important;
    }

    body,
    body.nakama-shell {
        min-height: 100vh !important;
        min-height: 100dvh !important;
        height: auto !important;
        max-height: none !important;
        position: static !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        touch-action: auto !important;
        overscroll-behavior-y: auto !important;
        -webkit-overflow-scrolling: auto !important;
    }

    /* Même si la classe est restaurée par l'historique du navigateur,
       elle ne peut plus verrouiller tout le document. */
    body.mobile-overlay-open,
    body.nakama-shell.mobile-overlay-open {
        position: static !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        touch-action: auto !important;
    }

    /* L'ancien correctif V1.4.1 donnait width:100% au main tout en gardant
       des marges latérales, ce qui pouvait dépasser le viewport. */
    .nakama-shell main {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        touch-action: auto !important;
    }

    /* Le geste vertical natif doit être autorisé quel que soit l'endroit où
       le doigt démarre dans le contenu (carte, lien, image, texte, formulaire). */
    .nakama-shell main,
    .nakama-shell main * {
        touch-action: auto !important;
    }

    /* Les couches plein écran masquées sont totalement inertes. */
    .mobile-sheet-backdrop[hidden],
    .mobile-search-overlay[hidden],
    .modal-installation-pwa[hidden],
    .catalogue-filtre-backdrop-v1[hidden],
    .messages-sheet-backdrop-v1[hidden],
    .messages-sheet-v1[hidden],
    .sollicitation-sheet-v5[hidden] {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Une couche ouverte reste utilisable, mais elle ne modifie plus le
       moteur de scroll du document par CSS global. */
    .mobile-sheet-backdrop:not([hidden]),
    .mobile-search-overlay:not([hidden]),
    .modal-installation-pwa:not([hidden]) {
        pointer-events: auto;
    }

    .mobile-more-sheet,
    .mobile-search-panel,
    .modal-installation-pwa-carte {
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

.nav-recos-pour-moi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-recos-pour-moi .badge-reco-non-lue {
    margin-left: 0;
}

.mobile-appbar-more-v1 {
    position: relative;
}

.badge-reco-appbar {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0 4px;
    font-size: 10px;
    box-shadow: 0 0 0 2px #12141c;
}

.recommandations-ciblees-v4.is-prioritaire {
    order: -1;
    padding: 14px;
    border: 1px solid rgba(130, 107, 247, .35);
    border-radius: 16px;
    background: rgba(114, 89, 243, .07);
}

.comparaison-galerie-v7 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.comparaison-galerie-carte-v7 {
    min-width: 0;
    overflow: hidden;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
}

.comparaison-galerie-carte-v7.is-proche {
    border-color: rgba(83, 164, 116, .45);
    box-shadow: inset 0 0 0 1px rgba(83, 164, 116, .18);
}

.comparaison-galerie-carte-v7.is-divergent {
    border-color: rgba(201, 122, 90, .5);
    box-shadow: inset 0 0 0 1px rgba(201, 122, 90, .16);
}

.comparaison-galerie-lien-v7 {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 10px;
    color: inherit;
    text-decoration: none;
}

.comparaison-galerie-affiche-v7 {
    width: 72px;
    height: 102px;
    object-fit: cover;
    background: #202431;
    border-radius: 9px;
}

.comparaison-galerie-affiche-v7.is-vide {
    display: block;
}

.comparaison-galerie-corps-v7 {
    min-width: 0;
}

.comparaison-galerie-corps-v7 h3 {
    margin: 0 0 4px;
    overflow: hidden;
    color: #f1f2f6;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
    writing-mode: horizontal-tb;
    overflow-wrap: break-word;
    word-break: normal;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.comparaison-galerie-corps-v7 p {
    margin: 0 0 8px;
    color: #858d9c;
    font-size: 11px;
    writing-mode: horizontal-tb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comparaison-galerie-notes-v7 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.comparaison-galerie-notes-v7 span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.comparaison-galerie-notes-v7 small,
.comparaison-galerie-notes-v7 strong {
    min-width: 0;
    overflow: hidden;
    writing-mode: horizontal-tb;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comparaison-galerie-notes-v7 small {
    color: #7b8393;
    font-size: 10px;
}

.comparaison-galerie-notes-v7 strong {
    color: #f1f2f6;
    font-size: 15px;
}

.comparaison-galerie-ecart-v7 strong {
    color: #c4b5fd;
}

.comparaison-galerie-carte-v7.is-proche .comparaison-galerie-ecart-v7 strong {
    color: #87dba8;
}

.comparaison-galerie-carte-v7.is-divergent .comparaison-galerie-ecart-v7 strong {
    color: #e8a48a;
}

@media (max-width: 760px) {
    .comparaison-galerie-v7 {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
        gap: 8px;
    }

    .comparaison-galerie-lien-v7 {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .comparaison-galerie-affiche-v7 {
        width: 56px;
        height: 80px;
        border-radius: 7px;
    }

    .comparaison-galerie-corps-v7 h3 {
        font-size: 13px;
    }

    .page-catalogue-v3,
    .page-comparaison-v6,
    .catalogue-grille-v3,
    .comparaison-galerie-v7 {
        max-width: 100%;
        overflow-x: hidden;
    }
}

.page-groupes-v1 {
    --groupe-accent: #826bf7;
    --groupe-accent-soft: rgba(130, 107, 247, .18);
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 16px 32px;
    overflow-x: hidden;
}

.page-groupes-v1 a {
    text-decoration: none;
}

.page-groupes-v1 a:focus-visible,
.page-groupes-v1 button:focus-visible,
.page-groupes-v1 summary:focus-visible {
    outline: 2px solid var(--groupe-accent);
    outline-offset: 2px;
}

.groupe-theme-violet { --groupe-accent: #826bf7; --groupe-accent-soft: rgba(130, 107, 247, .2); }
.groupe-theme-bleu { --groupe-accent: #5b8cff; --groupe-accent-soft: rgba(91, 140, 255, .2); }
.groupe-theme-rouge { --groupe-accent: #c45c6a; --groupe-accent-soft: rgba(196, 92, 106, .2); }
.groupe-theme-vert { --groupe-accent: #4caf8f; --groupe-accent-soft: rgba(76, 175, 143, .2); }
.groupe-theme-orange { --groupe-accent: #e08a4a; --groupe-accent-soft: rgba(224, 138, 74, .2); }
.groupe-theme-rose { --groupe-accent: #d978b4; --groupe-accent-soft: rgba(217, 120, 180, .2); }
.groupe-theme-cyan { --groupe-accent: #4db8c9; --groupe-accent-soft: rgba(77, 184, 201, .2); }
.groupe-theme-or { --groupe-accent: #d4b15f; --groupe-accent-soft: rgba(212, 177, 95, .2); }

.groupe-hero-v1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin: 4px 0 18px;
    padding: 22px 16px 16px;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0, var(--groupe-accent-soft), transparent 58%), #151822;
    border: 1px solid #292e3c;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
}

.groupe-hero-symbole-v1,
.groupe-symbole-liste-v1 {
    display: grid;
    place-items: center;
    color: var(--groupe-accent, #826bf7);
}

.groupe-hero-symbole-v1 {
    width: 64px;
    height: 64px;
}

.groupe-symbole-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.groupe-hero-v1 h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.groupe-hero-desc-v1 {
    margin: 0;
    max-width: 42rem;
    color: #b7bdd0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.groupe-hero-meta-v1 {
    margin: 0;
    color: #9da4b4;
    font-size: 0.86rem;
    font-weight: 700;
}

.groupe-hero-actions-v1 {
    margin: 4px 0 0;
}

.groupes-panneau-v1 {
    padding: 16px;
    border-radius: 14px;
    background: #151822;
    border: 1px solid #292e3c;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
}

.apercu-grille-v1 {
    display: grid;
    gap: 16px;
}

.bouton-compact-v1 {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
}

.membres-entete-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.membres-entete-v1 h2 {
    margin: 0;
}

.membre-menu-v1 {
    position: relative;
}

.membre-menu-v1 summary {
    list-style: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #c5cad8;
    background: rgba(255, 255, 255, 0.04);
    font-size: 1.15rem;
    line-height: 1;
}

.membre-menu-v1 summary::-webkit-details-marker {
    display: none;
}

.membre-menu-liste-v1 {
    position: absolute;
    right: 0;
    z-index: 4;
    min-width: 180px;
    padding: 6px;
    border-radius: 10px;
    background: #1b2030;
    border: 1px solid #353b4d;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

.membre-menu-liste-v1 button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f3f4f8;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.membre-menu-liste-v1 button:hover {
    background: rgba(196, 92, 106, .18);
}

.classement-top-v1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.classement-carte-v1 {
    display: grid;
    grid-template-columns: 36px 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #292e3c;
}

.classement-rang-v1 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--groupe-accent);
    padding-top: 6px;
}

.classement-poster-v1,
.apercu-oeuvre-poster-v1 {
    width: 52px;
    height: 74px;
    object-fit: cover;
    border-radius: 8px;
    background: #2a3144;
    flex: 0 0 auto;
}

.classement-poster-vide-v1,
.apercu-oeuvre-poster-vide-v1 {
    display: block;
}

.classement-titre-v1,
.apercu-oeuvre-titre-v1 {
    margin: 0;
    color: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.classement-texte-v1 p,
.apercu-oeuvre-v1 p {
    margin: 6px 0 0;
    color: #a6adbc;
    font-size: 0.82rem;
}

.symboles-fieldset-v1 {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.symboles-fieldset-v1 legend {
    margin-bottom: 8px;
    font-weight: 800;
}

.symboles-grille-v1,
.themes-grille-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px;
}

.symbole-choix-v1,
.theme-choix-v1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid #292e3c;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    color: #c5cad8;
}

.symbole-choix-v1:has(input:checked),
.theme-choix-v1:has(input:checked) {
    border-color: var(--groupe-accent);
    box-shadow: inset 0 0 0 1px var(--groupe-accent-soft);
}

.symbole-choix-v1 input,
.theme-choix-v1 input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.symbole-apercu-v1 {
    width: 32px;
    height: 32px;
    color: var(--groupe-accent);
}

.theme-swatch-violet { box-shadow: inset 0 -3px 0 #826bf7; }
.theme-swatch-bleu { box-shadow: inset 0 -3px 0 #5b8cff; }
.theme-swatch-rouge { box-shadow: inset 0 -3px 0 #c45c6a; }
.theme-swatch-vert { box-shadow: inset 0 -3px 0 #4caf8f; }
.theme-swatch-orange { box-shadow: inset 0 -3px 0 #e08a4a; }
.theme-swatch-rose { box-shadow: inset 0 -3px 0 #d978b4; }
.theme-swatch-cyan { box-shadow: inset 0 -3px 0 #4db8c9; }
.theme-swatch-or { box-shadow: inset 0 -3px 0 #d4b15f; }

.groupe-actions-bas-v1 {
    margin-top: 12px;
}

.apercu-kpi-carte-v1 {
    min-height: 110px;
    padding: 16px 18px;
}

@media (min-width: 900px) {
    .apercu-grille-v1 {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
        align-items: start;
    }

    .classement-top-v1 {
        grid-template-columns: 1fr;
    }
}

.groupes-entete-v1,
.groupe-detail-entete-v1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.groupe-onglets-v1 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding-bottom: 4px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    writing-mode: horizontal-tb;
}

.groupe-onglets-v1::-webkit-scrollbar {
    display: none;
}

.groupe-onglets-v1 a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    color: #a6adbc;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    word-break: normal;
    overflow-wrap: normal;
}

.groupe-onglets-v1 a.is-active {
    color: #fff;
    background: #2a244d;
    box-shadow: inset 0 0 0 1px var(--groupe-accent, rgba(130, 107, 247, .32));
}

.groupe-stats-apercu-v1 {
    margin: 0 0 8px;
    color: #b7bdd0;
    font-size: 0.92rem;
}

.groupe-decouvertes-v1 {
    display: grid;
    gap: 16px;
}

.groupe-decouvertes-v1 h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.groupe-decouvertes-v1 ul {
    margin: 0;
    padding-left: 1.1em;
}

.groupe-pagination-v1 {
    margin-top: 12px;
}

.groupes-entete-v1 h1,
.groupe-detail-entete-v1 h1 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.groupes-entete-v1 p,
.groupe-detail-entete-v1 p,
.groupe-meta-v1,
.groupe-aide-v1 {
    margin: 0;
    color: #b7bdd0;
    font-size: 0.92rem;
}

.groupes-section-v1 {
    margin-top: 18px;
}

.groupes-section-v1 h2,
.groupe-sous-titre-v1 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.groupes-liste-v1 {
    display: grid;
    gap: 8px;
}

.groupe-carte-v1 {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #151822;
    border: 1px solid #292e3c;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.groupe-carte-v1:hover {
    border-color: #4a4265;
}

.groupe-carte-v1.membre-ligne-v1 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    grid-template-columns: none;
}

.groupe-carte-v1.membre-ligne-v1 > .groupe-carte-identite-v1 {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.groupe-carte-v1.membre-ligne-v1 .groupe-avatar-v1 {
    flex: 0 0 44px;
}

.groupe-carte-v1.membre-ligne-v1 .groupe-carte-texte-v1 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
}

.groupe-carte-v1.membre-ligne-v1 .groupe-carte-texte-v1 h3 {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.98rem;
    line-height: 1.3;
}

.groupe-carte-v1.membre-ligne-v1 .membre-menu-v1 {
    flex: 0 0 36px;
    width: 36px;
}

.groupe-carte-actions-v1 {
    grid-template-columns: minmax(0, 1fr) auto;
}

.groupe-carte-identite-v1,
.groupe-carte-texte-v1 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.groupe-carte-texte-v1 h3,
.groupe-carte-identite-v1 h3 {
    margin: 0;
    font-size: 0.98rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.groupe-carte-texte-v1 p,
.groupe-carte-identite-v1 p {
    margin: 2px 0 0;
    color: #b7bdd0;
    font-size: 0.82rem;
}

.groupe-avatar-v1 {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: #2a3144;
    flex: 0 0 auto;
}

.groupe-avatar-large-v1 {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 1.4rem;
}

.groupe-avatar-initiale-v1 {
    font-weight: 700;
}

.groupe-fleche-v1 {
    color: #8b93ab;
}

.groupe-actions-v1,
.groupe-form-actions-v1,
.profil-groupe-actions-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.groupe-actions-v1 .bouton-principal,
.groupe-actions-v1 .bouton-secondaire,
.profil-groupe-actions-v1 .bouton-secondaire,
.groupe-form-actions-v1 .bouton-principal,
.groupe-form-actions-v1 .bouton-secondaire {
    white-space: nowrap;
}

.groupe-form-v1 textarea,
.groupe-form-v1 input[type="text"],
.groupe-form-v1 input[type="file"],
.groupe-recherche-v1 input {
    width: 100%;
    max-width: 100%;
}

.groupe-optionnel-v1 {
    color: #8b93ab;
    font-weight: 400;
}

.groupe-recherche-v1,
.groupe-lien-form-v1,
.groupe-quitter-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.groupe-lien-url-v1 {
    margin: 0;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
    min-width: 0;
}

.groupe-aide-v1 {
    margin: 8px 0 12px;
}

.profil-groupes-v1 {
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profil-groupes-v1 > p {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: #b7bdd0;
}

.profil-groupe-ligne-v1 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.profil-groupe-ligne-v1 > span {
    overflow-wrap: anywhere;
    min-width: 0;
}

@media (max-width: 720px) {
    .groupes-entete-v1,
    .groupe-detail-entete-v1,
    .groupe-carte-v1,
    .groupe-carte-actions-v1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .groupe-carte-v1.membre-ligne-v1 {
        display: flex;
        flex-direction: row;
        align-items: center;
        grid-template-columns: none;
    }

    .groupes-entete-v1 {
        display: grid;
    }

    .groupe-detail-entete-v1 {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .page-groupes-v1,
    .groupe-carte-v1,
    .groupe-lien-url-v1,
    .profil-groupe-ligne-v1 {
        max-width: 100%;
        overflow-x: hidden;
    }

    .groupe-onglets-v1 {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        writing-mode: horizontal-tb;
    }

    .groupe-onglets-v1 a,
    .groupes-entete-v1 .bouton-principal,
    .groupe-actions-v1 button,
    .profil-groupe-actions-v1 button {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        white-space: nowrap;
    }
}

.bouton-danger-discret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(220, 96, 96, 0.38);
    background: transparent;
    color: #e7b4b4;
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.bouton-danger-discret:hover {
    background: rgba(220, 96, 96, 0.12);
}

.profil-actions-v3 .bouton-principal,
.profil-actions-v3 .bouton-secondaire,
.profil-actions-v3 .bouton-danger-discret {
    min-height: 42px;
    padding-inline: 14px;
    writing-mode: horizontal-tb;
    white-space: nowrap;
}

.profil-action-danger-v1 {
    flex: 0 1 auto;
}

.profil-groupes-v1 a.profil-groupe-ligne-v1 {
    color: inherit;
    text-decoration: none;
}

.page-amis-v1 .membre-carte-v3 {
    min-width: 0;
}

.page-amis-v1 .membre-nom-v3 h2,
.page-amis-v1 .membre-infos-v3 p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.membres-actions-v3 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.membres-actions-v3 .bouton-principal,
.membres-actions-v3 .bouton-secondaire,
.groupe-actions-v1 .bouton-principal,
.groupe-actions-v1 .bouton-secondaire {
    min-height: 40px;
    padding-inline: 12px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

@media (max-width: 720px) {
    .page-profil-v3,
    .page-amis-v1,
    .page-groupes-v1,
    .page-activite-v5,
    .page-classements-v3,
    .page-recommandations-v3 {
        max-width: 100%;
        overflow-x: hidden;
    }

    .profil-actions-v3 .bouton-principal {
        grid-column: 1 / -1;
    }

    .profil-action-danger-v1 {
        grid-column: 1 / -1;
    }

    .profil-action-danger-v1 .bouton-danger-discret {
        width: 100%;
        min-height: 36px;
        font-weight: 600;
    }

    .profil-identite-v3,
    .membres-entete-v3 {
        min-width: 0;
    }
}

.profil-app-v4 .profil-hero-v3 {
    margin-bottom: 14px;
}

.profil-app-v4 .profil-identite-v3 {
    min-height: 0;
    align-items: start;
    padding-top: 0;
}

.profil-app-v4 .profil-nom-v3 {
    padding-top: 8px;
}

.profil-app-v4 .profil-nom-v3 h1 {
    margin: 0 0 6px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.profil-bio-v4 {
    margin: 8px 0 0;
    color: #b7bdd0;
    font-size: 0.92rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.profil-indice-groupe-v4 {
    margin: 8px 0 0;
    color: #8b93ab;
    font-size: 0.78rem;
}

.profil-app-v4 .profil-actions-v3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    max-width: 340px;
}

.profil-app-v4 .profil-actions-v3 form,
.profil-app-v4 .profil-actions-v3 a,
.profil-app-v4 .profil-actions-v3 button {
    margin: 0;
    min-height: 40px;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.profil-app-v4 .profil-stats-v3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profil-app-v4 .profil-stats-v3 > a,
.profil-app-v4 .profil-stats-v3 > div {
    min-height: 72px;
}

.profil-otaku-vide-v4 {
    margin: 0;
    color: #b7bdd0;
}

.profil-gestion-groupe-v4 .profil-groupe-ligne-v1 {
    margin-top: 10px;
}

.profil-app-v4.is-minimal .profil-couverture-v3 {
    height: 72px;
}

.profil-app-v4.is-minimal .profil-identite-v3 {
    grid-template-columns: 88px minmax(0, 1fr) auto;
}

@media (max-width: 720px) {
    .profil-app-v4 .profil-couverture-v3 {
        height: 88px !important;
    }

    .profil-app-v4.is-minimal .profil-couverture-v3 {
        height: 48px !important;
    }

    .profil-app-v4 .profil-identite-v3 {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px !important;
        padding: 0 12px 12px !important;
    }

    .profil-app-v4 .profil-avatar-v3 {
        width: 84px !important;
        height: 84px !important;
        margin-top: -36px !important;
    }

    .profil-app-v4 .profil-nom-v3 {
        width: 100%;
        padding-top: 0 !important;
    }

    .profil-app-v4 .profil-nom-v3 h1 {
        font-size: 1.35rem !important;
    }

    .profil-app-v4 .profil-badges-v3 {
        justify-content: center;
    }

    .profil-app-v4 .profil-actions-v3 {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
        width: 100%;
        grid-template-columns: none;
        padding-top: 4px;
    }

    .profil-app-v4 .profil-actions-v3 .bouton-principal {
        flex: 1 1 100%;
        grid-column: auto;
    }

    .profil-app-v4 .profil-actions-v3 .bouton-secondaire,
    .profil-app-v4 .profil-action-danger-v1 {
        flex: 1 1 calc(50% - 8px);
        grid-column: auto;
    }

    .profil-app-v4 .profil-action-danger-v1 .bouton-danger-discret {
        width: 100%;
    }

    .profil-app-v4 .profil-stats-v3 {
        grid-auto-flow: unset !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-columns: unset;
        overflow-x: hidden;
        margin: 0;
        padding: 8px 12px 12px;
    }

    .profil-app-v4 .profil-stats-v3 > a,
    .profil-app-v4 .profil-stats-v3 > div {
        min-height: 64px;
    }

    .profil-app-v4 .profil-otaku-signature-v4 {
        grid-template-columns: 1fr !important;
    }
}

/* Feedback bêta V1.1 : avis visible, pastille admin */
.badge-feedback-nouveau {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    color: #1a1208;
    background: #f0b429;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.menu-compte-navbar {
    position: relative;
}

.menu-compte-navbar > summary.lien-profil-navbar {
    list-style: none;
    position: relative;
}

.menu-compte-navbar > summary.lien-profil-navbar::after {
    content: none;
}

.menu-compte-navbar > .menu-deroulant-contenu {
    right: 0;
    left: auto;
}

.menu-avis-lien {
    font-weight: 700;
    color: #d7d0ff !important;
}

.navigation-principale-pc > .menu-compte-navbar {
    display: inline-flex;
    align-items: center;
}

.mobile-appbar-actions {
    position: relative;
}

.mobile-appbar-compte {
    position: relative;
}

.mobile-appbar-compte > summary.lien-profil-navbar {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    cursor: pointer;
}

.mobile-appbar-compte > summary.lien-profil-navbar::-webkit-details-marker {
    display: none;
}

.mobile-appbar-compte .avatar-navbar {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
}

.mobile-appbar-compte > .menu-deroulant-contenu {
    right: 0;
    left: auto;
    min-width: 180px;
}

.badge-feedback-navbar {
    position: absolute;
    top: -4px;
    right: -4px;
    margin-left: 0;
}

@media (max-width: 760px) {
    .mobile-more-card-avis {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        min-height: 56px;
        margin-bottom: 8px;
        padding: 12px 14px;
        border: 1px solid rgba(176, 165, 255, 0.35);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(114, 89, 243, 0.22), #1a1f2a);
        color: #f2f0ff;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mobile-more-card-avis svg {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        color: #e4deff;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.7;
        stroke-linejoin: round;
        stroke-linecap: round;
    }

    .mobile-more-card-avis span {
        font-size: 14px;
        font-weight: 800;
        color: #f4f2ff;
        text-align: left;
    }
}

/* Discussions de groupes V1 */
.discussions-entete-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.discussions-entete-v1 h2 {
    margin: 0;
    font-size: 1.05rem;
}

.discussions-liste-v1 {
    display: grid;
    gap: 10px;
}

.discussion-carte-v1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #151822;
    border: 1px solid #292e3c;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.discussion-carte-v1:hover {
    border-color: #4a4265;
}

.discussion-carte-v1 h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.discussion-carte-corps-v1 {
    min-width: 0;
    flex: 1;
}

.discussion-meta-v1 {
    margin: 0;
    color: #a6adbc;
    font-size: 0.82rem;
}

.discussion-extrait-v1 {
    margin: 6px 0 0;
    color: #c8cde0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.discussion-oeuvre-chip-v1 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 42%;
    padding: 4px 8px;
    border-radius: 9px;
    background: rgba(130, 107, 247, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ddd6ff;
}

.discussion-oeuvre-chip-v1 img {
    width: 28px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.discussion-oeuvre-chip-v1 span {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.discussion-sujet-v1,
.discussion-reponse-v1 {
    padding: 12px 0;
}

.discussion-auteur-v1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.discussion-auteur-v1 h2,
.discussion-auteur-v1 strong {
    margin: 0;
    font-size: 1.05rem;
}

.discussion-texte-v1 {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
    font-size: 0.96rem;
}

.discussion-reponses-v1 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.discussion-reponse-v1 {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discussion-form-v1,
.discussion-recherche-oeuvre-v1 {
    margin-top: 12px;
}

.discussion-resultats-oeuvre-v1 {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.discussion-resultats-oeuvre-v1 a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
    font-weight: 700;
}

.discussion-resultats-oeuvre-v1 img {
    width: 28px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.discussion-oeuvre-choisie-v1 {
    margin: 8px 0;
    max-width: 100%;
}

.discussion-oeuvre-choisie-v1 a {
    margin-left: 8px;
    color: #c5b8ff;
    font-weight: 700;
}

@media (max-width: 720px) {
    .discussions-entete-v1 {
        flex-wrap: wrap;
    }

    .discussion-carte-v1 {
        flex-direction: column;
    }

    .discussion-oeuvre-chip-v1 {
        max-width: 100%;
    }
}

.communaute-espaces-v1 {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    writing-mode: horizontal-tb;
}

.communaute-espaces-v1::-webkit-scrollbar {
    display: none;
}

.communaute-espaces-v1 a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 11px;
    color: #c5cad8;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    writing-mode: horizontal-tb;
}

.communaute-espaces-v1 a.is-active {
    color: #fff;
    background: #2a244d;
    box-shadow: inset 0 0 0 1px rgba(130, 107, 247, .4);
}

.apercu-kpis-v1 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 16px;
}

.apercu-kpis-v1 .dashboard-kpi-v2 {
    min-width: 0;
}

.apercu-section-entete-v1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.apercu-section-entete-v1 h2 {
    margin: 0;
}

.apercu-section-entete-v1 a {
    flex: 0 0 auto;
    text-decoration: none;
    white-space: nowrap;
}

.apercu-membres-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apercu-membre-v1 {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    min-width: 0;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-decoration: none;
}

.apercu-membre-v1 img,
.apercu-membre-v1 span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    background: #2a3144;
    font-size: 0.8rem;
    font-weight: 800;
}

.apercu-membre-v1 strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}

.apercu-membre-v1 small {
    color: #a6adbc;
    font-size: 0.72rem;
    white-space: nowrap;
}

.apercu-oeuvres-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.apercu-oeuvre-v1 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #292e3c;
    color: inherit;
    text-decoration: none;
}

.apercu-oeuvre-titre-v1 {
    margin: 0;
    min-width: 0;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.apercu-oeuvre-v1 p {
    margin: 6px 0 0;
    color: #a6adbc;
    font-size: 0.82rem;
}

.page-groupe-form-v1 .formulaire-auth {
    max-width: 520px;
}

.dashboard-otaku-v1 {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(130, 107, 247, 0.12);
}

.dashboard-otaku-v1 a {
    color: #ddd6ff;
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 900px) {
    .groupe-onglets-v1 {
        overflow-x: visible;
    }

    .apercu-oeuvres-v1 {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 720px) {
    .apercu-kpis-v1 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .apercu-kpi-carte-v1 {
        min-height: 88px;
        padding: 14px 16px;
    }
}

.page-analyse-admin-v1 {
    max-width: 1180px;
    width: 100%;
    box-sizing: border-box;
}

.page-analyse-admin-v1 .analyse-section-v1,
.page-analyse-admin-v1 section {
    margin: 0 0 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #151822;
    border: 1px solid #292e3c;
}

.analyse-grille-deux-v1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 16px;
}

.analyse-grille-deux-v1 > .analyse-section-v1 {
    margin: 0;
}

.page-analyse-admin-v1 h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.page-analyse-admin-v1 h3 {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.analyse-kpis-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
}

.analyse-kpis-v1 .dashboard-kpi-v2 {
    min-height: 96px;
}

.analyse-kpis-retenue-v1 {
    grid-template-columns: minmax(0, 1fr);
}

.analyse-fil-v1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.analyse-fil-item-v1 {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #292e3c;
}

.analyse-fil-icone-v1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #2a3144;
    color: #d7d0ff;
}

.analyse-fil-icone-v1 svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analyse-fil-item-v1.is-compte .analyse-fil-icone-v1 {
    background-color: rgba(114, 89, 243, 0.22);
}

.analyse-fil-item-v1.is-oeuvre .analyse-fil-icone-v1 {
    background-color: rgba(90, 164, 214, 0.22);
}

.analyse-fil-item-v1.is-social .analyse-fil-icone-v1 {
    background-color: rgba(92, 186, 140, 0.22);
}

.analyse-fil-item-v1.is-groupe .analyse-fil-icone-v1 {
    background-color: rgba(214, 168, 90, 0.22);
}

.analyse-fil-item-v1.is-feedback .analyse-fil-icone-v1 {
    background-color: rgba(176, 140, 220, 0.22);
}

.analyse-fil-item-v1.is-erreur {
    border-color: #4a3a42;
    background: rgba(160, 90, 100, 0.08);
}

.analyse-fil-item-v1.is-erreur .analyse-fil-icone-v1 {
    background-color: rgba(180, 110, 120, 0.28);
}

.analyse-fil-ligne-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
}

.analyse-fil-ligne-v1 strong {
    font-size: 0.9rem;
}

.analyse-fil-pseudo-v1 {
    color: #c5cad8;
    font-size: 0.82rem;
}

.analyse-fil-meta-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: #8b93ab;
    font-size: 0.78rem;
}

.analyse-fil-corps-v1 {
    min-width: 0;
}

.feedback-filtres-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.feedback-filtres-v1 a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #292e3c;
    color: #c5cad8;
    text-decoration: none;
    font-size: 0.86rem;
}

.feedback-filtres-v1 a.is-actif {
    border-color: #7259f3;
    background: rgba(114, 89, 243, 0.16);
    color: #e8e4ff;
}

.feedback-actions-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    justify-content: flex-end;
}

.feedback-statut-v1 {
    display: inline-flex;
    margin-top: 6px;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #2a3144;
    color: #d7d0ff;
    font-size: 0.75rem;
}

.feedback-statut-v1.is-nouveau {
    background: rgba(114, 89, 243, 0.22);
}

.feedback-statut-v1.is-archive {
    background: #2c303a;
    color: #9da4b4;
}

.feedback-menu-danger-v1 {
    position: relative;
}

.feedback-menu-danger-v1 > summary {
    cursor: pointer;
    color: #9da4b4;
    font-size: 0.82rem;
    list-style: none;
}

.feedback-menu-danger-v1 > summary::-webkit-details-marker {
    display: none;
}

.feedback-menu-danger-v1 form {
    margin-top: 8px;
}

.feedback-carte-v1.is-archive {
    opacity: 0.88;
}

.analyse-entonnoir-ligne-v1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    margin-bottom: 10px;
}

.analyse-entonnoir-ligne-v1 span {
    color: #c5cad8;
    font-size: 0.9rem;
}

.analyse-barre-v1 {
    grid-column: 1 / -1;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.analyse-barre-v1 > span {
    display: block;
    height: 100%;
    background: #826bf7;
    border-radius: 99px;
    max-width: 100%;
}

.analyse-note-v1 {
    margin: 10px 0 0;
    color: #8b93ab;
    font-size: 0.82rem;
}

.analyse-table-wrap-v1 {
    overflow-x: auto;
}

.analyse-table-v1 {
    width: 100%;
    border-collapse: collapse;
}

.analyse-table-v1 th,
.analyse-table-v1 td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #292e3c;
}

.analyse-table-v1 th {
    color: #9da4b4;
    font-size: 0.78rem;
}

.analyse-pages-v1 {
    display: grid;
    gap: 18px;
}

.analyse-backup-v1 {
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
    word-break: normal;
    overflow-wrap: break-word;
}

.analyse-journal-v1 {
    margin: 8px 0 0;
    padding-left: 1.1em;
    color: #b7bdd0;
    font-size: 0.86rem;
}

@media (min-width: 900px) {
    .analyse-pages-v1,
    .analyse-grille-deux-v1 {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .page-analyse-admin-v1 {
        overflow-x: hidden;
    }

    .analyse-kpis-v1 {
        grid-template-columns: 1fr 1fr;
    }

    .analyse-table-wrap-v1 {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .analyse-fil-item-v1 {
        grid-template-columns: 24px minmax(0, 1fr);
        padding: 8px;
    }
}

/* Accueil, cloche, pastilles sociales */
.badge-nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    color: #fff;
    background: #7259f3;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.nav-cloche-v1 {
    position: relative;
}

.navigation-principale-pc > a.nav-cloche-v1 svg,
.mobile-appbar-icon.nav-cloche-v1 svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-accueil-v1 {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto 24px;
    padding: 8px 0 28px;
}

.accueil-hero-v1 {
    text-align: center;
    margin: 4px 0 18px;
}

.accueil-hero-v1 h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.accueil-section-v1 {
    margin: 0 0 14px;
    padding: 16px 18px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 16px;
}

.accueil-section-v1 h2 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.accueil-section-entete-v1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.accueil-section-entete-v1 h2 {
    margin: 0;
}

.accueil-section-entete-v1 a,
.accueil-actions-liste-v1 a {
    text-decoration: none;
    color: #b7a6ff;
    font-weight: 700;
}

.accueil-vide-v1 {
    margin: 0;
    color: #9ea5b5;
}

.accueil-actions-liste-v1 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.accueil-actions-liste-v1 li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 0;
    border-top: 1px solid #292e3c;
}

.accueil-actions-liste-v1 li:first-child {
    border-top: 0;
    padding-top: 0;
}

.accueil-groupes-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.accueil-groupe-carte-v1 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    color: inherit;
    text-decoration: none;
    background: #191c25;
    border: 1px solid #292e3c;
    border-radius: 12px;
}

.accueil-groupe-carte-v1 strong {
    min-width: 0;
    overflow-wrap: break-word;
}

.accueil-profil-cartes-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.accueil-profil-cartes-v1 article {
    padding: 12px;
    background: #191c25;
    border-radius: 12px;
}

.accueil-profil-cartes-v1 span {
    display: block;
    color: #9ea5b5;
    font-size: 12px;
}

.accueil-rapides-v1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.catalogue-proposer-secondaire-v1 {
    margin: 18px 0 8px;
    text-align: center;
    color: #9ea5b5;
}

.catalogue-proposer-secondaire-v1 a {
    text-decoration: none;
    color: #b7a6ff;
    font-weight: 700;
}

.discussion-carte-v1.is-non-lue {
    box-shadow: inset 3px 0 0 #7259f3;
}

.communaute-espaces-v1 a,
.groupe-onglets-v1 a {
    display: inline-flex;
    align-items: center;
}

.symboles-grille-compacte-v1 {
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
}

.gestion-enregistrer-v1 {
    display: none;
    position: sticky;
    bottom: 12px;
    z-index: 4;
    justify-content: flex-end;
    margin-top: 20px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(18, 20, 30, 0.92);
    border: 1px solid #2a3144;
}

.gestion-enregistrer-v1.is-visible {
    display: flex;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.avis-textarea-v1 {
    resize: none;
    overflow-y: hidden;
    min-height: 96px;
    width: 100%;
    box-sizing: border-box;
}

.accueil-recos-grille-v1,
.profil-otaku-cartes-v1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.accueil-reco-carte-v1,
.accueil-prochain-v1,
.profil-otaku-cartes-v1 article {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #292e3c;
    min-width: 0;
}

.accueil-reco-carte-v1 img,
.accueil-prochain-v1 img,
.accueil-oeuvres-liste-v1 img {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.accueil-reco-carte-v1 h3,
.accueil-prochain-v1 h3,
.classement-titre-v1,
.membre-nom-v3 h2 {
    overflow-wrap: break-word;
    word-break: normal;
    writing-mode: horizontal-tb;
}

.accueil-reco-carte-v1.is-non-lue {
    box-shadow: inset 3px 0 0 #7259f3;
}

.accueil-reco-actions-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.accueil-oeuvres-liste-v1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.accueil-oeuvres-liste-v1 li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.classement-onglets-v1 {
    display: flex;
    gap: 8px;
    margin: 8px 0 16px;
}

.classement-onglets-v1 a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #292e3c;
    text-decoration: none;
    color: #c5cad8;
    font-weight: 700;
}

.classement-onglets-v1 a.is-active {
    border-color: #7259f3;
    color: #fff;
    background: rgba(114, 89, 243, 0.18);
}

.page-accueil-social-v1,
.page-amis-v1,
.page-groupes-v1,
.page-recos-inbox-v1 {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.profil-otaku-section-v1 {
    margin-top: 18px;
}

.profil-otaku-section-v1 h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.accueil-integration-actions-v1 {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accueil-grille-catalogue-v2 {
    margin: 0;
}

.accueil-grille-catalogue-v2 .bibliotheque-carte {
    min-height: 0;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
}

.accueil-grille-catalogue-v2 .bibliotheque-carte h2 {
    text-decoration: none;
}

.accueil-carte-action-v2 {
    margin: 6px 0 0;
}

.navigation-principale-pc > a.nav-cloche-v1 {
    min-width: 44px;
    min-height: 40px;
    justify-content: center;
    border: 1px solid #3a4154;
    border-radius: 12px;
    background: rgba(114, 89, 243, 0.12);
}

.navigation-principale-pc > a.nav-cloche-v1 svg {
    width: 22px;
    height: 22px;
}

.badge-cloche-v2 {
    min-width: 18px;
    min-height: 18px;
    padding: 2px 5px;
    font-size: 11px;
    font-weight: 800;
}

.communaute-hub-v2 {
    width: min(1260px, calc(100% - 24px));
    max-width: 1260px;
    margin: 0 auto 24px;
}

.communaute-hub-v2 .communaute-entete-v2 {
    margin-bottom: 16px;
}

.communaute-hub-v2 .communaute-stats-hub-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}

.communaute-hub-v2 .communaute-stat-v2 {
    min-height: 96px;
    padding: 16px 18px;
}

.communaute-raccourcis-hub-v2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px;
    margin: 0 0 16px;
}

.communaute-raccourcis-hub-v2 .communaute-raccourci-v2 {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 56px;
    padding: 12px 16px;
    gap: 12px;
}

.communaute-raccourcis-hub-v2 .communaute-raccourci-icone-v2 {
    width: 36px;
    height: 36px;
}

.communaute-raccourcis-hub-v2 .communaute-raccourci-icone-v2 svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.communaute-bloc-hub-v2 {
    margin: 0 0 16px;
    padding: 16px 18px;
    background: #151822;
    border: 1px solid #292e3c;
    border-radius: 14px;
}

.communaute-bloc-hub-v2 .communaute-section-entete-v2 {
    margin-bottom: 12px;
}

.profil-app-v4 .profil-hero-v3,
.profil-app-v4 .profil-bloc-v3,
.profil-app-v4 .profil-installation-pwa {
    margin-bottom: 16px;
}

.profil-app-v4 .profil-stats-ligne-v2,
.profil-app-v4 .profil-stats-v3.profil-stats-ligne-v2 {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0 20px 16px;
    overflow: visible;
}

.profil-app-v4 .profil-stats-ligne-v2 > a,
.profil-app-v4 .profil-stats-ligne-v2 > div {
    min-height: 64px;
    min-width: 0;
}

.profil-app-v4 .profil-stats-ligne-v2 strong,
.profil-app-v4 .profil-stats-ligne-v2 span {
    writing-mode: horizontal-tb;
    overflow-wrap: anywhere;
    text-align: center;
}

.profil-otaku-premium-v2,
.profil-parcours-v2 {
    width: 100%;
    max-width: none;
}

.profil-otaku-premium-v2 {
    padding: 22px 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(130, 107, 247, 0.16), transparent 42%),
        #151822;
}

.profil-otaku-premium-v2 .profil-otaku-cartes-v1 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.profil-otaku-premium-v2 .profil-otaku-cartes-v1 article {
    align-items: center;
    min-height: 72px;
}

.profil-otaku-premium-v2 .profil-otaku-cartes-v1 img {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.profil-otaku-premium-v2 .profil-otaku-cartes-v1 span,
.profil-otaku-premium-v2 .profil-otaku-cartes-v1 strong {
    writing-mode: horizontal-tb;
    overflow-wrap: anywhere;
}

.profil-genres-jauges-v2 {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.profil-genre-ligne-v2 {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    color: #d7dbe8;
    font-size: 0.88rem;
}

.profil-genre-jauge-v2 {
    height: 8px;
    overflow: hidden;
    background: #292d3a;
    border-radius: 999px;
}

.profil-genre-jauge-v2 > span {
    display: block;
    height: 100%;
    max-width: 100%;
    background: linear-gradient(90deg, #6b56e8, #9a87ff);
    border-radius: inherit;
}

.profil-tops-grille-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.profil-top-cartes-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.profil-top-cartes-v2 .bibliotheque-carte {
    min-height: 0;
    gap: 8px;
    padding: 10px;
    text-decoration: none;
}

.profil-top-cartes-v2 h2 {
    writing-mode: horizontal-tb;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
}

.communaute-affinites-liste-v2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.communaute-affinites-liste-v2 li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    padding: 10px 12px;
    border: 1px solid #292e3c;
    border-radius: 12px;
}

.communaute-affinites-liste-v2 a {
    text-decoration: none;
    font-weight: 700;
    color: #f2f3f8;
}

.profil-genres-liste-v2,
.profil-top-liste-v2 {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.profil-genres-liste-v2 li,
.profil-top-liste-v2 li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.profil-top-liste-v2 img {
    width: 36px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
}

.profil-otaku-sous-titre-v2 {
    margin: 12px 0 8px;
    color: #9aa1b3;
    font-size: 0.85rem;
}

.profil-inviter-groupe-v2 {
    display: grid;
    gap: 8px;
}

.profil-inviter-groupe-v2 select {
    width: 100%;
}

.page-accueil-social-v1 a,
.communaute-hub-v2 a,
.profil-otaku-complet-v1 a {
    text-decoration: none;
}

@media (max-width: 900px) {
    .profil-tops-grille-v2 {
        grid-template-columns: 1fr;
    }

    .profil-app-v4 .profil-stats-ligne-v2,
    .profil-app-v4 .profil-stats-v3.profil-stats-ligne-v2 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .profil-app-v4 .profil-stats-ligne-v2,
    .profil-app-v4 .profil-stats-v3.profil-stats-ligne-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: unset !important;
        overflow-x: hidden !important;
        padding: 8px 12px 12px;
    }

    .communaute-raccourcis-hub-v2,
    .communaute-hub-v2 .communaute-stats-hub-v2 {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 390px) {
    .page-accueil-social-v1,
    .page-amis-v1,
    .page-groupes-v1,
    .page-recos-inbox-v1,
    .communaute-hub-v2,
    .page-profil-v3,
    .page-compte,
    .page-analyse-admin-v1 {
        width: calc(100% - 12px);
        overflow-x: hidden;
    }

    .accueil-grille-catalogue-v2 .bibliotheque-carte.has-poster-vtmdb.is-compact .bibliotheque-affiche-vtmdb,
    .profil-top-cartes-v2 .bibliotheque-carte.has-poster-vtmdb.is-compact .bibliotheque-affiche-vtmdb {
        width: 48px;
        height: 68px;
    }

    .accueil-recos-grille-v1,
    .profil-otaku-cartes-v1 {
        grid-template-columns: 1fr;
    }

    .classement-carte-v1 {
        grid-template-columns: 28px 48px minmax(0, 1fr);
    }

    .accueil-section-v1,
    .communaute-stats-v2,
    .profil-otaku-section-v1,
    .communaute-bloc-hub-v2,
    .profil-otaku-premium-v2 {
        padding: 12px;
    }

    .profil-top-cartes-v2 h2,
    .profil-otaku-premium-v2 h2,
    .profil-otaku-premium-v2 strong,
    .communaute-hub-v2 h1,
    .communaute-hub-v2 h2,
    .communaute-hub-v2 strong {
        writing-mode: horizontal-tb;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   HOTFIX mobile UX — navigation, titres, affinités, groupes
   Placé en fin de fichier pour primer sur les nowrap hérités.
   ========================================================= */

@media (max-width: 760px) {
    .nakama-shell .mobile-bottom-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        align-items: stretch;
    }

    .nakama-shell .mobile-bottom-item {
        min-height: 56px !important;
        height: auto !important;
        overflow: visible !important;
        padding: 4px 2px !important;
        white-space: normal !important;
    }

    .nakama-shell .mobile-bottom-item > span:last-child {
        overflow: visible !important;
        white-space: normal !important;
        text-overflow: unset !important;
        font-size: 9px !important;
        line-height: 1.15 !important;
    }

    .mobile-bottom-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        overflow: hidden;
        border-radius: 50%;
        background: #2a3144;
        color: #e8e4ff;
        font-size: 12px;
        font-weight: 800;
    }

    .mobile-bottom-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-bottom-item.is-active .mobile-bottom-avatar {
        box-shadow: 0 0 0 2px rgba(114, 89, 243, 0.55);
    }

    .mobile-more-liste-v1 {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-more-section + .mobile-more-section {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-more-ligne-v1 {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 48px;
        width: 100%;
        padding: 8px 10px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #e8e4ff;
        text-align: left;
        text-decoration: none;
        font: inherit;
        cursor: pointer;
        box-sizing: border-box;
    }

    .mobile-more-ligne-v1 svg {
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-more-ligne-v1 span {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left !important;
        writing-mode: horizontal-tb !important;
        white-space: normal !important;
        overflow: visible !important;
        font-size: 15px !important;
        font-weight: 700;
    }

    .mobile-more-ligne-v1 b {
        margin-left: auto;
    }

    .mobile-more-liste-v1 form {
        margin: 0;
        width: 100%;
    }

    .page-accueil-social-v1 .bibliotheque-carte.is-compact,
    .page-bibliotheque-pc .bibliotheque-carte.is-compact {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
        min-height: 0 !important;
        height: auto !important;
        gap: 12px !important;
        padding: 10px 12px !important;
        transform: none !important;
    }

    .page-accueil-social-v1 .bibliotheque-carte.is-compact .bibliotheque-affiche-vtmdb,
    .page-bibliotheque-pc .bibliotheque-carte.is-compact .bibliotheque-affiche-vtmdb {
        width: 52px !important;
        height: 74px !important;
        object-fit: cover;
        border-radius: 8px;
    }

    .page-accueil-social-v1 .bibliotheque-carte.is-compact .bibliotheque-carte-principale,
    .page-bibliotheque-pc .bibliotheque-carte.is-compact .bibliotheque-carte-principale {
        min-width: 0;
        width: auto;
    }

    .page-accueil-social-v1 .bibliotheque-carte.is-compact .bibliotheque-carte-titre,
    .page-bibliotheque-pc .bibliotheque-carte.is-compact .bibliotheque-carte-titre {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .page-accueil-social-v1 .bibliotheque-carte.is-compact .bibliotheque-carte-titre h2,
    .page-bibliotheque-pc .bibliotheque-carte.is-compact .bibliotheque-carte-titre h2 {
        display: block !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        writing-mode: horizontal-tb !important;
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .nakama-shell .page-groupe-detail-v1 .apercu-kpis-v1 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .nakama-shell .page-groupe-detail-v1 .apercu-kpi-carte-v1 {
        min-height: 0 !important;
        padding: 12px 8px !important;
        text-align: left !important;
        align-items: stretch !important;
    }

    .nakama-shell .page-groupe-detail-v1 .apercu-kpis-v1 .dashboard-kpi-v2 > span {
        font-size: 14px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        text-align: left;
    }

    .nakama-shell .page-groupe-detail-v1 .apercu-kpis-v1 .dashboard-kpi-v2 > strong {
        margin: 8px 0 0 !important;
        font-size: 22px !important;
        text-align: left;
    }
}

@media (max-width: 360px) {
    .nakama-shell .page-groupe-detail-v1 .apercu-kpis-v1 {
        grid-template-columns: 1fr !important;
    }
}

.communaute-affinite-lien-v2 {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    text-decoration: none;
    color: inherit;
}

.communaute-affinite-avatar-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: #2a3144;
    color: #e8e4ff;
    font-size: 13px;
    font-weight: 800;
}

.communaute-affinite-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.communaute-affinite-identite-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.communaute-affinite-identite-v2 strong {
    font-size: 0.95rem;
}

.communaute-affinite-identite-v2 span {
    color: #8b93ab;
    font-size: 0.78rem;
}

.communaute-affinite-lien-v2 b {
    color: #d7d0ff;
    font-size: 1rem;
}

.communaute-affinites-liste-v2 li {
    padding: 0;
    border: 0;
    background: transparent;
}

.communaute-affinite-lien-v2 {
    padding: 8px 10px;
    border: 1px solid #292e3c;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* =========================================================
   HOTFIX 1.5.2 — Otaku, catalogue, fiches, groupes, stats
   ========================================================= */

.profil-otaku-cartes-v1,
.profil-otaku-premium-v2 .profil-otaku-cartes-v1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 761px) {
    .profil-otaku-premium-v2 .profil-otaku-cartes-v1 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

.profil-otaku-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.profil-otaku-item-v2 img {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.profil-otaku-item-texte-v2 {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profil-otaku-item-texte-v2 span,
.profil-otaku-item-texte-v2 strong,
.profil-otaku-premium-v2 .profil-otaku-item-texte-v2 span,
.profil-otaku-premium-v2 .profil-otaku-item-texte-v2 strong {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    writing-mode: horizontal-tb;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.profil-app-v4 .profil-stats-v3,
.profil-stats-v3 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.groupe-apercu-creation-v1 {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #292e3c;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.groupe-apercu-creation-v1 strong {
    min-width: 0;
    overflow-wrap: anywhere;
    writing-mode: horizontal-tb;
}

@media (max-width: 760px) {
    .page-bibliotheque-pc .bibliotheque-onglets,
    .page-bibliotheque .bibliotheque-onglets {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        overflow-x: visible;
    }

    .page-bibliotheque-pc .bibliotheque-onglets a,
    .page-bibliotheque .bibliotheque-onglets a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 6px 4px;
        text-align: center;
        white-space: normal;
        font-size: 11px;
        line-height: 1.2;
        writing-mode: horizontal-tb;
    }

    .profil-app-v4 .profil-stats-v3,
    .profil-app-v4 .profil-stats-v3.profil-stats-ligne-v2,
    .profil-stats-v3 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        overflow: visible;
        gap: 8px;
    }

    .profil-bloc-entete-ligne-v3 {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .profil-bloc-entete-ligne-v3 .bouton-compact-v1 {
        width: 100%;
        justify-content: center;
    }

    .groupe-carte-texte-v1 h3,
    .groupe-carte-identite-v1 h3,
    .groupe-hero-v1 h1 {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        overflow-wrap: anywhere;
        writing-mode: horizontal-tb;
    }

    .groupe-carte-actions-v1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .commentaire-entete {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
    }

    .commentaire-auteur {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
    }

    .commentaire-pseudo,
    .commentaire-communaute > p,
    .commentaire-meta span {
        min-width: 0;
        overflow-wrap: anywhere;
        writing-mode: horizontal-tb;
        white-space: pre-line;
    }

    .commentaire-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .note-principale-communaute strong {
        font-size: 36px;
    }

    .kpis-fiche-oeuvre {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .fiche-titre-desktop-v1 {
        display: none;
    }

    .fiche-bloc-repliant-v1 summary {
        display: flex;
        align-items: center;
        min-height: 44px;
        font-weight: 800;
        cursor: pointer;
    }

    .page-fiche-communaute,
    .page-profil-v3,
    .page-groupes-v1,
    .page-bibliotheque-pc {
        overflow-x: hidden;
        max-width: 100%;
    }
}

@media (min-width: 761px) {
    .fiche-bloc-repliant-v1 summary {
        display: none;
    }
}

@media (max-width: 330px) {
    .page-bibliotheque-pc .bibliotheque-onglets,
    .page-bibliotheque .bibliotheque-onglets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.is-parcours-plein-ecran .mobile-appbar,
body.is-parcours-plein-ecran .barre-navigation,
body.is-parcours-plein-ecran .navigation-principale-pc,
body.is-parcours-plein-ecran .mobile-bottom-nav,
body.is-parcours-plein-ecran .navigation-retour-pc,
body.is-parcours-plein-ecran #mobile-more-sheet,
body.is-parcours-plein-ecran .mobile-search-overlay {
    display: none;
}

body.is-parcours-plein-ecran.nakama-shell {
    padding-top: 0;
    padding-bottom: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.parcours-plein-v1 {
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

@media (min-height: 700px) {
    .parcours-plein-v1 {
        align-items: center;
    }
}

.parcours-carte-v1 {
    width: min(100%, 420px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.parcours-entete-v2 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.parcours-logo-v1 {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin: 0;
}

.parcours-entete-textes-v2 {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.parcours-titre-otaku-v2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    overflow: visible;
}

.parcours-question-v2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.parcours-etape-v1 {
    margin: 0;
    text-align: left;
    color: #9da4b4;
    font-size: 0.8rem;
    font-weight: 700;
}

.parcours-barre-v1 {
    height: 6px;
    border-radius: 999px;
    background: #292e3c;
    overflow: hidden;
    flex: 0 0 auto;
}

.parcours-barre-v1 span {
    display: block;
    height: 100%;
    background: #7259f3;
    transition: width 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    .parcours-barre-v1 span {
        transition: none;
    }
}

.parcours-form-v1,
.parcours-actions-v1,
.parcours-actions-discretes-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.parcours-actions-v1 {
    flex-direction: row;
    flex-wrap: wrap;
}

.parcours-actions-v1 .bouton-principal,
.parcours-actions-v1 .bouton-secondaire {
    min-height: 44px;
}

.parcours-actions-discretes-v2 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
}

.parcours-ignorer-v2,
.parcours-plus-tard-v2 {
    border: 0;
    background: transparent;
    color: #8b93ab;
    cursor: pointer;
    min-height: 40px;
    padding: 8px 0;
    font-size: 0.92rem;
    text-decoration: none;
}

.parcours-plus-tard-v2 {
    color: #6f7890;
}

.parcours-genres-champ-v2 {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.parcours-genres-v2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.parcours-carte-genre-v2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #292e3c;
    border-radius: 12px;
    background: #161924;
    cursor: pointer;
}

.parcours-carte-genre-v2:focus-within {
    outline: 2px solid #7259f3;
    outline-offset: 2px;
}

.parcours-carte-genre-v2:has(.parcours-genre-radio-v2:checked) {
    border-color: #7259f3;
    background: #1c1f2e;
}

.parcours-genre-radio-v2 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.parcours-genre-libelle-v2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #e8ebf4;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.parcours-genre-coche-v2 {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    max-width: 20px;
    max-height: 20px;
    box-sizing: border-box;
    border: 2px solid #6b7388;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
}

.parcours-carte-genre-v2:has(.parcours-genre-radio-v2:checked) .parcours-genre-coche-v2 {
    border-color: #7259f3;
    background: #7259f3;
    box-shadow: inset 0 0 0 3px #161924;
}

.parcours-resultats-v1 {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.parcours-oeuvre-v1 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #292e3c;
    border-radius: 12px;
}

.parcours-oeuvre-v1 img,
.parcours-avatar-v1 {
    width: 48px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
}

.parcours-oeuvre-v1 strong {
    min-width: 0;
    white-space: normal;
    writing-mode: horizontal-tb;
}

@media (max-width: 340px) {
    .parcours-genres-v2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .parcours-titre-otaku-v2 {
        font-size: 1rem;
    }
}

.anime-ou-regarder-v1 {
    margin-top: 12px;
    min-width: 0;
}

.anime-ou-regarder-v1 > span {
    display: block;
    color: #9da4b4;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.anime-ou-regarder-v1 p {
    margin: 4px 0 0;
    color: #e8ebf4;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: normal;
    writing-mode: horizontal-tb;
}

.anime-ou-regarder-vide-v1 {
    color: #8b93ab;
}

.anime-ou-regarder-v1 small {
    display: block;
    margin-top: 6px;
    color: #6f7890;
    font-size: 0.72rem;
    line-height: 1.3;
}

.page-legal-v1 {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: #d5dae6;
    line-height: 1.5;
}

.page-legal-v1 h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.page-legal-v1 h2 {
    margin: 28px 0 8px;
    font-size: 1.1rem;
}

.page-legal-v1 ul {
    padding-left: 1.2rem;
}

.compte-lien-legal-v1,
.parcours-legal-v1 {
    margin-top: 16px;
    font-size: 0.85rem;
}

.compte-lien-legal-v1 a,
.parcours-legal-v1 a,
.auth-actions-liens a[href="/confidentialite"] {
    color: #9da4b4;
    text-decoration: none;
}

.bibliotheque-carte-conteneur .action-statut-rapide,
.actions-statut-rapides {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px 10px;
}

.bouton-action-statut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 7.5rem;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #3a4154;
    background: #1b2030;
    color: #eef1f8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.bouton-action-statut.is-abandon {
    border-color: rgba(216, 90, 105, .45);
    color: #ffc4ca;
}

.compte-push-etat {
    margin: 8px 0 12px;
    color: #b7becd;
}

.compte-push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compte-push-actions button {
    min-height: 44px;
}

@media (max-width: 430px) {
    .bouton-action-statut,
    .compte-push-actions button {
        flex: 1 1 100%;
        min-width: 0;
    }
}










