/* Style général */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Labels */
label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

/* Champs de formulaire */
select, textarea, input[type="checkbox"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Zone de texte */
textarea {
    height: 150px;
    resize: none;
}

/* Checkboxes groupés */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    flex: 1 1 calc(50% - 10px);
    font-weight: normal;
    display: flex;
    align-items: center;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Boutons */
button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #ff4d4d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: center;
}

button:hover {
    background-color: #cc0000;
}

button span {
    margin-right: 10px;
    font-size: 18px;
}

/* Zone de texte en lecture seule */
textarea:read-only {
    background: #f5f5f5;
    color: #000;
    border: 1px solid #000;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    select, textarea, input {
        font-size: 14px;
    }

    button {
        padding: 12px;
        font-size: 14px;
    }
}

/* Checkboxes groupés sur une seule ligne */
.checkbox-group {
    display: flex;
    flex-wrap: wrap; /* Permet d'aller à la ligne si la largeur est insuffisante */
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Style normal de la checkbox */
.checkbox-group input[type="checkbox"] {
    display: none; /* Cache la case à cocher réelle */
}

/* Style lorsqu'une checkbox est cochée */
.checkbox-group input[type="checkbox"]:checked + label {
    background-color: #ff4d4d;
    color: white;
    border-color: #ff4d4d;
}

/* Ajout d'un checkmark lorsque la case est cochée */
.checkbox-group input[type="checkbox"]:checked + label::before {
    content: '✔';
    font-size: 14px;
    margin-right: 5px;
}

