/* Conteneur principal du formulaire */
.admin-form, 
form {
    width: 95% !important;
    max-width: 1200px !important;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin: 20px auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: #fff;
    display: flex;
    flex-wrap: wrap; /* Permet le passage à la ligne */
    gap: 20px;
}

.admin-form h2 {
    width: 100%;
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Chaque groupe de champ (Label + Input) */
.form-group {
    display: flex;
    flex-direction: column; /* Label au-dessus de l'input */
    margin-bottom: 0; /* Géré par le gap du form */
    flex: 1 1 300px; /* Largeur min 300px, s'étend si possible */
    width: auto !important; /* On annule le 80% */
}

/* Cas particulier pour les champs larges (Description) */
.form-group:has(textarea),
.form-group:has(.image-picker-component) {
    flex: 1 1 100%; /* Prend toute la largeur */
}

.form-label {
    flex: none !important;
    font-weight: 600;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.95rem;
}

.form-input, 
.form-control {
    width: 100% !important;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Bouton enregistrer en plein milieu ou à droite */
form button[type="submit"],
.form-button {
    flex: 1 1 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

form button[type="submit"]:hover {
    background-color: #2980b9;
}

/* Style spécifique pour l'aperçu d'image dans MetaForm */
.image-preview {
    margin-top: 10px;
    max-height: 150px;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* On garde tes styles existants pour les petits éléments */
.info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    text-align: center;
    line-height: 18px;
    font-size: 11px;
    cursor: help;
    margin-left: 8px;
}
