/* ===========================
   PAGE ACCUEIL
=========================== */
.body {
    /* background-image: url(/img/background.jpg); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-repeat: no-repeat; */
    /* filter: blur(5px); */
}

.hero {
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 0 30px;
}

.overlay {
    text-align: center;
    margin-bottom: 40px;
}


.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(78, 164, 255, 0.3);
}

.hero h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cards {
    display: flex;
    flex-direction: column;
    /* Les cartes les unes sous les autres */
    gap: 25px;
    width: 100%;
    padding: 40px 5% 100px;
}

.card {
    width: 100%;
    /* Prend toute la largeur du conteneur */
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all .3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(78, 164, 255, .3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: -webkit-linear-gradient(#4ea4ff, #8352fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p,
.card a {
    color: var(--text-muted);
}

/* ===========================================
   BARRE DE STATISTIQUES
=========================================== */

.forum-stats {
    margin-top: 60px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.forum-stat {

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 28px;

    min-width: 220px;

    background: rgba(15, 20, 30, .72);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;

    backdrop-filter: blur(18px);

    transition: .3s;
}

.forum-stat:hover {

    transform: translateY(-6px);

    border-color: #4ea4ff;

    box-shadow: 0 12px 30px rgba(78, 164, 255, .20);

}

.forum-stat i {

    font-size: 32px;

    color: #4ea4ff;

    width: 45px;

    text-align: center;

}

.forum-stat div {

    display: flex;

    flex-direction: column;

}

.forum-stat span {

    font-size: 30px;

    font-weight: 800;

    color: #ffffff;

    line-height: 1;

}

.forum-stat small {

    margin-top: 6px;

    color: #9ca8bb;

    text-transform: uppercase;

    letter-spacing: 2px;

    font-size: 12px;

}

.forum-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}




.forum-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}



.stats {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 80px 5%;
    flex-wrap: wrap;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(10, 12, 18, 0.8), rgba(0, 0, 0, 0));
}

.stats div {
    text-align: center;
}

.stats h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 900;
}

.stats p {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forum-card {
    width: 100%;
    min-height: 120px;

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

    padding: 25px 30px;

    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 16px;

    transition: all 0.25s ease;
    cursor: pointer;
}

.forum-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(10, 12, 18, 0.9);
}

.forum-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.forum-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.forum-title-description h2 {
    margin: 0 0 8px 0;

    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.forum-title-description p {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.55);

    max-width: 750px;
}

.forum-content {

    display: none;
    border-top: 1px solid rgba(255, 255, 255, .08);

}

.forum-card.active .forum-content {

    display: block;

}

.subforum {

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

    padding: 20px 25px;

    text-decoration: none;
    color: white;

    transition: .3s;

}

.subforum:hover {

    background: rgba(255, 255, 255, .05);

}

.sub-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.sub-preview span {

    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    color: var(--text-muted);
    font-size: .85rem;

}

.forum-details {
    width: 100%;
    padding: 0 30px 30px;
}

.forum-card.active .forum-details {

    max-height: 1000px;

}

.forum-info {
    flex: 1;
    min-width: 0;
}

.forum-counts {
    display: grid;

    grid-template-columns: repeat(3, 120px);

    gap: 15px;

    margin-left: 40px;
}

.forum-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 65px;

    padding: 10px;

    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-count i {
    font-size: 20px;
    color: #60a5fa;
}

.forum-count div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.forum-count strong {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.forum-count span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    color: rgba(255, 255, 255, 0.45);
}


.forum-container {
    width: 100%;
    max-width: 1400px;
    margin: 200px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-buttons {

    display: flex;
    align-items: center;
    gap: 15px;

}

.add-subforum {

    width: 35px;
    height: 35px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    background: var(--primary);
    color: white;

}

.forum-details {
    display: none;
}

.forum-card.active .forum-details {
    display: block;
}


.modal {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .7);

    display: none;

    justify-content: center;

    align-items: center;

    z-index: 9999;

}

.modal.active {

    display: flex;

}

.modal-content {

    width: 500px;

    background: #1b1f2b;

    border-radius: 15px;

    padding: 30px;

}

.modal-content h2 {

    margin-bottom: 20px;

}

.btn-create-category {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-create-category:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.35);
}

.btn-create-category i {
    font-size: 13px;
}

/* ======================================== 
BOUTON SUPPRESSION CATÉGORIE - STAFF 
======================================== */
.btn-delete-category {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 10px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-delete-category:hover {
    color: #fff;
    background: #dc2626;
    border-color: #ef4444;
    transform: translateY(-2px);
}

.btn-delete-category i {
    font-size: 14px;
}

.add-subforum {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    background: red !important;
    color: white !important;
    border: 2px solid yellow !important;
    z-index: 99999 !important;
}

.modal input,
.modal textarea {

    width: 100%;

    margin-bottom: 15px;

    padding: 12px;

    border-radius: 8px;

    border: none;

}

.modal textarea {

    height: 120px;

    resize: none;

}

.modal-buttons {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

}

/* ===========================
   SUJET
=========================== */

.topic-header {

    margin: 40px auto;

    text-align: center;

}

.topic-header h1 {

    font-size: 40px;

    color: white;

    margin-bottom: 10px;

}

.topic-header p {

    color: #bfc7d5;

}

.back-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    color: #4ea4ff;

    text-decoration: none;

}

.back-button:hover {

    color: white;

}

.post-card {

    display: flex;

    gap: 25px;

    background: rgba(20, 24, 34, .75);

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 18px;

    padding: 25px;

    margin-bottom: 25px;

    backdrop-filter: blur(15px);

}

.post-user {

    width: 180px;

    text-align: center;

}

.post-user img {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #4ea4ff;

}

.post-user i {

    font-size: 80px;

    color: #4ea4ff;

}

.post-user h3 {

    margin-top: 15px;

    color: white;

}

.post-content {

    flex: 1;

}

.post-info {

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    padding-bottom: 10px;

    margin-bottom: 20px;

    color: #9aa5b5;

}

.post-message {

    color: white;

    line-height: 1.8;

    white-space: pre-wrap;

}

.reply-box {

    margin-top: 50px;

    background: rgba(20, 24, 34, .75);

    padding: 30px;

    border-radius: 18px;

    border: 1px solid rgba(255, 255, 255, .08);

}

.reply-box h2 {

    margin-bottom: 20px;

    color: white;

}

.reply-box textarea {

    width: 100%;

    min-height: 220px;

    resize: vertical;

    background: #111722;

    border: 1px solid rgba(255, 255, 255, .08);

    border-radius: 12px;

    padding: 20px;

    color: white;

    margin-bottom: 20px;

    font-size: 15px;

}

.forum-btn {

    background: #4ea4ff;

    color: white;

    border: none;

    border-radius: 10px;

    padding: 15px 30px;

    cursor: pointer;

    font-size: 16px;

}

.forum-btn:hover {

    background: #2b8cff;

}

.forum-warning {

    margin-top: 40px;

    text-align: center;

    color: #ff6666;

    font-weight: bold;

}

#editor {

    min-height: 250px;

    background: #fff;

    color: #000;

    border-radius: 0 0 12px 12px;

}

.ql-toolbar {

    border-radius: 12px 12px 0 0;

}

.ql-container {

    font-size: 16px;

}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .stats {
        gap: 50px;
    }

    .job-card {
        padding: 18px 20px;
    }
}

@media (max-width: 900px) {

    .forum-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .forum-counts {
        width: 100%;
        margin-left: 0;

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

    .forum-count {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 15px;
    }
}

@media (max-width: 600px) {

    .forum-counts {
        grid-template-columns: 1fr;
    }

    .forum-count {
        justify-content: flex-start;
    }
}