/* Quiz Diagnostic de Peau - Styles */

.sdq-quiz-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sdq-quiz-header {
    text-align: center;
    margin-bottom: 30px;
}

.sdq-quiz-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.sdq-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Barre de progression */
.sdq-progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.sdq-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    width: 25%;
    transition: width 0.4s ease;
}

/* Questions */
.sdq-question {
    display: none;
    animation: fadeIn 0.4s ease;
}

.sdq-question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sdq-question h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Options */
.sdq-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.sdq-options-checkbox {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sdq-option {
    position: relative;
    cursor: pointer;
}

.sdq-option input[type="radio"],
.sdq-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.sdq-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
    min-height: 120px;
    justify-content: center;
}

.sdq-option:hover .sdq-option-content {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.sdq-option input:checked + .sdq-option-content {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.sdq-option input:checked + .sdq-option-content .sdq-option-desc {
    color: rgba(255, 255, 255, 0.9);
}

.sdq-option-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.sdq-option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.sdq-option-desc {
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
}

/* Navigation */
.sdq-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.sdq-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.sdq-btn-prev {
    background: #ecf0f1;
    color: #2c3e50;
}

.sdq-btn-prev:hover {
    background: #bdc3c7;
}

.sdq-btn-next,
.sdq-btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-left: auto;
}

.sdq-btn-next:hover,
.sdq-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Résultats */
.sdq-results {
    animation: fadeIn 0.5s ease;
}

.sdq-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #ffffff;
}

.sdq-results-header h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

#sdq-diagnosis {
    font-size: 16px;
    line-height: 1.6;
}

#sdq-diagnosis strong {
    display: block;
    margin-top: 10px;
}

/* Produits */
.sdq-products-section h4 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.sdq-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sdq-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.sdq-product-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.sdq-product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sdq-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    min-height: 40px;
}

.sdq-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.sdq-product-link {
    display: inline-block;
    padding: 8px 16px;
    background: #ecf0f1;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sdq-product-link:hover {
    background: #667eea;
    color: #ffffff;
}

/* Actions résultats */
.sdq-results-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.sdq-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.sdq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sdq-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.sdq-btn-secondary:hover {
    background: #bdc3c7;
}

/* Loader */
.sdq-loader {
    text-align: center;
    padding: 60px 20px;
}

.sdq-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sdq-loader p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Messages de succès/erreur */
.sdq-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.sdq-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sdq-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sdq-quiz-wrapper {
        padding: 25px 20px;
        margin: 20px auto;
    }
    
    .sdq-quiz-header h2 {
        font-size: 24px;
    }
    
    .sdq-options {
        grid-template-columns: 1fr;
    }
    
    .sdq-option-content {
        min-height: auto;
    }
    
    .sdq-navigation {
        flex-direction: column;
    }
    
    .sdq-btn-next,
    .sdq-btn-submit {
        margin-left: 0;
    }
    
    .sdq-products-grid {
        grid-template-columns: 1fr;
    }
    
    .sdq-results-actions {
        flex-direction: column;
    }
}
