body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #000000; /* fond noir global */
    color: #e0e0e0;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center; /* centrage horizontal */
    align-items: center;     /* centrage vertical */
    flex-direction: column;  /* éviter déséquilibre */
}

h1, h2, h3 {
    color: #a259ff;
}

a {
    text-decoration: none;
    color: #a259ff;
}

a:hover {
    color: #d1b3ff;
}

.button-login {
    background-color: #4b00ff;
    border: none;
    margin-top: 10px;
    padding: 10px 20px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.button-login:hover {
    background-color: #6f33ff;
}

input {
    padding: 10px;
    border-radius: 6px;
    border: none;
    margin-bottom: 10px;
    width: 90%;
    background-color: #1a1a2e;
    color: white;
}

input:focus {
    outline: none;
    box-shadow: 0 0 5px #a259ff;
}

.login-box {
    background-color: #1a1a2e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.channel {
    background-color: #1a1a2e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    width: 200px;
    text-align: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-box {
    background-color: #2a1a4f;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
    width: 300px;  /* largeur fixe */
    text-align: center;
}

.logout {
    position: fixed;
    top: 20px;
    right: 20px;
    font-weight: bold;
}

.error {
    color: #ff4c4c;
    text-align: center;
    margin-bottom: 10px;
}