body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(288, 57%, 82%);
}


/* barre de nav */
.navbar {
    background-color: #1f1f1f;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);

}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar ul li a {
    padding: 10px 15px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: #333333;
}

/* Header */
header {
    text-align: center;
    padding: 20px 10px;
    background-color: #1f1f1f;
    border-bottom: 1px solid #333333;
}

header h1 {
    margin: 0;
    color: hsl(267, 100%, 96%);
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}
/* Main */
main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    color: #ffffff;
    margin-bottom: 15px;
}

.billet {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.billet:hover {
    transform: translateY(-5px);
}

.billet h3 {
    margin: 0 0 10px;
    color: #ffffff;
}

.billet p {
    margin: 0 0 10px;
}

/* Boutons */
button, .billet a {
    display: inline-block;
    background-color: #ffffff;
    color: #121212;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .billet a:hover {
    background-color: hsl(288, 57%, 82%);
}

/* Sections commentaires */
.comments-container {
    margin-top: 15px;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
}

.commentaire {
    display: flex;         
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #2b2b2b;
    border-radius: 5px;
}

.commentaire p {
    margin: 5px 0;
}


.commentaire img {
    width: 80px;  
    height: 80px;
    border-radius: 50%; 
    object-fit: cover; 
    margin-right: 10px;
}


/* Formulaire */
form {
    margin-top: 20px;
    background-color: #2b2b2b;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

form h2 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin-bottom: 20px;
}

label {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 5px;
    display: inline-block;
}

input[type="text"], input[type="password"] {
    width: 100%; 
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
    background-color: #2b2b2b;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #bb86fc;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: hsl(288, 57%, 82%);
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: hsl(0, 0%, 100%);
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 30px 0;
}


/* Message de succès ou erreur */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
}

.alert-danger {
    background-color: #db6993;
    color: #fff;
}

.alert-success {
    background-color: rgb(76, 135, 175);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button {
        font-size: 14px;
    }
}

textarea, input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #333;
    background-color: #2b2b2b;
    color: #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
}

textarea::placeholder, input::placeholder {
    color: #757575;
}

textarea:focus, input:focus {
    border-color: #bb86fc;
    outline: none;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .billet {
        padding: 10px;
    }

    button, .billet a {
        width: 100%;
        text-align: center;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

table th, table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #333333;
}

table th {
    background-color: #2b2b2b;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

table tr:hover {
    background-color: #333333;
    transition: background-color 0.2s ease-in-out;
}

table tr:last-child td {
    border-bottom: none;
}


table select {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

table select:focus {
    border-color: #bb86fc;
    outline: none;
}

table a {
    color: #bb86fc;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

table a:hover {
    background-color: #9181ba;
    color: #ffffff;
}

.profil-header {
    text-align: center;
    margin-bottom: 20px;
}

.photo-profil {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid #dabbff; 
    margin-bottom: 10px;
}

.login {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}


/* Responsive */
@media (max-width: 768px) {
    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 10px;
    }
}
