/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
  
    width: 600px;
    margin-top: 10px; /* Marge en haut */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
    background-color: #2196F3;
    text-align: center;
    color: #000000;
    border-radius: 5px;
    margin-bottom: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Formulaires */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input[type="text"],
textarea {
    padding: 10px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100%;
    box-sizing: border-box;
}

button {
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Formulaire pour créer un salon (couleur de fond bleu clair) */
#create-salon-form {
    background-color: #c48a4c;
    border-radius: 4px;
}

/* Formulaire pour poser une question (couleur de fond vert clair) */
#join-salon-form {
    background-color: #D3D3D3;
    border-radius: 4px;
}

/* Formulaire pour voir les questions (couleur de fond orange clair) */
#view-questions-form {
    background-color: #c48a4c;
    border-radius: 4px;
}
label{
    padding-top: 8px;
    padding-left: 10px;
   font-weight: bold;
   }

/* Espacement entre les formulaires */
form {
    margin-bottom: 20px;
}

/* Titres des formulaires */
h2 {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

h3 {
    text-align: center;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}

/* Amélioration de l'apparence des champs */
input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button:focus {
    outline: none;
}

/* Stylisation du formulaire pour mobile */
@media screen and (max-width: 600px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    button {
        font-size: 14px;
    }

    input[type="text"], textarea {
        font-size: 14px;
    }
}

/* Réinitialisation des styles de lien par défaut */
a {
    text-decoration: none;
    color: inherit; /* Hérite la couleur du parent */
}

/* Style pour le lien "Accueil" */
a.participant-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 20px; /* Espacement entre le bouton et le formulaire */
}

a.participant-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Léger effet de survol */
}

a.participant-button:focus {
    outline: none;
}
