/* --- En-tête --- */
.page-header {
    height: 40vh; /* Moins haut que l'index */
    min-height: 350px;
    background-image: linear-gradient(rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 1)), url('../images_site/image_3.png');
    background-size: cover;
    background-position: center;
    padding-top: 80px; /* Compense la navbar fixe */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-content {
    background-color: transparent;
    padding-bottom: 100px;
}

/* --- Barre d'outils et Inputs --- */
.dark-input {
    background-color: #121612 !important;
    border: 1px solid #1e291e !important;
    color: #ffffff !important;
    border-radius: 6px;
}

.dark-input:focus {
    border-color: #4ade80 !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 222, 128, 0.25) !important;
}

.dark-input::placeholder {
    color: #6b7280;
}

/* --- Liste des Sujets (Rows) --- */
.forum-row {
    background-color: #121612;
    border: 1px solid #1e291e;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.forum-row:hover {
    border-color: #2a3a2a;
    background-color: #151a15;
}

.forum-thumbnail {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.forum-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.15rem;
}

.hover-green:hover {
    color: #4ade80 !important;
}

.text-gray { color: #9ca3af; }
.text-orange { color: #e85d04 !important; }
.bg-custom-dark { background-color: #0c100c; }
.border-custom { border: 1px solid #1e291e; }

.category-badge { font-size: 0.7rem; letter-spacing: 0.5px; }
.tag-badge { font-size: 0.65rem; font-weight: normal; }

/* --- Modale personnalisée (Surcouche) --- */
.custom-modal {
    display: none; /* Masqué par défaut via JS */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content-dark {
    background-color: #0b0d0c;
    border: 1px solid #1e291e;
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}

.btn-close-custom {
    background: none;
    border: none;
    transition: color 0.2s;
}
.btn-close-custom:hover { color: #dc2626 !important; }

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Pagination Custom --- */
.pagination-dark .page-link {
    background-color: #121612;
    border-color: #1e291e;
    color: #9ca3af;
}
.pagination-dark .page-link:hover {
    background-color: #1e291e;
    color: #ffffff;
}
.pagination-dark .page-item.active .page-link {
    background-color: #e85d04;
    border-color: #e85d04;
    color: #ffffff;
}