/* 
 * Correctifs spécifiques pour le formulaire mobile
 * Solution directe pour résoudre les problèmes d'affichage
 */

/* Reset complet pour éviter les débordements */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Conteneur principal */
.container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Section de demande */
#demande {
    overflow: hidden;
}

#demande .container {
    display: block !important;
}

/* Formulaire */
form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
}

/* Étapes du formulaire */
.form-steps {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.form-step {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Champs de formulaire */
.form-group {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

input, select, textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
}

/* Correction spécifique pour les cartes d'information */
.info-card {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 15px !important;
}

/* Correction pour le bouton de demande */
.btn-primary, .btn-secondary {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}

/* Correction pour les textes */
h1, h2, h3, p {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Correction spécifique pour le formulaire de demande de pièce */
@media (max-width: 768px) {
    /* Forcer la largeur correcte */
    #demande .container,
    #demande form,
    #demande .form-group,
    #demande .form-row,
    #demande input,
    #demande select,
    #demande textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Forcer l'affichage en colonne */
    #demande .form-row {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Assurer que le texte est lisible */
    #demande label {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin-bottom: 5px !important;
        display: block !important;
    }
    
    /* Améliorer la visibilité des champs */
    #demande input, 
    #demande select, 
    #demande textarea {
        padding: 12px !important;
        font-size: 16px !important;
        border: 2px solid #ddd !important;
    }
    
    /* Correction pour les cartes d'information */
    .info-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
}
