
    * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #264176, #394c72, #1b396d);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.page-header {
    background: rgba(255, 255, 255, 0.95);

    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.page-header h1 {
    color: #4a5568;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.page-header p {
    color: #6b7280;
    margin: 5px 0 0 0;
    font-size: 14px;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.page-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.page-footer p {
    color: #6b7280;
    margin: 0;
    font-size: 12px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.content {
    padding: 30px;
}

.section {
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: #4a5568;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #4a5568;
    border-left: 4px solid #667eea;
    line-height: 1.5;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #92400e;
    border-left: 4px solid #f59e0b;
    line-height: 1.5;
}

.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #065f46;
    border-left: 4px solid #10b981;
    line-height: 1.5;
}

.risk-box {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(248, 113, 113, 0.1));
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #991b1b;
    border-left: 4px solid #ef4444;
    line-height: 1.5;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto;
    display: block;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.results-container {
    margin-top: 30px;
    padding: 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.result-card.best-option {
    border: 2px solid #10b981;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    transform: scale(1.02);
}

.result-card.best-option::before {
    background: linear-gradient(135deg, #10b981, #34d399);
    height: 6px;
}

.result-card h3 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.best-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 14px;
}

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

.result-value {
    font-weight: 600;
    color: #4a5568;
}

.result-value.positive {
    color: #10b981;
}

.result-value.negative {
    color: #ef4444;
}

.result-value.highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 16px;
}

.analysis-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.analysis-card h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 16px;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
}

.analysis-card li {
    padding: 5px 0;
    color: #6b7280;
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.analysis-card li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.export-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    flex-wrap: wrap;
}

.export-btn {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.export-btn.secondary {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.hidden {
    display: none;
}

.risk-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-low, .risk-tres-faible, .risk-faible {
    background: rgba(16, 185, 129, 0.2);
    color: #065f46;
}

.risk-medium, .risk-moyen, .risk-modere {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
}

.risk-high, .risk-eleve {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
}

/* Styles pour premier loyer */
.premier-loyer-info {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(59, 130, 246, 0.05));
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #059669;
    border-left: 3px solid #10b981;
    line-height: 1.4;
}

.premier-loyer-badge {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Styles CCA */
.cca-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.cca-section:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.cca-section h4 {
    color: #4f46e5;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modalite-cca-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    padding: 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #4f46e5;
    border-left: 3px solid #6366f1;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .export-section {
        flex-direction: column;
    }
    
    .cca-section {
        padding: 15px;
        margin-top: 10px;
    }
    
    .cca-section h4 {
        font-size: 14px;
    }
    .tauxCCAFonds{
        color: #8b3704;
    }
    /* Styles pour les sections de financement collapsibles */
.financing-section {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.financing-section:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.financing-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.financing-header:hover {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.9));
}

.financing-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.financing-details {
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.financing-details.collapsed {
    max-height: 0;
    padding: 0 25px;
    opacity: 0;
}

/* Styles pour les sous-titres des solutions locatives */
.financing-details h4 {
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.financing-details h4:first-child {
    margin-top: 0;
}

/* Amélioration des espacements dans les sections */
.financing-details .form-group {
    margin-bottom: 20px;
}

.financing-details .form-group label {
    margin-top: 10px;
}

.financing-details .form-group label:first-child {
    margin-top: 0;
}

/* Style spécial pour la section Solutions Locatives */
#locationDetails .form-group {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
}

/* Animation d'ouverture/fermeture */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.financing-details:not(.collapsed) {
    animation: slideDown 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .financing-header {
        padding: 15px;
    }
    
    .financing-header h3 {
        font-size: 16px;
    }
    
    .financing-details {
        padding: 15px;
    }
    
    #locationDetails .form-group {
        padding: 15px;
    }
}
}
 .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .logo {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            padding: 12px 16px;
            border-radius: 8px;
            color: white;
            font-weight: bold;
            
        }
.logo img{
max-width: 150px;
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
}
        .nav {
            display: flex;
            gap: 16px;
        }

        .nav-button {
            color: rgba(49, 47, 47, 0.8);
            background: none;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .nav-button:hover, .nav-button.active {
            color: rgb(75, 67, 67);
            background: rgba(255, 255, 255, 0.2);
        }

        .close-button {
            background: rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
            border: none;
            color: white;
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .close-button:hover {
            background: rgba(255, 255, 255, 0.3);
        }

