/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Hero Sections */
.hero-section {
    padding: 5rem 0;
}

.display-4 {
    font-weight: 700;
    line-height: 1.2;
}

/* Features */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Steps */
.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Contact Form */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section, .py-5 {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loan Simulator Specific */
#resultsSection {
    transition: all 0.5s ease;
}

/* Background Colors */
.bg-primary {
    background-color: #0d6efd !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* Text Colors */
.text-primary {
    color: #0d6efd !important;
}

.text-white {
    color: white !important;
}

/* Spacing Utilities */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Footer Styles */
.footer {
    background-color: #2c3e50;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #0d6efd !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0d6efd;
    transform: translateY(-3px);
}

.footer-services li a:hover {
    padding-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
    
    .footer-links, .footer-services, .footer-contact {
        margin-bottom: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer .d-flex {
        justify-content: center;
    }
}

/* Simulateur de prêt */
.simulator-main .card {
    transition: all 0.3s ease;
}

.simulator-main .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#amortizationTable tr:first-child td {
    font-weight: bold;
    color: #0d6efd;
}

#emptyResults {
    opacity: 0.7;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .simulator-main .card {
        margin-bottom: 2rem;
    }
}

/* Transition fluide pour les résultats */
#resultsContainer, #loadingResults, #emptyResults {
    transition: opacity 0.3s ease;
}

/* Style pour les inputs en cours de modification */
input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation de chargement */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#resultsContainer {
    animation: fadeIn 0.5s ease;
}