* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #fff;
    min-height: 100vh;
    position: relative;
}

/* Image de fond claire */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.imgur.com/sE0uEFd.jpeg') center center fixed;
    background-size: cover;
    filter: brightness(1.1);
    z-index: -1;
}

/* Header - CACHÉ */
.forum-header {
    display: none;
}

/* Navigation - MÊME STYLE QUE LE SITE */
.forum-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.forum-nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.forum-nav a {
    color: #999;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.forum-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.forum-nav a:hover::after {
    width: 100%;
}

.forum-nav a:hover,
.forum-nav a.active {
    color: #fff;
}

.back-home {
    background: rgba(230, 57, 70, 0.2) !important;
    color: #e63946 !important;
    border: 1px solid rgba(230, 57, 70, 0.5);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-steam {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1b2838, #2a475e);
    padding: 10px 20px;
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    border: 1px solid #66c0f4;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e, #1b2838);
    box-shadow: 0 0 20px rgba(102, 192, 244, 0.5);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e63946;
}

.btn-logout {
    background: rgba(255, 59, 59, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    color: #e63946 !important;
    border: 1px solid rgba(255, 59, 59, 0.5);
}

/* Alerts */
.alert {
    max-width: 1400px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 8px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Container */
.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 90px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

/* Catégories */
.forum-category {
    background: rgba(17, 17, 17, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.category-header {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(0, 0, 0, 0.3));
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.category-icon {
    font-size: 24px;
}

/* Forums */
.forum-list {
    list-style: none;
}

.forum-item {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.forum-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.forum-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.forum-info h3 a {
    color: #fff;
    text-decoration: none;
}

.forum-info h3 a:hover {
    color: #e63946;
}

.forum-info p {
    font-size: 13px;
    color: #888;
}

.forum-stats {
    text-align: right;
}

.stat-row {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.stat {
    font-size: 13px;
    color: #888;
}

.stat strong {
    color: #e63946;
}

.latest-post {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
    margin-left: 8px;
}

.badge-locked {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.badge-pinned {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid #f1c40f;
}

/* Sidebar */
.sidebar-widget {
    background: rgba(17, 17, 17, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sidebar-widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-box {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-box .number {
    font-size: 24px;
    font-weight: 900;
    color: #e63946;
    display: block;
}

.stat-box .label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.recent-posts {
    list-style: none;
}

.recent-post {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-title {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.recent-post-title:hover {
    color: #e63946;
}

.recent-post-meta {
    color: #666;
    font-size: 11px;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #e63946, #cc0000);
    color: #fff;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Boutons admin spécifiques */
button[type="submit"],
input[type="submit"],
.admin-button {
    background: linear-gradient(135deg, #e63946, #cc0000);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.admin-button:hover {
    background: linear-gradient(135deg, #ff4555, #e63946);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
    transform: translateY(-2px);
}

/* Selects admin */
select {
    background: rgba(17, 17, 17, 0.9);
    color: #fff;
    padding: 10px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

select:hover,
select:focus {
    border-color: rgba(230, 57, 70, 0.8);
    background: rgba(17, 17, 17, 1);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

/* Tables admin */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: rgba(230, 57, 70, 0.2);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    border-bottom: 2px solid rgba(230, 57, 70, 0.5);
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Checkboxes */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e63946;
}

/* Responsive */
@media (max-width: 1024px) {
    .forum-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .forum-item {
        grid-template-columns: 1fr;
    }
    
    .forum-icon {
        display: none;
    }
    
    .forum-stats {
        text-align: left;
    }
    
    .stat-row {
        justify-content: flex-start;
    }
}
