* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: #f5f7fb;

    color: #172033;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    line-height: 1.6;
}


a {
    color: inherit;

    text-decoration: none;
}


button,
input,
textarea,
select {
    font: inherit;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid #e6eaf0;

    box-shadow:
        0 4px 20px rgba(25, 40, 70, 0.05);

    transform: translateY(0);

    transition: transform 0.25s ease;

    will-change: transform;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}


.header-inner {
    max-width: 1250px;

    margin: auto;

    min-height: 54px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    gap: 16px;
}


.logo {
    display: flex;

    align-items: center;

    gap: 11px;

    font-weight: 800;

    font-size: 20px;

    color: #172033;

    white-space: nowrap;
}


.logo-icon {
    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #2563eb;

    color: white;

    font-size: 21px;

    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);
}


.main-navigation {
    margin-left: auto;
    margin-right: auto;

    display: flex;

    align-items: center;

    gap: 7px;
}


.main-navigation a {
    padding: 9px 13px;

    border-radius: 9px;

    color: #596579;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s ease;
}


.main-navigation a:hover {
    background: #f1f5ff;

    color: #2563eb;
}


.main-navigation .nav-button {
    background: #2563eb;

    color: white;

    padding: 10px 16px;

    margin-left: 5px;
}


.main-navigation .nav-button:hover {
    background: #1d4ed8;

    color: white;
}


/*
|--------------------------------------------------------------------------
| UTILISATEUR
|--------------------------------------------------------------------------
*/

.user-mini {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-left: 15px;

    border-left: 1px solid #e6eaf0;
}


.user-avatar {
    width: 38px;

    height: 38px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e8f0ff;

    color: #2563eb;

    font-weight: 800;
}


.user-mini-info {
    display: flex;

    flex-direction: column;

    line-height: 1.2;
}


.user-mini-info strong {
    font-size: 13px;
}


.user-mini-info span {
    color: #8993a5;

    font-size: 11px;

    margin-top: 3px;
}


/*
|--------------------------------------------------------------------------
| CONTENU
|--------------------------------------------------------------------------
*/

.site-main {
    min-height: calc(100vh - 160px);

    padding: 35px 0 60px;
}


.container {
    width: min(
        calc(100% - 40px),
        1250px
    );

    margin: auto;
}


/*
|--------------------------------------------------------------------------
| ALERTES
|--------------------------------------------------------------------------
*/

.alert {
    padding: 14px 18px;

    margin-bottom: 22px;

    border-radius: 12px;

    border: 1px solid;

    font-size: 14px;

    font-weight: 600;
}


.alert-success,
.alert-ok {
    background: #ecfdf5;

    border-color: #a7f3d0;

    color: #047857;
}


.alert-error {
    background: #fef2f2;

    border-color: #fecaca;

    color: #b91c1c;
}


.alert-info {
    background: #eff6ff;

    border-color: #bfdbfe;

    color: #1d4ed8;
}


/*
|--------------------------------------------------------------------------
| CARTES
|--------------------------------------------------------------------------
*/

.card {
    background: #ffffff;

    border: 1px solid #e6eaf0;

    border-radius: 16px;

    box-shadow:
        0 5px 25px rgba(30, 45, 70, 0.045);
}


.card-header {
    padding: 22px 24px;

    border-bottom: 1px solid #edf0f5;
}


.card-body {
    padding: 24px;
}


.card-title {
    margin: 0;

    font-size: 20px;

    color: #172033;
}


.card-subtitle {
    margin: 5px 0 0;

    color: #8993a5;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| BOUTONS
|--------------------------------------------------------------------------
*/

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding: 9px 17px;

    border: 0;

    border-radius: 10px;

    cursor: pointer;

    font-weight: 700;

    font-size: 14px;

    transition: 0.2s ease;
}


.btn-primary {
    background: #2563eb;

    color: white;
}


.btn-primary:hover {
    background: #1d4ed8;

    transform: translateY(-1px);
}


.btn-secondary {
    background: #eef2f7;

    color: #475569;
}


.btn-secondary:hover {
    background: #e2e8f0;
}


.btn-danger {
    background: #dc2626;

    color: white;
}


.btn-danger:hover {
    background: #b91c1c;
}


/*
|--------------------------------------------------------------------------
| FORMULAIRES
|--------------------------------------------------------------------------
*/

.form-group {
    margin-bottom: 20px;
}


.form-label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;

    font-weight: 700;

    color: #334155;
}


.form-control {
    width: 100%;

    min-height: 45px;

    padding: 10px 13px;

    background: #ffffff;

    border: 1px solid #d9dee8;

    border-radius: 10px;

    outline: none;

    color: #172033;

    transition: 0.2s ease;
}


.form-control:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


textarea.form-control {
    min-height: 150px;

    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| FORUM
|--------------------------------------------------------------------------
*/

.forum-category {
    margin-bottom: 24px;

    overflow: hidden;
}


.forum-category-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 19px 22px;

    background: #ffffff;

    border-bottom: 1px solid #edf0f5;
}


.forum-category-title {
    display: flex;

    align-items: center;

    gap: 13px;
}


.category-icon {
    width: 42px;

    height: 42px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eff6ff;

    font-size: 19px;
}


.forum-category-title h2 {
    margin: 0;

    font-size: 17px;
}


.forum-category-title p {
    margin: 2px 0 0;

    color: #8993a5;

    font-size: 12px;
}


.topic-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        90px
        90px
        220px;

    gap: 15px;

    align-items: center;

    padding: 17px 22px;

    background: white;

    border-bottom: 1px solid #f0f2f6;

    transition: 0.2s ease;
}


.topic-row:last-child {
    border-bottom: 0;
}


.topic-row:hover {
    background: #fbfcff;
}


.topic-title {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;
}


.topic-icon {
    width: 38px;

    height: 38px;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #f1f5f9;

    display: flex;

    align-items: center;

    justify-content: center;
}


.topic-name {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-weight: 700;

    color: #273449;
}


.topic-meta {
    color: #8a95a7;

    font-size: 12px;
}


.topic-stat {
    text-align: center;

    color: #64748b;

    font-size: 13px;
}


.topic-last {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    color: #64748b;

    font-size: 12px;
}


.topic-last strong {
    color: #334155;

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| PAGE SUJET
|--------------------------------------------------------------------------
*/

.post {
    display: grid;

    grid-template-columns: 180px minmax(0, 1fr);

    background: white;

    border: 1px solid #e6eaf0;

    border-radius: 16px;

    overflow: hidden;

    margin-bottom: 18px;
}


.post-user {
    padding: 25px 18px;

    background: #f8fafc;

    border-right: 1px solid #edf0f5;

    text-align: center;
}


.post-avatar {
    width: 62px;

    height: 62px;

    margin: auto auto 12px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #2563eb;

    color: white;

    font-size: 23px;

    font-weight: 800;
}


.post-user-name {
    display: block;

    font-weight: 800;

    color: #273449;
}


.post-role {
    margin-top: 4px;

    font-size: 11px;

    color: #8993a5;
}


.post-content {
    min-width: 0;

    padding: 25px;
}


.post-header {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;

    padding-bottom: 12px;

    border-bottom: 1px solid #edf0f5;

    color: #8993a5;

    font-size: 12px;
}


.post-message {
    white-space: pre-wrap;

    word-break: break-word;

    color: #344054;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer {
    background: #ffffff;

    border-top: 1px solid #e6eaf0;

    padding: 30px 0;
}


.footer-inner {
    width: min(
        calc(100% - 40px),
        1250px
    );

    margin: auto;

    display: grid;

    grid-template-columns:
        1fr auto auto;

    gap: 35px;

    align-items: center;
}


.footer-inner p {
    margin: 5px 0 0;

    color: #8993a5;

    font-size: 13px;
}


.footer-links {
    display: flex;

    gap: 18px;

    color: #64748b;

    font-size: 13px;
}


.footer-links a:hover {
    color: #2563eb;
}


.footer-copy {
    color: #9aa3b2;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .header-inner {
        flex-wrap: wrap;
        min-height: 50px;
        padding-top: 6px;
        padding-bottom: 6px;
    }


    .main-navigation {
        order: 3;

        width: 100%;

        overflow-x: auto;

        margin-left: 0;
    }


    .user-mini {
        margin-left: auto;
    }


    .topic-row {
        grid-template-columns:
            minmax(0, 1fr)
            70px
            70px;
    }


    .topic-last {
        display: none;
    }


    .footer-inner {
        grid-template-columns: 1fr;

        gap: 15px;
    }

}


@media (max-width: 650px) {

    .container {
        width: min(
            calc(100% - 24px),
            1250px
        );
    }


    .site-main {
        padding-top: 20px;
    }


    .logo-text {
        display: none;
    }


    .user-mini-info {
        display: none;
    }


    .main-navigation a {
        white-space: nowrap;
    }


    .topic-row {
        grid-template-columns:
            minmax(0, 1fr)
            55px;

        gap: 8px;

        padding: 14px;
    }


    .topic-stat {
        display: none;
    }


    .post {
        grid-template-columns: 1fr;
    }


    .post-user {
        display: flex;

        align-items: center;

        gap: 12px;

        text-align: left;

        border-right: 0;

        border-bottom: 1px solid #edf0f5;

        padding: 15px;
    }


    .post-avatar {
        margin: 0;

        width: 45px;

        height: 45px;

        flex: 0 0 45px;

        font-size: 17px;
    }


    .post-content {
        padding: 18px;
    }

}

/*
|--------------------------------------------------------------------------
| AUTHENTIFICATION
|--------------------------------------------------------------------------
*/

.auth-wrapper {
    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px 0;
}


.auth-card {
    width: 100%;

    max-width: 470px;

    padding: 35px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 20px;

    box-shadow:
        0 15px 45px rgba(30, 45, 70, 0.08);
}


.auth-header {
    text-align: center;

    margin-bottom: 28px;
}


.auth-icon {
    width: 58px;

    height: 58px;

    margin: 0 auto 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: #2563eb;

    color: #ffffff;

    font-size: 25px;

    font-weight: 800;
}


.auth-header h1 {
    margin: 0;

    font-size: 27px;
}


.auth-header p {
    margin: 6px 0 0;

    color: #8993a5;

    font-size: 14px;
}


.auth-submit {
    width: 100%;

    margin-top: 5px;
}


.auth-footer {
    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #edf0f5;

    text-align: center;

    color: #8993a5;

    font-size: 13px;
}


.auth-footer a,
.auth-options a {
    color: #2563eb;

    font-weight: 700;
}


.auth-options {
    display: flex;

    justify-content: flex-end;

    margin-top: -5px;

    margin-bottom: 18px;

    font-size: 13px;
}


.auth-card ul {
    margin: 0;

    padding-left: 20px;
}

/*
|--------------------------------------------------------------------------
| PAGE HERO
|--------------------------------------------------------------------------
*/

.page-hero {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e6eaf0;

    border-radius: 18px;

    box-shadow:
        0 5px 25px rgba(30, 45, 70, 0.045);
}


.eyebrow {
    display: block;

    margin-bottom: 6px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}


.page-hero h1 {
    margin: 0;

    font-size: 28px;

    letter-spacing: -0.5px;
}


.page-hero p {
    margin: 6px 0 0;

    color: #7b8799;

    font-size: 14px;
}


.category-count {
    color: #8a95a7;

    font-size: 12px;

    white-space: nowrap;
}


.empty-category {
    padding: 30px;

    text-align: center;

    color: #8993a5;

    font-size: 14px;
}


.topic-stat small {
    display: block;

    margin-top: 1px;

    color: #a0a8b6;

    font-size: 10px;
}


.empty-state {
    padding: 60px 25px;

    text-align: center;
}


.empty-icon {
    font-size: 42px;

    margin-bottom: 10px;
}


.empty-state h2 {
    margin: 0;
}


.empty-state p {
    color: #8993a5;
}

/*
|--------------------------------------------------------------------------
| BREADCRUMB
|--------------------------------------------------------------------------
*/

.breadcrumb {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    color: #8993a5;

    font-size: 13px;
}


.breadcrumb a {
    color: #2563eb;

    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| PAGINATION
|--------------------------------------------------------------------------
*/

.pagination {
    display: flex;

    justify-content: center;

    gap: 7px;

    margin-top: 25px;
}


.pagination a {
    min-width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #e1e6ee;

    border-radius: 9px;

    background: #ffffff;

    color: #64748b;

    font-size: 13px;

    font-weight: 700;
}


.pagination a:hover,
.pagination a.active {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;
}

.form-card {
    max-width: 900px;

    margin: 0 auto;
}


.form-help {
    margin-top: 6px;

    color: #8993a5;

    font-size: 12px;
}


.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #edf0f5;
}

/*
|--------------------------------------------------------------------------
| PAGE SUJET
|--------------------------------------------------------------------------
*/

.topic-page-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 24px;

    margin-bottom: 22px;
}


.topic-page-title {
    display: flex;

    align-items: center;

    gap: 15px;

    min-width: 0;
}


.topic-page-icon {
    width: 50px;

    height: 50px;

    flex: 0 0 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eff6ff;

    border-radius: 13px;

    font-size: 22px;
}


.topic-page-title h1 {
    margin: 0;

    font-size: 23px;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


.topic-page-meta {
    margin-top: 5px;

    color: #8993a5;

    font-size: 12px;
}


.locked-label {
    display: inline-flex;

    align-items: center;

    padding: 9px 13px;

    border-radius: 9px;

    background: #f1f5f9;

    color: #64748b;

    font-size: 13px;

    font-weight: 700;
}


.post-actions {
    display: flex;

    justify-content: flex-end;

    gap: 15px;

    margin-top: 20px;

    padding-top: 12px;

    border-top: 1px solid #edf0f5;

    font-size: 12px;
}


.post-actions a {
    color: #64748b;

    font-weight: 600;
}


.post-actions a:hover {
    color: #2563eb;
}


.quick-reply {
    margin-top: 25px;
}


@media (max-width: 650px) {

    .topic-page-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .topic-page-title h1 {
        font-size: 19px;
    }

}


/*
|--------------------------------------------------------------------------
| PROFIL
|--------------------------------------------------------------------------
*/

.profile-layout {
    display: grid;

    grid-template-columns: 280px minmax(0, 1fr);

    gap: 25px;

    max-width: 1050px;

    margin: 0 auto;
}


.profile-card {
    padding: 30px;

    text-align: center;

    align-self: start;
}


.profile-avatar {
    width: 85px;

    height: 85px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    font-size: 32px;

    font-weight: 800;
}


.profile-card h1 {
    margin: 0;

    font-size: 21px;
}


.profile-role {
    margin-top: 6px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 700;
}


.profile-date {
    margin-top: 8px;

    color: #98a1b0;

    font-size: 11px;
}


.profile-links {
    display: flex;

    flex-direction: column;

    gap: 5px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #edf0f5;
}


.profile-links a {
    padding: 11px 12px;

    border-radius: 9px;

    color: #64748b;

    font-size: 13px;

    font-weight: 600;

    text-align: left;
}


.profile-links a:hover,
.profile-links a.active {
    background: #eff6ff;

    color: #2563eb;
}


@media (max-width: 700px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

}

/*
|--------------------------------------------------------------------------
| ADMINISTRATION
|--------------------------------------------------------------------------
*/

.admin-body {
    background: #f5f7fb;
}


.admin-topbar {
    height: 68px;

    background: #ffffff;

    border-bottom: 1px solid #e5e9f0;
}


.admin-topbar-inner {
    height: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.admin-logo {
    display: flex;

    align-items: center;

    gap: 10px;

    color: #1e293b;

    font-size: 15px;

    font-weight: 800;
}


.admin-logo span {
    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background: #2563eb;

    color: #ffffff;
}


.admin-user {
    display: flex;

    align-items: center;

    gap: 20px;

    font-size: 13px;
}


.admin-user a {
    color: #64748b;

    font-weight: 600;
}


.admin-layout {
    display: flex;

    min-height: calc(100vh - 68px);
}


.admin-sidebar {
    width: 200px;

    flex: 0 0 200px;

    background: #ffffff;

    border-right: 1px solid #e5e9f0;
}


.admin-sidebar nav {
    padding: 18px 10px;
}

.admin-sidebar nav {
    position: sticky;
    top: 20px;
}


.admin-sidebar a {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 4px;

    padding: 12px 14px;

    border-radius: 9px;

    color: #64748b;

    font-size: 13px;

    font-weight: 600;
}


.admin-sidebar a:hover {
    background: #eff6ff;

    color: #2563eb;
}


.admin-sidebar-separator {
    height: 1px;

    margin: 18px 10px;

    background: #edf0f5;
}


.admin-content {
    flex: 1;

    min-width: 0;

    padding: 35px;
}


.admin-page {
    max-width: 1300px;

    margin: 0 auto;
}


.admin-title {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.admin-title h1 {
    margin: 0;

    font-size: 28px;
}


.admin-title p {
    margin: 5px 0 0;

    color: #8993a5;

    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| STATISTIQUES
|--------------------------------------------------------------------------
*/

.admin-stats {
    display: grid;

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

    gap: 18px;

    margin-bottom: 25px;
}


.admin-stat-card {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 14px;
}


.admin-stat-icon {
    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eff6ff;

    font-size: 21px;
}


.admin-stat-card span {
    display: block;

    color: #94a0b2;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .5px;
}


.admin-stat-card strong {
    display: block;

    margin-top: 4px;

    color: #1e293b;

    font-size: 24px;
}


/*
|--------------------------------------------------------------------------
| MENU
|--------------------------------------------------------------------------
*/

.admin-grid {
    display: grid;

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

    gap: 18px;

    margin-bottom: 25px;
}


.admin-menu-card {
    display: flex;

    flex-direction: column;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 14px;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}


.admin-menu-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 30px
        rgba(30, 45, 70, .07);
}


.admin-menu-icon {
    font-size: 25px;

    margin-bottom: 15px;
}


.admin-menu-card strong {
    color: #1e293b;

    font-size: 15px;
}


.admin-menu-card small {
    margin-top: 5px;

    color: #8993a5;

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| TABLE
|--------------------------------------------------------------------------
*/

.admin-table-card {
    overflow: hidden;
}


.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.admin-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}


.admin-table th {
    padding: 13px 18px;

    background: #f8fafc;

    color: #64748b;

    font-size: 10px;

    font-weight: 800;

    text-align: left;

    text-transform: uppercase;
}


.admin-table td {
    padding: 15px 18px;

    border-top: 1px solid #edf0f5;

    color: #64748b;
}


.admin-table td strong {
    color: #1e293b;
}


.role-badge,
.status-badge {
    display: inline-flex;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 10px;

    font-weight: 800;
}


.role-admin {
    background: #fef2f2;

    color: #dc2626;
}


.role-moderator {
    background: #eff6ff;

    color: #2563eb;
}


.role-member {
    background: #f1f5f9;

    color: #64748b;
}


.status-active {
    background: #ecfdf5;

    color: #059669;
}


.status-disabled {
    background: #fef2f2;

    color: #dc2626;
}


.admin-footer {
    padding: 25px;

    text-align: center;

    background: #ffffff;

    border-top: 1px solid #e5e9f0;

    color: #94a0b2;

    font-size: 11px;
}


@media (max-width: 900px) {

    .admin-sidebar {
        width: 70px;

        flex-basis: 70px;
    }


    .admin-sidebar a {
        justify-content: center;

        font-size: 0;
    }


    .admin-sidebar a:first-letter {
        font-size: 16px;
    }


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


    .admin-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 600px) {

    .admin-content {
        padding: 20px 15px;
    }


    .admin-title {
        align-items: flex-start;

        flex-direction: column;
    }


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


    .admin-user span {
        display: none;
    }

}

.admin-filter-card {
    padding: 18px;

    margin-bottom: 20px;
}


.admin-search {
    display: flex;

    gap: 10px;
}


.admin-search .form-control {
    flex: 1;
}


.btn-small {
    padding: 7px 10px;

    font-size: 11px;
}


.admin-user-grid {
    display: grid;

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

    gap: 20px;
}


.admin-profile {
    text-align: center;

    padding-bottom: 20px;

    border-bottom: 1px solid #edf0f5;
}


.admin-profile .profile-avatar {
    width: 70px;

    height: 70px;

    font-size: 25px;
}


.admin-profile h2 {
    margin: 10px 0 0;

    font-size: 18px;
}


.admin-info-list {
    margin-top: 20px;
}


.admin-info-list > div {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    border-bottom: 1px solid #edf0f5;

    font-size: 13px;
}


.admin-info-list span {
    color: #94a0b2;
}


.admin-info-list strong {
    color: #1e293b;

    text-align: right;
}


.danger-card {
    border-color: #fecaca;
}


.danger-card .card-header {
    background: #fff7f7;
}


.danger-card .card-title {
    color: #dc2626;
}


.danger-card p {
    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


.btn-danger {
    border: 0;

    background: #dc2626;

    color: #ffffff;
}


.btn-danger:hover {
    background: #b91c1c;
}


@media (max-width: 800px) {

    .admin-user-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .admin-search {
        flex-direction: column;
    }

}

.admin-topic-title {
    display: flex;

    align-items: center;

    gap: 5px;

    max-width: 300px;
}


.admin-topic-title a {
    color: #1e293b;

    font-weight: 700;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.admin-topic-title a:hover {
    color: #2563eb;
}


.topic-stats-admin {
    display: flex;

    gap: 10px;

    color: #94a0b2;

    font-size: 11px;
}


.moderation-actions {
    display: flex;

    align-items: center;

    gap: 5px;
}


.moderation-actions form {
    margin: 0;
}


.moderation-button {
    width: 32px;

    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #e5e9f0;

    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;

    font-size: 14px;
}


.moderation-button:hover {
    background: #eff6ff;

    border-color: #bfdbfe;
}


.moderation-button.danger:hover {
    background: #fef2f2;

    border-color: #fecaca;
}


.status-locked {
    background: #fff7ed;

    color: #c2410c;
}


@media (max-width: 800px) {

    .admin-topic-title {
        max-width: 180px;
    }

}


/*
|--------------------------------------------------------------------------
| SIGNALEMENTS
|--------------------------------------------------------------------------
*/

.report-tabs {
    display: flex;

    gap: 6px;

    margin-bottom: 20px;

    padding: 5px;

    background: #ffffff;

    border: 1px solid #e5e9f0;

    border-radius: 10px;

    width: fit-content;
}


.report-tabs a {
    padding: 9px 14px;

    border-radius: 7px;

    color: #64748b;

    font-size: 12px;

    font-weight: 700;
}


.report-tabs a:hover {
    background: #f8fafc;

    color: #2563eb;
}


.report-tabs a.active {
    background: #eff6ff;

    color: #2563eb;
}


.reports-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.report-card {
    overflow: hidden;
}


.report-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom: 1px solid #edf0f5;
}


.report-id {
    margin-right: 8px;

    color: #94a0b2;

    font-size: 11px;

    font-weight: 700;
}


.report-reason {
    color: #1e293b;

    font-size: 13px;

    font-weight: 800;
}


.report-pending {
    background: #fff7ed;

    color: #c2410c;
}


.report-topic {
    padding: 15px 20px;

    font-size: 12px;
}


.report-topic span {
    color: #94a0b2;
}


.report-topic a {
    margin-left: 5px;

    color: #2563eb;

    font-weight: 700;
}


.reported-message {
    margin: 0 20px;

    padding: 18px;

    background: #f8fafc;

    border: 1px solid #e5e9f0;

    border-radius: 10px;
}


.reported-message-header {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 15px;
}


.reported-avatar {
    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eff6ff;

    color: #2563eb;

    font-weight: 800;
}


.reported-message-header strong {
    display: block;

    color: #1e293b;

    font-size: 13px;
}


.reported-message-header small {
    display: block;

    margin-top: 2px;

    color: #94a0b2;

    font-size: 10px;
}


.reported-message-content {
    color: #475569;

    font-size: 13px;

    line-height: 1.7;

    white-space: normal;

    overflow-wrap: anywhere;
}


.report-details {
    display: flex;

    gap: 30px;

    padding: 15px 20px;

    font-size: 12px;
}


.report-details div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


.report-details span {
    color: #94a0b2;
}


.report-details strong {
    color: #475569;
}


.report-comment {
    margin: 0 20px 18px;

    padding: 14px;

    background: #fffbeb;

    border: 1px solid #fde68a;

    border-radius: 9px;
}


.report-comment strong {
    color: #92400e;

    font-size: 11px;
}


.report-comment p {
    margin: 7px 0 0;

    color: #78350f;

    font-size: 12px;

    line-height: 1.6;
}


.report-actions {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 8px;

    padding: 15px 20px;

    border-top: 1px solid #edf0f5;
}


.empty-state {
    padding: 60px 20px;

    text-align: center;
}


.empty-state > div {
    font-size: 35px;
}


.empty-state h2 {
    margin: 12px 0 5px;

    font-size: 18px;
}


.empty-state p {
    margin: 0;

    color: #94a0b2;

    font-size: 13px;
}


@media (max-width: 700px) {

    .report-tabs {
        width: 100%;

        overflow-x: auto;
    }


    .report-tabs a {
        white-space: nowrap;
    }


    .report-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .report-details {
        flex-direction: column;

        gap: 12px;
    }


    .report-actions {
        justify-content: stretch;

        flex-direction: column;
    }


    .report-actions form,
    .report-actions button {
        width: 100%;
    }

}

/* ============================================================
   SIGNALEMENT
============================================================ */

.report-actions {
    margin-top: 8px;
}

.report-button {
    border: 0;
    padding: 5px 8px;

    border-radius: 6px;

    background: transparent;

    color: #94a3b8;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.report-button:hover {
    background: #fff1f2;
    color: #dc2626;
}


/* ============================================================
   FOND MODALE
============================================================ */

.report-modal {
    position: fixed;

    inset: 0;

    z-index: 10000;

    display: none;

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

    padding: 20px;
}

.report-modal.open {
    display: flex;
}

.report-overlay {
    position: absolute;

    inset: 0;

    background: rgba(15, 23, 42, .38);

    backdrop-filter: blur(3px);
}


/* ============================================================
   BOÎTE
============================================================ */

.report-box {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 500px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow:
        0 25px 70px rgba(15, 23, 42, .20);
}


/* ============================================================
   HEADER
============================================================ */

.report-header {
    display: flex;

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

    gap: 15px;

    padding: 20px;

    border-bottom: 1px solid #edf0f5;
}

.report-title {
    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.report-icon {
    display: flex;

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

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #fff1f2;

    font-size: 20px;
}

.report-title h2 {
    margin: 0;

    color: #172033;

    font-size: 18px;
}

.report-title p {
    margin: 5px 0 0;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.5;
}


/* ============================================================
   FERMER
============================================================ */

.report-close {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: 0;

    border-radius: 8px;

    background: #f8fafc;

    color: #64748b;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;
}

.report-close:hover {
    background: #f1f5f9;

    color: #0f172a;
}


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

.report-form {
    padding: 20px;
}

.report-section {
    margin-bottom: 20px;
}

.report-label {
    display: block;

    margin-bottom: 10px;

    color: #334155;

    font-size: 12px;

    font-weight: 800;
}

.report-label span {
    color: #94a3b8;

    font-weight: 500;
}


/* ============================================================
   CHOIX
============================================================ */

.report-option {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 6px;

    padding: 10px 12px;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    background: #ffffff;

    color: #475569;

    font-size: 11px;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.report-option:hover {
    background: #f8fafc;

    border-color: #cbd5e1;
}

.report-option input {
    margin: 0;

    accent-color: #dc2626;
}

.report-option:has(input:checked) {
    background: #fff7f7;

    border-color: #fecaca;

    color: #b91c1c;
}


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

.report-form textarea {
    display: block;

    width: 100%;

    min-height: 110px;

    padding: 11px;

    resize: vertical;

    border: 1px solid #dbe1ea;

    border-radius: 8px;

    outline: none;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 11px;

    line-height: 1.6;
}

.report-form textarea:focus {
    border-color: #93c5fd;

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, .08);
}

.report-counter {
    margin-top: 5px;

    text-align: right;

    color: #94a3b8;

    font-size: 9px;
}


/* ============================================================
   PIED
============================================================ */

.report-footer {
    display: flex;

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

    gap: 8px;

    padding-top: 5px;
}

.report-submit {
    border: 1px solid #dc2626;

    background: #dc2626;

    color: #ffffff;
}

.report-submit:hover {
    border-color: #b91c1c;

    background: #b91c1c;
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .report-modal {
        align-items: flex-end;

        padding: 10px;
    }

    .report-box {
        max-height: 94vh;

        border-radius: 16px 16px 10px 10px;
    }

    .report-footer {
        flex-direction: column-reverse;
    }

    .report-footer .btn {
        width: 100%;
    }

}

/* ============================================================
   PAGE ADMIN — SIGNALEMENTS
   Forum PHP 8.4
   MODE CLAIR
============================================================ */


/* ============================================================
   CONTENEUR
============================================================ */

.admin-page {
    width: 100%;
    max-width: none;

    margin: 0;

    padding: 25px 0 50px;
}


/* ============================================================
   EN-TÊTE
============================================================ */

.admin-page-header {
    display: flex;

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

    gap: 20px;

    margin-bottom: 22px;
}

.admin-page-eyebrow {
    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.admin-page-header h1 {
    margin: 0;

    color: #172033;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -0.5px;
}

.admin-page-header p {
    margin: 7px 0 0;

    color: #64748b;

    font-size: 13px;
}


/* ============================================================
   FILTRES
============================================================ */

.reports-filters {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-bottom: 18px;

    padding: 6px;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(15, 23, 42, .03);
}

.reports-filters a {
    display: inline-flex;

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

    min-height: 34px;

    padding: 0 14px;

    border-radius: 7px;

    color: #64748b;

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

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}

.reports-filters a:hover {
    background: #f1f5f9;

    color: #334155;
}

.reports-filters a.active {
    background: #172033;

    color: #ffffff;
}


/* ============================================================
   LISTE DES SIGNALEMENTS
============================================================ */

.reports-list {
    display: flex;

    flex-direction: column;

    gap: 14px;
}


/* ============================================================
   CARTE
============================================================ */

.report-card {
    overflow: hidden;

    padding: 0;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(15, 23, 42, .04);

    transition:
        box-shadow .15s ease,
        border-color .15s ease;
}

.report-card:hover {
    border-color: #d8dee8;

    box-shadow:
        0 7px 22px rgba(15, 23, 42, .07);
}


/* ============================================================
   HEADER CARTE
============================================================ */

.report-card-header {
    display: flex;

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

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid #edf0f4;
}

.report-id {
    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .8px;

    text-transform: uppercase;
}

.report-card-header h2 {
    margin: 0;

    color: #172033;

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

    line-height: 1.4;
}


/* ============================================================
   STATUT
============================================================ */

.report-status {
    display: inline-flex;

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

    flex-shrink: 0;

    min-height: 26px;

    padding: 0 10px;

    border-radius: 999px;

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

.report-status.pending {
    background: #fff7ed;

    color: #c2410c;
}

.report-status.resolved {
    background: #ecfdf5;

    color: #047857;
}

.report-status.dismissed {
    background: #f1f5f9;

    color: #64748b;
}


/* ============================================================
   INFORMATIONS
============================================================ */

.report-info-grid {
    display: grid;

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

    gap: 1px;

    background: #edf0f4;

    border-bottom: 1px solid #edf0f4;
}

.report-info {
    min-width: 0;

    padding: 14px 16px;

    background: #ffffff;
}

.report-info span {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.report-info strong {
    display: block;

    overflow: hidden;

    color: #334155;

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

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


/* ============================================================
   MESSAGE SIGNALÉ
============================================================ */

.reported-message {
    margin: 16px 18px;

    padding: 14px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    background: #f8fafc;
}

.reported-message-label {
    margin-bottom: 8px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;

    text-transform: uppercase;
}

.reported-message-content {
    color: #334155;

    font-size: 12px;

    line-height: 1.7;

    white-space: normal;

    overflow-wrap: anywhere;
}


/* ============================================================
   COMMENTAIRE DU SIGNALEMENT
============================================================ */

.report-comment {
    margin: 0 18px 16px;

    padding: 13px 14px;

    border-left: 3px solid #f59e0b;

    border-radius: 0 8px 8px 0;

    background: #fffbeb;

    color: #78350f;

    font-size: 11px;

    line-height: 1.6;
}

.report-comment-label {
    margin-bottom: 5px;

    color: #b45309;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .5px;

    text-transform: uppercase;
}


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

.report-actions {
    display: flex;

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

    gap: 7px;

    padding: 14px 18px;

    border-top: 1px solid #edf0f4;

    background: #fcfcfd;
}

.report-action-form {
    display: inline-flex;

    margin: 0;
}


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

.report-actions .btn {
    display: inline-flex;

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

    min-height: 34px;

    padding: 0 13px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 10px;
    font-weight: 750;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        box-shadow .15s ease;
}


/* SECONDARY */

.report-actions .btn-secondary {
    border: 1px solid #dbe1ea;

    background: #ffffff;

    color: #475569;
}

.report-actions .btn-secondary:hover {
    border-color: #cbd5e1;

    background: #f8fafc;

    color: #1e293b;
}


/* WARNING */

.report-actions .btn-warning {
    border: 1px solid #fed7aa;

    background: #fff7ed;

    color: #c2410c;
}

.report-actions .btn-warning:hover {
    border-color: #fdba74;

    background: #ffedd5;
}


/* SUCCESS */

.report-actions .btn-success {
    border: 1px solid #bbf7d0;

    background: #f0fdf4;

    color: #15803d;
}

.report-actions .btn-success:hover {
    border-color: #86efac;

    background: #dcfce7;
}


/* ============================================================
   SIGNALÉMENT DÉJÀ TRAITÉ
============================================================ */

.report-resolved-info {
    display: flex;

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

    flex-wrap: wrap;

    gap: 8px;

    padding: 13px 18px;

    border-top: 1px solid #edf0f4;

    background: #fcfcfd;

    color: #94a3b8;

    font-size: 10px;
}

.report-resolved-info > span:first-child {
    color: #64748b;

    font-weight: 700;
}

.report-resolved-info strong {
    color: #475569;
}

.report-resolved-info .btn {
    margin-left: 5px;
}


/* ============================================================
   ÉTAT VIDE
============================================================ */

.reports-empty {
    display: flex;

    flex-direction: column;

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

    min-height: 300px;

    padding: 35px;

    text-align: center;
}

.reports-empty-icon {
    display: flex;

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

    width: 58px;
    height: 58px;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #ecfdf5;

    color: #059669;

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

.reports-empty h2 {
    margin: 0;

    color: #334155;

    font-size: 17px;
}

.reports-empty p {
    margin: 7px 0 0;

    color: #94a3b8;

    font-size: 11px;
}


/* ============================================================
   PAGINATION
============================================================ */

.admin-page .pagination {
    display: flex;

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

    gap: 5px;

    margin-top: 22px;
}

.admin-page .pagination a {
    display: flex;

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

    min-width: 32px;
    height: 32px;

    padding: 0 8px;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    background: #ffffff;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.admin-page .pagination a:hover {
    border-color: #cbd5e1;

    background: #f8fafc;

    color: #334155;
}

.admin-page .pagination a.active {
    border-color: #172033;

    background: #172033;

    color: #ffffff;
}


/* ============================================================
   TABLETTE
============================================================ */

@media (max-width: 850px) {

    .admin-page {
        padding:
            20px 15px 40px;
    }

    .report-info-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .admin-page {
        padding:
            15px 10px 35px;
    }


    .admin-page-header h1 {
        font-size: 23px;
    }


    .admin-page-header p {
        font-size: 11px;
    }


    .reports-filters {
        overflow-x: auto;

        justify-content: flex-start;

        scrollbar-width: none;
    }

    .reports-filters::-webkit-scrollbar {
        display: none;
    }

    .reports-filters a {
        flex-shrink: 0;

        padding: 0 12px;
    }


    .report-card-header {
        flex-direction: column;

        gap: 10px;

        padding: 15px;
    }


    .report-card-header h2 {
        font-size: 14px;
    }


    .report-status {
        align-self: flex-start;
    }


    .report-info-grid {
        grid-template-columns: 1fr;
    }


    .report-info {
        padding: 11px 14px;
    }


    .reported-message {
        margin:
            13px 13px;

        padding: 12px;
    }


    .report-comment {
        margin:
            0 13px 13px;
    }


    .report-actions {
        flex-direction: column;

        align-items: stretch;

        padding: 12px;
    }


    .report-action-form {
        width: 100%;
    }


    .report-actions .btn {
        width: 100%;
    }


    .report-resolved-info {
        align-items: stretch;

        flex-direction: column;

        padding: 12px;
    }


    .report-resolved-info .btn {
        width: 100%;

        margin-left: 0;

        margin-top: 5px;
    }

}


.report-actions .btn-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

.report-actions .btn-danger:hover {
    border-color: #fca5a5;
    background: #fee2e2;
    color: #b91c1c;
}

/*
|--------------------------------------------------------------------------
| TABLEAU DE BORD MODÉRATION
|--------------------------------------------------------------------------
*/

.moderation-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.moderation-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 34px 36px;
    border: 1px solid #dbe7ff;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
    box-shadow: 0 10px 35px rgba(37, 99, 235, 0.07);
}

.moderation-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -100px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.07);
}

.moderation-eyebrow,
.moderation-panel-kicker {
    display: block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.moderation-hero h1 {
    margin: 5px 0 6px;
    color: #172033;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.moderation-hero p {
    max-width: 680px;
    margin: 0;
    color: #697589;
    font-size: 15px;
}

.moderation-hero-badge {
    position: relative;
    z-index: 1;
    min-width: 150px;
    padding: 15px 18px;
    border: 1px solid #dce7fb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 25px rgba(30, 50, 90, 0.06);
}

.moderation-hero-badge span {
    display: block;
    margin-bottom: 3px;
    font-size: 22px;
}

.moderation-hero-badge strong,
.moderation-hero-badge small {
    display: block;
}

.moderation-hero-badge strong {
    color: #172033;
    font-size: 14px;
}

.moderation-hero-badge small {
    margin-top: 2px;
    color: #8993a5;
    font-size: 11px;
}

.moderation-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.moderation-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e4e9f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(30, 45, 70, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.moderation-stat:hover {
    transform: translateY(-2px);
    border-color: #cbdaf8;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.08);
}

.moderation-stat-alert {
    border-color: #fde0d6;
}

.moderation-stat-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eef4ff;
    font-size: 21px;
}

.moderation-stat-alert .moderation-stat-icon {
    background: #fff1ec;
}

.moderation-stat-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.moderation-stat-content small {
    color: #8993a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.moderation-stat-content strong {
    margin: 1px 0;
    color: #172033;
    font-size: 25px;
    line-height: 1.15;
}

.moderation-stat-content em {
    overflow: hidden;
    color: #7d8798;
    font-size: 11px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.moderation-panel,
.moderation-actions-panel {
    border: 1px solid #e4e9f1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 6px 25px rgba(30, 45, 70, 0.04);
}

.moderation-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 21px 22px;
    border-bottom: 1px solid #edf0f5;
}

.moderation-panel-header h2,
.moderation-actions-panel h2 {
    margin: 3px 0 0;
    color: #172033;
    font-size: 19px;
}

.moderation-panel-link {
    flex: 0 0 auto;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.moderation-panel-link:hover {
    color: #1d4ed8;
}

.moderation-list {
    padding: 7px 10px 10px;
}

.moderation-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 13px 11px;
    border-radius: 11px;
    transition: background 0.18s ease;
}

.moderation-list-item:hover {
    background: #f6f8fc;
}

.moderation-list-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f1f5ff;
    font-size: 16px;
}

.moderation-list-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.moderation-list-main strong {
    overflow: hidden;
    color: #263247;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moderation-list-main small {
    overflow: hidden;
    margin-top: 2px;
    color: #8993a5;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.moderation-list-arrow {
    color: #a4adbb;
    font-size: 22px;
    line-height: 1;
}

.moderation-empty {
    padding: 38px 20px;
    text-align: center;
}

.moderation-empty > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 20px;
}

.moderation-empty strong {
    display: block;
    color: #263247;
    font-size: 14px;
}

.moderation-empty p {
    margin: 4px 0 0;
    color: #8993a5;
    font-size: 12px;
}

.moderation-actions-panel {
    padding: 23px;
}

.moderation-actions-panel > div:first-child p {
    margin: 4px 0 18px;
    color: #8993a5;
    font-size: 13px;
}

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

.moderation-action-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 11px;
    align-items: center;
    padding: 15px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    background: #fafbfe;
    transition: 0.2s ease;
}

.moderation-action-card:hover {
    border-color: #cbdaf8;
    background: #f5f8ff;
    transform: translateY(-1px);
}

.moderation-action-card > span {
    grid-row: span 2;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4ff;
    font-size: 17px;
}

.moderation-action-card strong {
    color: #263247;
    font-size: 13px;
}

.moderation-action-card small {
    color: #8993a5;
    font-size: 10px;
}

@media (max-width: 950px) {
    .moderation-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .moderation-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .moderation-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 22px;
    }

    .moderation-hero-badge {
        width: 100%;
    }

    .moderation-stats,
    .moderation-action-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   ADMIN — GESTION DES SUJETS
   Ajustement de l'espace latéral
============================================================ */

.admin-sujets-page {
    margin-left: -20px;
    margin-right: 0;
}

@media (max-width: 850px) {
    .admin-sujets-page {
        margin-left: 0;
    }
}

/* ============================================================
   ADMIN — GESTION DES SUJETS
   Mise en page renforcée / responsive
============================================================ */

.admin-table-card {
    overflow: hidden;
}

.admin-table-card .table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.admin-table-card .admin-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
}

.admin-table-card .admin-table th,
.admin-table-card .admin-table td {
    vertical-align: middle;
}

.admin-table-card .admin-table th:nth-child(1),
.admin-table-card .admin-table td:nth-child(1) {
    width: 34%;
}

.admin-table-card .admin-table th:nth-child(2),
.admin-table-card .admin-table td:nth-child(2) {
    width: 14%;
}

.admin-table-card .admin-table th:nth-child(3),
.admin-table-card .admin-table td:nth-child(3) {
    width: 15%;
}

.admin-table-card .admin-table th:nth-child(4),
.admin-table-card .admin-table td:nth-child(4) {
    width: 13%;
}

.admin-table-card .admin-table th:nth-child(5),
.admin-table-card .admin-table td:nth-child(5) {
    width: 12%;
}

.admin-table-card .admin-table th:nth-child(6),
.admin-table-card .admin-table td:nth-child(6) {
    width: 12%;
}

.admin-table-card .admin-topic-title {
    width: 100%;
    max-width: none;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.admin-table-card .admin-topic-title a {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-card .topic-stats-admin {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    white-space: nowrap;
}

.admin-table-card .status-badge {
    white-space: nowrap;
}

.admin-table-card .moderation-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.admin-table-card .moderation-button {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
}

@media (max-width: 900px) {
    .admin-table-card .admin-table {
        min-width: 900px;
    }

    .admin-table-card .admin-table th,
    .admin-table-card .admin-table td {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 600px) {
    .admin-table-card .card-header {
        padding: 15px;
    }

    .admin-table-card .admin-table {
        min-width: 860px;
        font-size: 12px;
    }

    .admin-table-card .admin-table th {
        font-size: 9px;
        padding: 11px 10px;
    }

    .admin-table-card .admin-table td {
        padding: 12px 10px;
    }

    .admin-table-card .admin-topic-title a {
        font-size: 12px;
    }
}


/* ============================================================
   ADMIN — MISE EN PAGE SANS PANNEAU LATERAL
   Contenu centré sur toute la largeur disponible
============================================================ */

.admin-layout {
    display: block;
    width: 100%;
    min-height: calc(100vh - 68px);
}

.admin-content {
    width: 100%;
    max-width: 1500px;
    min-width: 0;
    margin: 0 auto;
    padding: 35px 30px;
}

.admin-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px 0 50px;
}

.admin-sujets-page {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .admin-content {
        padding: 20px 15px;
    }

    .admin-page {
        padding: 15px 0 35px;
    }
}


/* Header compact sans logo */
.site-header .header-inner {
    justify-content: center;
}

.site-header .main-navigation {
    margin-left: auto;
    margin-right: auto;
}

.admin-topbar-inner {
    min-height: 48px;
}

.admin-topbar .admin-user {
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   PAGE CONTACT
   -------------------------------------------------------------------------- */

.contact-page {
    margin-top: 10px;
}

.contact-page > form {
    width: calc(100% - 64px);
    max-width: 900px;
    margin: 28px auto 32px;
    padding: 0;
    box-sizing: border-box;
}

.contact-page > .alert {
    width: calc(100% - 64px);
    max-width: 900px;
    margin: 24px auto 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .contact-page > form {
        width: calc(100% - 36px);
        max-width: none;
        margin: 22px auto 24px;
        padding: 0;
        box-sizing: border-box;
    }

    .contact-page > .alert {
        width: calc(100% - 36px);
        margin: 18px auto 0;
        box-sizing: border-box;
    }
}

.contact-page .card-header {
    margin-bottom: 28px;
}

.contact-page .card-header h1 {
    margin-bottom: 6px;
}

.contact-page .card-header p {
    margin: 0;
    color: #64748b;
}

.contact-page .alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.contact-success {
    text-align: center;
    padding: 35px 20px 45px;
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    font-size: 30px;
    font-weight: 800;
}

.contact-success h2 {
    margin: 0 0 8px;
}

.contact-success p {
    margin: 0 auto 25px;
    max-width: 600px;
    color: #64748b;
}
