/* Fichier : css/params.css */

/* --- 1. ISOLATION DU MODULE --- */
#params-view {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
}

#params-view h3 {
    color: #343a40;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* --- 2. LES BOUTONS D'IMPORT / EXPORT (En haut) --- */
#params-view .params-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    background: #e9ecef;
    padding: 15px;
    border-radius: 8px;
}

#params-view #btn-export-config {
    background-color: #0d6efd; /* Bleu */
    color: white;
}

#params-view #btn-import-config {
    background-color: #6c757d; /* Gris */
    color: white;
}

/* On cache l'input file moche */
#params-view #import-config-input {
    display: none; 
}

/* --- 3. LES CARTES (Sections Ajouter / Supprimer) --- */
#params-view .pos-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 25px; /* Espace entre les cartes */
    border-left: 5px solid #17a2b8; /* Une barre Cyan pour décorer */
}

#params-view h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

/* --- 4. LES FORMULAIRES --- */
#params-view form,
#params-view #params-selection-delete {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap; /* Pour que ça passe sur mobile */
}

/* Les champs de saisie */
#params-view input[type="text"],
#params-view select {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    flex-grow: 1; /* Prend la place disponible */
}

/* Les boutons d'action (Ajouter) */
#params-view button[type="submit"] {
    background-color: #198754; /* Vert */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Les boutons de suppression */
#params-view .delete-btn {
    background-color: #dc3545; /* Rouge */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#params-view button:hover {
    opacity: 0.9;
}