/* Header Stats */
/* ==========================================================================
   Aside — modèle statistiques
   ========================================================================== */

.page-aside--stats {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


/* Liste des statistiques */

.page-aside__stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ligne statistique */

.page-aside__stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

/* Première ligne : intitulé et icône */

.page-aside__stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-aside__stat-label {
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color, #ffffff);
}

.page-aside__stat-icon {
    flex: 0 0 auto;
    font-size: 1rem;
    color: var(--primary-color, #8fb6ff);
}

/* Valeur */

.page-aside__stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-color, #ffffff);
}

/* Texte complémentaire */

.page-aside__stat-help {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
}



/* ==========================================================================
   Aside — modèle lignes d’informations
   ========================================================================== */

.page-aside--info-list {
    width: 100%;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Liste */

.page-aside__info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ligne */

.page-aside__info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.page-aside__info-row:hover {
    transform: translateY(-3px);

    border-color: rgba(130, 190, 255, 0.45);

    box-shadow: var(--box-shadow-card);
}

/* Partie gauche */

.page-aside__info-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

/* Icône */

.page-aside__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color, #8fb6ff);
}

.page-aside__info-icon i {
    font-size: 1rem;
}

/* Libellé */

.page-aside__info-label {
    min-width: 0;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color, #ffffff);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Valeur */

.page-aside__info-value {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(143, 182, 255, 0.12);
    color: var(--primary-color, #8fb6ff);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

/* États */

.page-aside__info-value.is-success {
    background: rgba(85, 211, 138, 0.12);
    color: #78e2a5;
}

.page-aside__info-value.is-warning {
    background: rgba(255, 190, 92, 0.14);
    color: #ffc86c;
}



/* ==========================================================================
   Aside — aperçu des statistiques
   ========================================================================== */

.page-aside--stats-preview {
    width: 100%;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Composant aperçu des statistiques
   ========================================================================== */

.stats-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stats-preview__item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.stats-preview__item:hover {
    transform: translateY(-3px);

    border-color: rgba(130, 190, 255, 0.45);

    box-shadow: var(--box-shadow-card);
}

.stats-preview__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.stats-preview__label {
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-color, #ffffff);
}

.stats-preview__icon {
    flex: 0 0 auto;
    font-size: 0.95rem;
    color: var(--primary-color, #8fb6ff);
}

.stats-preview__value {
    margin-top: 14px;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-color, #ffffff);
}

.stats-preview__help {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-muted, rgba(255, 255, 255, 0.68));
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 700px) {

    .page-section {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .page-section__heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .page-heading-media {
        width: 100%;
        align-items: center;
        gap: 14px;
    }

    .page-heading-media__visual {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .page-section__back {
        white-space: normal;
    }

    .page-section__title {
        font-size: 1.65rem;
    }

    .page-aside--stats-preview {
        padding: 18px;
        border-radius: 14px;
    }

    .page-aside--info-list {
        padding: 14px;
        border-radius: 14px;
    }

    .page-aside__info-row {
        min-height: 54px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .page-aside__info-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

}

@media (max-width: 420px) {

    .stats-preview {
        grid-template-columns: minmax(0, 1fr);
    }

}



@media (max-width: 480px) {

    .page-aside__info-row {
        align-items: flex-start;
    }

    .page-aside__info-label {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

}


