/* Styles de base */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 45rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem;
    font-size: 1rem;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

button {
    display: block;
    margin: 0 auto 1.5rem auto;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:focus {
    outline: 2px solid #ffcc00;
}

#chat {
    background-color: #fafafa;
    border: 1px solid #e1e1e1;
    padding: 1.25rem;
    border-radius: 0.5rem;
    max-height: 18rem;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

li img {
    border-radius: 50%;
    margin-right: 1rem;
    width: 3rem;
    height: 3rem;
}

li strong {
    color: #007bff;
}

li em {
    color: #555;
}

li span {
    margin-left: auto;
    color: #999;
    font-size: 0.875rem;
}

#chat p {
    text-align: center;
    color: #777;
}

/* Formulaire de commentaire */
form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form textarea {
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #ddd;
    resize: none;
    background-color: #f9f9f9;
    font-size: 1rem;
}

form textarea:focus {
    outline: 2px solid #007bff;
}

form input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

form input[type="submit"]:hover {
    background-color: #218838;
}

/* Liens */
p a {
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}

p a:focus {
    outline: 2px solid #ffcc00;
}

/* Erreurs */
.error {
    color: red;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* Boutons Commenter et Voir les commentaires */
button#btn_commenter, button#btn_commentaires {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

button#btn_commenter:hover, button#btn_commentaires:hover {
    background-color: #218838;
}
