/* ===================================
   💰 TAXE SUR LES ULTRA-RICHES - STYLES
   =================================== */

/* Overlay Modal */
.tax-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Container */
.tax-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(255, 215, 0, 0.3);
    border: 3px solid #ffd700;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.tax-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    border-radius: 17px 17px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tax-modal-header.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tax-modal-header.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.tax-modal-header.failure {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
}

.tax-modal-header h2,
.tax-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.8em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.question-timer {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
}

/* Content */
.tax-modal-content {
    padding: 30px;
    color: #e0e0e0;
}

.tax-warning-icon {
    font-size: 4em;
    text-align: center;
    margin: 20px 0;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tax-warning-text {
    font-size: 1.1em;
    text-align: center;
    margin: 20px 0;
    line-height: 1.6;
}

.tax-stakes,
.tax-rules {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffd700;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.tax-stakes h4,
.tax-rules p strong {
    color: #ffd700;
    margin-top: 0;
}

.tax-stakes ul,
.tax-rules ul {
    margin: 10px 0;
    padding-left: 20px;
}

.tax-stakes li,
.tax-rules li {
    margin: 8px 0;
    line-height: 1.5;
}

/* Question */
.tax-question {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.tax-question p {
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
    color: #fff;
}

/* Options */
.tax-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tax-option-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #4a5f7f;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.tax-option-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #ffd700;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.tax-option-btn:active {
    transform: scale(0.98);
}

/* Footer */
.tax-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-tax-start,
.btn-tax-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-tax-start:hover,
.btn-tax-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-tax-start:active,
.btn-tax-close:active {
    transform: scale(0.98);
}

/* Progress */
.quiz-progress {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.progress-dot.answered {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

/* Results */
.results-icon {
    font-size: 5em;
    text-align: center;
    margin: 20px 0;
}

.results-score {
    text-align: center;
    margin: 25px 0;
}

.results-score h3 {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 15px;
}

.score-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0;
}

.score-fill {
    height: 100%;
    transition: width 1s ease;
    border-radius: 15px;
    background: linear-gradient(90deg, #10b981, #38ef7d);
}

.results-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.success-text {
    color: #38ef7d;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.failure-text {
    color: #ff6a00;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.tax-penalty {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid #ff4444;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1.1em;
}

.tax-penalty strong {
    color: #ff4444;
    font-size: 1.3em;
}

/* Answers Summary */
.results-answers {
    margin-top: 25px;
}

.results-answers h4 {
    color: #ffd700;
    margin-bottom: 15px;
}

.answer-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid transparent;
}

.answer-summary.correct {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.answer-summary.incorrect {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.answer-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.answer-question {
    flex: 1;
    font-size: 0.95em;
}

/* Modal Variants */
.results-modal.passed {
    border-color: #38ef7d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(56, 239, 125, 0.4);
}

.results-modal.failed {
    border-color: #ff6a00;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8),
                0 0 100px rgba(255, 106, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .tax-modal {
        width: 95%;
        max-width: none;
    }
    
    .tax-modal-content {
        padding: 20px;
    }
    
    .tax-modal-header h2 {
        font-size: 1.4em;
    }
    
    .tax-question p {
        font-size: 1em;
    }
    
    .tax-option-btn {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    
    .results-icon {
        font-size: 3.5em;
    }
}

/* Animations supplémentaires */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

