/* ===================================
   INFOQUÊTE V1.1 - STYLES
   
   NOUVEAUTÉS V1.1 :
   - Compteur questions
   - Popup confirmation
   - Écran récapitulatif
   - Détecto la Loupe
   - Animations améliorées
   =================================== */

/* ===================================
   NOUVEAU V1.1 : COMPTEUR QUESTIONS
   =================================== */

.question-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.counter-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    opacity: 0.9;
}

.counter-progress {
    display: flex;
    gap: 6px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.progress-dot.filled {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    transform: scale(1.2);
}

/* ===================================
   NOUVEAU V1.1 : POPUP CONFIRMATION
   =================================== */

.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirmation-overlay.active {
    opacity: 1;
}

.confirmation-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.confirmation-overlay.active .confirmation-popup {
    transform: translateY(0);
}

.confirmation-content {
    text-align: center;
}

.confirmation-question {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.confirmation-choice {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.confirmation-ask {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirmation-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
}

/* ===================================
   NOUVEAU V1.1 : ÉCRAN RÉCAPITULATIF
   =================================== */

.summary-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.detecto-message {
    text-align: center;
    margin-bottom: 24px;
}

.detecto-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

.detecto-text {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
    font-style: italic;
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 24px;
}

.summary-score {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
}

.score-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.score-value {
    font-size: 48px;
    font-weight: bold;
    color: white;
}

.summary-stats {
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 12px;
}

.stat-emoji {
    font-size: 24px;
}

.stat-text {
    font-size: 16px;
    color: #333;
}

.summary-result {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.summary-result.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.summary-result.failure {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.result-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-continue {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===================================
   NOUVEAU V1.1 : DÉTECTO TOOLTIP
   =================================== */

.detecto-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    z-index: 1000;
}

.detecto-small {
    width: 40px;
    height: 40px;
}

.detecto-tooltip p {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-style: italic;
}

.detecto-tooltip.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-slideUp {
    animation: slideUp 0.4s ease;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-fadeOut {
    animation: fadeOut 0.3s ease;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .confirmation-popup {
        padding: 24px;
    }
    
    .confirmation-choice {
        font-size: 20px;
        padding: 12px;
    }
    
    .summary-card {
        padding: 24px;
    }
    
    .summary-title {
        font-size: 24px;
    }
    
    .score-value {
        font-size: 36px;
    }
    
    .detecto-icon {
        width: 60px;
        height: 60px;
    }
    
    .detecto-tooltip {
        bottom: 10px;
        right: 10px;
        max-width: 250px;
    }
}