@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&family=Roboto:wght@300;400;500&display=swap');

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

body {
    background: radial-gradient(ellipse at top, #0a0f1e, #03060c);
    background-attachment: fixed;
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Conteneur principal centré */
.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-content .container {
    max-width: 1400px;
    width: 100%;
    background: rgba(10, 20, 30, 0.75);
    backdrop-filter: blur(3px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.1);
    border: 1px solid rgba(0, 180, 255, 0.3);
}

/* ========== MENU INTÉGRÉ (HORIZONTAL) ========== */
.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(76, 201, 240, 0.3);
    background: transparent;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 30, 45, 0.5);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 60px;
    padding: 8px 20px;
    font-weight: 500;
    color: #ccf4ff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 2px #4cc9f0);
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(44, 95, 138, 0.7), rgba(26, 51, 71, 0.9));
    border-color: #4cc9f0;
    transform: translateY(-2px);
    color: white;
}

.nav-item.active {
    background: linear-gradient(135deg, #0f2c3f, #0a1a2a);
    border-bottom: 2px solid #4cc9f0;
    border-radius: 60px;
    color: white;
    text-shadow: 0 0 5px #4cc9f0;
}

/* ========== TYPOGRAPHIE ET COMPOSANTS ========== */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    letter-spacing: 1px;
}
h1 {
    color: #4cc9f0;
    text-shadow: 0 0 8px #0077ff;
    border-bottom: 2px solid #4cc9f0;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}
a {
    color: #80d8ff;
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    color: #b3e4ff;
    text-shadow: 0 0 5px #00aaff;
}
.btn, button, .delete-btn, .admin-link, .logout, form button {
    background: linear-gradient(135deg, #1e2a3a, #0f1722);
    border: 1px solid #2c5f8a;
    color: #ccf4ff;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn:hover, button:hover, .delete-btn:hover, .admin-link:hover, .logout:hover, form button:hover {
    background: linear-gradient(135deg, #2c5f8a, #1a3347);
    border-color: #4cc9f0;
    color: white;
    box-shadow: 0 0 12px rgba(76, 201, 240, 0.5);
    transform: translateY(-1px);
}
form {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #2c5f8a;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
form input, form select {
    background: #0a1018;
    border: 1px solid #2c5f8a;
    padding: 10px 14px;
    border-radius: 32px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
form input:focus, form select:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 8px #4cc9f0;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
}
th, td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid #2c5f8a;
}
th {
    background: #0f212f;
    color: #4cc9f0;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
}
tr:hover {
    background: rgba(76, 201, 240, 0.1);
}
.badge {
    background: #0f2c3f;
    border: 1px solid #4cc9f0;
    color: #bbf0ff;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: bold;
}
.logout, .admin-link {
    float: right;
    margin-left: 10px;
}

/* ========== BLOC RSS ========== */
.rss-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid rgba(0, 180, 255, 0.2);
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.rss-block h2 {
    border-left: 4px solid #4cc9f0;
    padding-left: 15px;
    margin-bottom: 20px;
}
.rss-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}
.rss-list {
    list-style: none;
    padding: 0;
}
.rss-item {
    padding: 15px;
    border-bottom: 1px solid rgba(76, 201, 240, 0.2);
    transition: 0.2s;
}
.rss-item:hover {
    background: rgba(76, 201, 240, 0.1);
    border-radius: 12px;
    transform: translateX(5px);
}
.rss-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ccf4ff;
    display: block;
    margin-bottom: 8px;
}
.rss-title:hover {
    color: #4cc9f0;
    text-decoration: underline;
}
.rss-date {
    font-size: 0.8rem;
    color: #80d8ff;
    display: inline-block;
    background: rgba(0, 180, 255, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.rss-description {
    color: #d0d0d0;
    font-size: 0.9rem;
}
.rss-error {
    color: #ffaa66;
    text-align: center;
    padding: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
    body {
        padding: 10px;
    }
    .navbar {
        justify-content: center;
    }
    .nav-item {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    form {
        flex-direction: column;
        align-items: stretch;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    td {
        border: none;
        position: relative;
        padding-left: 50%;
    }
}