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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0891b2 0%, #f97316 100%);
    min-height: 100vh;
    color: #333;
    padding-bottom: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============ PAGE D'ACCUEIL ============ */
.hero {
    text-align: center;
    padding: 60px 20px 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin: 30px 0 20px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero img {
    height: 80px;
    width: auto;
    max-width: 350px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1f2937;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(45deg, #ff9f4a, #ff7b25);
    color: white;
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    font-size: 1.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(255, 159, 74, 0.4);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(255, 159, 74, 0.5);
    background: linear-gradient(45deg, #ff8c33, #ff6b0d);
}

.btn-secondary {
    background: #f97316;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

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

/* FEATURES 2x2 */
.features-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0 20px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #0891b2;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ============ QUESTIONNAIRE ============ */
.quiz-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px 0 120px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0891b2, #f97316);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question {
    margin-bottom: 40px;
}

.question h2 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 15px;
    text-align: center;
}

.question-subtitle {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: center;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.option-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-item:hover {
    border-color: #0891b2;
    background: #f0f9ff;
    transform: translateY(-2px);
}

.option-item.selected {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.2);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.option-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.option-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Dropdown pays */
.country-dropdown {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.country-dropdown:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Slider épargne */
.savings-slider {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.savings-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #0891b2, #1e40af);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
}

.savings-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #0891b2, #1e40af);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.3);
}

/* Checkboxes filet sécurité */
.checkbox-grid {
    display: grid;
    gap: 12px;
}

.checkbox-item {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.checkbox-item:hover {
    border-color: #0891b2;
    background: #f0f9ff;
}

.checkbox-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 20px 0;
}

.step-indicator {
    color: #6b7280;
    font-weight: 600;
    font-size: 1rem;
}

/* ============ RÉSULTATS ============ */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px 0 150px 0;
}

.budget-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #f97316;
}

.budget-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #fff7ed 0%, #f0f9ff 100%);
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #f97316;
}

.budget-amount {
    font-size: 3.5rem;
    font-weight: bold;
    color: #f97316;
    margin: 20px 0;
    line-height: 1;
}

.budget-range {
    font-size: 1.2rem;
    color: #6b7280;
    margin-top: 10px;
}

.breakdown-grid {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.breakdown-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #0891b2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breakdown-label {
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
}

.breakdown-detail {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 5px;
}

.breakdown-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #0891b2;
}

.insights-section {
    background: rgba(240, 249, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #10b981;
}

.insights-title {
    font-weight: 600;
    color: #0891b2;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.insight-item {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.insight-item::before {
    content: "✅";
    position: absolute;
    left: 0;
}

.insight-item.warning::before {
    content: "⚠️";
}

.alternatives-section {
    background: #fff7ed;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border-left: 4px solid #f97316;
}

.alternative-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    border-left: 3px solid #0891b2;
}

.resources-section {
    margin-top: 30px;
    padding: 25px;
    background: #f0f9ff;
    border-radius: 12px;
    border-left: 4px solid #0891b2;
}

.resources-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.resource-btn {
    background: linear-gradient(45deg, #0891b2, #1e40af);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 145, 178, 0.3);
}

.video-btn {
    background: linear-gradient(45deg, #f97316, #ea580c) !important;
}

.video-btn:hover {
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3) !important;
}

/* ============ FOOTER ============ */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 145, 178, 0.95);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============ UTILITAIRES ============ */
.hidden {
    display: none;
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .hero {
        padding: 40px 15px 25px 15px;
        margin: 15px 0 10px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary {
        font-size: 1.3rem;
        padding: 15px 30px;
        width: 90%;
        max-width: 300px;
    }

    .features-2x2 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .quiz-container, .results-container {
        padding: 20px 15px;
        margin: 15px 0 140px 0;
    }

    .question-grid {
        grid-template-columns: 1fr;
    }

    .navigation {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 120px;
    }

    .btn-secondary {
        width: 100%;
        padding: 15px 20px;
        margin: 5px 0;
    }

    .step-indicator {
        order: -1;
        margin-bottom: 10px;
    }

    .budget-amount {
        font-size: 2.5rem;
    }

    .breakdown-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .resources-buttons {
        flex-direction: column;
    }

    .resource-btn {
        width: 100%;
        min-width: auto;
    }
}