:root {
    --primary-color: #006D77;
    --secondary-color: #83C5BE;
    --accent-color: #E29578;
    --text-color: #2C3E50;
    --background-color: #FFFFFF;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --danger-color: #D62828; 
    --success-color: #27AE60;
    --gray-light: #F8F9FA;
    --gray-medium: #E9ECEF;
    --border-radius: 8px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-bg: #F8F9FA;
    --warning-color: #F1C40F;
    --info-color: #3498DB;
    --light-color: #F8F9FA;
    --dark-color: #2C3E50;
    --gray-color: #6C757D;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Styles de base */
body {
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Cards personnalisées */
.custom-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.custom-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.custom-card-header {
    padding: 1rem 1.5rem;
    background: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-card-body {
    padding: 1.5rem;
}

/* Boutons personnalisés */
.custom-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.custom-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Formulaires */
.custom-form-control {
    border-radius: var(--border-radius);
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.custom-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(45, 62, 80, 0.25);
    outline: none;
}

/* Alertes personnalisées */
.custom-alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.custom-alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.custom-alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* Badges */
.custom-badge {
    padding: 0.35em 0.65em;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Listes */
.custom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-list-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Focus visible */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Support mode contraste élevé */
@media (forced-colors: active) {
    .custom-card,
    .custom-btn,
    .custom-form-control {
        border: 2px solid currentColor;
    }
}

/* Utilitaires */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .custom-card {
        margin-bottom: 1rem;
    }

    .custom-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Loading spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#panier .card-header h2 {
    color: white !important;
    margin-bottom: 0;
}

#fileTitle {
    color: white !important;
}