/* Variables de couleur pour une meilleure cohérence */
@import url("mainvariables.css");





/* Styles pour les sous-titres (H4) dans la section d'information */



/* Champs de saisie et de sélection */
 /* Ajouté pour les nouveaux champs de contact */
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 1em;
}

/* Labels pour les champs */
label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: white;
}



/* Conteneur principal du formulaire */
#form3 {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff; /* Fond blanc pour le formulaire */
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    text-align: left; /* Aligner le contenu à gauche à l'intérieur du conteneur */
    /* Retirer le background-image 'logo.png' pour un fond plus propre */
    background-image: none;
}

/* Styles des sections du formulaire */
form h3 {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    margin-top: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.5em;
    text-align: center;
}

/* Paragraphes d'instruction */
form p {
    font-weight: 500;
    color: var(--primary-color);
    background-color: transparent; /* Retirer le fond blanc */
    display: block; /* Mettre sur sa propre ligne */
    margin-bottom: 15px;
}


/* Section choix des pièces */
#choices {
    font-size: 1.1em;
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    display: flex; /* Utiliser flexbox pour aligner les choix */
    flex-wrap: wrap;
    gap: 15px;
}

.mespieces {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: var(--text-color);
    font-weight: normal;
    cursor: pointer;
}

.mespieces input[type="checkbox"] {
    margin-right: 8px;
    /* Personnalisation de la checkbox si nécessaire */
}

/* Indicateur de défilement */
b:has(span.pieces-arrow) { /* Correction légère pour cibler l'indicateur */
    display: block;
    text-align: center;
    /* margin: 15px 0; */
    color: var(--primary-color);
}
b:last-of-type { /* Liste des pièces fournies */
    display: block;
    /* margin-top: 25px; */
    font-size: 1.1em;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

/* Galerie des pièces à fournir */
#pieces-fournies {
    display: flex;
    overflow-x: auto; /* Défilement horizontal élégant */
    gap: 20px;
    padding: 10px 0;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
}

#pieces-fournies .pieces-element {
    min-width: 240px; /* Largeur minimale pour chaque élément */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    background-color: #f9f9f9;
    display: none; /* Ajout de !important pour s'assurer qu'ils sont masqués par défaut */
}

.pieces-element h4 {
    background-color: var(--primary); /* Un bleu plus vif */
    color: white;
    padding: 8px;
    margin-top: 0;
    border-radius: 6px 6px 0 0;
}

#pieces-fournies img {
    border: 3px solid var(--primary); /* Cadre d'accent */
    height: 150px;
    width: 150px;
    object-fit: cover; /* Assure que l'image couvre l'espace sans se déformer */
    border-radius: 4px;
}

/* Effet de survol amélioré */
.pieces-element img {
    transition: transform 0.3s ease, border-color 0.3s ease;
    filter: brightness(1); /* Réinitialiser la luminosité */
}
.pieces-element img:hover {
    transform: scale(1.1); /* Zoom plus modéré */
    border: 3px solid var(--primary-color);
    filter: brightness(1.1);
}

/* Section photos d'identité */
#photos {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

#photos h3 {
    margin-top: 0;
}

#mesphotos {
    display: flex;
    overflow-x: auto;
    justify-content: center;
    gap: 40px;
    padding: 10px 0;
}

#mesphotos div {
    min-width: 200px;
    text-align: center;
    margin: 0; /* Suppression du margin de 50px */
}

#mesphotos img {
    border: 4px solid var(--primary-color);
    height: 180px;
    width: 180px;
    border-radius: 50%; /* Carré à cercle */
    margin-top: 10px;
    object-fit: cover;
}