/* Style global */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f5f5f5;
    margin: 0;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

/* Formulaire */
form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    width: 100%;
}

/* Champ de formulaire */
fieldset {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 6px;
    background-color: #fafafa;
}

legend {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    padding: 0 10px;
}

/* Labels */
label {
    display: block;
    margin: 8px 0;
    font-size: 16px;
    color: #555;
}

/* Champs de saisie */
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #007BFF;
    outline: none;
}

textarea {
    resize: vertical;
}

/* Boutons */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Alignement et espacement */
.hautbas {
    margin-left: 15px;
}

.prothese-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

/* Styles pour la section ISO */
#iso-text {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-top: 20px;
    text-align: center;
}

/* Responsive design */
@media screen and (max-width: 1200px) {
    /* Pour les grands écrans comme les ordinateurs de bureau */
    form {
        max-width: 100%;
        padding: 25px;
    }
}

@media screen and (max-width: 1024px) {
    /* Tablettes en mode paysage */
    form {
        max-width: 90%;
    }

    fieldset {
        padding: 12px;
    }

    input[type="text"],
    input[type="date"],
    select,
    textarea {
        font-size: 15px;
        padding: 9px;
    }

    button {
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    /* Tablettes en mode portrait et petits écrans */
    form {
        max-width: 100%;
        padding: 15px;
    }

    fieldset {
        padding: 10px;
    }

    input[type="text"],
    input[type="date"],
    select,
    textarea {
        font-size: 14px;
        padding: 8px;
    }

    button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    /* Smartphones */
    form {
        padding: 12px;
    }

    input[type="text"],
    input[type="date"],
    select,
    textarea {
        font-size: 13px;
        padding: 7px;
    }

    button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .prothese-option {
        flex-direction: column;
        align-items: flex-start;
    }
}
