.settings-form {
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.settings-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vich-image {
    margin-bottom: 1rem;
}

.vich-image img {
    max-width: 200px;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.vich-image .form-check {
    margin-top: 0.5rem;
}

.image-preview-container {
    margin-bottom: 1rem;
}

.current-image {
    position: relative;
    margin-bottom: 1rem;
}

.current-image img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.current-file-name {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.image-upload {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group {
    padding: 0 10px;
    margin-bottom: 1rem;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 768px) {
    .col-md-4, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.color-picker-wrapper {
    position: relative;
    width: 100%;
}

.color-picker-trigger {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.color-picker-trigger:hover {
    border-color: #adb5bd;
}

.color-picker-trigger i {
    color: rgba(0, 0, 0, 0.5);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-picker-trigger:hover i {
    opacity: 1;
}

.color-picker {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    cursor: pointer;
}

/* Styles pour le sélecteur Pickr */
.pcr-app {
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.pcr-app .pcr-interaction .pcr-type.active {
    background: #e50914;
}

.pcr-app .pcr-interaction .pcr-save {
    background: #28a745;
}

.pcr-app .pcr-interaction .pcr-clear {
    background: #dc3545;
}

/* Ajustements responsifs */
@media (max-width: 768px) {
    .color-picker-wrapper {
        margin-bottom: 1rem;
    }
}

.pickr-button {
    width: 100%;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out;
}

.pickr-button:hover {
    border-color: #80bdff;
}

.pickr-container {
    height: 38px;
    width: 100%;
    border: 2px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pickr-container:hover {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.pcr-button {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 2px solid #ced4da !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcr-button:hover {
    border-color: #80bdff !important;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.pcr-button.clear {
    background-image: none !important;
}

.pcr-app {
    z-index: 1100; /* S'assurer que le picker apparaît au-dessus des autres éléments */
}

.delete-image {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
}

.delete-image:hover {
    background: rgba(220, 53, 69, 1);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c82333;
}

.hide-preview .vich-image img,
.hide-preview .vich-image .form-check {
    display: none !important;
}

.current-image img.banner-preview {
    max-width: 300px;
    object-fit: cover;
    height: 100px;
}

.current-image.banner-preview {
    max-width: 100%;
}

.current-image.banner-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-group {
    padding: 0 15px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-group.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Ajoutez ces styles pour améliorer l'interface */

/* Container principal */
.admin-settings {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.page-header h1 {
    color: #343a40;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

/* Sections de paramètres */
.settings-section {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.045);
    transition: transform 0.2s, box-shadow 0.2s;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.settings-section h2 {
    color: #495057;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Sélecteurs de couleurs */
.pickr-container {
    height: 2.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.pcr-app {
    z-index: 1100; 
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
}

/* Gestionnaire d'images amélioré */
.image-preview-container {
    position: relative;
    margin-bottom: 1rem;
}

.image-preview {
    width: 100%;
    height: 150px;
    border-radius: 0.375rem;
    background-size: cover;
    background-position: center;
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    display: none;
}

.current-image {
    position: relative;
    margin-bottom: 1rem;
}

.current-image img {
    max-width: 100%;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.current-file-name {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.delete-image {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
    z-index: 10;
}

.delete-image:hover {
    background-color: rgba(220, 53, 69, 1);
}

/* Boutons et actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 123, 0.15);
}

/* Améliorations des champs de formulaire */
.form-control, .form-select {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-settings {
        padding: 1rem;
    }
    
    .settings-section {
        padding: 1rem;
    }
}

/* Styles généraux */
.admin-dashboard {
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.admin-header {
    background-color: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #343a40;
    font-weight: 600;
}

.admin-content {
    padding: 1.5rem;
}

/* Navigation par onglets */
.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}

.settings-tab {
    padding: 0.75rem 1.25rem;
    background-color: transparent;
    border: none;
    border-radius: 6px 6px 0 0;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.settings-tab:hover {
    color: #495057;
    background-color: rgba(0, 123, 255, 0.05);
}

.settings-tab.active {
    color: #007bff;
    font-weight: 600;
    background-color: #fff;
}

.settings-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007bff;
}

/* Contenu des onglets */
.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Sections de paramètres */
.settings-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.settings-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.settings-section h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: #343a40;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.settings-section h2 i {
    margin-right: 0.5rem;
    color: #007bff;
}

/* Formulaires */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Color pickers modernisés */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.color-name {
    flex-grow: 1;
    padding-right: 1rem;
    font-weight: 500;
    color: #495057;
}

.color-preview {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    margin-right: 0.5rem;
    border: 1px solid #dee2e6;
    cursor: pointer;
    position: relative;
}

.color-preview:hover::before {
    content: '\f304'; /* icône d'édition */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.5);
}

.color-picker {
    opacity: 0;
    position: absolute;
    height: 0;
    width: 0;
}

/* Upload d'images modernisé */
.image-upload {
    margin-bottom: 1.5rem;
    position: relative;
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.drop-zone.has-image {
    border-style: solid;
    padding: 0;
    height: 12rem;
    overflow: hidden;
}

.upload-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.upload-text {
    margin: 0;
    color: #6c757d;
}

.image-preview {
    width: 100%;
    height: 12rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: none;
    position: relative;
}

.delete-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
    z-index: 5;
}

.delete-image-btn:hover {
    background-color: #dc3545;
}

.current-image {
    margin-bottom: 0.5rem;
}

.current-image img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Boutons et actions */
.form-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 6px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    color: #fff;
    background-color: #0069d9;
    border-color: #0062cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .settings-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .settings-section {
        padding: 1rem;
    }
    
    .admin-content {
        padding: 1rem;
    }
}

/* Styles pour la collection de types de fichiers */
.allowed-file-types-collection {
    margin-bottom: 1rem;
}

.allowed-file-type-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.allowed-file-type-item:hover {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.15);
}

.allowed-file-type-item .form-control {
    flex-grow: 1;
    margin-right: 0.75rem;
    border-radius: 4px;
}

.remove-file-type {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #dc3545;
    transition: all 0.2s ease;
}

.remove-file-type:hover {
    background-color: #dc3545;
    color: #fff;
}

.add-file-type {
    margin-top: 0.5rem;
    font-weight: 500;
    background-color: #e7f3ff;
    border-color: #b8daff;
    color: #0069d9;
}

.add-file-type:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}