/* Flat Design - Styles personnalisés modernes avec tons pastels */
body {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0e6f5 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 2rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 60px;
    padding: 0.5rem 1rem;
}

.navbar .btn-link {
    color: #a8c5d9;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(168, 197, 217, 0.15);
}

.navbar .btn-link:hover {
    color: #8fb3c9;
    background: rgba(168, 197, 217, 0.25);
    transform: rotate(90deg);
}

h1 {
    color: #6b7f95;
    font-weight: 700;
    margin-bottom: 2rem !important;
}

.card {
    border: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* Carte durée d'arrêt - Bleu pastel */
.card:nth-of-type(1) {
    background: linear-gradient(135deg, #c8e6f5 0%, #d4c5e8 100%);
    color: #5a6c7d;
}

.card:nth-of-type(1) .card-title,
.card:nth-of-type(1) #duree-arret {
    color: #5a6c7d !important;
}

.card:nth-of-type(1) .text-white-50 {
    color: #7a8a9a !important;
    opacity: 0.8;
}

/* Carte économies - Vert pastel */
.card:nth-of-type(2) {
    background: linear-gradient(135deg, #c8f5e8 0%, #b8e6d4 100%);
    color: #5a6c7d;
}

.card:nth-of-type(2) .card-title,
.card:nth-of-type(2) #economies-totales {
    color: #5a6c7d !important;
}

.card:nth-of-type(2) .text-success {
    color: #4a9d7a !important;
}

/* Carte retraits - Blanc */
.card:nth-of-type(3) {
    background: white;
}

.shadow-sm {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.display-4 {
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: -1px;
}

.display-5 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.card-title {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-title i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.text-primary {
    color: white !important;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #a8c5d9 0%, #c4b5d9 100%);
    border: none;
    color: #5a6c7d;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 197, 217, 0.3);
    background: linear-gradient(135deg, #c4b5d9 0%, #a8c5d9 100%);
    color: #4a5c6d;
}

.btn-secondary {
    background: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus, .form-select:focus {
    border-color: #a8c5d9;
    box-shadow: 0 0 0 0.2rem rgba(168, 197, 217, 0.25);
    background: white;
    transform: translateY(-2px);
}

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

.list-group-item {
    border: none;
    border-bottom: 2px solid #f0f0f0;
    padding: 1.25rem;
    transition: all 0.3s ease;
    background: white;
}

.list-group-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
    border-left: 4px solid #a8c5d9;
    padding-left: calc(1.25rem - 4px);
}

.list-group-item:last-child {
    border-bottom: none;
}

.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-warning {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7f95;
    border: 2px solid rgba(107, 127, 149, 0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-warning i {
    color: #8b9db0;
}

.badge {
    padding: 0.6em 1em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #d4c5e8 0%, #c8e6f5 100%);
    color: #5a6c7d;
    border-radius: 16px 16px 0 0;
    border: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: #5a6c7d;
}

.modal-header .btn-close {
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .card:nth-of-type(2) #economies-totales {
        font-size: 2.5rem !important;
    }
    
    .row.g-3 > div {
        margin-bottom: 0.5rem;
    }
    
    .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .list-group-item > div:last-child {
        margin-top: 0.5rem;
        width: 100%;
        text-align: right;
    }
}

@media (max-width: 576px) {
    body {
        background: linear-gradient(135deg, #e8f4f8 0%, #f0e6f5 100%);
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2, h3 {
        font-size: 1.25rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .card:nth-of-type(2) #economies-totales {
        font-size: 2rem !important;
    }
    
    .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .btn-lg {
        width: 100%;
    }
}

