/* Formulaire scanner */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 90%; /*CAR NOUS AVONS CONTAINER SIZE*/
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    
}

form .form_horizontal {
    display: flex;
    flex-direction:column;
    gap:30px;
    width:90%;
    max-width:1500px;
    margin:0 auto 10px auto;
    padding:20px; border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
    font-family:Arial, sans-serif;
}

    .field-vertical.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px 20px;
    min-width: 0;
    }

    /* Fieldset vertical sans bordure */
    .field-horizontal {
        display: flex;
        gap:20px;
        border: none;
        margin: 0 0 20px 0;
        padding: 10px;
    }

    form.form-group{
        display: flex;
        align-items: center;
        row-gap: 10px; /* espace horizontal entre label et champ */
        }

/*form.checkbox-custom .box {
    display: none;
}*/

form select {
    padding: 5px ;
    font-size: 1em;
    box-sizing: border-box;
    height:30px;
}

/* Champ Text */
form input[type="text"] {
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}*/

form input[type="text"]:focus {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, .12);
}

form input::placeholder {
    color: #9ca3af;
}

/* Bouton */
form.btn-select {
    padding: 11px 16px;
    border: none;
    border-radius: 6px;
    /*background: #374151;*/
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

form .btn-select:hover {
    background: #1f2937;
}

/* Hover pour les boutons */
form button.btn:hover {
    background-color: #0056b3;
}

form.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Checkbox */
form.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

form.checkbox-custom input {
    accent-color: #374151;
    width: 16px;
    height: 16px;
    cursor: pointer;
}





/* Legend */
fieldset.field-vertical legend {
    display: block; 
    text-align: center;     /* essentiel pour que margin-bottom fonctionne */
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 12px; /* espace entre legend et input/select */
}

/* Input et select prennent toute la largeur */
.field-vertical input[type="text"],
.field-vertical select {
    display: block;      /* s’assure que width: 100% fonctionne */
    width: 100%;
    margin-bottom : 15px;
    padding: 6px 8px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Formulaire global en flex vertical avec espace entre ses enfants */
/*form.selection {
    display: flex;
    flex-direction: column;
    row-gap: 15px; /* espace vertical entre fieldsets et boutons */
/*}

/*form.selection button.btn {
    align-self: center; /* centre horizontalement */
    /*width: 33%;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}*/

/*!!!!*/
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px; /*Espacement Lignes*/
    margin: 230px auto;
    width: 100%;
}

/* Une ligne de "formulaire" */
.contact-form .form-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 30px; /*Espacement Colonnes*/
}

/* Label */
.contact-form .form-row .label {
    width: 200px;          /* largeur fixe du label */
    font-weight: bold;
    text-align: left;
}

/* Valeur (comme un input affiché) */
.contact-form .form-row .value {
    flex: 1;               /* prend tout le reste */
    text-align: left;
}

}

/* Chaque ligne dans un pavé */
.contact-info .info-block .info-row {
    display: flex;
    gap: 10px;            /* espace entre label et valeur */
    align-items: flex-start;
    justify-content: flex-start; /* aligné à gauche */
}

/* Label et valeur */
.contact-info .info-row .label {
    font-weight: bold;
}

.contact-info .info-row .value {
    white-space: nowrap;   /* pas de retour à la ligne dans la valeur */
}

/* Formulaire Add/Edit aligné en ligne */
.frmShowAddEdit {
    display: flex;
    flex-direction: column;
    gap: 15px; /* espace vertical entre les lignes */
    max-width: 800px;
    margin: 25px auto 50px auto; /* centré horizontalement */
}

.frmShowAddEdit fieldset{
    margin-bottom:50px;
} 

.frmShowAddEdit fieldset legend{
    margin-bottom:20px;
}     

/* Groupe label + input/select/textarea */
.frmShowAddEdit .form-group {
    display: flex;
    align-items: center;
    row-gap: 10px; /* espace horizontal entre label et champ */
   margin-bottom:10px;
}

/* Label fixe */
.frmShowAddEdit .form-group label {
    width: 250px;
    text-align: left;
    font-weight: bold;
}

/* Inputs, textarea et select prennent le reste de la ligne */
.frmShowAddEdit .form-group input,
.frmShowAddEdit .form-group textarea,
.frmShowAddEdit .form-group select {
    flex: 1;
    padding: 6px 8px;
    font-size: 1em;
}

/* Textarea redimension verticale */
.frmShowAddEdit .form-group textarea {
    resize: vertical;
}

.frmShowAddEdit .btn-edit:hover {
    background-color: #0056b3;
}

/* Tooltip simple */
.frmShowAddEdit .tooltip {
    cursor: help;
    border-bottom: 1px dotted #000;
}

.frmDoubleColumn {
        display: grid;
        /*Correspond à .frmDoubleColumn {display: grid;        grid-template-columns: 1fr 1fr;}*/
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 15px;
        align-items: end;
    }

/* Fieldset vertical sans bordure */
fieldset.field-vertical {
    border: none;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}   

.field-vertical.field-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    min-width: 0;
}

.field-grid-2 .field select,
.field-grid-2 .field input {
    width: 100%;
}

.field-full {
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width:700px) {
  .form-ui .form-grid-2,.form-ui .form-grid-3 {grid-template-columns:1fr}
  .form-ui .form-field--horizontal {grid-template-columns:1fr;gap:6px}
  .form-ui .form-actions {align-items:stretch}
  .form-ui .form-actions .btn,.form-ui .form-actions button {flex:1 1 100%}



/* Responsive */

